Regenerate configure.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 BINUTILS_INCDIR
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 LEX
850 LEXLIB
851 LEX_OUTPUT_ROOT
852 FLEX
853 YACC
854 YFLAGS
855 BISON
856 NM
857 ifGNUmake
858 LN_S
859 CMP
860 CP
861 DATE
862 FIND
863 MKDIR
864 MV
865 RANLIB
866 RM
867 SED
868 TAR
869 BINPWD
870 GRAPHVIZ
871 DOT
872 GV
873 DOTTY
874 PERL
875 HAVE_PERL
876 INSTALL_PROGRAM
877 INSTALL_SCRIPT
878 INSTALL_DATA
879 BZIP2
880 DOXYGEN
881 GROFF
882 GZIP
883 POD2HTML
884 POD2MAN
885 RUNTEST
886 TCLSH
887 ZIP
888 OCAMLC
889 OCAMLOPT
890 OCAMLDEP
891 OCAMLDOC
892 GAS
893 INSTALL_LTDL_TRUE
894 INSTALL_LTDL_FALSE
895 CONVENIENCE_LTDL_TRUE
896 CONVENIENCE_LTDL_FALSE
897 LIBADD_DL
898 ECHO
899 AR
900 STRIP
901 CXXCPP
902 F77
903 FFLAGS
904 ac_ct_F77
905 LIBTOOL
906 LLVMGCC
907 LLVMGXX
908 USE_UDIS86
909 HAVE_PTHREAD
910 HUGE_VAL_SANITY
911 ALLOCA
912 MMAP_FILE
913 LLVMCC1
914 LLVMCC1PLUS
915 LLVMGCCDIR
916 LLVMGCCLIBEXEC
917 LLVMGCC_VERSION
918 LLVMGCC_MAJVERS
919 LLVMGCC_LANGS
920 SHLIBEXT
921 LLVM_PREFIX
922 LLVM_BINDIR
923 LLVM_LIBDIR
924 LLVM_DATADIR
925 LLVM_DOCSDIR
926 LLVM_ETCDIR
927 LLVM_INCLUDEDIR
928 LLVM_INFODIR
929 LLVM_MANDIR
930 LLVM_CONFIGTIME
931 BINDINGS_TO_BUILD
932 ALL_BINDINGS
933 OCAML_LIBDIR
934 ENABLE_VISIBILITY_INLINES_HIDDEN
935 LIBOBJS
936 LTLIBOBJS'
937 ac_subst_files=''
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 CPPFLAGS
945 CPP
946 CXX
947 CXXFLAGS
948 CCC
949 YACC
950 YFLAGS
951 CXXCPP
952 F77
953 FFLAGS'
954 ac_subdirs_all='projects/sample
955 projects/privbracket
956 projects/llvm-stacker
957 projects/llvm-test
958 projects/test-suite
959 projects/llvm-reopt
960 projects/llvm-gcc
961 projects/llvm-java
962 projects/llvm-tv
963 projects/llvm-poolalloc
964 projects/poolalloc
965 projects/llvm-kernel'
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017   # If the previous option needs an argument, assign it.
1018   if test -n "$ac_prev"; then
1019     eval $ac_prev=\$ac_option
1020     ac_prev=
1021     continue
1022   fi
1023
1024   case $ac_option in
1025   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026   *)    ac_optarg=yes ;;
1027   esac
1028
1029   # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031   case $ac_dashdash$ac_option in
1032   --)
1033     ac_dashdash=yes ;;
1034
1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036     ac_prev=bindir ;;
1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038     bindir=$ac_optarg ;;
1039
1040   -build | --build | --buil | --bui | --bu)
1041     ac_prev=build_alias ;;
1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043     build_alias=$ac_optarg ;;
1044
1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047     ac_prev=cache_file ;;
1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050     cache_file=$ac_optarg ;;
1051
1052   --config-cache | -C)
1053     cache_file=config.cache ;;
1054
1055   -datadir | --datadir | --datadi | --datad)
1056     ac_prev=datadir ;;
1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058     datadir=$ac_optarg ;;
1059
1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061   | --dataroo | --dataro | --datar)
1062     ac_prev=datarootdir ;;
1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065     datarootdir=$ac_optarg ;;
1066
1067   -disable-* | --disable-*)
1068     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074     eval enable_$ac_feature=no ;;
1075
1076   -docdir | --docdir | --docdi | --doc | --do)
1077     ac_prev=docdir ;;
1078   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079     docdir=$ac_optarg ;;
1080
1081   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082     ac_prev=dvidir ;;
1083   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084     dvidir=$ac_optarg ;;
1085
1086   -enable-* | --enable-*)
1087     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088     # Reject names that are not valid shell variable names.
1089     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091    { (exit 1); exit 1; }; }
1092     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1093     eval enable_$ac_feature=\$ac_optarg ;;
1094
1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097   | --exec | --exe | --ex)
1098     ac_prev=exec_prefix ;;
1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101   | --exec=* | --exe=* | --ex=*)
1102     exec_prefix=$ac_optarg ;;
1103
1104   -gas | --gas | --ga | --g)
1105     # Obsolete; use --with-gas.
1106     with_gas=yes ;;
1107
1108   -help | --help | --hel | --he | -h)
1109     ac_init_help=long ;;
1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111     ac_init_help=recursive ;;
1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113     ac_init_help=short ;;
1114
1115   -host | --host | --hos | --ho)
1116     ac_prev=host_alias ;;
1117   -host=* | --host=* | --hos=* | --ho=*)
1118     host_alias=$ac_optarg ;;
1119
1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121     ac_prev=htmldir ;;
1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123   | --ht=*)
1124     htmldir=$ac_optarg ;;
1125
1126   -includedir | --includedir | --includedi | --included | --include \
1127   | --includ | --inclu | --incl | --inc)
1128     ac_prev=includedir ;;
1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
1131     includedir=$ac_optarg ;;
1132
1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
1134     ac_prev=infodir ;;
1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136     infodir=$ac_optarg ;;
1137
1138   -libdir | --libdir | --libdi | --libd)
1139     ac_prev=libdir ;;
1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141     libdir=$ac_optarg ;;
1142
1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144   | --libexe | --libex | --libe)
1145     ac_prev=libexecdir ;;
1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147   | --libexe=* | --libex=* | --libe=*)
1148     libexecdir=$ac_optarg ;;
1149
1150   -localedir | --localedir | --localedi | --localed | --locale)
1151     ac_prev=localedir ;;
1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153     localedir=$ac_optarg ;;
1154
1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
1156   | --localstate | --localstat | --localsta | --localst | --locals)
1157     ac_prev=localstatedir ;;
1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160     localstatedir=$ac_optarg ;;
1161
1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163     ac_prev=mandir ;;
1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165     mandir=$ac_optarg ;;
1166
1167   -nfp | --nfp | --nf)
1168     # Obsolete; use --without-fp.
1169     with_fp=no ;;
1170
1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172   | --no-cr | --no-c | -n)
1173     no_create=yes ;;
1174
1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177     no_recursion=yes ;;
1178
1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181   | --oldin | --oldi | --old | --ol | --o)
1182     ac_prev=oldincludedir ;;
1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186     oldincludedir=$ac_optarg ;;
1187
1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189     ac_prev=prefix ;;
1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191     prefix=$ac_optarg ;;
1192
1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194   | --program-pre | --program-pr | --program-p)
1195     ac_prev=program_prefix ;;
1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198     program_prefix=$ac_optarg ;;
1199
1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201   | --program-suf | --program-su | --program-s)
1202     ac_prev=program_suffix ;;
1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205     program_suffix=$ac_optarg ;;
1206
1207   -program-transform-name | --program-transform-name \
1208   | --program-transform-nam | --program-transform-na \
1209   | --program-transform-n | --program-transform- \
1210   | --program-transform | --program-transfor \
1211   | --program-transfo | --program-transf \
1212   | --program-trans | --program-tran \
1213   | --progr-tra | --program-tr | --program-t)
1214     ac_prev=program_transform_name ;;
1215   -program-transform-name=* | --program-transform-name=* \
1216   | --program-transform-nam=* | --program-transform-na=* \
1217   | --program-transform-n=* | --program-transform-=* \
1218   | --program-transform=* | --program-transfor=* \
1219   | --program-transfo=* | --program-transf=* \
1220   | --program-trans=* | --program-tran=* \
1221   | --progr-tra=* | --program-tr=* | --program-t=*)
1222     program_transform_name=$ac_optarg ;;
1223
1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225     ac_prev=pdfdir ;;
1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227     pdfdir=$ac_optarg ;;
1228
1229   -psdir | --psdir | --psdi | --psd | --ps)
1230     ac_prev=psdir ;;
1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232     psdir=$ac_optarg ;;
1233
1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235   | -silent | --silent | --silen | --sile | --sil)
1236     silent=yes ;;
1237
1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239     ac_prev=sbindir ;;
1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241   | --sbi=* | --sb=*)
1242     sbindir=$ac_optarg ;;
1243
1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246   | --sharedst | --shareds | --shared | --share | --shar \
1247   | --sha | --sh)
1248     ac_prev=sharedstatedir ;;
1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252   | --sha=* | --sh=*)
1253     sharedstatedir=$ac_optarg ;;
1254
1255   -site | --site | --sit)
1256     ac_prev=site ;;
1257   -site=* | --site=* | --sit=*)
1258     site=$ac_optarg ;;
1259
1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261     ac_prev=srcdir ;;
1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263     srcdir=$ac_optarg ;;
1264
1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266   | --syscon | --sysco | --sysc | --sys | --sy)
1267     ac_prev=sysconfdir ;;
1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270     sysconfdir=$ac_optarg ;;
1271
1272   -target | --target | --targe | --targ | --tar | --ta | --t)
1273     ac_prev=target_alias ;;
1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275     target_alias=$ac_optarg ;;
1276
1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278     verbose=yes ;;
1279
1280   -version | --version | --versio | --versi | --vers | -V)
1281     ac_init_version=: ;;
1282
1283   -with-* | --with-*)
1284     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
1288    { (exit 1); exit 1; }; }
1289     ac_package=`echo $ac_package| sed 's/-/_/g'`
1290     eval with_$ac_package=\$ac_optarg ;;
1291
1292   -without-* | --without-*)
1293     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_package=`echo $ac_package | sed 's/-/_/g'`
1299     eval with_$ac_package=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) { echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321    { (exit 1); exit 1; }; }
1322     ;;
1323
1324   *=*)
1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329    { (exit 1); exit 1; }; }
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   { echo "$as_me: error: missing argument to $ac_option" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349
1350 # Be sure to have absolute directory names.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir
1355 do
1356   eval ac_val=\$$ac_var
1357   case $ac_val in
1358     [\\/$]* | ?:[\\/]* )  continue;;
1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360   esac
1361   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362    { (exit 1); exit 1; }; }
1363 done
1364
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1371
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374   if test "x$build_alias" = x; then
1375     cross_compiling=maybe
1376     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377     If a cross compiler is detected then cross compile mode will be used." >&2
1378   elif test "x$build_alias" != "x$host_alias"; then
1379     cross_compiling=yes
1380   fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392   { echo "$as_me: error: Working directory cannot be determined" >&2
1393    { (exit 1); exit 1; }; }
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395   { echo "$as_me: error: pwd does not report name of working directory" >&2
1396    { (exit 1); exit 1; }; }
1397
1398
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401   ac_srcdir_defaulted=yes
1402   # Try the directory containing this script, then the parent directory.
1403   ac_confdir=`$as_dirname -- "$0" ||
1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405          X"$0" : 'X\(//\)[^/]' \| \
1406          X"$0" : 'X\(//\)$' \| \
1407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1408 echo X"$0" |
1409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)[^/].*/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\).*/{
1422             s//\1/
1423             q
1424           }
1425           s/.*/./; q'`
1426   srcdir=$ac_confdir
1427   if test ! -r "$srcdir/$ac_unique_file"; then
1428     srcdir=..
1429   fi
1430 else
1431   ac_srcdir_defaulted=no
1432 fi
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436    { (exit 1); exit 1; }; }
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441    { (exit 1); exit 1; }; }
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR           user executables [EPREFIX/bin]
1502   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR       program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1507   --libdir=DIR           object code libraries [EPREFIX/lib]
1508   --includedir=DIR       C header files [PREFIX/include]
1509   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1510   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1511   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1512   --infodir=DIR          info documentation [DATAROOTDIR/info]
1513   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1514   --mandir=DIR           man documentation [DATAROOTDIR/man]
1515   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1516   --htmldir=DIR          html documentation [DOCDIR]
1517   --dvidir=DIR           dvi documentation [DOCDIR]
1518   --pdfdir=DIR           pdf documentation [DOCDIR]
1519   --psdir=DIR            ps documentation [DOCDIR]
1520 _ACEOF
1521
1522   cat <<\_ACEOF
1523
1524 System types:
1525   --build=BUILD     configure for building on BUILD [guessed]
1526   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1527   --target=TARGET   configure for building compilers for TARGET [HOST]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532   case $ac_init_help in
1533      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1534    esac
1535   cat <<\_ACEOF
1536
1537 Optional Features:
1538   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1539   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1540   --enable-optimized
1541   --enable-assertions
1542   --enable-expensive-checks
1543
1544   --enable-debug-runtime
1545   --enable-jit            Enable Just In Time Compiling (default is YES)
1546   --enable-doxygen        Build doxygen documentation (default is NO)
1547   --enable-threads        Use threads if available (default is YES)
1548   --enable-pic            Build LLVM with Position Independent Code (default
1549                           is NO)
1550   --enable-targets        Build specific host targets:
1551                           all,host-only,{target-name} (default=all)
1552   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1553                           %a (default is YES)
1554   --enable-bindings       Build specific language bindings:
1555                           all,auto,none,{binding-name} (default=auto)
1556   --enable-ltdl-install   install libltdl
1557   --enable-shared[=PKGS]  build shared libraries
1558                           [default=yes]
1559   --enable-static[=PKGS]  build static libraries
1560                           [default=yes]
1561   --enable-fast-install[=PKGS]
1562                           optimize for fast installation
1563                           [default=yes]
1564   --disable-libtool-lock  avoid locking (might break parallel builds)
1565
1566 Optional Packages:
1567   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1568   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1569   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1570                           searches PATH)
1571   --with-llvmgcc          Specify location of llvm-gcc driver (default
1572                           searches PATH)
1573   --with-llvmgxx          Specify location of llvm-g++ driver (default
1574                           searches PATH)
1575   --with-extra-options    Specify addtional options to compile LLVM with
1576   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1577                           is stdlib)
1578   --with-binutils-include Specify path to binutils/include/ containing
1579                           plugin-api.h file for gold plugin.
1580   --with-tclinclude       directory where tcl headers are
1581   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582   --with-pic              try to use only PIC/non-PIC objects [default=use
1583                           both]
1584   --with-tags[=TAGS]      include additional configurations [automatic]
1585   --with-udis86=<path>    Use udis86 external x86 disassembler library
1586
1587 Some influential environment variables:
1588   CC          C compiler command
1589   CFLAGS      C compiler flags
1590   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1591               nonstandard directory <lib dir>
1592   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593               you have headers in a nonstandard directory <include dir>
1594   CPP         C preprocessor
1595   CXX         C++ compiler command
1596   CXXFLAGS    C++ compiler flags
1597   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1598               the first program found out of: `bison -y', `byacc', `yacc'.
1599   YFLAGS      The list of arguments that will be passed by default to $YACC.
1600               This script will default YFLAGS to the empty string to avoid a
1601               default value of `-d' given by some make applications.
1602   CXXCPP      C++ preprocessor
1603   F77         Fortran 77 compiler command
1604   FFLAGS      Fortran 77 compiler flags
1605
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1608
1609 Report bugs to <llvmbugs@cs.uiuc.edu>.
1610 _ACEOF
1611 ac_status=$?
1612 fi
1613
1614 if test "$ac_init_help" = "recursive"; then
1615   # If there are subdirs, report their specific --help.
1616   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617     test -d "$ac_dir" || continue
1618     ac_builddir=.
1619
1620 case "$ac_dir" in
1621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *)
1623   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1624   # A ".." for each directory in $ac_dir_suffix.
1625   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1626   case $ac_top_builddir_sub in
1627   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629   esac ;;
1630 esac
1631 ac_abs_top_builddir=$ac_pwd
1632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633 # for backward compatibility:
1634 ac_top_builddir=$ac_top_build_prefix
1635
1636 case $srcdir in
1637   .)  # We are building in place.
1638     ac_srcdir=.
1639     ac_top_srcdir=$ac_top_builddir_sub
1640     ac_abs_top_srcdir=$ac_pwd ;;
1641   [\\/]* | ?:[\\/]* )  # Absolute name.
1642     ac_srcdir=$srcdir$ac_dir_suffix;
1643     ac_top_srcdir=$srcdir
1644     ac_abs_top_srcdir=$srcdir ;;
1645   *) # Relative name.
1646     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647     ac_top_srcdir=$ac_top_build_prefix$srcdir
1648     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 esac
1650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651
1652     cd "$ac_dir" || { ac_status=$?; continue; }
1653     # Check for guested configure.
1654     if test -f "$ac_srcdir/configure.gnu"; then
1655       echo &&
1656       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657     elif test -f "$ac_srcdir/configure"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure" --help=recursive
1660     else
1661       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662     fi || ac_status=$?
1663     cd "$ac_pwd" || { ac_status=$?; break; }
1664   done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669   cat <<\_ACEOF
1670 llvm configure 2.6svn
1671 generated by GNU Autoconf 2.60
1672
1673 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1674 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677
1678 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1679 _ACEOF
1680   exit
1681 fi
1682 cat >config.log <<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1685
1686 It was created by llvm $as_me 2.6svn, which was
1687 generated by GNU Autoconf 2.60.  Invocation command line was
1688
1689   $ $0 $@
1690
1691 _ACEOF
1692 exec 5>>config.log
1693 {
1694 cat <<_ASUNAME
1695 ## --------- ##
1696 ## Platform. ##
1697 ## --------- ##
1698
1699 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704
1705 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1707
1708 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1709 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1710 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1711 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1712 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1713 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1714 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1715
1716 _ASUNAME
1717
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   echo "PATH: $as_dir"
1724 done
1725 IFS=$as_save_IFS
1726
1727 } >&5
1728
1729 cat >&5 <<_ACEOF
1730
1731
1732 ## ----------- ##
1733 ## Core tests. ##
1734 ## ----------- ##
1735
1736 _ACEOF
1737
1738
1739 # Keep a trace of the command line.
1740 # Strip out --no-create and --no-recursion so they do not pile up.
1741 # Strip out --silent because we don't want to record it for future runs.
1742 # Also quote any args containing shell meta-characters.
1743 # Make two passes to allow for proper duplicate-argument suppression.
1744 ac_configure_args=
1745 ac_configure_args0=
1746 ac_configure_args1=
1747 ac_must_keep_next=false
1748 for ac_pass in 1 2
1749 do
1750   for ac_arg
1751   do
1752     case $ac_arg in
1753     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755     | -silent | --silent | --silen | --sile | --sil)
1756       continue ;;
1757     *\'*)
1758       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759     esac
1760     case $ac_pass in
1761     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1762     2)
1763       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764       if test $ac_must_keep_next = true; then
1765         ac_must_keep_next=false # Got value, back to normal.
1766       else
1767         case $ac_arg in
1768           *=* | --config-cache | -C | -disable-* | --disable-* \
1769           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771           | -with-* | --with-* | -without-* | --without-* | --x)
1772             case "$ac_configure_args0 " in
1773               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774             esac
1775             ;;
1776           -* ) ac_must_keep_next=true ;;
1777         esac
1778       fi
1779       ac_configure_args="$ac_configure_args '$ac_arg'"
1780       ;;
1781     esac
1782   done
1783 done
1784 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1786
1787 # When interrupted or exit'd, cleanup temporary files, and complete
1788 # config.log.  We remove comments because anyway the quotes in there
1789 # would cause problems or look ugly.
1790 # WARNING: Use '\'' to represent an apostrophe within the trap.
1791 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1792 trap 'exit_status=$?
1793   # Save into config.log some information that might help in debugging.
1794   {
1795     echo
1796
1797     cat <<\_ASBOX
1798 ## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##
1801 _ASBOX
1802     echo
1803     # The following way of writing the cache mishandles newlines in values,
1804 (
1805   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806     eval ac_val=\$$ac_var
1807     case $ac_val in #(
1808     *${as_nl}*)
1809       case $ac_var in #(
1810       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1811 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812       esac
1813       case $ac_var in #(
1814       _ | IFS | as_nl) ;; #(
1815       *) $as_unset $ac_var ;;
1816       esac ;;
1817     esac
1818   done
1819   (set) 2>&1 |
1820     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821     *${as_nl}ac_space=\ *)
1822       sed -n \
1823         "s/'\''/'\''\\\\'\'''\''/g;
1824           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825       ;; #(
1826     *)
1827       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828       ;;
1829     esac |
1830     sort
1831 )
1832     echo
1833
1834     cat <<\_ASBOX
1835 ## ----------------- ##
1836 ## Output variables. ##
1837 ## ----------------- ##
1838 _ASBOX
1839     echo
1840     for ac_var in $ac_subst_vars
1841     do
1842       eval ac_val=\$$ac_var
1843       case $ac_val in
1844       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845       esac
1846       echo "$ac_var='\''$ac_val'\''"
1847     done | sort
1848     echo
1849
1850     if test -n "$ac_subst_files"; then
1851       cat <<\_ASBOX
1852 ## ------------------- ##
1853 ## File substitutions. ##
1854 ## ------------------- ##
1855 _ASBOX
1856       echo
1857       for ac_var in $ac_subst_files
1858       do
1859         eval ac_val=\$$ac_var
1860         case $ac_val in
1861         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862         esac
1863         echo "$ac_var='\''$ac_val'\''"
1864       done | sort
1865       echo
1866     fi
1867
1868     if test -s confdefs.h; then
1869       cat <<\_ASBOX
1870 ## ----------- ##
1871 ## confdefs.h. ##
1872 ## ----------- ##
1873 _ASBOX
1874       echo
1875       cat confdefs.h
1876       echo
1877     fi
1878     test "$ac_signal" != 0 &&
1879       echo "$as_me: caught signal $ac_signal"
1880     echo "$as_me: exit $exit_status"
1881   } >&5
1882   rm -f core *.core core.conftest.* &&
1883     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884     exit $exit_status
1885 ' 0
1886 for ac_signal in 1 2 13 15; do
1887   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888 done
1889 ac_signal=0
1890
1891 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1892 rm -f -r conftest* confdefs.h
1893
1894 # Predefined preprocessor variables.
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_STRING "$PACKAGE_STRING"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 _ACEOF
1919
1920
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer explicitly selected file to automatically selected ones.
1923 if test -n "$CONFIG_SITE"; then
1924   set x "$CONFIG_SITE"
1925 elif test "x$prefix" != xNONE; then
1926   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1927 else
1928   set x "$ac_default_prefix/share/config.site" \
1929         "$ac_default_prefix/etc/config.site"
1930 fi
1931 shift
1932 for ac_site_file
1933 do
1934   if test -r "$ac_site_file"; then
1935     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 echo "$as_me: loading site script $ac_site_file" >&6;}
1937     sed 's/^/| /' "$ac_site_file" >&5
1938     . "$ac_site_file"
1939   fi
1940 done
1941
1942 if test -r "$cache_file"; then
1943   # Some versions of bash will fail to source /dev/null (special
1944   # files actually), so we avoid doing that.
1945   if test -f "$cache_file"; then
1946     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 echo "$as_me: loading cache $cache_file" >&6;}
1948     case $cache_file in
1949       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950       *)                      . "./$cache_file";;
1951     esac
1952   fi
1953 else
1954   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 echo "$as_me: creating cache $cache_file" >&6;}
1956   >$cache_file
1957 fi
1958
1959 # Check that the precious variables saved in the cache have kept the same
1960 # value.
1961 ac_cache_corrupted=false
1962 for ac_var in $ac_precious_vars; do
1963   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964   eval ac_new_set=\$ac_env_${ac_var}_set
1965   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966   eval ac_new_val=\$ac_env_${ac_var}_value
1967   case $ac_old_set,$ac_new_set in
1968     set,)
1969       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971       ac_cache_corrupted=: ;;
1972     ,set)
1973       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975       ac_cache_corrupted=: ;;
1976     ,);;
1977     *)
1978       if test "x$ac_old_val" != "x$ac_new_val"; then
1979         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1982 echo "$as_me:   former value:  $ac_old_val" >&2;}
1983         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1984 echo "$as_me:   current value: $ac_new_val" >&2;}
1985         ac_cache_corrupted=:
1986       fi;;
1987   esac
1988   # Pass precious variables to config.status.
1989   if test "$ac_new_set" = set; then
1990     case $ac_new_val in
1991     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992     *) ac_arg=$ac_var=$ac_new_val ;;
1993     esac
1994     case " $ac_configure_args " in
1995       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1996       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997     esac
1998   fi
1999 done
2000 if $ac_cache_corrupted; then
2001   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005    { (exit 1); exit 1; }; }
2006 fi
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037
2038
2039
2040 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2041
2042
2043
2044
2045
2046
2047
2048 ac_aux_dir=
2049 for ac_dir in autoconf "$srcdir"/autoconf; do
2050   if test -f "$ac_dir/install-sh"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/install-sh -c"
2053     break
2054   elif test -f "$ac_dir/install.sh"; then
2055     ac_aux_dir=$ac_dir
2056     ac_install_sh="$ac_aux_dir/install.sh -c"
2057     break
2058   elif test -f "$ac_dir/shtool"; then
2059     ac_aux_dir=$ac_dir
2060     ac_install_sh="$ac_aux_dir/shtool install -c"
2061     break
2062   fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2066 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2077
2078
2079
2080 if test ${srcdir} != "." ; then
2081   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2082     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2083 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2084    { (exit 1); exit 1; }; }
2085   fi
2086 fi
2087
2088 for i in `ls ${srcdir}/projects`
2089 do
2090   if test -d ${srcdir}/projects/${i} ; then
2091     case ${i} in
2092       CVS) ;;
2093       sample)       subdirs="$subdirs projects/sample"
2094     ;;
2095       privbracket)  subdirs="$subdirs projects/privbracket"
2096  ;;
2097       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2098  ;;
2099       # llvm-test is the old name of the test-suite, kept here for backwards
2100       # compatibility
2101       llvm-test)    subdirs="$subdirs projects/llvm-test"
2102  ;;
2103       test-suite)   subdirs="$subdirs projects/test-suite"
2104  ;;
2105       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2106 ;;
2107       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2108   ;;
2109       llvm-java)    subdirs="$subdirs projects/llvm-java"
2110  ;;
2111       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2112    ;;
2113       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2114  ;;
2115       poolalloc)    subdirs="$subdirs projects/poolalloc"
2116  ;;
2117       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2118  ;;
2119       *)
2120         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2121 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2122         ;;
2123     esac
2124   fi
2125 done
2126
2127
2128 # Make sure we can run config.sub.
2129 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2130   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2131 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2132    { (exit 1); exit 1; }; }
2133
2134 { echo "$as_me:$LINENO: checking build system type" >&5
2135 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_build+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   ac_build_alias=$build_alias
2140 test "x$ac_build_alias" = x &&
2141   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2142 test "x$ac_build_alias" = x &&
2143   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2144 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2145    { (exit 1); exit 1; }; }
2146 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2147   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2149    { (exit 1); exit 1; }; }
2150
2151 fi
2152 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2153 echo "${ECHO_T}$ac_cv_build" >&6; }
2154 case $ac_cv_build in
2155 *-*-*) ;;
2156 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2157 echo "$as_me: error: invalid value of canonical build" >&2;}
2158    { (exit 1); exit 1; }; };;
2159 esac
2160 build=$ac_cv_build
2161 ac_save_IFS=$IFS; IFS='-'
2162 set x $ac_cv_build
2163 shift
2164 build_cpu=$1
2165 build_vendor=$2
2166 shift; shift
2167 # Remember, the first character of IFS is used to create $*,
2168 # except with old shells:
2169 build_os=$*
2170 IFS=$ac_save_IFS
2171 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172
2173
2174 { echo "$as_me:$LINENO: checking host system type" >&5
2175 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2176 if test "${ac_cv_host+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test "x$host_alias" = x; then
2180   ac_cv_host=$ac_cv_build
2181 else
2182   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2183     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2184 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2185    { (exit 1); exit 1; }; }
2186 fi
2187
2188 fi
2189 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2190 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 case $ac_cv_host in
2192 *-*-*) ;;
2193 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2194 echo "$as_me: error: invalid value of canonical host" >&2;}
2195    { (exit 1); exit 1; }; };;
2196 esac
2197 host=$ac_cv_host
2198 ac_save_IFS=$IFS; IFS='-'
2199 set x $ac_cv_host
2200 shift
2201 host_cpu=$1
2202 host_vendor=$2
2203 shift; shift
2204 # Remember, the first character of IFS is used to create $*,
2205 # except with old shells:
2206 host_os=$*
2207 IFS=$ac_save_IFS
2208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209
2210
2211 { echo "$as_me:$LINENO: checking target system type" >&5
2212 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2213 if test "${ac_cv_target+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   if test "x$target_alias" = x; then
2217   ac_cv_target=$ac_cv_host
2218 else
2219   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2220     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2221 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2222    { (exit 1); exit 1; }; }
2223 fi
2224
2225 fi
2226 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2227 echo "${ECHO_T}$ac_cv_target" >&6; }
2228 case $ac_cv_target in
2229 *-*-*) ;;
2230 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2231 echo "$as_me: error: invalid value of canonical target" >&2;}
2232    { (exit 1); exit 1; }; };;
2233 esac
2234 target=$ac_cv_target
2235 ac_save_IFS=$IFS; IFS='-'
2236 set x $ac_cv_target
2237 shift
2238 target_cpu=$1
2239 target_vendor=$2
2240 shift; shift
2241 # Remember, the first character of IFS is used to create $*,
2242 # except with old shells:
2243 target_os=$*
2244 IFS=$ac_save_IFS
2245 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2246
2247
2248 # The aliases save the names the user supplied, while $host etc.
2249 # will get canonicalized.
2250 test -n "$target_alias" &&
2251   test "$program_prefix$program_suffix$program_transform_name" = \
2252     NONENONEs,x,x, &&
2253   program_prefix=${target_alias}-
2254
2255 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2256 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2257 if test "${llvm_cv_os_type+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   case $host in
2261   *-*-aix*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="AIX"
2265     llvm_cv_platform_type="Unix" ;;
2266   *-*-irix*)
2267     llvm_cv_link_all_option="-Wl,--whole-archive"
2268     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269     llvm_cv_os_type="IRIX"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-cygwin*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="Cygwin"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-darwin*)
2277     llvm_cv_link_all_option="-Wl,-all_load"
2278     llvm_cv_no_link_all_option="-Wl,-noall_load"
2279     llvm_cv_os_type="Darwin"
2280     llvm_cv_platform_type="Unix" ;;
2281   *-*-freebsd*)
2282     llvm_cv_link_all_option="-Wl,--whole-archive"
2283     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284     llvm_cv_os_type="FreeBSD"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-openbsd*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="OpenBSD"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-netbsd*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="NetBSD"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-dragonfly*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="DragonFly"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-hpux*)
2302     llvm_cv_link_all_option="-Wl,--whole-archive"
2303     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304     llvm_cv_os_type="HP-UX"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-interix*)
2307     llvm_cv_link_all_option="-Wl,--whole-archive"
2308     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309     llvm_cv_os_type="Interix"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-linux*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="Linux"
2315     llvm_cv_platform_type="Unix" ;;
2316   *-*-solaris*)
2317     llvm_cv_link_all_option="-Wl,-z,allextract"
2318     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2319     llvm_cv_os_type="SunOS"
2320     llvm_cv_platform_type="Unix" ;;
2321   *-*-win32*)
2322     llvm_cv_link_all_option="-Wl,--whole-archive"
2323     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324     llvm_cv_os_type="Win32"
2325     llvm_cv_platform_type="Win32" ;;
2326   *-*-mingw*)
2327     llvm_cv_link_all_option="-Wl,--whole-archive"
2328     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329     llvm_cv_os_type="MingW"
2330     llvm_cv_platform_type="Win32" ;;
2331   *)
2332     llvm_cv_link_all_option=""
2333     llvm_cv_no_link_all_option=""
2334     llvm_cv_os_type="Unknown"
2335     llvm_cv_platform_type="Unknown" ;;
2336 esac
2337 fi
2338 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2340
2341 if test "$llvm_cv_os_type" = "Unknown" ; then
2342   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2344    { (exit 1); exit 1; }; }
2345 fi
2346
2347 OS=$llvm_cv_os_type
2348
2349
2350 LINKALL=$llvm_cv_link_all_option
2351
2352 NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
2355 case $llvm_cv_platform_type in
2356   Unix)
2357
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2360 _ACEOF
2361
2362     LLVM_ON_UNIX=1
2363
2364     LLVM_ON_WIN32=0
2365
2366     ;;
2367   Win32)
2368
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2371 _ACEOF
2372
2373     LLVM_ON_UNIX=0
2374
2375     LLVM_ON_WIN32=1
2376
2377     ;;
2378 esac
2379
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   case $target in
2386   i?86-*)                 llvm_cv_target_arch="x86" ;;
2387   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2388   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2389   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2390   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2391   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2392   arm-*)                  llvm_cv_target_arch="ARM" ;;
2393   mips-*)                 llvm_cv_target_arch="Mips" ;;
2394   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2395   xcore-*)                llvm_cv_target_arch="XCore" ;;
2396   *)                      llvm_cv_target_arch="Unknown" ;;
2397 esac
2398 fi
2399 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2400 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2401
2402 if test "$llvm_cv_target_arch" = "Unknown" ; then
2403   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2404 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2405 fi
2406
2407 ARCH=$llvm_cv_target_arch
2408
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 if test -n "$ac_tool_prefix"; then
2416   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_CC+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   if test -n "$CC"; then
2424   ac_cv_prog_CC="$CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429   IFS=$as_save_IFS
2430   test -z "$as_dir" && as_dir=.
2431   for ac_exec_ext in '' $ac_executable_extensions; do
2432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435     break 2
2436   fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 CC=$ac_cv_prog_CC
2444 if test -n "$CC"; then
2445   { echo "$as_me:$LINENO: result: $CC" >&5
2446 echo "${ECHO_T}$CC" >&6; }
2447 else
2448   { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2450 fi
2451
2452
2453 fi
2454 if test -z "$ac_cv_prog_CC"; then
2455   ac_ct_CC=$CC
2456   # Extract the first word of "gcc", so it can be a program name with args.
2457 set dummy gcc; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$ac_ct_CC"; then
2464   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2473     ac_cv_prog_ac_ct_CC="gcc"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6; }
2487 else
2488   { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2490 fi
2491
2492   if test "x$ac_ct_CC" = x; then
2493     CC=""
2494   else
2495     case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet.  If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet.  If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505     CC=$ac_ct_CC
2506   fi
2507 else
2508   CC="$ac_cv_prog_CC"
2509 fi
2510
2511 if test -z "$CC"; then
2512           if test -n "$ac_tool_prefix"; then
2513     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}cc; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$CC"; then
2521   ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_CC="${ac_tool_prefix}cc"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542   { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2544 else
2545   { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549
2550   fi
2551 fi
2552 if test -z "$CC"; then
2553   # Extract the first word of "cc", so it can be a program name with args.
2554 set dummy cc; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$CC"; then
2561   ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563   ac_prog_rejected=no
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569   for ac_exec_ext in '' $ac_executable_extensions; do
2570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2571     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572        ac_prog_rejected=yes
2573        continue
2574      fi
2575     ac_cv_prog_CC="cc"
2576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 if test $ac_prog_rejected = yes; then
2584   # We found a bogon in the path, so make sure we never use it.
2585   set dummy $ac_cv_prog_CC
2586   shift
2587   if test $# != 0; then
2588     # We chose a different compiler from the bogus one.
2589     # However, it has the same basename, so the bogon will be chosen
2590     # first if we set CC to just the basename; use the full file name.
2591     shift
2592     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593   fi
2594 fi
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599   { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2601 else
2602   { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$CC"; then
2609   if test -n "$ac_tool_prefix"; then
2610   for ac_prog in cl.exe
2611   do
2612     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then
2617   echo $ECHO_N "(cached) $ECHO_C" >&6
2618 else
2619   if test -n "$CC"; then
2620   ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627   for ac_exec_ext in '' $ac_executable_extensions; do
2628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2629     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631     break 2
2632   fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641   { echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6; }
2643 else
2644   { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2646 fi
2647
2648
2649     test -n "$CC" && break
2650   done
2651 fi
2652 if test -z "$CC"; then
2653   ac_ct_CC=$CC
2654   for ac_prog in cl.exe
2655 do
2656   # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   if test -n "$ac_ct_CC"; then
2664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671   for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_ac_ct_CC="$ac_prog"
2674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686 echo "${ECHO_T}$ac_ct_CC" >&6; }
2687 else
2688   { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2690 fi
2691
2692
2693   test -n "$ac_ct_CC" && break
2694 done
2695
2696   if test "x$ac_ct_CC" = x; then
2697     CC=""
2698   else
2699     case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet.  If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&5
2704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705 whose name does not start with the host triplet.  If you think this
2706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2707 ac_tool_warned=yes ;;
2708 esac
2709     CC=$ac_ct_CC
2710   fi
2711 fi
2712
2713 fi
2714
2715
2716 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: no acceptable C compiler found in \$PATH
2719 See \`config.log' for more details." >&2;}
2720    { (exit 1); exit 1; }; }
2721
2722 # Provide some information about the compiler.
2723 echo "$as_me:$LINENO: checking for C compiler version" >&5
2724 ac_compiler=`set X $ac_compile; echo $2`
2725 { (ac_try="$ac_compiler --version >&5"
2726 case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_compiler --version >&5") 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }
2735 { (ac_try="$ac_compiler -v >&5"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compiler -v >&5") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }
2745 { (ac_try="$ac_compiler -V >&5"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_compiler -V >&5") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h.  */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h.  */
2762
2763 int
2764 main ()
2765 {
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 ac_clean_files_save=$ac_clean_files
2772 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2773 # Try to create an executable without -o first, disregard a.out.
2774 # It will help us diagnose broken compilers, and finding out an intuition
2775 # of exeext.
2776 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2777 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2778 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2779 #
2780 # List of possible output files, starting from the most likely.
2781 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2782 # only as a last resort.  b.out is created by i960 compilers.
2783 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2784 #
2785 # The IRIX 6 linker writes into existing files which may not be
2786 # executable, retaining their permissions.  Remove them first so a
2787 # subsequent execution test works.
2788 ac_rmfiles=
2789 for ac_file in $ac_files
2790 do
2791   case $ac_file in
2792     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2794   esac
2795 done
2796 rm -f $ac_rmfiles
2797
2798 if { (ac_try="$ac_link_default"
2799 case "(($ac_try" in
2800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801   *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804   (eval "$ac_link_default") 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; then
2808   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2810 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2811 # so that the user can short-circuit this test for compilers unknown to
2812 # Autoconf.
2813 for ac_file in $ac_files
2814 do
2815   test -f "$ac_file" || continue
2816   case $ac_file in
2817     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2818         ;;
2819     [ab].out )
2820         # We found the default executable, but exeext='' is most
2821         # certainly right.
2822         break;;
2823     *.* )
2824         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2825         then :; else
2826            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2827         fi
2828         # We set ac_cv_exeext here because the later test for it is not
2829         # safe: cross compilers may not add the suffix if given an `-o'
2830         # argument, so we may need to know it at that point already.
2831         # Even if this section looks crufty: it has the advantage of
2832         # actually working.
2833         break;;
2834     * )
2835         break;;
2836   esac
2837 done
2838 test "$ac_cv_exeext" = no && ac_cv_exeext=
2839
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2845 See \`config.log' for more details." >&5
2846 echo "$as_me: error: C compiler cannot create executables
2847 See \`config.log' for more details." >&2;}
2848    { (exit 77); exit 77; }; }
2849 fi
2850
2851 ac_exeext=$ac_cv_exeext
2852 { echo "$as_me:$LINENO: result: $ac_file" >&5
2853 echo "${ECHO_T}$ac_file" >&6; }
2854
2855 # Check that the compiler produces executables we can run.  If not, either
2856 # the compiler is broken, or we cross compile.
2857 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2858 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2859 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2860 # If not cross compiling, check that we can run a simple program.
2861 if test "$cross_compiling" != yes; then
2862   if { ac_try='./$ac_file'
2863   { (case "(($ac_try" in
2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865   *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868   (eval "$ac_try") 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; }; then
2872     cross_compiling=no
2873   else
2874     if test "$cross_compiling" = maybe; then
2875         cross_compiling=yes
2876     else
2877         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2878 If you meant to cross compile, use \`--host'.
2879 See \`config.log' for more details." >&5
2880 echo "$as_me: error: cannot run C compiled programs.
2881 If you meant to cross compile, use \`--host'.
2882 See \`config.log' for more details." >&2;}
2883    { (exit 1); exit 1; }; }
2884     fi
2885   fi
2886 fi
2887 { echo "$as_me:$LINENO: result: yes" >&5
2888 echo "${ECHO_T}yes" >&6; }
2889
2890 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2891 ac_clean_files=$ac_clean_files_save
2892 # Check that the compiler produces executables we can run.  If not, either
2893 # the compiler is broken, or we cross compile.
2894 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2895 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2896 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2897 echo "${ECHO_T}$cross_compiling" >&6; }
2898
2899 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2900 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2901 if { (ac_try="$ac_link"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_link") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; then
2911   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2912 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2913 # work properly (i.e., refer to `conftest.exe'), while it won't with
2914 # `rm'.
2915 for ac_file in conftest.exe conftest conftest.*; do
2916   test -f "$ac_file" || continue
2917   case $ac_file in
2918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2919     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920           break;;
2921     * ) break;;
2922   esac
2923 done
2924 else
2925   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2928 See \`config.log' for more details." >&2;}
2929    { (exit 1); exit 1; }; }
2930 fi
2931
2932 rm -f conftest$ac_cv_exeext
2933 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2934 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2935
2936 rm -f conftest.$ac_ext
2937 EXEEXT=$ac_cv_exeext
2938 ac_exeext=$EXEEXT
2939 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2940 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2941 if test "${ac_cv_objext+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.o conftest.obj
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compile") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; then
2970   for ac_file in conftest.o conftest.obj conftest.*; do
2971   test -f "$ac_file" || continue;
2972   case $ac_file in
2973     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2974     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2975        break;;
2976   esac
2977 done
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2985 See \`config.log' for more details." >&2;}
2986    { (exit 1); exit 1; }; }
2987 fi
2988
2989 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2992 echo "${ECHO_T}$ac_cv_objext" >&6; }
2993 OBJEXT=$ac_cv_objext
2994 ac_objext=$OBJEXT
2995 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2996 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000   cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006
3007 int
3008 main ()
3009 {
3010 #ifndef __GNUC__
3011        choke me
3012 #endif
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; } &&
3042          { ac_try='test -s conftest.$ac_objext'
3043   { (case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_try") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   ac_compiler_gnu=yes
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057         ac_compiler_gnu=no
3058 fi
3059
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063 fi
3064 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3066 GCC=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CFLAGS=${CFLAGS+set}
3068 ac_save_CFLAGS=$CFLAGS
3069 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cc_g+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   ac_save_c_werror_flag=$ac_c_werror_flag
3075    ac_c_werror_flag=yes
3076    ac_cv_prog_cc_g=no
3077    CFLAGS="-g"
3078    cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084
3085 int
3086 main ()
3087 {
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_compile") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } &&
3107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108   { (case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_try") 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; } &&
3117          { ac_try='test -s conftest.$ac_objext'
3118   { (case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_try") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   ac_cv_prog_cc_g=yes
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132         CFLAGS=""
3133       cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139
3140 int
3141 main ()
3142 {
3143
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_compile") 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   :
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187         ac_c_werror_flag=$ac_save_c_werror_flag
3188          CFLAGS="-g"
3189          cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_compile") 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
3215   cat conftest.err >&5
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); } &&
3218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3219   { (case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_try") 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; } &&
3228          { ac_try='test -s conftest.$ac_objext'
3229   { (case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_try") 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_cv_prog_cc_g=yes
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253    ac_c_werror_flag=$ac_save_c_werror_flag
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3257 if test "$ac_test_CFLAGS" = set; then
3258   CFLAGS=$ac_save_CFLAGS
3259 elif test $ac_cv_prog_cc_g = yes; then
3260   if test "$GCC" = yes; then
3261     CFLAGS="-g -O2"
3262   else
3263     CFLAGS="-g"
3264   fi
3265 else
3266   if test "$GCC" = yes; then
3267     CFLAGS="-O2"
3268   else
3269     CFLAGS=
3270   fi
3271 fi
3272 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3273 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cc_c89+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   ac_cv_prog_cc_c89=no
3278 ac_save_CC=$CC
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 #include <stdarg.h>
3286 #include <stdio.h>
3287 #include <sys/types.h>
3288 #include <sys/stat.h>
3289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3290 struct buf { int x; };
3291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292 static char *e (p, i)
3293      char **p;
3294      int i;
3295 {
3296   return p[i];
3297 }
3298 static char *f (char * (*g) (char **, int), char **p, ...)
3299 {
3300   char *s;
3301   va_list v;
3302   va_start (v,p);
3303   s = g (p, va_arg (v,int));
3304   va_end (v);
3305   return s;
3306 }
3307
3308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3309    function prototypes and stuff, but not '\xHH' hex character constants.
3310    These don't provoke an error unfortunately, instead are silently treated
3311    as 'x'.  The following induces an error, until -std is added to get
3312    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3313    array size at least.  It's necessary to write '\x00'==0 to get something
3314    that's true only with -std.  */
3315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316
3317 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3318    inside strings and character constants.  */
3319 #define FOO(x) 'x'
3320 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3321
3322 int test (int i, double x);
3323 struct s1 {int (*f) (int a);};
3324 struct s2 {int (*f) (double a);};
3325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 int argc;
3327 char **argv;
3328 int
3329 main ()
3330 {
3331 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3337         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 do
3339   CC="$ac_save_CC $ac_arg"
3340   rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3342 case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_compile") 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } &&
3354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355   { (case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_try") 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; } &&
3364          { ac_try='test -s conftest.$ac_objext'
3365   { (case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_try") 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   ac_cv_prog_cc_c89=$ac_arg
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379
3380 fi
3381
3382 rm -f core conftest.err conftest.$ac_objext
3383   test "x$ac_cv_prog_cc_c89" != "xno" && break
3384 done
3385 rm -f conftest.$ac_ext
3386 CC=$ac_save_CC
3387
3388 fi
3389 # AC_CACHE_VAL
3390 case "x$ac_cv_prog_cc_c89" in
3391   x)
3392     { echo "$as_me:$LINENO: result: none needed" >&5
3393 echo "${ECHO_T}none needed" >&6; } ;;
3394   xno)
3395     { echo "$as_me:$LINENO: result: unsupported" >&5
3396 echo "${ECHO_T}unsupported" >&6; } ;;
3397   *)
3398     CC="$CC $ac_cv_prog_cc_c89"
3399     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3400 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3401 esac
3402
3403
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411 ac_ext=c
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3417 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3418 # On Suns, sometimes $CPP names a directory.
3419 if test -n "$CPP" && test -d "$CPP"; then
3420   CPP=
3421 fi
3422 if test -z "$CPP"; then
3423   if test "${ac_cv_prog_CPP+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426       # Double quotes because CPP needs to be expanded
3427     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428     do
3429       ac_preproc_ok=false
3430 for ac_c_preproc_warn_flag in '' yes
3431 do
3432   # Use a header file that comes with gcc, so configuring glibc
3433   # with a fresh cross-compiler works.
3434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435   # <limits.h> exists even on freestanding compilers.
3436   # On the NeXT, cc -E runs the code through the compiler's parser,
3437   # not just through cpp. "Syntax error" is here to catch this case.
3438   cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444 #ifdef __STDC__
3445 # include <limits.h>
3446 #else
3447 # include <assert.h>
3448 #endif
3449                      Syntax error
3450 _ACEOF
3451 if { (ac_try="$ac_cpp conftest.$ac_ext"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458   ac_status=$?
3459   grep -v '^ *+' conftest.er1 >conftest.err
3460   rm -f conftest.er1
3461   cat conftest.err >&5
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } >/dev/null; then
3464   if test -s conftest.err; then
3465     ac_cpp_err=$ac_c_preproc_warn_flag
3466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467   else
3468     ac_cpp_err=
3469   fi
3470 else
3471   ac_cpp_err=yes
3472 fi
3473 if test -z "$ac_cpp_err"; then
3474   :
3475 else
3476   echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479   # Broken: fails on valid input.
3480 continue
3481 fi
3482
3483 rm -f conftest.err conftest.$ac_ext
3484
3485   # OK, works on sane cases.  Now check whether nonexistent headers
3486   # can be detected and how.
3487   cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493 #include <ac_nonexistent.h>
3494 _ACEOF
3495 if { (ac_try="$ac_cpp conftest.$ac_ext"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502   ac_status=$?
3503   grep -v '^ *+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } >/dev/null; then
3508   if test -s conftest.err; then
3509     ac_cpp_err=$ac_c_preproc_warn_flag
3510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3511   else
3512     ac_cpp_err=
3513   fi
3514 else
3515   ac_cpp_err=yes
3516 fi
3517 if test -z "$ac_cpp_err"; then
3518   # Broken: success on invalid input.
3519 continue
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524   # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3527 fi
3528
3529 rm -f conftest.err conftest.$ac_ext
3530
3531 done
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3535   break
3536 fi
3537
3538     done
3539     ac_cv_prog_CPP=$CPP
3540
3541 fi
3542   CPP=$ac_cv_prog_CPP
3543 else
3544   ac_cv_prog_CPP=$CPP
3545 fi
3546 { echo "$as_me:$LINENO: result: $CPP" >&5
3547 echo "${ECHO_T}$CPP" >&6; }
3548 ac_preproc_ok=false
3549 for ac_c_preproc_warn_flag in '' yes
3550 do
3551   # Use a header file that comes with gcc, so configuring glibc
3552   # with a fresh cross-compiler works.
3553   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554   # <limits.h> exists even on freestanding compilers.
3555   # On the NeXT, cc -E runs the code through the compiler's parser,
3556   # not just through cpp. "Syntax error" is here to catch this case.
3557   cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 #ifdef __STDC__
3564 # include <limits.h>
3565 #else
3566 # include <assert.h>
3567 #endif
3568                      Syntax error
3569 _ACEOF
3570 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } >/dev/null; then
3583   if test -s conftest.err; then
3584     ac_cpp_err=$ac_c_preproc_warn_flag
3585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586   else
3587     ac_cpp_err=
3588   fi
3589 else
3590   ac_cpp_err=yes
3591 fi
3592 if test -z "$ac_cpp_err"; then
3593   :
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598   # Broken: fails on valid input.
3599 continue
3600 fi
3601
3602 rm -f conftest.err conftest.$ac_ext
3603
3604   # OK, works on sane cases.  Now check whether nonexistent headers
3605   # can be detected and how.
3606   cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 #include <ac_nonexistent.h>
3613 _ACEOF
3614 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } >/dev/null; then
3627   if test -s conftest.err; then
3628     ac_cpp_err=$ac_c_preproc_warn_flag
3629     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3630   else
3631     ac_cpp_err=
3632   fi
3633 else
3634   ac_cpp_err=yes
3635 fi
3636 if test -z "$ac_cpp_err"; then
3637   # Broken: success on invalid input.
3638 continue
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643   # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3646 fi
3647
3648 rm -f conftest.err conftest.$ac_ext
3649
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3654   :
3655 else
3656   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&5
3658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&2;}
3660    { (exit 1); exit 1; }; }
3661 fi
3662
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668
3669
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy grep ggrep; ac_prog_name=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   ac_path_GREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3685 do
3686   IFS=$as_save_IFS
3687   test -z "$as_dir" && as_dir=.
3688   for ac_prog in grep ggrep; do
3689   for ac_exec_ext in '' $ac_executable_extensions; do
3690     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3691     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3692     # Check for GNU ac_path_GREP and select it if it is found.
3693   # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3695 *GNU*)
3696   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3697 *)
3698   ac_count=0
3699   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3700   while :
3701   do
3702     cat "conftest.in" "conftest.in" >"conftest.tmp"
3703     mv "conftest.tmp" "conftest.in"
3704     cp "conftest.in" "conftest.nl"
3705     echo 'GREP' >> "conftest.nl"
3706     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708     ac_count=`expr $ac_count + 1`
3709     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710       # Best one so far, save it but keep looking for a better one
3711       ac_cv_path_GREP="$ac_path_GREP"
3712       ac_path_GREP_max=$ac_count
3713     fi
3714     # 10*(2^10) chars as input seems more than enough
3715     test $ac_count -gt 10 && break
3716   done
3717   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718 esac
3719
3720
3721     $ac_path_GREP_found && break 3
3722   done
3723 done
3724
3725 done
3726 IFS=$as_save_IFS
3727
3728
3729 fi
3730
3731 GREP="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735    { (exit 1); exit 1; }; }
3736 fi
3737
3738 else
3739   ac_cv_path_GREP=$GREP
3740 fi
3741
3742
3743 fi
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746  GREP="$ac_cv_path_GREP"
3747
3748
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3755    then ac_cv_path_EGREP="$GREP -E"
3756    else
3757      # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy egrep; ac_prog_name=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for ac_prog in egrep; do
3771   for ac_exec_ext in '' $ac_executable_extensions; do
3772     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3774     # Check for GNU ac_path_EGREP and select it if it is found.
3775   # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3777 *GNU*)
3778   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3779 *)
3780   ac_count=0
3781   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782   while :
3783   do
3784     cat "conftest.in" "conftest.in" >"conftest.tmp"
3785     mv "conftest.tmp" "conftest.in"
3786     cp "conftest.in" "conftest.nl"
3787     echo 'EGREP' >> "conftest.nl"
3788     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790     ac_count=`expr $ac_count + 1`
3791     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792       # Best one so far, save it but keep looking for a better one
3793       ac_cv_path_EGREP="$ac_path_EGREP"
3794       ac_path_EGREP_max=$ac_count
3795     fi
3796     # 10*(2^10) chars as input seems more than enough
3797     test $ac_count -gt 10 && break
3798   done
3799   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 esac
3801
3802
3803     $ac_path_EGREP_found && break 3
3804   done
3805 done
3806
3807 done
3808 IFS=$as_save_IFS
3809
3810
3811 fi
3812
3813 EGREP="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817    { (exit 1); exit 1; }; }
3818 fi
3819
3820 else
3821   ac_cv_path_EGREP=$EGREP
3822 fi
3823
3824
3825    fi
3826 fi
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829  EGREP="$ac_cv_path_EGREP"
3830
3831
3832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3834 if test "${ac_cv_header_stdc+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h.  */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h.  */
3843 #include <stdlib.h>
3844 #include <stdarg.h>
3845 #include <string.h>
3846 #include <float.h>
3847
3848 int
3849 main ()
3850 {
3851
3852   ;
3853   return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863   (eval "$ac_compile") 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } &&
3870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3871   { (case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_try") 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; } &&
3880          { ac_try='test -s conftest.$ac_objext'
3881   { (case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_try") 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }; }; then
3890   ac_cv_header_stdc=yes
3891 else
3892   echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895         ac_cv_header_stdc=no
3896 fi
3897
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899
3900 if test $ac_cv_header_stdc = yes; then
3901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <string.h>
3909
3910 _ACEOF
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912   $EGREP "memchr" >/dev/null 2>&1; then
3913   :
3914 else
3915   ac_cv_header_stdc=no
3916 fi
3917 rm -f conftest*
3918
3919 fi
3920
3921 if test $ac_cv_header_stdc = yes; then
3922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <stdlib.h>
3930
3931 _ACEOF
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933   $EGREP "free" >/dev/null 2>&1; then
3934   :
3935 else
3936   ac_cv_header_stdc=no
3937 fi
3938 rm -f conftest*
3939
3940 fi
3941
3942 if test $ac_cv_header_stdc = yes; then
3943   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3944   if test "$cross_compiling" = yes; then
3945   :
3946 else
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 #include <ctype.h>
3954 #include <stdlib.h>
3955 #if ((' ' & 0x0FF) == 0x020)
3956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958 #else
3959 # define ISLOWER(c) \
3960                    (('a' <= (c) && (c) <= 'i') \
3961                      || ('j' <= (c) && (c) <= 'r') \
3962                      || ('s' <= (c) && (c) <= 'z'))
3963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964 #endif
3965
3966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3967 int
3968 main ()
3969 {
3970   int i;
3971   for (i = 0; i < 256; i++)
3972     if (XOR (islower (i), ISLOWER (i))
3973         || toupper (i) != TOUPPER (i))
3974       return 2;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest$ac_exeext
3979 if { (ac_try="$ac_link"
3980 case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985   (eval "$ac_link") 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3989   { (case "(($ac_try" in
3990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991   *) ac_try_echo=$ac_try;;
3992 esac
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994   (eval "$ac_try") 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   :
3999 else
4000   echo "$as_me: program exited with status $ac_status" >&5
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ( exit $ac_status )
4005 ac_cv_header_stdc=no
4006 fi
4007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4008 fi
4009
4010
4011 fi
4012 fi
4013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4015 if test $ac_cv_header_stdc = yes; then
4016
4017 cat >>confdefs.h <<\_ACEOF
4018 #define STDC_HEADERS 1
4019 _ACEOF
4020
4021 fi
4022
4023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4034                   inttypes.h stdint.h unistd.h
4035 do
4036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 $ac_includes_default
4049
4050 #include <$ac_header>
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4054 case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_compile") 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067   { (case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_try") 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; } &&
4076          { ac_try='test -s conftest.$ac_objext'
4077   { (case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   eval "$as_ac_Header=yes"
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091         eval "$as_ac_Header=no"
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi
4096 ac_res=`eval echo '${'$as_ac_Header'}'`
4097                { echo "$as_me:$LINENO: result: $ac_res" >&5
4098 echo "${ECHO_T}$ac_res" >&6; }
4099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4100   cat >>confdefs.h <<_ACEOF
4101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 _ACEOF
4103
4104 fi
4105
4106 done
4107
4108
4109 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4110 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4111 if test "${ac_cv_c_bigendian+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   # See if sys/param.h defines the BYTE_ORDER macro.
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <sys/types.h>
4122 #include <sys/param.h>
4123
4124 int
4125 main ()
4126 {
4127 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4128  bogus endian macros
4129 #endif
4130
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } &&
4149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150   { (case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; } &&
4159          { ac_try='test -s conftest.$ac_objext'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   # It does; now see whether it defined to BIG_ENDIAN or not.
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176 #include <sys/types.h>
4177 #include <sys/param.h>
4178
4179 int
4180 main ()
4181 {
4182 #if BYTE_ORDER != BIG_ENDIAN
4183  not big endian
4184 #endif
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_compile") 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } &&
4204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205   { (case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_try") 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; } &&
4214          { ac_try='test -s conftest.$ac_objext'
4215   { (case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_try") 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   ac_cv_c_bigendian=yes
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229         ac_cv_c_bigendian=no
4230 fi
4231
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 else
4234   echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237         # It does not; compile a test program.
4238 if test "$cross_compiling" = yes; then
4239   # try to guess the endianness by grepping values into an object file
4240   ac_cv_c_bigendian=unknown
4241   cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4248 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4249 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4250 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4251 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4252 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4253 int
4254 main ()
4255 {
4256  _ascii (); _ebcdic ();
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4263 case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_compile") 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; } &&
4285          { ac_try='test -s conftest.$ac_objext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4296   ac_cv_c_bigendian=yes
4297 fi
4298 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4299   if test "$ac_cv_c_bigendian" = unknown; then
4300     ac_cv_c_bigendian=no
4301   else
4302     # finding both strings is unlikely to happen, but who knows?
4303     ac_cv_c_bigendian=unknown
4304   fi
4305 fi
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310
4311 fi
4312
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 else
4315   cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h.  */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h.  */
4321 $ac_includes_default
4322 int
4323 main ()
4324 {
4325
4326   /* Are we little or big endian?  From Harbison&Steele.  */
4327   union
4328   {
4329     long int l;
4330     char c[sizeof (long int)];
4331   } u;
4332   u.l = 1;
4333   return u.c[sizeof (long int) - 1] == 1;
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest$ac_exeext
4340 if { (ac_try="$ac_link"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_link") 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4350   { (case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355   (eval "$ac_try") 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; }; then
4359   ac_cv_c_bigendian=no
4360 else
4361   echo "$as_me: program exited with status $ac_status" >&5
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 ( exit $ac_status )
4366 ac_cv_c_bigendian=yes
4367 fi
4368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4369 fi
4370
4371
4372 fi
4373
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4377 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4378 case $ac_cv_c_bigendian in
4379   yes)
4380     ENDIAN=big
4381  ;;
4382   no)
4383     ENDIAN=little
4384  ;;
4385   *)
4386     { { echo "$as_me:$LINENO: error: unknown endianness
4387 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4388 echo "$as_me: error: unknown endianness
4389 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4390    { (exit 1); exit 1; }; } ;;
4391 esac
4392
4393
4394 if test "$cross_compiling" = yes; then
4395   LLVM_CROSS_COMPILING=1
4396
4397
4398 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4399 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4400 if test "${ac_cv_build_exeext+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4404   ac_cv_build_exeext=.exe
4405 else
4406   ac_build_prefix=${build_alias}-
4407
4408   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4409 set dummy ${ac_build_prefix}gcc; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$BUILD_CC"; then
4416   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 BUILD_CC=$ac_cv_prog_BUILD_CC
4436 if test -n "$BUILD_CC"; then
4437   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4438 echo "${ECHO_T}$BUILD_CC" >&6; }
4439 else
4440   { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4442 fi
4443
4444
4445   if test -z "$BUILD_CC"; then
4446      # Extract the first word of "gcc", so it can be a program name with args.
4447 set dummy gcc; ac_word=$2
4448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test -n "$BUILD_CC"; then
4454   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     ac_cv_prog_BUILD_CC="gcc"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 BUILD_CC=$ac_cv_prog_BUILD_CC
4474 if test -n "$BUILD_CC"; then
4475   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4476 echo "${ECHO_T}$BUILD_CC" >&6; }
4477 else
4478   { echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6; }
4480 fi
4481
4482
4483      if test -z "$BUILD_CC"; then
4484        # Extract the first word of "cc", so it can be a program name with args.
4485 set dummy cc; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   if test -n "$BUILD_CC"; then
4492   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4493 else
4494   ac_prog_rejected=no
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500   for ac_exec_ext in '' $ac_executable_extensions; do
4501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4502     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503        ac_prog_rejected=yes
4504        continue
4505      fi
4506     ac_cv_prog_BUILD_CC="cc"
4507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508     break 2
4509   fi
4510 done
4511 done
4512 IFS=$as_save_IFS
4513
4514 if test $ac_prog_rejected = yes; then
4515   # We found a bogon in the path, so make sure we never use it.
4516   set dummy $ac_cv_prog_BUILD_CC
4517   shift
4518   if test $# != 0; then
4519     # We chose a different compiler from the bogus one.
4520     # However, it has the same basename, so the bogon will be chosen
4521     # first if we set BUILD_CC to just the basename; use the full file name.
4522     shift
4523     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4524   fi
4525 fi
4526 fi
4527 fi
4528 BUILD_CC=$ac_cv_prog_BUILD_CC
4529 if test -n "$BUILD_CC"; then
4530   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4531 echo "${ECHO_T}$BUILD_CC" >&6; }
4532 else
4533   { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4535 fi
4536
4537
4538      fi
4539   fi
4540   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4541 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4542    { (exit 1); exit 1; }; }
4543   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4544   rm -f conftest*
4545   echo 'int main () { return 0; }' > conftest.$ac_ext
4546   ac_cv_build_exeext=
4547   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4548   (eval $ac_build_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; then
4552     for file in conftest.*; do
4553       case $file in
4554       *.c | *.o | *.obj | *.dSYM) ;;
4555       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4556       esac
4557     done
4558   else
4559     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4560 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4561    { (exit 1); exit 1; }; }
4562   fi
4563   rm -f conftest*
4564   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4565 fi
4566 fi
4567
4568 BUILD_EXEEXT=""
4569 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4570 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4571 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4572 ac_build_exeext=$BUILD_EXEEXT
4573
4574   ac_build_prefix=${build_alias}-
4575   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4576 set dummy ${ac_build_prefix}g++; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   if test -n "$BUILD_CXX"; then
4583   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4603 if test -n "$BUILD_CXX"; then
4604   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4605 echo "${ECHO_T}$BUILD_CXX" >&6; }
4606 else
4607   { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4609 fi
4610
4611
4612   if test -z "$BUILD_CXX"; then
4613      # Extract the first word of "g++", so it can be a program name with args.
4614 set dummy g++; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   if test -n "$BUILD_CXX"; then
4621   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_prog_BUILD_CXX="g++"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4641 if test -n "$BUILD_CXX"; then
4642   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4643 echo "${ECHO_T}$BUILD_CXX" >&6; }
4644 else
4645   { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647 fi
4648
4649
4650      if test -z "$BUILD_CXX"; then
4651        # Extract the first word of "c++", so it can be a program name with args.
4652 set dummy c++; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test -n "$BUILD_CXX"; then
4659   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4660 else
4661   ac_prog_rejected=no
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667   for ac_exec_ext in '' $ac_executable_extensions; do
4668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4669     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4670        ac_prog_rejected=yes
4671        continue
4672      fi
4673     ac_cv_prog_BUILD_CXX="c++"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 if test $ac_prog_rejected = yes; then
4682   # We found a bogon in the path, so make sure we never use it.
4683   set dummy $ac_cv_prog_BUILD_CXX
4684   shift
4685   if test $# != 0; then
4686     # We chose a different compiler from the bogus one.
4687     # However, it has the same basename, so the bogon will be chosen
4688     # first if we set BUILD_CXX to just the basename; use the full file name.
4689     shift
4690     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4691   fi
4692 fi
4693 fi
4694 fi
4695 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4696 if test -n "$BUILD_CXX"; then
4697   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4698 echo "${ECHO_T}$BUILD_CXX" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705      fi
4706   fi
4707 else
4708   LLVM_CROSS_COMPILING=0
4709
4710 fi
4711
4712 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4713   cvsbuild="yes"
4714   optimize="no"
4715   CVSBUILD=CVSBUILD=1
4716
4717 else
4718   cvsbuild="no"
4719   optimize="yes"
4720 fi
4721
4722
4723 # Check whether --enable-optimized was given.
4724 if test "${enable_optimized+set}" = set; then
4725   enableval=$enable_optimized;
4726 else
4727   enableval=$optimize
4728 fi
4729
4730 if test ${enableval} = "no" ; then
4731   ENABLE_OPTIMIZED=
4732
4733 else
4734   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4735
4736 fi
4737
4738 # Check whether --enable-assertions was given.
4739 if test "${enable_assertions+set}" = set; then
4740   enableval=$enable_assertions;
4741 else
4742   enableval="yes"
4743 fi
4744
4745 if test ${enableval} = "yes" ; then
4746   DISABLE_ASSERTIONS=
4747
4748 else
4749   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750
4751 fi
4752
4753 # Check whether --enable-expensive-checks was given.
4754 if test "${enable_expensive_checks+set}" = set; then
4755   enableval=$enable_expensive_checks;
4756 else
4757   enableval="no"
4758 fi
4759
4760 if test ${enableval} = "yes" ; then
4761   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4762
4763   EXPENSIVE_CHECKS=yes
4764
4765 else
4766   ENABLE_EXPENSIVE_CHECKS=
4767
4768   EXPENSIVE_CHECKS=no
4769
4770 fi
4771
4772 # Check whether --enable-debug-runtime was given.
4773 if test "${enable_debug_runtime+set}" = set; then
4774   enableval=$enable_debug_runtime;
4775 else
4776   enableval=no
4777 fi
4778
4779 if test ${enableval} = "no" ; then
4780   DEBUG_RUNTIME=
4781
4782 else
4783   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784
4785 fi
4786
4787 # Check whether --enable-jit was given.
4788 if test "${enable_jit+set}" = set; then
4789   enableval=$enable_jit;
4790 else
4791   enableval=default
4792 fi
4793
4794 if test ${enableval} = "no"
4795 then
4796   JIT=
4797
4798 else
4799   case "$llvm_cv_target_arch" in
4800     x86)     TARGET_HAS_JIT=1
4801  ;;
4802     Sparc)   TARGET_HAS_JIT=0
4803  ;;
4804     PowerPC) TARGET_HAS_JIT=1
4805  ;;
4806     x86_64)  TARGET_HAS_JIT=1
4807  ;;
4808     Alpha)   TARGET_HAS_JIT=1
4809  ;;
4810     IA64)    TARGET_HAS_JIT=0
4811  ;;
4812     ARM)     TARGET_HAS_JIT=0
4813  ;;
4814     Mips)    TARGET_HAS_JIT=0
4815  ;;
4816     PIC16)   TARGET_HAS_JIT=0
4817  ;;
4818     XCore)   TARGET_HAS_JIT=0
4819  ;;
4820     *)       TARGET_HAS_JIT=0
4821  ;;
4822   esac
4823 fi
4824
4825 # Check whether --enable-doxygen was given.
4826 if test "${enable_doxygen+set}" = set; then
4827   enableval=$enable_doxygen;
4828 else
4829   enableval=default
4830 fi
4831
4832 case "$enableval" in
4833   yes) ENABLE_DOXYGEN=1
4834  ;;
4835   no)  ENABLE_DOXYGEN=0
4836  ;;
4837   default) ENABLE_DOXYGEN=0
4838  ;;
4839   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4841    { (exit 1); exit 1; }; } ;;
4842 esac
4843
4844 # Check whether --enable-threads was given.
4845 if test "${enable_threads+set}" = set; then
4846   enableval=$enable_threads;
4847 else
4848   enableval=default
4849 fi
4850
4851 case "$enableval" in
4852   yes) ENABLE_THREADS=1
4853  ;;
4854   no)  ENABLE_THREADS=0
4855  ;;
4856   default) ENABLE_THREADS=1
4857  ;;
4858   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4859 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4860    { (exit 1); exit 1; }; } ;;
4861 esac
4862
4863 cat >>confdefs.h <<_ACEOF
4864 #define ENABLE_THREADS $ENABLE_THREADS
4865 _ACEOF
4866
4867
4868 # Check whether --enable-pic was given.
4869 if test "${enable_pic+set}" = set; then
4870   enableval=$enable_pic;
4871 else
4872   enableval=default
4873 fi
4874
4875 case "$enableval" in
4876   yes) ENABLE_PIC=1
4877  ;;
4878   no)  ENABLE_PIC=0
4879  ;;
4880   default) ENABLE_PIC=0
4881  ;;
4882   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4883 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4884    { (exit 1); exit 1; }; } ;;
4885 esac
4886
4887 cat >>confdefs.h <<_ACEOF
4888 #define ENABLE_PIC $ENABLE_PIC
4889 _ACEOF
4890
4891
4892 TARGETS_TO_BUILD=""
4893 # Check whether --enable-targets was given.
4894 if test "${enable_targets+set}" = set; then
4895   enableval=$enable_targets;
4896 else
4897   enableval=all
4898 fi
4899
4900 case "$enableval" in
4901   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4902   host-only)
4903     case "$llvm_cv_target_arch" in
4904       x86)     TARGETS_TO_BUILD="X86" ;;
4905       x86_64)  TARGETS_TO_BUILD="X86" ;;
4906       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4907       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4908       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4909       IA64)    TARGETS_TO_BUILD="IA64" ;;
4910       ARM)     TARGETS_TO_BUILD="ARM" ;;
4911       Mips)    TARGETS_TO_BUILD="Mips" ;;
4912       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4913       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4914       XCore)   TARGETS_TO_BUILD="XCore" ;;
4915       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4916 echo "$as_me: error: Can not set target to build" >&2;}
4917    { (exit 1); exit 1; }; } ;;
4918     esac
4919     ;;
4920   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4921       case "$a_target" in
4922         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4923         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4925         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4926         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4927         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4928         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4929         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4930         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4931         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4932         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4933         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4934         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4935         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4936         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4937 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4938    { (exit 1); exit 1; }; } ;;
4939       esac
4940   done
4941   ;;
4942 esac
4943 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4944
4945
4946 # Check whether --enable-cbe-printf-a was given.
4947 if test "${enable_cbe_printf_a+set}" = set; then
4948   enableval=$enable_cbe_printf_a;
4949 else
4950   enableval=default
4951 fi
4952
4953 case "$enableval" in
4954   yes) ENABLE_CBE_PRINTF_A=1
4955  ;;
4956   no)  ENABLE_CBE_PRINTF_A=0
4957  ;;
4958   default)  ENABLE_CBE_PRINTF_A=1
4959  ;;
4960   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4962    { (exit 1); exit 1; }; } ;;
4963 esac
4964
4965 cat >>confdefs.h <<_ACEOF
4966 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4967 _ACEOF
4968
4969
4970
4971 # Check whether --with-llvmgccdir was given.
4972 if test "${with_llvmgccdir+set}" = set; then
4973   withval=$with_llvmgccdir;
4974 else
4975   withval=default
4976 fi
4977
4978 case "$withval" in
4979   default) WITH_LLVMGCCDIR=default ;;
4980   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4981   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4982 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4983    { (exit 1); exit 1; }; } ;;
4984 esac
4985
4986
4987 # Check whether --with-llvmgcc was given.
4988 if test "${with_llvmgcc+set}" = set; then
4989   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4990       WITH_LLVMGCCDIR=""
4991 fi
4992
4993
4994
4995 # Check whether --with-llvmgxx was given.
4996 if test "${with_llvmgxx+set}" = set; then
4997   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4998     WITH_LLVMGCCDIR=""
4999 fi
5000
5001
5002 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5003    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5004 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5005    { (exit 1); exit 1; }; };
5006 fi
5007
5008 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5009    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5010 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5011    { (exit 1); exit 1; }; };
5012 fi
5013
5014
5015 # Check whether --with-extra-options was given.
5016 if test "${with_extra_options+set}" = set; then
5017   withval=$with_extra_options;
5018 else
5019   withval=default
5020 fi
5021
5022 case "$withval" in
5023   default) EXTRA_OPTIONS= ;;
5024   *) EXTRA_OPTIONS=$withval ;;
5025 esac
5026 EXTRA_OPTIONS=$EXTRA_OPTIONS
5027
5028
5029 # Check whether --enable-bindings was given.
5030 if test "${enable_bindings+set}" = set; then
5031   enableval=$enable_bindings;
5032 else
5033   enableval=default
5034 fi
5035
5036 BINDINGS_TO_BUILD=""
5037 case "$enableval" in
5038   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5039   all ) BINDINGS_TO_BUILD="ocaml" ;;
5040   none | no) BINDINGS_TO_BUILD="" ;;
5041   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5042       case "$a_binding" in
5043         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5044         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5045 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5046    { (exit 1); exit 1; }; } ;;
5047       esac
5048   done
5049   ;;
5050 esac
5051
5052
5053 # Check whether --with-ocaml-libdir was given.
5054 if test "${with_ocaml_libdir+set}" = set; then
5055   withval=$with_ocaml_libdir;
5056 else
5057   withval=auto
5058 fi
5059
5060 case "$withval" in
5061   auto) with_ocaml_libdir="$withval" ;;
5062   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5063   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5064 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5065    { (exit 1); exit 1; }; } ;;
5066 esac
5067
5068
5069 # Check whether --with-binutils-include was given.
5070 if test "${with_binutils_include+set}" = set; then
5071   withval=$with_binutils_include;
5072 else
5073   withval=default
5074 fi
5075
5076 case "$withval" in
5077   default) WITH_BINUTILS_INCDIR=default ;;
5078   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5079   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5080 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5081    { (exit 1); exit 1; }; } ;;
5082 esac
5083 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5084   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5085
5086   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5087      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5088      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5089 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5090    { (exit 1); exit 1; }; };
5091   fi
5092 fi
5093
5094
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5102 # On Suns, sometimes $CPP names a directory.
5103 if test -n "$CPP" && test -d "$CPP"; then
5104   CPP=
5105 fi
5106 if test -z "$CPP"; then
5107   if test "${ac_cv_prog_CPP+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110       # Double quotes because CPP needs to be expanded
5111     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5112     do
5113       ac_preproc_ok=false
5114 for ac_c_preproc_warn_flag in '' yes
5115 do
5116   # Use a header file that comes with gcc, so configuring glibc
5117   # with a fresh cross-compiler works.
5118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119   # <limits.h> exists even on freestanding compilers.
5120   # On the NeXT, cc -E runs the code through the compiler's parser,
5121   # not just through cpp. "Syntax error" is here to catch this case.
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133                      Syntax error
5134 _ACEOF
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } >/dev/null; then
5148   if test -s conftest.err; then
5149     ac_cpp_err=$ac_c_preproc_warn_flag
5150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5151   else
5152     ac_cpp_err=
5153   fi
5154 else
5155   ac_cpp_err=yes
5156 fi
5157 if test -z "$ac_cpp_err"; then
5158   :
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163   # Broken: fails on valid input.
5164 continue
5165 fi
5166
5167 rm -f conftest.err conftest.$ac_ext
5168
5169   # OK, works on sane cases.  Now check whether nonexistent headers
5170   # can be detected and how.
5171   cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 #include <ac_nonexistent.h>
5178 _ACEOF
5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
5180 case "(($ac_try" in
5181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182   *) ac_try_echo=$ac_try;;
5183 esac
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } >/dev/null; then
5192   if test -s conftest.err; then
5193     ac_cpp_err=$ac_c_preproc_warn_flag
5194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5195   else
5196     ac_cpp_err=
5197   fi
5198 else
5199   ac_cpp_err=yes
5200 fi
5201 if test -z "$ac_cpp_err"; then
5202   # Broken: success on invalid input.
5203 continue
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208   # Passes both tests.
5209 ac_preproc_ok=:
5210 break
5211 fi
5212
5213 rm -f conftest.err conftest.$ac_ext
5214
5215 done
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.$ac_ext
5218 if $ac_preproc_ok; then
5219   break
5220 fi
5221
5222     done
5223     ac_cv_prog_CPP=$CPP
5224
5225 fi
5226   CPP=$ac_cv_prog_CPP
5227 else
5228   ac_cv_prog_CPP=$CPP
5229 fi
5230 { echo "$as_me:$LINENO: result: $CPP" >&5
5231 echo "${ECHO_T}$CPP" >&6; }
5232 ac_preproc_ok=false
5233 for ac_c_preproc_warn_flag in '' yes
5234 do
5235   # Use a header file that comes with gcc, so configuring glibc
5236   # with a fresh cross-compiler works.
5237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238   # <limits.h> exists even on freestanding compilers.
5239   # On the NeXT, cc -E runs the code through the compiler's parser,
5240   # not just through cpp. "Syntax error" is here to catch this case.
5241   cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h.  */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h.  */
5247 #ifdef __STDC__
5248 # include <limits.h>
5249 #else
5250 # include <assert.h>
5251 #endif
5252                      Syntax error
5253 _ACEOF
5254 if { (ac_try="$ac_cpp conftest.$ac_ext"
5255 case "(($ac_try" in
5256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257   *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5261   ac_status=$?
5262   grep -v '^ *+' conftest.er1 >conftest.err
5263   rm -f conftest.er1
5264   cat conftest.err >&5
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } >/dev/null; then
5267   if test -s conftest.err; then
5268     ac_cpp_err=$ac_c_preproc_warn_flag
5269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5270   else
5271     ac_cpp_err=
5272   fi
5273 else
5274   ac_cpp_err=yes
5275 fi
5276 if test -z "$ac_cpp_err"; then
5277   :
5278 else
5279   echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282   # Broken: fails on valid input.
5283 continue
5284 fi
5285
5286 rm -f conftest.err conftest.$ac_ext
5287
5288   # OK, works on sane cases.  Now check whether nonexistent headers
5289   # can be detected and how.
5290   cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h.  */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h.  */
5296 #include <ac_nonexistent.h>
5297 _ACEOF
5298 if { (ac_try="$ac_cpp conftest.$ac_ext"
5299 case "(($ac_try" in
5300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301   *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5305   ac_status=$?
5306   grep -v '^ *+' conftest.er1 >conftest.err
5307   rm -f conftest.er1
5308   cat conftest.err >&5
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } >/dev/null; then
5311   if test -s conftest.err; then
5312     ac_cpp_err=$ac_c_preproc_warn_flag
5313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314   else
5315     ac_cpp_err=
5316   fi
5317 else
5318   ac_cpp_err=yes
5319 fi
5320 if test -z "$ac_cpp_err"; then
5321   # Broken: success on invalid input.
5322 continue
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327   # Passes both tests.
5328 ac_preproc_ok=:
5329 break
5330 fi
5331
5332 rm -f conftest.err conftest.$ac_ext
5333
5334 done
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.err conftest.$ac_ext
5337 if $ac_preproc_ok; then
5338   :
5339 else
5340   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5341 See \`config.log' for more details." >&5
5342 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5343 See \`config.log' for more details." >&2;}
5344    { (exit 1); exit 1; }; }
5345 fi
5346
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358 if test -n "$ac_tool_prefix"; then
5359   for ac_prog in gcc
5360   do
5361     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5365 if test "${ac_cv_prog_CC+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   if test -n "$CC"; then
5369   ac_cv_prog_CC="$CC" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376   for ac_exec_ext in '' $ac_executable_extensions; do
5377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5378     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 CC=$ac_cv_prog_CC
5389 if test -n "$CC"; then
5390   { echo "$as_me:$LINENO: result: $CC" >&5
5391 echo "${ECHO_T}$CC" >&6; }
5392 else
5393   { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5395 fi
5396
5397
5398     test -n "$CC" && break
5399   done
5400 fi
5401 if test -z "$CC"; then
5402   ac_ct_CC=$CC
5403   for ac_prog in gcc
5404 do
5405   # Extract the first word of "$ac_prog", so it can be a program name with args.
5406 set dummy $ac_prog; ac_word=$2
5407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   if test -n "$ac_ct_CC"; then
5413   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418   IFS=$as_save_IFS
5419   test -z "$as_dir" && as_dir=.
5420   for ac_exec_ext in '' $ac_executable_extensions; do
5421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5422     ac_cv_prog_ac_ct_CC="$ac_prog"
5423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424     break 2
5425   fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5433 if test -n "$ac_ct_CC"; then
5434   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5435 echo "${ECHO_T}$ac_ct_CC" >&6; }
5436 else
5437   { echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6; }
5439 fi
5440
5441
5442   test -n "$ac_ct_CC" && break
5443 done
5444
5445   if test "x$ac_ct_CC" = x; then
5446     CC=""
5447   else
5448     case $cross_compiling:$ac_tool_warned in
5449 yes:)
5450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5451 whose name does not start with the host triplet.  If you think this
5452 configuration is useful to you, please write to autoconf@gnu.org." >&5
5453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5454 whose name does not start with the host triplet.  If you think this
5455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458     CC=$ac_ct_CC
5459   fi
5460 fi
5461
5462
5463 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: no acceptable C compiler found in \$PATH
5466 See \`config.log' for more details." >&2;}
5467    { (exit 1); exit 1; }; }
5468
5469 # Provide some information about the compiler.
5470 echo "$as_me:$LINENO: checking for C compiler version" >&5
5471 ac_compiler=`set X $ac_compile; echo $2`
5472 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); }
5482 { (ac_try="$ac_compiler -v >&5"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488   (eval "$ac_compiler -v >&5") 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }
5492 { (ac_try="$ac_compiler -V >&5"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compiler -V >&5") 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); }
5502
5503 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5504 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5505 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514
5515 int
5516 main ()
5517 {
5518 #ifndef __GNUC__
5519        choke me
5520 #endif
5521
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_compile") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } &&
5540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5541   { (case "(($ac_try" in
5542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543   *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546   (eval "$ac_try") 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); }; } &&
5550          { ac_try='test -s conftest.$ac_objext'
5551   { (case "(($ac_try" in
5552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553   *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556   (eval "$ac_try") 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   ac_compiler_gnu=yes
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565         ac_compiler_gnu=no
5566 fi
5567
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5570
5571 fi
5572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5574 GCC=`test $ac_compiler_gnu = yes && echo yes`
5575 ac_test_CFLAGS=${CFLAGS+set}
5576 ac_save_CFLAGS=$CFLAGS
5577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_cc_g+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   ac_save_c_werror_flag=$ac_c_werror_flag
5583    ac_c_werror_flag=yes
5584    ac_cv_prog_cc_g=no
5585    CFLAGS="-g"
5586    cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592
5593 int
5594 main ()
5595 {
5596
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605   *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608   (eval "$ac_compile") 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } &&
5615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5616   { (case "(($ac_try" in
5617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618   *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621   (eval "$ac_try") 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; } &&
5625          { ac_try='test -s conftest.$ac_objext'
5626   { (case "(($ac_try" in
5627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628   *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631   (eval "$ac_try") 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   ac_cv_prog_cc_g=yes
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640         CFLAGS=""
5641       cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647
5648 int
5649 main ()
5650 {
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660   *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663   (eval "$ac_compile") 2>conftest.er1
5664   ac_status=$?
5665   grep -v '^ *+' conftest.er1 >conftest.err
5666   rm -f conftest.er1
5667   cat conftest.err >&5
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } &&
5670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5671   { (case "(($ac_try" in
5672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673   *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676   (eval "$ac_try") 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; } &&
5680          { ac_try='test -s conftest.$ac_objext'
5681   { (case "(($ac_try" in
5682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683   *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686   (eval "$ac_try") 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; }; then
5690   :
5691 else
5692   echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695         ac_c_werror_flag=$ac_save_c_werror_flag
5696          CFLAGS="-g"
5697          cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h.  */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h.  */
5703
5704 int
5705 main ()
5706 {
5707
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (ac_try="$ac_compile"
5714 case "(($ac_try" in
5715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716   *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719   (eval "$ac_compile") 2>conftest.er1
5720   ac_status=$?
5721   grep -v '^ *+' conftest.er1 >conftest.err
5722   rm -f conftest.er1
5723   cat conftest.err >&5
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } &&
5726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5727   { (case "(($ac_try" in
5728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729   *) ac_try_echo=$ac_try;;
5730 esac
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732   (eval "$ac_try") 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; } &&
5736          { ac_try='test -s conftest.$ac_objext'
5737   { (case "(($ac_try" in
5738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739   *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742   (eval "$ac_try") 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   ac_cv_prog_cc_g=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751
5752 fi
5753
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 fi
5756
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761    ac_c_werror_flag=$ac_save_c_werror_flag
5762 fi
5763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5764 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5765 if test "$ac_test_CFLAGS" = set; then
5766   CFLAGS=$ac_save_CFLAGS
5767 elif test $ac_cv_prog_cc_g = yes; then
5768   if test "$GCC" = yes; then
5769     CFLAGS="-g -O2"
5770   else
5771     CFLAGS="-g"
5772   fi
5773 else
5774   if test "$GCC" = yes; then
5775     CFLAGS="-O2"
5776   else
5777     CFLAGS=
5778   fi
5779 fi
5780 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5781 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5782 if test "${ac_cv_prog_cc_c89+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   ac_cv_prog_cc_c89=no
5786 ac_save_CC=$CC
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #include <stdarg.h>
5794 #include <stdio.h>
5795 #include <sys/types.h>
5796 #include <sys/stat.h>
5797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5798 struct buf { int x; };
5799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5800 static char *e (p, i)
5801      char **p;
5802      int i;
5803 {
5804   return p[i];
5805 }
5806 static char *f (char * (*g) (char **, int), char **p, ...)
5807 {
5808   char *s;
5809   va_list v;
5810   va_start (v,p);
5811   s = g (p, va_arg (v,int));
5812   va_end (v);
5813   return s;
5814 }
5815
5816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5817    function prototypes and stuff, but not '\xHH' hex character constants.
5818    These don't provoke an error unfortunately, instead are silently treated
5819    as 'x'.  The following induces an error, until -std is added to get
5820    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5821    array size at least.  It's necessary to write '\x00'==0 to get something
5822    that's true only with -std.  */
5823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5824
5825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5826    inside strings and character constants.  */
5827 #define FOO(x) 'x'
5828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5829
5830 int test (int i, double x);
5831 struct s1 {int (*f) (int a);};
5832 struct s2 {int (*f) (double a);};
5833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5834 int argc;
5835 char **argv;
5836 int
5837 main ()
5838 {
5839 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5845         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5846 do
5847   CC="$ac_save_CC $ac_arg"
5848   rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852   *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855   (eval "$ac_compile") 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5863   { (case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868   (eval "$ac_try") 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_try") 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; }; then
5882   ac_cv_prog_cc_c89=$ac_arg
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext
5891   test "x$ac_cv_prog_cc_c89" != "xno" && break
5892 done
5893 rm -f conftest.$ac_ext
5894 CC=$ac_save_CC
5895
5896 fi
5897 # AC_CACHE_VAL
5898 case "x$ac_cv_prog_cc_c89" in
5899   x)
5900     { echo "$as_me:$LINENO: result: none needed" >&5
5901 echo "${ECHO_T}none needed" >&6; } ;;
5902   xno)
5903     { echo "$as_me:$LINENO: result: unsupported" >&5
5904 echo "${ECHO_T}unsupported" >&6; } ;;
5905   *)
5906     CC="$CC $ac_cv_prog_cc_c89"
5907     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5908 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5909 esac
5910
5911
5912 ac_ext=c
5913 ac_cpp='$CPP $CPPFLAGS'
5914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917
5918 ac_ext=cpp
5919 ac_cpp='$CXXCPP $CPPFLAGS'
5920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5923 if test -z "$CXX"; then
5924   if test -n "$CCC"; then
5925     CXX=$CCC
5926   else
5927     if test -n "$ac_tool_prefix"; then
5928   for ac_prog in g++
5929   do
5930     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_prog_CXX+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   if test -n "$CXX"; then
5938   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945   for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 CXX=$ac_cv_prog_CXX
5958 if test -n "$CXX"; then
5959   { echo "$as_me:$LINENO: result: $CXX" >&5
5960 echo "${ECHO_T}$CXX" >&6; }
5961 else
5962   { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5964 fi
5965
5966
5967     test -n "$CXX" && break
5968   done
5969 fi
5970 if test -z "$CXX"; then
5971   ac_ct_CXX=$CXX
5972   for ac_prog in g++
5973 do
5974   # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy $ac_prog; ac_word=$2
5976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   if test -n "$ac_ct_CXX"; then
5982   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989   for ac_exec_ext in '' $ac_executable_extensions; do
5990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5991     ac_cv_prog_ac_ct_CXX="$ac_prog"
5992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6002 if test -n "$ac_ct_CXX"; then
6003   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6004 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 fi
6009
6010
6011   test -n "$ac_ct_CXX" && break
6012 done
6013
6014   if test "x$ac_ct_CXX" = x; then
6015     CXX="g++"
6016   else
6017     case $cross_compiling:$ac_tool_warned in
6018 yes:)
6019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6020 whose name does not start with the host triplet.  If you think this
6021 configuration is useful to you, please write to autoconf@gnu.org." >&5
6022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6023 whose name does not start with the host triplet.  If you think this
6024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027     CXX=$ac_ct_CXX
6028   fi
6029 fi
6030
6031   fi
6032 fi
6033 # Provide some information about the compiler.
6034 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6035 ac_compiler=`set X $ac_compile; echo $2`
6036 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); }
6046 { (ac_try="$ac_compiler -v >&5"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_compiler -v >&5") 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); }
6056 { (ac_try="$ac_compiler -V >&5"
6057 case "(($ac_try" in
6058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059   *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062   (eval "$ac_compiler -V >&5") 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); }
6066
6067 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6068 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6069 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078
6079 int
6080 main ()
6081 {
6082 #ifndef __GNUC__
6083        choke me
6084 #endif
6085
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097   (eval "$ac_compile") 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } &&
6104          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6105   { (case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_try") 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; } &&
6114          { ac_try='test -s conftest.$ac_objext'
6115   { (case "(($ac_try" in
6116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117   *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120   (eval "$ac_try") 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; }; then
6124   ac_compiler_gnu=yes
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129         ac_compiler_gnu=no
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6134
6135 fi
6136 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6137 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6138 GXX=`test $ac_compiler_gnu = yes && echo yes`
6139 ac_test_CXXFLAGS=${CXXFLAGS+set}
6140 ac_save_CXXFLAGS=$CXXFLAGS
6141 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_cxx_g+set}" = set; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6147    ac_cxx_werror_flag=yes
6148    ac_cv_prog_cxx_g=no
6149    CXXFLAGS="-g"
6150    cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156
6157 int
6158 main ()
6159 {
6160
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (ac_try="$ac_compile"
6167 case "(($ac_try" in
6168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169   *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172   (eval "$ac_compile") 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } &&
6179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6180   { (case "(($ac_try" in
6181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182   *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185   (eval "$ac_try") 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; } &&
6189          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_cv_prog_cxx_g=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204         CXXFLAGS=""
6205       cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h.  */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h.  */
6211
6212 int
6213 main ()
6214 {
6215
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227   (eval "$ac_compile") 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } &&
6234          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6235   { (case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_try") 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; } &&
6244          { ac_try='test -s conftest.$ac_objext'
6245   { (case "(($ac_try" in
6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247   *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250   (eval "$ac_try") 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; }; then
6254   :
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6260          CXXFLAGS="-g"
6261          cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h.  */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h.  */
6267
6268 int
6269 main ()
6270 {
6271
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283   (eval "$ac_compile") 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6291   { (case "(($ac_try" in
6292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293   *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296   (eval "$ac_try") 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; } &&
6300          { ac_try='test -s conftest.$ac_objext'
6301   { (case "(($ac_try" in
6302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303   *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306   (eval "$ac_try") 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; }; then
6310   ac_cv_prog_cxx_g=yes
6311 else
6312   echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315
6316 fi
6317
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 fi
6323
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6326 fi
6327 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6328 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6329 if test "$ac_test_CXXFLAGS" = set; then
6330   CXXFLAGS=$ac_save_CXXFLAGS
6331 elif test $ac_cv_prog_cxx_g = yes; then
6332   if test "$GXX" = yes; then
6333     CXXFLAGS="-g -O2"
6334   else
6335     CXXFLAGS="-g"
6336   fi
6337 else
6338   if test "$GXX" = yes; then
6339     CXXFLAGS="-O2"
6340   else
6341     CXXFLAGS=
6342   fi
6343 fi
6344 ac_ext=c
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350 { echo "$as_me:$LINENO: checking " >&5
6351 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6352 if test "${ac_cv_has_flex+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   for ac_prog in flex lex
6356 do
6357   # Extract the first word of "$ac_prog", so it can be a program name with args.
6358 set dummy $ac_prog; ac_word=$2
6359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361 if test "${ac_cv_prog_LEX+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   if test -n "$LEX"; then
6365   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372   for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_prog_LEX="$ac_prog"
6375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 LEX=$ac_cv_prog_LEX
6385 if test -n "$LEX"; then
6386   { echo "$as_me:$LINENO: result: $LEX" >&5
6387 echo "${ECHO_T}$LEX" >&6; }
6388 else
6389   { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 fi
6392
6393
6394   test -n "$LEX" && break
6395 done
6396 test -n "$LEX" || LEX=":"
6397
6398 if test -z "$LEXLIB"
6399 then
6400   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6401 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6402 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   ac_check_lib_save_LIBS=$LIBS
6406 LIBS="-lfl  $LIBS"
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413
6414 /* Override any GCC internal prototype to avoid an error.
6415    Use char because int might match the return type of a GCC
6416    builtin and then its argument prototype would still apply.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 char yywrap ();
6421 int
6422 main ()
6423 {
6424 return yywrap ();
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (ac_try="$ac_link"
6431 case "(($ac_try" in
6432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433   *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436   (eval "$ac_link") 2>conftest.er1
6437   ac_status=$?
6438   grep -v '^ *+' conftest.er1 >conftest.err
6439   rm -f conftest.er1
6440   cat conftest.err >&5
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); } &&
6443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6444   { (case "(($ac_try" in
6445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446   *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449   (eval "$ac_try") 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; } &&
6453          { ac_try='test -s conftest$ac_exeext'
6454   { (case "(($ac_try" in
6455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456   *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459   (eval "$ac_try") 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); }; }; then
6463   ac_cv_lib_fl_yywrap=yes
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468         ac_cv_lib_fl_yywrap=no
6469 fi
6470
6471 rm -f core conftest.err conftest.$ac_objext \
6472       conftest$ac_exeext conftest.$ac_ext
6473 LIBS=$ac_check_lib_save_LIBS
6474 fi
6475 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6476 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6477 if test $ac_cv_lib_fl_yywrap = yes; then
6478   LEXLIB="-lfl"
6479 else
6480   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6481 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6482 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   ac_check_lib_save_LIBS=$LIBS
6486 LIBS="-ll  $LIBS"
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h.  */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h.  */
6493
6494 /* Override any GCC internal prototype to avoid an error.
6495    Use char because int might match the return type of a GCC
6496    builtin and then its argument prototype would still apply.  */
6497 #ifdef __cplusplus
6498 extern "C"
6499 #endif
6500 char yywrap ();
6501 int
6502 main ()
6503 {
6504 return yywrap ();
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (ac_try="$ac_link"
6511 case "(($ac_try" in
6512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513   *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516   (eval "$ac_link") 2>conftest.er1
6517   ac_status=$?
6518   grep -v '^ *+' conftest.er1 >conftest.err
6519   rm -f conftest.er1
6520   cat conftest.err >&5
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } &&
6523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6524   { (case "(($ac_try" in
6525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526   *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529   (eval "$ac_try") 2>&5
6530   ac_status=$?
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); }; } &&
6533          { ac_try='test -s conftest$ac_exeext'
6534   { (case "(($ac_try" in
6535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536   *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539   (eval "$ac_try") 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543   ac_cv_lib_l_yywrap=yes
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548         ac_cv_lib_l_yywrap=no
6549 fi
6550
6551 rm -f core conftest.err conftest.$ac_objext \
6552       conftest$ac_exeext conftest.$ac_ext
6553 LIBS=$ac_check_lib_save_LIBS
6554 fi
6555 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6556 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6557 if test $ac_cv_lib_l_yywrap = yes; then
6558   LEXLIB="-ll"
6559 fi
6560
6561 fi
6562
6563 fi
6564
6565 if test "x$LEX" != "x:"; then
6566   { echo "$as_me:$LINENO: checking lex output file root" >&5
6567 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_lex_root+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   # The minimal lex program is just a single line: %%.  But some broken lexes
6572 # (Solaris, I think it was) want two %% lines, so accommodate them.
6573 cat >conftest.l <<_ACEOF
6574 %%
6575 %%
6576 _ACEOF
6577 { (ac_try="$LEX conftest.l"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583   (eval "$LEX conftest.l") 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }
6587 if test -f lex.yy.c; then
6588   ac_cv_prog_lex_root=lex.yy
6589 elif test -f lexyy.c; then
6590   ac_cv_prog_lex_root=lexyy
6591 else
6592   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6593 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6594    { (exit 1); exit 1; }; }
6595 fi
6596 fi
6597 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6598 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6599 rm -f conftest.l
6600 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6601
6602 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6603 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   # POSIX says lex can declare yytext either as a pointer or an array; the
6608 # default is implementation-dependent. Figure out which it is, since
6609 # not all implementations provide the %pointer and %array declarations.
6610 ac_cv_prog_lex_yytext_pointer=no
6611 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6612 ac_save_LIBS=$LIBS
6613 LIBS="$LIBS $LEXLIB"
6614 cat >conftest.$ac_ext <<_ACEOF
6615 `cat $LEX_OUTPUT_ROOT.c`
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (ac_try="$ac_link"
6619 case "(($ac_try" in
6620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621   *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624   (eval "$ac_link") 2>conftest.er1
6625   ac_status=$?
6626   grep -v '^ *+' conftest.er1 >conftest.err
6627   rm -f conftest.er1
6628   cat conftest.err >&5
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6632   { (case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_try") 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; } &&
6641          { ac_try='test -s conftest$ac_exeext'
6642   { (case "(($ac_try" in
6643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644   *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647   (eval "$ac_try") 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); }; }; then
6651   ac_cv_prog_lex_yytext_pointer=yes
6652 else
6653   echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656
6657 fi
6658
6659 rm -f core conftest.err conftest.$ac_objext \
6660       conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_save_LIBS
6662 rm -f "${LEX_OUTPUT_ROOT}.c"
6663
6664 fi
6665 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6666 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6667 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define YYTEXT_POINTER 1
6671 _ACEOF
6672
6673 fi
6674
6675 fi
6676
6677 fi
6678 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6679 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6680 if test "$LEX" != "flex"; then
6681   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6682 echo "$as_me: error: flex not found but required" >&2;}
6683    { (exit 1); exit 1; }; }
6684 else
6685   FLEX=flex
6686
6687 fi
6688
6689 { echo "$as_me:$LINENO: checking " >&5
6690 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6691 if test "${llvm_cv_has_bison+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   for ac_prog in 'bison -y' byacc
6695 do
6696   # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_prog_YACC+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   if test -n "$YACC"; then
6704   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_prog_YACC="$ac_prog"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 YACC=$ac_cv_prog_YACC
6724 if test -n "$YACC"; then
6725   { echo "$as_me:$LINENO: result: $YACC" >&5
6726 echo "${ECHO_T}$YACC" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6731
6732
6733   test -n "$YACC" && break
6734 done
6735 test -n "$YACC" || YACC="yacc"
6736
6737 fi
6738 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6739 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6740 if test "$YACC" != "bison -y"; then
6741
6742   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6743 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6744 else
6745   BISON=bison
6746
6747 fi
6748
6749 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6750 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6751 if test "${lt_cv_path_NM+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   if test -n "$NM"; then
6755   # Let the user override the test.
6756   lt_cv_path_NM="$NM"
6757 else
6758   lt_nm_to_check="${ac_tool_prefix}nm"
6759   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6760     lt_nm_to_check="$lt_nm_to_check nm"
6761   fi
6762   for lt_tmp_nm in $lt_nm_to_check; do
6763     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6764     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6765       IFS="$lt_save_ifs"
6766       test -z "$ac_dir" && ac_dir=.
6767       tmp_nm="$ac_dir/$lt_tmp_nm"
6768       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6769         # Check to see if the nm accepts a BSD-compat flag.
6770         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6771         #   nm: unknown option "B" ignored
6772         # Tru64's nm complains that /dev/null is an invalid object file
6773         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6774         */dev/null* | *'Invalid file or object type'*)
6775           lt_cv_path_NM="$tmp_nm -B"
6776           break
6777           ;;
6778         *)
6779           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6780           */dev/null*)
6781             lt_cv_path_NM="$tmp_nm -p"
6782             break
6783             ;;
6784           *)
6785             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6786             continue # so that we can try to find one that supports BSD flags
6787             ;;
6788           esac
6789           ;;
6790         esac
6791       fi
6792     done
6793     IFS="$lt_save_ifs"
6794   done
6795   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6796 fi
6797 fi
6798 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6799 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6800 NM="$lt_cv_path_NM"
6801
6802
6803
6804 { echo "$as_me:$LINENO: checking for GNU make" >&5
6805 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6806 if test "${llvm_cv_gnu_make_command+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   llvm_cv_gnu_make_command=''
6810  for a in "$MAKE" make gmake gnumake ; do
6811   if test -z "$a" ; then continue ; fi ;
6812   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6813   then
6814    llvm_cv_gnu_make_command=$a ;
6815    break;
6816   fi
6817  done
6818 fi
6819 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6820 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6821  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6822    ifGNUmake='' ;
6823  else
6824    ifGNUmake='#' ;
6825    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6826 echo "${ECHO_T}\"Not found\"" >&6; };
6827  fi
6828
6829
6830 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6831 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6832 LN_S=$as_ln_s
6833 if test "$LN_S" = "ln -s"; then
6834   { echo "$as_me:$LINENO: result: yes" >&5
6835 echo "${ECHO_T}yes" >&6; }
6836 else
6837   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6838 echo "${ECHO_T}no, using $LN_S" >&6; }
6839 fi
6840
6841 # Extract the first word of "cmp", so it can be a program name with args.
6842 set dummy cmp; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_CMP+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $CMP in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6869   ;;
6870 esac
6871 fi
6872 CMP=$ac_cv_path_CMP
6873 if test -n "$CMP"; then
6874   { echo "$as_me:$LINENO: result: $CMP" >&5
6875 echo "${ECHO_T}$CMP" >&6; }
6876 else
6877   { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6879 fi
6880
6881
6882 # Extract the first word of "cp", so it can be a program name with args.
6883 set dummy cp; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_CP+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $CP in
6890   [\\/]* | ?:[\\/]*)
6891   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6892   ;;
6893   *)
6894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6910   ;;
6911 esac
6912 fi
6913 CP=$ac_cv_path_CP
6914 if test -n "$CP"; then
6915   { echo "$as_me:$LINENO: result: $CP" >&5
6916 echo "${ECHO_T}$CP" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 # Extract the first word of "date", so it can be a program name with args.
6924 set dummy date; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_DATE+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $DATE in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6951   ;;
6952 esac
6953 fi
6954 DATE=$ac_cv_path_DATE
6955 if test -n "$DATE"; then
6956   { echo "$as_me:$LINENO: result: $DATE" >&5
6957 echo "${ECHO_T}$DATE" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963
6964 # Extract the first word of "find", so it can be a program name with args.
6965 set dummy find; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_FIND+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   case $FIND in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981   for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6992   ;;
6993 esac
6994 fi
6995 FIND=$ac_cv_path_FIND
6996 if test -n "$FIND"; then
6997   { echo "$as_me:$LINENO: result: $FIND" >&5
6998 echo "${ECHO_T}$FIND" >&6; }
6999 else
7000   { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7002 fi
7003
7004
7005 # Extract the first word of "grep", so it can be a program name with args.
7006 set dummy grep; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_GREP+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   case $GREP in
7013   [\\/]* | ?:[\\/]*)
7014   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7015   ;;
7016   *)
7017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7033   ;;
7034 esac
7035 fi
7036 GREP=$ac_cv_path_GREP
7037 if test -n "$GREP"; then
7038   { echo "$as_me:$LINENO: result: $GREP" >&5
7039 echo "${ECHO_T}$GREP" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045
7046 # Extract the first word of "mkdir", so it can be a program name with args.
7047 set dummy mkdir; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_MKDIR+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   case $MKDIR in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063   for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7074   ;;
7075 esac
7076 fi
7077 MKDIR=$ac_cv_path_MKDIR
7078 if test -n "$MKDIR"; then
7079   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7080 echo "${ECHO_T}$MKDIR" >&6; }
7081 else
7082   { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7084 fi
7085
7086
7087 # Extract the first word of "mv", so it can be a program name with args.
7088 set dummy mv; ac_word=$2
7089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7091 if test "${ac_cv_path_MV+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   case $MV in
7095   [\\/]* | ?:[\\/]*)
7096   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7097   ;;
7098   *)
7099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102   IFS=$as_save_IFS
7103   test -z "$as_dir" && as_dir=.
7104   for ac_exec_ext in '' $ac_executable_extensions; do
7105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7106     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108     break 2
7109   fi
7110 done
7111 done
7112 IFS=$as_save_IFS
7113
7114   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7115   ;;
7116 esac
7117 fi
7118 MV=$ac_cv_path_MV
7119 if test -n "$MV"; then
7120   { echo "$as_me:$LINENO: result: $MV" >&5
7121 echo "${ECHO_T}$MV" >&6; }
7122 else
7123   { echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6; }
7125 fi
7126
7127
7128 if test -n "$ac_tool_prefix"; then
7129   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_prog_RANLIB+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   if test -n "$RANLIB"; then
7137   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144   for ac_exec_ext in '' $ac_executable_extensions; do
7145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7146     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 RANLIB=$ac_cv_prog_RANLIB
7157 if test -n "$RANLIB"; then
7158   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7159 echo "${ECHO_T}$RANLIB" >&6; }
7160 else
7161   { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_RANLIB"; then
7168   ac_ct_RANLIB=$RANLIB
7169   # Extract the first word of "ranlib", so it can be a program name with args.
7170 set dummy ranlib; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7174   echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176   if test -n "$ac_ct_RANLIB"; then
7177   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184   for ac_exec_ext in '' $ac_executable_extensions; do
7185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186     ac_cv_prog_ac_ct_RANLIB="ranlib"
7187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7197 if test -n "$ac_ct_RANLIB"; then
7198   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7199 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205   if test "x$ac_ct_RANLIB" = x; then
7206     RANLIB=":"
7207   else
7208     case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7211 whose name does not start with the host triplet.  If you think this
7212 configuration is useful to you, please write to autoconf@gnu.org." >&5
7213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7214 whose name does not start with the host triplet.  If you think this
7215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7216 ac_tool_warned=yes ;;
7217 esac
7218     RANLIB=$ac_ct_RANLIB
7219   fi
7220 else
7221   RANLIB="$ac_cv_prog_RANLIB"
7222 fi
7223
7224 # Extract the first word of "rm", so it can be a program name with args.
7225 set dummy rm; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_RM+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   case $RM in
7232   [\\/]* | ?:[\\/]*)
7233   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7234   ;;
7235   *)
7236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241   for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7252   ;;
7253 esac
7254 fi
7255 RM=$ac_cv_path_RM
7256 if test -n "$RM"; then
7257   { echo "$as_me:$LINENO: result: $RM" >&5
7258 echo "${ECHO_T}$RM" >&6; }
7259 else
7260   { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7262 fi
7263
7264
7265 # Extract the first word of "sed", so it can be a program name with args.
7266 set dummy sed; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_SED+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   case $SED in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7293   ;;
7294 esac
7295 fi
7296 SED=$ac_cv_path_SED
7297 if test -n "$SED"; then
7298   { echo "$as_me:$LINENO: result: $SED" >&5
7299 echo "${ECHO_T}$SED" >&6; }
7300 else
7301   { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7303 fi
7304
7305
7306 # Extract the first word of "tar", so it can be a program name with args.
7307 set dummy tar; ac_word=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_path_TAR+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   case $TAR in
7314   [\\/]* | ?:[\\/]*)
7315   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7316   ;;
7317   *)
7318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321   IFS=$as_save_IFS
7322   test -z "$as_dir" && as_dir=.
7323   for ac_exec_ext in '' $ac_executable_extensions; do
7324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327     break 2
7328   fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7334   ;;
7335 esac
7336 fi
7337 TAR=$ac_cv_path_TAR
7338 if test -n "$TAR"; then
7339   { echo "$as_me:$LINENO: result: $TAR" >&5
7340 echo "${ECHO_T}$TAR" >&6; }
7341 else
7342   { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7344 fi
7345
7346
7347 # Extract the first word of "pwd", so it can be a program name with args.
7348 set dummy pwd; ac_word=$2
7349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351 if test "${ac_cv_path_BINPWD+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354   case $BINPWD in
7355   [\\/]* | ?:[\\/]*)
7356   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7357   ;;
7358   *)
7359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364   for ac_exec_ext in '' $ac_executable_extensions; do
7365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7366     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371 done
7372 IFS=$as_save_IFS
7373
7374   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7375   ;;
7376 esac
7377 fi
7378 BINPWD=$ac_cv_path_BINPWD
7379 if test -n "$BINPWD"; then
7380   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7381 echo "${ECHO_T}$BINPWD" >&6; }
7382 else
7383   { echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6; }
7385 fi
7386
7387
7388
7389 # Extract the first word of "Graphviz", so it can be a program name with args.
7390 set dummy Graphviz; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   case $GRAPHVIZ in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406   for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7417   ;;
7418 esac
7419 fi
7420 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7421 if test -n "$GRAPHVIZ"; then
7422   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7423 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7424 else
7425   { echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6; }
7427 fi
7428
7429
7430 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7431
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_GRAPHVIZ 1
7434 _ACEOF
7435
7436     if test "$llvm_cv_os_type" = "MingW" ; then
7437     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7438   fi
7439
7440 cat >>confdefs.h <<_ACEOF
7441 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7442 _ACEOF
7443
7444 fi
7445 # Extract the first word of "dot", so it can be a program name with args.
7446 set dummy dot; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_DOT+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   case $DOT in
7453   [\\/]* | ?:[\\/]*)
7454   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7455   ;;
7456   *)
7457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7473   ;;
7474 esac
7475 fi
7476 DOT=$ac_cv_path_DOT
7477 if test -n "$DOT"; then
7478   { echo "$as_me:$LINENO: result: $DOT" >&5
7479 echo "${ECHO_T}$DOT" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486 if test "$DOT" != "echo dot" ; then
7487
7488 cat >>confdefs.h <<\_ACEOF
7489 #define HAVE_DOT 1
7490 _ACEOF
7491
7492     if test "$llvm_cv_os_type" = "MingW" ; then
7493     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7494   fi
7495
7496 cat >>confdefs.h <<_ACEOF
7497 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7498 _ACEOF
7499
7500 fi
7501 for ac_prog in gv gsview32
7502 do
7503   # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy $ac_prog; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GV+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   case $GV in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530   ;;
7531 esac
7532 fi
7533 GV=$ac_cv_path_GV
7534 if test -n "$GV"; then
7535   { echo "$as_me:$LINENO: result: $GV" >&5
7536 echo "${ECHO_T}$GV" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543   test -n "$GV" && break
7544 done
7545 test -n "$GV" || GV="echo gv"
7546
7547 if test "$GV" != "echo gv" ; then
7548
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_GV 1
7551 _ACEOF
7552
7553     if test "$llvm_cv_os_type" = "MingW" ; then
7554     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7555   fi
7556
7557 cat >>confdefs.h <<_ACEOF
7558 #define LLVM_PATH_GV "$GV${EXEEXT}"
7559 _ACEOF
7560
7561 fi
7562 # Extract the first word of "dotty", so it can be a program name with args.
7563 set dummy dotty; ac_word=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_path_DOTTY+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   case $DOTTY in
7570   [\\/]* | ?:[\\/]*)
7571   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7572   ;;
7573   *)
7574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579   for ac_exec_ext in '' $ac_executable_extensions; do
7580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7581     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7590   ;;
7591 esac
7592 fi
7593 DOTTY=$ac_cv_path_DOTTY
7594 if test -n "$DOTTY"; then
7595   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7596 echo "${ECHO_T}$DOTTY" >&6; }
7597 else
7598   { echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6; }
7600 fi
7601
7602
7603 if test "$DOTTY" != "echo dotty" ; then
7604
7605 cat >>confdefs.h <<\_ACEOF
7606 #define HAVE_DOTTY 1
7607 _ACEOF
7608
7609     if test "$llvm_cv_os_type" = "MingW" ; then
7610     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7611   fi
7612
7613 cat >>confdefs.h <<_ACEOF
7614 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7615 _ACEOF
7616
7617 fi
7618
7619
7620 # Extract the first word of "perl", so it can be a program name with args.
7621 set dummy perl; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_PERL+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   case $PERL in
7628   [\\/]* | ?:[\\/]*)
7629   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7630   ;;
7631   *)
7632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637   for ac_exec_ext in '' $ac_executable_extensions; do
7638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644 done
7645 IFS=$as_save_IFS
7646
7647   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7648   ;;
7649 esac
7650 fi
7651 PERL=$ac_cv_path_PERL
7652 if test -n "$PERL"; then
7653   { echo "$as_me:$LINENO: result: $PERL" >&5
7654 echo "${ECHO_T}$PERL" >&6; }
7655 else
7656   { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7658 fi
7659
7660
7661 if test "$PERL" != "none"; then
7662   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7663 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7664   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7665     { echo "$as_me:$LINENO: result: yes" >&5
7666 echo "${ECHO_T}yes" >&6; }
7667   else
7668     PERL=none
7669     { echo "$as_me:$LINENO: result: not found" >&5
7670 echo "${ECHO_T}not found" >&6; }
7671   fi
7672 fi
7673
7674
7675 if test x"$PERL" = xnone; then
7676    HAVE_PERL=0
7677
7678    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7679 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7680    { (exit 1); exit 1; }; }
7681 else
7682    HAVE_PERL=1
7683
7684 fi
7685
7686 # Find a good install program.  We prefer a C program (faster),
7687 # so one script is as good as another.  But avoid the broken or
7688 # incompatible versions:
7689 # SysV /etc/install, /usr/sbin/install
7690 # SunOS /usr/etc/install
7691 # IRIX /sbin/install
7692 # AIX /bin/install
7693 # AmigaOS /C/install, which installs bootblocks on floppy discs
7694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7697 # OS/2's system install, which has a completely different semantic
7698 # ./install, which can be erroneously created by make from ./install.sh.
7699 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7700 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7701 if test -z "$INSTALL"; then
7702 if test "${ac_cv_path_install+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710   # Account for people who put trailing slashes in PATH elements.
7711 case $as_dir/ in
7712   ./ | .// | /cC/* | \
7713   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7714   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7715   /usr/ucb/* ) ;;
7716   *)
7717     # OSF1 and SCO ODT 3.0 have their own names for install.
7718     # Don't use installbsd from OSF since it installs stuff as root
7719     # by default.
7720     for ac_prog in ginstall scoinst install; do
7721       for ac_exec_ext in '' $ac_executable_extensions; do
7722         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7723           if test $ac_prog = install &&
7724             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7725             # AIX install.  It has an incompatible calling convention.
7726             :
7727           elif test $ac_prog = install &&
7728             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7729             # program-specific install script used by HP pwplus--don't use.
7730             :
7731           else
7732             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7733             break 3
7734           fi
7735         fi
7736       done
7737     done
7738     ;;
7739 esac
7740 done
7741 IFS=$as_save_IFS
7742
7743
7744 fi
7745   if test "${ac_cv_path_install+set}" = set; then
7746     INSTALL=$ac_cv_path_install
7747   else
7748     # As a last resort, use the slow shell script.  Don't cache a
7749     # value for INSTALL within a source directory, because that will
7750     # break other packages using the cache if that directory is
7751     # removed, or if the value is a relative name.
7752     INSTALL=$ac_install_sh
7753   fi
7754 fi
7755 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7756 echo "${ECHO_T}$INSTALL" >&6; }
7757
7758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7759 # It thinks the first close brace ends the variable substitution.
7760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7761
7762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7763
7764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7765
7766
7767 # Extract the first word of "bzip2", so it can be a program name with args.
7768 set dummy bzip2; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_path_BZIP2+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   case $BZIP2 in
7775   [\\/]* | ?:[\\/]*)
7776   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7777   ;;
7778   *)
7779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784   for ac_exec_ext in '' $ac_executable_extensions; do
7785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7786     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794   ;;
7795 esac
7796 fi
7797 BZIP2=$ac_cv_path_BZIP2
7798 if test -n "$BZIP2"; then
7799   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7800 echo "${ECHO_T}$BZIP2" >&6; }
7801 else
7802   { echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6; }
7804 fi
7805
7806
7807 # Extract the first word of "doxygen", so it can be a program name with args.
7808 set dummy doxygen; ac_word=$2
7809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   case $DOXYGEN in
7815   [\\/]* | ?:[\\/]*)
7816   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7817   ;;
7818   *)
7819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824   for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834   ;;
7835 esac
7836 fi
7837 DOXYGEN=$ac_cv_path_DOXYGEN
7838 if test -n "$DOXYGEN"; then
7839   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7840 echo "${ECHO_T}$DOXYGEN" >&6; }
7841 else
7842   { echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6; }
7844 fi
7845
7846
7847 # Extract the first word of "groff", so it can be a program name with args.
7848 set dummy groff; ac_word=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_GROFF+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   case $GROFF in
7855   [\\/]* | ?:[\\/]*)
7856   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7857   ;;
7858   *)
7859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864   for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874   ;;
7875 esac
7876 fi
7877 GROFF=$ac_cv_path_GROFF
7878 if test -n "$GROFF"; then
7879   { echo "$as_me:$LINENO: result: $GROFF" >&5
7880 echo "${ECHO_T}$GROFF" >&6; }
7881 else
7882   { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7884 fi
7885
7886
7887 # Extract the first word of "gzip", so it can be a program name with args.
7888 set dummy gzip; ac_word=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_path_GZIP+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   case $GZIP in
7895   [\\/]* | ?:[\\/]*)
7896   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7897   ;;
7898   *)
7899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904   for ac_exec_ext in '' $ac_executable_extensions; do
7905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7906     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914   ;;
7915 esac
7916 fi
7917 GZIP=$ac_cv_path_GZIP
7918 if test -n "$GZIP"; then
7919   { echo "$as_me:$LINENO: result: $GZIP" >&5
7920 echo "${ECHO_T}$GZIP" >&6; }
7921 else
7922   { echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6; }
7924 fi
7925
7926
7927 # Extract the first word of "pod2html", so it can be a program name with args.
7928 set dummy pod2html; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_POD2HTML+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   case $POD2HTML in
7935   [\\/]* | ?:[\\/]*)
7936   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7937   ;;
7938   *)
7939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944   for ac_exec_ext in '' $ac_executable_extensions; do
7945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951 done
7952 IFS=$as_save_IFS
7953
7954   ;;
7955 esac
7956 fi
7957 POD2HTML=$ac_cv_path_POD2HTML
7958 if test -n "$POD2HTML"; then
7959   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7960 echo "${ECHO_T}$POD2HTML" >&6; }
7961 else
7962   { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7964 fi
7965
7966
7967 # Extract the first word of "pod2man", so it can be a program name with args.
7968 set dummy pod2man; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_POD2MAN+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   case $POD2MAN in
7975   [\\/]* | ?:[\\/]*)
7976   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7977   ;;
7978   *)
7979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984   for ac_exec_ext in '' $ac_executable_extensions; do
7985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994   ;;
7995 esac
7996 fi
7997 POD2MAN=$ac_cv_path_POD2MAN
7998 if test -n "$POD2MAN"; then
7999   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8000 echo "${ECHO_T}$POD2MAN" >&6; }
8001 else
8002   { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8004 fi
8005
8006
8007 # Extract the first word of "runtest", so it can be a program name with args.
8008 set dummy runtest; ac_word=$2
8009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8011 if test "${ac_cv_path_RUNTEST+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   case $RUNTEST in
8015   [\\/]* | ?:[\\/]*)
8016   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8017   ;;
8018   *)
8019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024   for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031 done
8032 IFS=$as_save_IFS
8033
8034   ;;
8035 esac
8036 fi
8037 RUNTEST=$ac_cv_path_RUNTEST
8038 if test -n "$RUNTEST"; then
8039   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8040 echo "${ECHO_T}$RUNTEST" >&6; }
8041 else
8042   { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8044 fi
8045
8046
8047
8048 no_itcl=true
8049 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8050 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8051
8052 # Check whether --with-tclinclude was given.
8053 if test "${with_tclinclude+set}" = set; then
8054   withval=$with_tclinclude; with_tclinclude=${withval}
8055 else
8056   with_tclinclude=''
8057 fi
8058
8059 if test "${ac_cv_path_tclsh+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062
8063 if test x"${with_tclinclude}" != x ; then
8064   if test -f ${with_tclinclude}/tclsh ; then
8065     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8066   elif test -f ${with_tclinclude}/src/tclsh ; then
8067     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8068   else
8069     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8070 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8071    { (exit 1); exit 1; }; }
8072   fi
8073 fi
8074
8075 if test x"${ac_cv_path_tclsh}" = x ; then
8076   { echo "$as_me:$LINENO: result: none" >&5
8077 echo "${ECHO_T}none" >&6; }
8078   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
8079 do
8080   # Extract the first word of "$ac_prog", so it can be a program name with args.
8081 set dummy $ac_prog; ac_word=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_path_TCLSH+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   case $TCLSH in
8088   [\\/]* | ?:[\\/]*)
8089   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8090   ;;
8091   *)
8092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 for as_dir in $PATH
8094 do
8095   IFS=$as_save_IFS
8096   test -z "$as_dir" && as_dir=.
8097   for ac_exec_ext in '' $ac_executable_extensions; do
8098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8099     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101     break 2
8102   fi
8103 done
8104 done
8105 IFS=$as_save_IFS
8106
8107   ;;
8108 esac
8109 fi
8110 TCLSH=$ac_cv_path_TCLSH
8111 if test -n "$TCLSH"; then
8112   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8113 echo "${ECHO_T}$TCLSH" >&6; }
8114 else
8115   { echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6; }
8117 fi
8118
8119
8120   test -n "$TCLSH" && break
8121 done
8122
8123   if test x"${TCLSH}" = x ; then
8124     ac_cv_path_tclsh='';
8125   else
8126     ac_cv_path_tclsh="${TCLSH}";
8127   fi
8128 else
8129   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8130 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8131   TCLSH="${ac_cv_path_tclsh}"
8132
8133 fi
8134
8135 fi
8136
8137 # Extract the first word of "zip", so it can be a program name with args.
8138 set dummy zip; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_ZIP+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   case $ZIP in
8145   [\\/]* | ?:[\\/]*)
8146   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8147   ;;
8148   *)
8149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154   for ac_exec_ext in '' $ac_executable_extensions; do
8155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164   ;;
8165 esac
8166 fi
8167 ZIP=$ac_cv_path_ZIP
8168 if test -n "$ZIP"; then
8169   { echo "$as_me:$LINENO: result: $ZIP" >&5
8170 echo "${ECHO_T}$ZIP" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176
8177 for ac_prog in ocamlc
8178 do
8179   # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_path_OCAMLC+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   case $OCAMLC in
8187   [\\/]* | ?:[\\/]*)
8188   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8189   ;;
8190   *)
8191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196   for ac_exec_ext in '' $ac_executable_extensions; do
8197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206   ;;
8207 esac
8208 fi
8209 OCAMLC=$ac_cv_path_OCAMLC
8210 if test -n "$OCAMLC"; then
8211   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8212 echo "${ECHO_T}$OCAMLC" >&6; }
8213 else
8214   { echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6; }
8216 fi
8217
8218
8219   test -n "$OCAMLC" && break
8220 done
8221
8222 for ac_prog in ocamlopt
8223 do
8224   # Extract the first word of "$ac_prog", so it can be a program name with args.
8225 set dummy $ac_prog; ac_word=$2
8226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   case $OCAMLOPT in
8232   [\\/]* | ?:[\\/]*)
8233   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8234   ;;
8235   *)
8236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239   IFS=$as_save_IFS
8240   test -z "$as_dir" && as_dir=.
8241   for ac_exec_ext in '' $ac_executable_extensions; do
8242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8243     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245     break 2
8246   fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251   ;;
8252 esac
8253 fi
8254 OCAMLOPT=$ac_cv_path_OCAMLOPT
8255 if test -n "$OCAMLOPT"; then
8256   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8257 echo "${ECHO_T}$OCAMLOPT" >&6; }
8258 else
8259   { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8261 fi
8262
8263
8264   test -n "$OCAMLOPT" && break
8265 done
8266
8267 for ac_prog in ocamldep
8268 do
8269   # Extract the first word of "$ac_prog", so it can be a program name with args.
8270 set dummy $ac_prog; ac_word=$2
8271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8273 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8274   echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276   case $OCAMLDEP in
8277   [\\/]* | ?:[\\/]*)
8278   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8279   ;;
8280   *)
8281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286   for ac_exec_ext in '' $ac_executable_extensions; do
8287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8288     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296   ;;
8297 esac
8298 fi
8299 OCAMLDEP=$ac_cv_path_OCAMLDEP
8300 if test -n "$OCAMLDEP"; then
8301   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8302 echo "${ECHO_T}$OCAMLDEP" >&6; }
8303 else
8304   { echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6; }
8306 fi
8307
8308
8309   test -n "$OCAMLDEP" && break
8310 done
8311
8312 for ac_prog in ocamldoc
8313 do
8314   # Extract the first word of "$ac_prog", so it can be a program name with args.
8315 set dummy $ac_prog; ac_word=$2
8316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   case $OCAMLDOC in
8322   [\\/]* | ?:[\\/]*)
8323   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8324   ;;
8325   *)
8326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329   IFS=$as_save_IFS
8330   test -z "$as_dir" && as_dir=.
8331   for ac_exec_ext in '' $ac_executable_extensions; do
8332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8333     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335     break 2
8336   fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341   ;;
8342 esac
8343 fi
8344 OCAMLDOC=$ac_cv_path_OCAMLDOC
8345 if test -n "$OCAMLDOC"; then
8346   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8347 echo "${ECHO_T}$OCAMLDOC" >&6; }
8348 else
8349   { echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6; }
8351 fi
8352
8353
8354   test -n "$OCAMLDOC" && break
8355 done
8356
8357 for ac_prog in gas as
8358 do
8359   # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8363 if test "${ac_cv_path_GAS+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   case $GAS in
8367   [\\/]* | ?:[\\/]*)
8368   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8369   ;;
8370   *)
8371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376   for ac_exec_ext in '' $ac_executable_extensions; do
8377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8378     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386   ;;
8387 esac
8388 fi
8389 GAS=$ac_cv_path_GAS
8390 if test -n "$GAS"; then
8391   { echo "$as_me:$LINENO: result: $GAS" >&5
8392 echo "${ECHO_T}$GAS" >&6; }
8393 else
8394   { echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6; }
8396 fi
8397
8398
8399   test -n "$GAS" && break
8400 done
8401
8402
8403 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8404 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8405 if test "${llvm_cv_link_use_r+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408    ac_ext=c
8409 ac_cpp='$CPP $CPPFLAGS'
8410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413
8414   oldcflags="$CFLAGS"
8415   CFLAGS="$CFLAGS -Wl,-R."
8416   cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422
8423 int
8424 main ()
8425 {
8426 int main() { return 0; }
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_link") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   llvm_cv_link_use_r=yes
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         llvm_cv_link_use_r=no
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext \
8474       conftest$ac_exeext conftest.$ac_ext
8475   CFLAGS="$oldcflags"
8476   ac_ext=c
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482
8483 fi
8484 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8485 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8486 if test "$llvm_cv_link_use_r" = yes ; then
8487
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_LINK_R 1
8490 _ACEOF
8491
8492   fi
8493
8494
8495
8496
8497 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8498 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8499 if test "${ac_cv_c_const+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508
8509 int
8510 main ()
8511 {
8512 /* FIXME: Include the comments suggested by Paul. */
8513 #ifndef __cplusplus
8514   /* Ultrix mips cc rejects this.  */
8515   typedef int charset[2];
8516   const charset x;
8517   /* SunOS 4.1.1 cc rejects this.  */
8518   char const *const *ccp;
8519   char **p;
8520   /* NEC SVR4.0.2 mips cc rejects this.  */
8521   struct point {int x, y;};
8522   static struct point const zero = {0,0};
8523   /* AIX XL C 1.02.0.0 rejects this.
8524      It does not let you subtract one const X* pointer from another in
8525      an arm of an if-expression whose if-part is not a constant
8526      expression */
8527   const char *g = "string";
8528   ccp = &g + (g ? g-g : 0);
8529   /* HPUX 7.0 cc rejects these. */
8530   ++ccp;
8531   p = (char**) ccp;
8532   ccp = (char const *const *) p;
8533   { /* SCO 3.2v4 cc rejects this.  */
8534     char *t;
8535     char const *s = 0 ? (char *) 0 : (char const *) 0;
8536
8537     *t++ = 0;
8538     if (s) return 0;
8539   }
8540   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8541     int x[] = {25, 17};
8542     const int *foo = &x[0];
8543     ++foo;
8544   }
8545   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8546     typedef const int *iptr;
8547     iptr p = 0;
8548     ++p;
8549   }
8550   { /* AIX XL C 1.02.0.0 rejects this saying
8551        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8552     struct s { int j; const int *ap[3]; };
8553     struct s *b; b->j = 5;
8554   }
8555   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8556     const int foo = 10;
8557     if (!foo) return 0;
8558   }
8559   return !x[0] && !zero.x;
8560 #endif
8561
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8568 case "(($ac_try" in
8569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570   *) ac_try_echo=$ac_try;;
8571 esac
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573   (eval "$ac_compile") 2>conftest.er1
8574   ac_status=$?
8575   grep -v '^ *+' conftest.er1 >conftest.err
8576   rm -f conftest.er1
8577   cat conftest.err >&5
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } &&
8580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8581   { (case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586   (eval "$ac_try") 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; } &&
8590          { ac_try='test -s conftest.$ac_objext'
8591   { (case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596   (eval "$ac_try") 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   ac_cv_c_const=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605         ac_cv_c_const=no
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8611 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8612 if test $ac_cv_c_const = no; then
8613
8614 cat >>confdefs.h <<\_ACEOF
8615 #define const
8616 _ACEOF
8617
8618 fi
8619
8620
8621
8622
8623
8624
8625 ac_header_dirent=no
8626 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8627   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8628 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8629 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639 #include <sys/types.h>
8640 #include <$ac_hdr>
8641
8642 int
8643 main ()
8644 {
8645 if ((DIR *) 0)
8646 return 0;
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655   *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658   (eval "$ac_compile") 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } &&
8665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666   { (case "(($ac_try" in
8667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668   *) ac_try_echo=$ac_try;;
8669 esac
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671   (eval "$ac_try") 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest.$ac_objext'
8676   { (case "(($ac_try" in
8677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678   *) ac_try_echo=$ac_try;;
8679 esac
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681   (eval "$ac_try") 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; }; then
8685   eval "$as_ac_Header=yes"
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690         eval "$as_ac_Header=no"
8691 fi
8692
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 fi
8695 ac_res=`eval echo '${'$as_ac_Header'}'`
8696                { echo "$as_me:$LINENO: result: $ac_res" >&5
8697 echo "${ECHO_T}$ac_res" >&6; }
8698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699   cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8701 _ACEOF
8702
8703 ac_header_dirent=$ac_hdr; break
8704 fi
8705
8706 done
8707 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8708 if test $ac_header_dirent = dirent.h; then
8709   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8710 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8711 if test "${ac_cv_search_opendir+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   ac_func_search_save_LIBS=$LIBS
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721
8722 /* Override any GCC internal prototype to avoid an error.
8723    Use char because int might match the return type of a GCC
8724    builtin and then its argument prototype would still apply.  */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 char opendir ();
8729 int
8730 main ()
8731 {
8732 return opendir ();
8733   ;
8734   return 0;
8735 }
8736 _ACEOF
8737 for ac_lib in '' dir; do
8738   if test -z "$ac_lib"; then
8739     ac_res="none required"
8740   else
8741     ac_res=-l$ac_lib
8742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8743   fi
8744   rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_link") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759   { (case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_try") 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_try") 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   ac_cv_search_opendir=$ac_res
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783
8784 fi
8785
8786 rm -f core conftest.err conftest.$ac_objext \
8787       conftest$ac_exeext
8788   if test "${ac_cv_search_opendir+set}" = set; then
8789   break
8790 fi
8791 done
8792 if test "${ac_cv_search_opendir+set}" = set; then
8793   :
8794 else
8795   ac_cv_search_opendir=no
8796 fi
8797 rm conftest.$ac_ext
8798 LIBS=$ac_func_search_save_LIBS
8799 fi
8800 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8801 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8802 ac_res=$ac_cv_search_opendir
8803 if test "$ac_res" != no; then
8804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8805
8806 fi
8807
8808 else
8809   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8810 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8811 if test "${ac_cv_search_opendir+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814   ac_func_search_save_LIBS=$LIBS
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822 /* Override any GCC internal prototype to avoid an error.
8823    Use char because int might match the return type of a GCC
8824    builtin and then its argument prototype would still apply.  */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 char opendir ();
8829 int
8830 main ()
8831 {
8832 return opendir ();
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 for ac_lib in '' x; do
8838   if test -z "$ac_lib"; then
8839     ac_res="none required"
8840   else
8841     ac_res=-l$ac_lib
8842     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8843   fi
8844   rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (ac_try="$ac_link"
8846 case "(($ac_try" in
8847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848   *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851   (eval "$ac_link") 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859   { (case "(($ac_try" in
8860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861   *) ac_try_echo=$ac_try;;
8862 esac
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864   (eval "$ac_try") 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; } &&
8868          { ac_try='test -s conftest$ac_exeext'
8869   { (case "(($ac_try" in
8870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871   *) ac_try_echo=$ac_try;;
8872 esac
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874   (eval "$ac_try") 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; }; then
8878   ac_cv_search_opendir=$ac_res
8879 else
8880   echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883
8884 fi
8885
8886 rm -f core conftest.err conftest.$ac_objext \
8887       conftest$ac_exeext
8888   if test "${ac_cv_search_opendir+set}" = set; then
8889   break
8890 fi
8891 done
8892 if test "${ac_cv_search_opendir+set}" = set; then
8893   :
8894 else
8895   ac_cv_search_opendir=no
8896 fi
8897 rm conftest.$ac_ext
8898 LIBS=$ac_func_search_save_LIBS
8899 fi
8900 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8901 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8902 ac_res=$ac_cv_search_opendir
8903 if test "$ac_res" != no; then
8904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8905
8906 fi
8907
8908 fi
8909
8910
8911 for ac_header in dlfcn.h
8912 do
8913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 fi
8920 ac_res=`eval echo '${'$as_ac_Header'}'`
8921                { echo "$as_me:$LINENO: result: $ac_res" >&5
8922 echo "${ECHO_T}$ac_res" >&6; }
8923 else
8924   # Is the header compilable?
8925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h.  */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h.  */
8933 $ac_includes_default
8934 #include <$ac_header>
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8938 case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943   (eval "$ac_compile") 2>conftest.er1
8944   ac_status=$?
8945   grep -v '^ *+' conftest.er1 >conftest.err
8946   rm -f conftest.er1
8947   cat conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } &&
8950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951   { (case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_try") 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; } &&
8960          { ac_try='test -s conftest.$ac_objext'
8961   { (case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_try") 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; }; then
8970   ac_header_compiler=yes
8971 else
8972   echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975         ac_header_compiler=no
8976 fi
8977
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980 echo "${ECHO_T}$ac_header_compiler" >&6; }
8981
8982 # Is the header present?
8983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h.  */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h.  */
8991 #include <$ac_header>
8992 _ACEOF
8993 if { (ac_try="$ac_cpp conftest.$ac_ext"
8994 case "(($ac_try" in
8995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996   *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } >/dev/null; then
9006   if test -s conftest.err; then
9007     ac_cpp_err=$ac_c_preproc_warn_flag
9008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9009   else
9010     ac_cpp_err=
9011   fi
9012 else
9013   ac_cpp_err=yes
9014 fi
9015 if test -z "$ac_cpp_err"; then
9016   ac_header_preproc=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021   ac_header_preproc=no
9022 fi
9023
9024 rm -f conftest.err conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6; }
9027
9028 # So?  What about this header?
9029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9030   yes:no: )
9031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9035     ac_header_preproc=yes
9036     ;;
9037   no:yes:* )
9038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9050     ( cat <<\_ASBOX
9051 ## ----------------------------------- ##
9052 ## Report this to llvmbugs@cs.uiuc.edu ##
9053 ## ----------------------------------- ##
9054 _ASBOX
9055      ) | sed "s/^/$as_me: WARNING:     /" >&2
9056     ;;
9057 esac
9058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   eval "$as_ac_Header=\$ac_header_preproc"
9064 fi
9065 ac_res=`eval echo '${'$as_ac_Header'}'`
9066                { echo "$as_me:$LINENO: result: $ac_res" >&5
9067 echo "${ECHO_T}$ac_res" >&6; }
9068
9069 fi
9070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9071   cat >>confdefs.h <<_ACEOF
9072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 _ACEOF
9074
9075 fi
9076
9077 done
9078
9079 # Check whether --enable-ltdl-install was given.
9080 if test "${enable_ltdl_install+set}" = set; then
9081   enableval=$enable_ltdl_install;
9082 fi
9083
9084
9085
9086
9087 if test x"${enable_ltdl_install-no}" != xno; then
9088   INSTALL_LTDL_TRUE=
9089   INSTALL_LTDL_FALSE='#'
9090 else
9091   INSTALL_LTDL_TRUE='#'
9092   INSTALL_LTDL_FALSE=
9093 fi
9094
9095
9096
9097 if test x"${enable_ltdl_convenience-no}" != xno; then
9098   CONVENIENCE_LTDL_TRUE=
9099   CONVENIENCE_LTDL_FALSE='#'
9100 else
9101   CONVENIENCE_LTDL_TRUE='#'
9102   CONVENIENCE_LTDL_FALSE=
9103 fi
9104
9105
9106 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9107 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9108 library_names_spec=
9109 libname_spec='lib$name'
9110 soname_spec=
9111 shrext_cmds=".so"
9112 postinstall_cmds=
9113 postuninstall_cmds=
9114 finish_cmds=
9115 finish_eval=
9116 shlibpath_var=
9117 shlibpath_overrides_runpath=unknown
9118 version_type=none
9119 dynamic_linker="$host_os ld.so"
9120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9121 if test "$GCC" = yes; then
9122   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9124     # if the path contains ";" then we assume it to be the separator
9125     # otherwise default to the standard path separator (i.e. ":") - it is
9126     # assumed that no part of a normal pathname contains ";" but that should
9127     # okay in the real world where ";" in dirpaths is itself problematic.
9128     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9129   else
9130     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9131   fi
9132 else
9133   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9134 fi
9135 need_lib_prefix=unknown
9136 hardcode_into_libs=no
9137
9138 # when you set need_version to no, make sure it does not cause -set_version
9139 # flags to be left without arguments
9140 need_version=unknown
9141
9142 case $host_os in
9143 aix3*)
9144   version_type=linux
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9146   shlibpath_var=LIBPATH
9147
9148   # AIX 3 has no versioning support, so we append a major version to the name.
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   ;;
9151
9152 aix4* | aix5*)
9153   version_type=linux
9154   need_lib_prefix=no
9155   need_version=no
9156   hardcode_into_libs=yes
9157   if test "$host_cpu" = ia64; then
9158     # AIX 5 supports IA64
9159     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9160     shlibpath_var=LD_LIBRARY_PATH
9161   else
9162     # With GCC up to 2.95.x, collect2 would create an import file
9163     # for dependence libraries.  The import file would start with
9164     # the line `#! .'.  This would cause the generated library to
9165     # depend on `.', always an invalid library.  This was fixed in
9166     # development snapshots of GCC prior to 3.0.
9167     case $host_os in
9168       aix4 | aix4.[01] | aix4.[01].*)
9169       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9170            echo ' yes '
9171            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9172         :
9173       else
9174         can_build_shared=no
9175       fi
9176       ;;
9177     esac
9178     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9179     # soname into executable. Probably we can add versioning support to
9180     # collect2, so additional links can be useful in future.
9181     if test "$aix_use_runtimelinking" = yes; then
9182       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9183       # instead of lib<name>.a to let people know that these are not
9184       # typical AIX shared libraries.
9185       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186     else
9187       # We preserve .a as extension for shared libraries through AIX4.2
9188       # and later when we are not doing run time linking.
9189       library_names_spec='${libname}${release}.a $libname.a'
9190       soname_spec='${libname}${release}${shared_ext}$major'
9191     fi
9192     shlibpath_var=LIBPATH
9193   fi
9194   ;;
9195
9196 amigaos*)
9197   library_names_spec='$libname.ixlibrary $libname.a'
9198   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9199   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'
9200   ;;
9201
9202 beos*)
9203   library_names_spec='${libname}${shared_ext}'
9204   dynamic_linker="$host_os ld.so"
9205   shlibpath_var=LIBRARY_PATH
9206   ;;
9207
9208 bsdi[45]*)
9209   version_type=linux
9210   need_version=no
9211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212   soname_spec='${libname}${release}${shared_ext}$major'
9213   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9214   shlibpath_var=LD_LIBRARY_PATH
9215   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9216   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9217   # the default ld.so.conf also contains /usr/contrib/lib and
9218   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9219   # libtool to hard-code these into programs
9220   ;;
9221
9222 cygwin* | mingw* | pw32*)
9223   version_type=windows
9224   shrext_cmds=".dll"
9225   need_version=no
9226   need_lib_prefix=no
9227
9228   case $GCC,$host_os in
9229   yes,cygwin* | yes,mingw* | yes,pw32*)
9230     library_names_spec='$libname.dll.a'
9231     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9232     postinstall_cmds='base_file=`basename \${file}`~
9233       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9234       dldir=$destdir/`dirname \$dlpath`~
9235       test -d \$dldir || mkdir -p \$dldir~
9236       $install_prog $dir/$dlname \$dldir/$dlname~
9237       chmod a+x \$dldir/$dlname'
9238     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9239       dlpath=$dir/\$dldll~
9240        $rm \$dlpath'
9241     shlibpath_overrides_runpath=yes
9242
9243     case $host_os in
9244     cygwin*)
9245       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9246       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9248       ;;
9249     mingw*)
9250       # MinGW DLLs use traditional 'lib' prefix
9251       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9252       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9253       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9254         # It is most probably a Windows format PATH printed by
9255         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9256         # path with ; separators, and with drive letters. We can handle the
9257         # drive letters (cygwin fileutils understands them), so leave them,
9258         # especially as we might pass files found there to a mingw objdump,
9259         # which wouldn't understand a cygwinified path. Ahh.
9260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9261       else
9262         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9263       fi
9264       ;;
9265     pw32*)
9266       # pw32 DLLs use 'pw' prefix rather than 'lib'
9267       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9268       ;;
9269     esac
9270     ;;
9271
9272   *)
9273     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9274     ;;
9275   esac
9276   dynamic_linker='Win32 ld.exe'
9277   # FIXME: first we should search . and the directory the executable is in
9278   shlibpath_var=PATH
9279   ;;
9280
9281 darwin* | rhapsody*)
9282   dynamic_linker="$host_os dyld"
9283   version_type=darwin
9284   need_lib_prefix=no
9285   need_version=no
9286   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9287   soname_spec='${libname}${release}${major}$shared_ext'
9288   shlibpath_overrides_runpath=yes
9289   shlibpath_var=DYLD_LIBRARY_PATH
9290   shrext_cmds='.dylib'
9291   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9292   if test "$GCC" = yes; then
9293     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"`
9294   else
9295     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9296   fi
9297   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9298   ;;
9299
9300 dgux*)
9301   version_type=linux
9302   need_lib_prefix=no
9303   need_version=no
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   ;;
9308
9309 freebsd1*)
9310   dynamic_linker=no
9311   ;;
9312
9313 kfreebsd*-gnu)
9314   version_type=linux
9315   need_lib_prefix=no
9316   need_version=no
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   shlibpath_overrides_runpath=no
9321   hardcode_into_libs=yes
9322   dynamic_linker='GNU ld.so'
9323   ;;
9324
9325 freebsd* | dragonfly*)
9326   # DragonFly does not have aout.  When/if they implement a new
9327   # versioning mechanism, adjust this.
9328   if test -x /usr/bin/objformat; then
9329     objformat=`/usr/bin/objformat`
9330   else
9331     case $host_os in
9332     freebsd[123]*) objformat=aout ;;
9333     *) objformat=elf ;;
9334     esac
9335   fi
9336   version_type=freebsd-$objformat
9337   case $version_type in
9338     freebsd-elf*)
9339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340       need_version=no
9341       need_lib_prefix=no
9342       ;;
9343     freebsd-*)
9344       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9345       need_version=yes
9346       ;;
9347   esac
9348   shlibpath_var=LD_LIBRARY_PATH
9349   case $host_os in
9350   freebsd2*)
9351     shlibpath_overrides_runpath=yes
9352     ;;
9353   freebsd3.[01]* | freebsdelf3.[01]*)
9354     shlibpath_overrides_runpath=yes
9355     hardcode_into_libs=yes
9356     ;;
9357   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9358   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9359     shlibpath_overrides_runpath=no
9360     hardcode_into_libs=yes
9361     ;;
9362   freebsd*) # from 4.6 on
9363     shlibpath_overrides_runpath=yes
9364     hardcode_into_libs=yes
9365     ;;
9366   esac
9367   ;;
9368
9369 gnu*)
9370   version_type=linux
9371   need_lib_prefix=no
9372   need_version=no
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9374   soname_spec='${libname}${release}${shared_ext}$major'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   hardcode_into_libs=yes
9377   ;;
9378
9379 hpux9* | hpux10* | hpux11*)
9380   # Give a soname corresponding to the major version so that dld.sl refuses to
9381   # link against other versions.
9382   version_type=sunos
9383   need_lib_prefix=no
9384   need_version=no
9385   case $host_cpu in
9386   ia64*)
9387     shrext_cmds='.so'
9388     hardcode_into_libs=yes
9389     dynamic_linker="$host_os dld.so"
9390     shlibpath_var=LD_LIBRARY_PATH
9391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393     soname_spec='${libname}${release}${shared_ext}$major'
9394     if test "X$HPUX_IA64_MODE" = X32; then
9395       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9396     else
9397       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9398     fi
9399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9400     ;;
9401    hppa*64*)
9402      shrext_cmds='.sl'
9403      hardcode_into_libs=yes
9404      dynamic_linker="$host_os dld.sl"
9405      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9406      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408      soname_spec='${libname}${release}${shared_ext}$major'
9409      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9410      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9411      ;;
9412    *)
9413     shrext_cmds='.sl'
9414     dynamic_linker="$host_os dld.sl"
9415     shlibpath_var=SHLIB_PATH
9416     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418     soname_spec='${libname}${release}${shared_ext}$major'
9419     ;;
9420   esac
9421   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9422   postinstall_cmds='chmod 555 $lib'
9423   ;;
9424
9425 interix3*)
9426   version_type=linux
9427   need_lib_prefix=no
9428   need_version=no
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   shlibpath_overrides_runpath=no
9434   hardcode_into_libs=yes
9435   ;;
9436
9437 irix5* | irix6* | nonstopux*)
9438   case $host_os in
9439     nonstopux*) version_type=nonstopux ;;
9440     *)
9441         if test "$lt_cv_prog_gnu_ld" = yes; then
9442                 version_type=linux
9443         else
9444                 version_type=irix
9445         fi ;;
9446   esac
9447   need_lib_prefix=no
9448   need_version=no
9449   soname_spec='${libname}${release}${shared_ext}$major'
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9451   case $host_os in
9452   irix5* | nonstopux*)
9453     libsuff= shlibsuff=
9454     ;;
9455   *)
9456     case $LD in # libtool.m4 will add one of these switches to LD
9457     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9458       libsuff= shlibsuff= libmagic=32-bit;;
9459     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9460       libsuff=32 shlibsuff=N32 libmagic=N32;;
9461     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9462       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9463     *) libsuff= shlibsuff= libmagic=never-match;;
9464     esac
9465     ;;
9466   esac
9467   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9468   shlibpath_overrides_runpath=no
9469   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9470   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9471   hardcode_into_libs=yes
9472   ;;
9473
9474 # No shared lib support for Linux oldld, aout, or coff.
9475 linux*oldld* | linux*aout* | linux*coff*)
9476   dynamic_linker=no
9477   ;;
9478
9479 # This must be Linux ELF.
9480 linux*)
9481   version_type=linux
9482   need_lib_prefix=no
9483   need_version=no
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9487   shlibpath_var=LD_LIBRARY_PATH
9488   shlibpath_overrides_runpath=no
9489   # This implies no fast_install, which is unacceptable.
9490   # Some rework will be needed to allow for fast_install
9491   # before this can be enabled.
9492   hardcode_into_libs=yes
9493
9494   # Append ld.so.conf contents to the search path
9495   if test -f /etc/ld.so.conf; then
9496     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' ' '`
9497     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9498   fi
9499
9500   # We used to test for /lib/ld.so.1 and disable shared libraries on
9501   # powerpc, because MkLinux only supported shared libraries with the
9502   # GNU dynamic linker.  Since this was broken with cross compilers,
9503   # most powerpc-linux boxes support dynamic linking these days and
9504   # people can always --disable-shared, the test was removed, and we
9505   # assume the GNU/Linux dynamic linker is in use.
9506   dynamic_linker='GNU/Linux ld.so'
9507   ;;
9508
9509 knetbsd*-gnu)
9510   version_type=linux
9511   need_lib_prefix=no
9512   need_version=no
9513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514   soname_spec='${libname}${release}${shared_ext}$major'
9515   shlibpath_var=LD_LIBRARY_PATH
9516   shlibpath_overrides_runpath=no
9517   hardcode_into_libs=yes
9518   dynamic_linker='GNU ld.so'
9519   ;;
9520
9521 netbsd*)
9522   version_type=sunos
9523   need_lib_prefix=no
9524   need_version=no
9525   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9528     dynamic_linker='NetBSD (a.out) ld.so'
9529   else
9530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9531     soname_spec='${libname}${release}${shared_ext}$major'
9532     dynamic_linker='NetBSD ld.elf_so'
9533   fi
9534   shlibpath_var=LD_LIBRARY_PATH
9535   shlibpath_overrides_runpath=yes
9536   hardcode_into_libs=yes
9537   ;;
9538
9539 newsos6)
9540   version_type=linux
9541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542   shlibpath_var=LD_LIBRARY_PATH
9543   shlibpath_overrides_runpath=yes
9544   ;;
9545
9546 nto-qnx*)
9547   version_type=linux
9548   need_lib_prefix=no
9549   need_version=no
9550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551   soname_spec='${libname}${release}${shared_ext}$major'
9552   shlibpath_var=LD_LIBRARY_PATH
9553   shlibpath_overrides_runpath=yes
9554   ;;
9555
9556 openbsd*)
9557   version_type=sunos
9558   sys_lib_dlsearch_path_spec="/usr/lib"
9559   need_lib_prefix=no
9560   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9561   case $host_os in
9562     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9563     *)                         need_version=no  ;;
9564   esac
9565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9567   shlibpath_var=LD_LIBRARY_PATH
9568   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569     case $host_os in
9570       openbsd2.[89] | openbsd2.[89].*)
9571         shlibpath_overrides_runpath=no
9572         ;;
9573       *)
9574         shlibpath_overrides_runpath=yes
9575         ;;
9576       esac
9577   else
9578     shlibpath_overrides_runpath=yes
9579   fi
9580   ;;
9581
9582 os2*)
9583   libname_spec='$name'
9584   shrext_cmds=".dll"
9585   need_lib_prefix=no
9586   library_names_spec='$libname${shared_ext} $libname.a'
9587   dynamic_linker='OS/2 ld.exe'
9588   shlibpath_var=LIBPATH
9589   ;;
9590
9591 osf3* | osf4* | osf5*)
9592   version_type=osf
9593   need_lib_prefix=no
9594   need_version=no
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9599   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9600   ;;
9601
9602 solaris*)
9603   version_type=linux
9604   need_lib_prefix=no
9605   need_version=no
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   shlibpath_var=LD_LIBRARY_PATH
9609   shlibpath_overrides_runpath=yes
9610   hardcode_into_libs=yes
9611   # ldd complains unless libraries are executable
9612   postinstall_cmds='chmod +x $lib'
9613   ;;
9614
9615 sunos4*)
9616   version_type=sunos
9617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9619   shlibpath_var=LD_LIBRARY_PATH
9620   shlibpath_overrides_runpath=yes
9621   if test "$with_gnu_ld" = yes; then
9622     need_lib_prefix=no
9623   fi
9624   need_version=yes
9625   ;;
9626
9627 sysv4 | sysv4.3*)
9628   version_type=linux
9629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630   soname_spec='${libname}${release}${shared_ext}$major'
9631   shlibpath_var=LD_LIBRARY_PATH
9632   case $host_vendor in
9633     sni)
9634       shlibpath_overrides_runpath=no
9635       need_lib_prefix=no
9636       export_dynamic_flag_spec='${wl}-Blargedynsym'
9637       runpath_var=LD_RUN_PATH
9638       ;;
9639     siemens)
9640       need_lib_prefix=no
9641       ;;
9642     motorola)
9643       need_lib_prefix=no
9644       need_version=no
9645       shlibpath_overrides_runpath=no
9646       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9647       ;;
9648   esac
9649   ;;
9650
9651 sysv4*MP*)
9652   if test -d /usr/nec ;then
9653     version_type=linux
9654     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9655     soname_spec='$libname${shared_ext}.$major'
9656     shlibpath_var=LD_LIBRARY_PATH
9657   fi
9658   ;;
9659
9660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9661   version_type=freebsd-elf
9662   need_lib_prefix=no
9663   need_version=no
9664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9665   soname_spec='${libname}${release}${shared_ext}$major'
9666   shlibpath_var=LD_LIBRARY_PATH
9667   hardcode_into_libs=yes
9668   if test "$with_gnu_ld" = yes; then
9669     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9670     shlibpath_overrides_runpath=no
9671   else
9672     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9673     shlibpath_overrides_runpath=yes
9674     case $host_os in
9675       sco3.2v5*)
9676         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9677         ;;
9678     esac
9679   fi
9680   sys_lib_dlsearch_path_spec='/usr/lib'
9681   ;;
9682
9683 uts4*)
9684   version_type=linux
9685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686   soname_spec='${libname}${release}${shared_ext}$major'
9687   shlibpath_var=LD_LIBRARY_PATH
9688   ;;
9689
9690 *)
9691   dynamic_linker=no
9692   ;;
9693 esac
9694 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9695 echo "${ECHO_T}$dynamic_linker" >&6; }
9696 test "$dynamic_linker" = no && can_build_shared=no
9697
9698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699 if test "$GCC" = yes; then
9700   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9701 fi
9702
9703
9704 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9705 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9706 if test "${libltdl_cv_shlibext+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709
9710 module=yes
9711 eval libltdl_cv_shlibext=$shrext_cmds
9712
9713 fi
9714 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9715 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9716 if test -n "$libltdl_cv_shlibext"; then
9717
9718 cat >>confdefs.h <<_ACEOF
9719 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9720 _ACEOF
9721
9722 fi
9723
9724
9725 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9726 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9727 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   libltdl_cv_shlibpath_var="$shlibpath_var"
9731 fi
9732 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9733 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9734 if test -n "$libltdl_cv_shlibpath_var"; then
9735
9736 cat >>confdefs.h <<_ACEOF
9737 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9738 _ACEOF
9739
9740 fi
9741
9742
9743 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9744 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9745 if test "${libltdl_cv_sys_search_path+set}" = set; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9749 fi
9750 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9751 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9752 if test -n "$libltdl_cv_sys_search_path"; then
9753   sys_search_path=
9754   for dir in $libltdl_cv_sys_search_path; do
9755     if test -z "$sys_search_path"; then
9756       sys_search_path="$dir"
9757     else
9758       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9759     fi
9760   done
9761
9762 cat >>confdefs.h <<_ACEOF
9763 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9764 _ACEOF
9765
9766 fi
9767
9768 { echo "$as_me:$LINENO: checking for objdir" >&5
9769 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9770 if test "${libltdl_cv_objdir+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   libltdl_cv_objdir="$objdir"
9774   if test -n "$objdir"; then
9775     :
9776   else
9777     rm -f .libs 2>/dev/null
9778     mkdir .libs 2>/dev/null
9779     if test -d .libs; then
9780       libltdl_cv_objdir=.libs
9781     else
9782       # MS-DOS does not allow filenames that begin with a dot.
9783       libltdl_cv_objdir=_libs
9784     fi
9785   rmdir .libs 2>/dev/null
9786   fi
9787
9788 fi
9789 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9790 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9794 _ACEOF
9795
9796
9797
9798
9799
9800
9801 # Check for command to grab the raw symbol name followed by C symbol from nm.
9802 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9803 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9804 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807
9808 # These are sane defaults that work on at least a few old systems.
9809 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9810
9811 # Character class describing NM global symbol codes.
9812 symcode='[BCDEGRST]'
9813
9814 # Regexp to match symbols that can be accessed directly from C.
9815 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9816
9817 # Transform an extracted symbol line into a proper C declaration
9818 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9819
9820 # Transform an extracted symbol line into symbol name and symbol address
9821 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'"
9822
9823 # Define system-specific variables.
9824 case $host_os in
9825 aix*)
9826   symcode='[BCDT]'
9827   ;;
9828 cygwin* | mingw* | pw32*)
9829   symcode='[ABCDGISTW]'
9830   ;;
9831 hpux*) # Its linker distinguishes data from code symbols
9832   if test "$host_cpu" = ia64; then
9833     symcode='[ABCDEGRST]'
9834   fi
9835   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9836   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'"
9837   ;;
9838 linux*)
9839   if test "$host_cpu" = ia64; then
9840     symcode='[ABCDGIRSTW]'
9841     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9842     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'"
9843   fi
9844   ;;
9845 irix* | nonstopux*)
9846   symcode='[BCDEGRST]'
9847   ;;
9848 osf*)
9849   symcode='[BCDEGQRST]'
9850   ;;
9851 solaris*)
9852   symcode='[BDRT]'
9853   ;;
9854 sco3.2v5*)
9855   symcode='[DT]'
9856   ;;
9857 sysv4.2uw2*)
9858   symcode='[DT]'
9859   ;;
9860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9861   symcode='[ABDT]'
9862   ;;
9863 sysv4)
9864   symcode='[DFNSTU]'
9865   ;;
9866 esac
9867
9868 # Handle CRLF in mingw tool chain
9869 opt_cr=
9870 case $build_os in
9871 mingw*)
9872   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9873   ;;
9874 esac
9875
9876 # If we're using GNU nm, then use its standard symbol codes.
9877 case `$NM -V 2>&1` in
9878 *GNU* | *'with BFD'*)
9879   symcode='[ABCDGIRSTW]' ;;
9880 esac
9881
9882 # Try without a prefix undercore, then with it.
9883 for ac_symprfx in "" "_"; do
9884
9885   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9886   symxfrm="\\1 $ac_symprfx\\2 \\2"
9887
9888   # Write the raw and C identifiers.
9889   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9890
9891   # Check to see that the pipe works correctly.
9892   pipe_works=no
9893
9894   rm -f conftest*
9895   cat > conftest.$ac_ext <<EOF
9896 #ifdef __cplusplus
9897 extern "C" {
9898 #endif
9899 char nm_test_var;
9900 void nm_test_func(){}
9901 #ifdef __cplusplus
9902 }
9903 #endif
9904 int main(){nm_test_var='a';nm_test_func();return(0);}
9905 EOF
9906
9907   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; then
9912     # Now try to grab the symbols.
9913     nlist=conftest.nm
9914     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9915   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } && test -s "$nlist"; then
9919       # Try sorting and uniquifying the output.
9920       if sort "$nlist" | uniq > "$nlist"T; then
9921         mv -f "$nlist"T "$nlist"
9922       else
9923         rm -f "$nlist"T
9924       fi
9925
9926       # Make sure that we snagged all the symbols we need.
9927       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9928         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9929           cat <<EOF > conftest.$ac_ext
9930 #ifdef __cplusplus
9931 extern "C" {
9932 #endif
9933
9934 EOF
9935           # Now generate the symbol file.
9936           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9937
9938           cat <<EOF >> conftest.$ac_ext
9939 #if defined (__STDC__) && __STDC__
9940 # define lt_ptr_t void *
9941 #else
9942 # define lt_ptr_t char *
9943 # define const
9944 #endif
9945
9946 /* The mapping between symbol names and symbols. */
9947 const struct {
9948   const char *name;
9949   lt_ptr_t address;
9950 }
9951 lt_preloaded_symbols[] =
9952 {
9953 EOF
9954           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9955           cat <<\EOF >> conftest.$ac_ext
9956   {0, (lt_ptr_t) 0}
9957 };
9958
9959 #ifdef __cplusplus
9960 }
9961 #endif
9962 EOF
9963           # Now try linking the two files.
9964           mv conftest.$ac_objext conftstm.$ac_objext
9965           lt_save_LIBS="$LIBS"
9966           lt_save_CFLAGS="$CFLAGS"
9967           LIBS="conftstm.$ac_objext"
9968           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9969           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970   (eval $ac_link) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9974             pipe_works=yes
9975           fi
9976           LIBS="$lt_save_LIBS"
9977           CFLAGS="$lt_save_CFLAGS"
9978         else
9979           echo "cannot find nm_test_func in $nlist" >&5
9980         fi
9981       else
9982         echo "cannot find nm_test_var in $nlist" >&5
9983       fi
9984     else
9985       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9986     fi
9987   else
9988     echo "$progname: failed program was:" >&5
9989     cat conftest.$ac_ext >&5
9990   fi
9991   rm -f conftest* conftst*
9992
9993   # Do not use the global_symbol_pipe unless it works.
9994   if test "$pipe_works" = yes; then
9995     break
9996   else
9997     lt_cv_sys_global_symbol_pipe=
9998   fi
9999 done
10000
10001 fi
10002
10003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10004   lt_cv_sys_global_symbol_to_cdecl=
10005 fi
10006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10007   { echo "$as_me:$LINENO: result: failed" >&5
10008 echo "${ECHO_T}failed" >&6; }
10009 else
10010   { echo "$as_me:$LINENO: result: ok" >&5
10011 echo "${ECHO_T}ok" >&6; }
10012 fi
10013
10014
10015 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10016 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10017 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10021     libltdl_cv_preloaded_symbols=yes
10022   else
10023     libltdl_cv_preloaded_symbols=no
10024   fi
10025
10026 fi
10027 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10028 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10029 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10030
10031 cat >>confdefs.h <<\_ACEOF
10032 #define HAVE_PRELOADED_SYMBOLS 1
10033 _ACEOF
10034
10035 fi
10036
10037 LIBADD_DL=
10038
10039 ac_ext=c
10040 ac_cpp='$CPP $CPPFLAGS'
10041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10044
10045
10046 { echo "$as_me:$LINENO: checking for shl_load" >&5
10047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10048 if test "${ac_cv_func_shl_load+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10059 #define shl_load innocuous_shl_load
10060
10061 /* System header to define __stub macros and hopefully few prototypes,
10062     which can conflict with char shl_load (); below.
10063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064     <limits.h> exists even on freestanding compilers.  */
10065
10066 #ifdef __STDC__
10067 # include <limits.h>
10068 #else
10069 # include <assert.h>
10070 #endif
10071
10072 #undef shl_load
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075    Use char because int might match the return type of a GCC
10076    builtin and then its argument prototype would still apply.  */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char shl_load ();
10081 /* The GNU C library defines this for functions which it implements
10082     to always fail with ENOSYS.  Some functions are actually named
10083     something starting with __ and the normal name is an alias.  */
10084 #if defined __stub_shl_load || defined __stub___shl_load
10085 choke me
10086 #endif
10087
10088 int
10089 main ()
10090 {
10091 return shl_load ();
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_link") 2>conftest.er1
10104   ac_status=$?
10105   grep -v '^ *+' conftest.er1 >conftest.err
10106   rm -f conftest.er1
10107   cat conftest.err >&5
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } &&
10110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10111   { (case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_try") 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; } &&
10120          { ac_try='test -s conftest$ac_exeext'
10121   { (case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_try") 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; }; then
10130   ac_cv_func_shl_load=yes
10131 else
10132   echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135         ac_cv_func_shl_load=no
10136 fi
10137
10138 rm -f core conftest.err conftest.$ac_objext \
10139       conftest$ac_exeext conftest.$ac_ext
10140 fi
10141 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10142 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10143 if test $ac_cv_func_shl_load = yes; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_SHL_LOAD 1
10147 _ACEOF
10148
10149 else
10150   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10151 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldld  $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165    Use char because int might match the return type of a GCC
10166    builtin and then its argument prototype would still apply.  */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char shl_load ();
10171 int
10172 main ()
10173 {
10174 return shl_load ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186   (eval "$ac_link") 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194   { (case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_try") 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; } &&
10203          { ac_try='test -s conftest$ac_exeext'
10204   { (case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_try") 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_lib_dld_shl_load=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218         ac_cv_lib_dld_shl_load=no
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext \
10222       conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10224 fi
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10226 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10227 if test $ac_cv_lib_dld_shl_load = yes; then
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_SHL_LOAD 1
10231 _ACEOF
10232
10233         LIBADD_DL="$LIBADD_DL -ldld"
10234 else
10235   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldl  $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dlopen ();
10256 int
10257 main ()
10258 {
10259 return dlopen ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268   *) ac_try_echo=$ac_try;;
10269 esac
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271   (eval "$ac_link") 2>conftest.er1
10272   ac_status=$?
10273   grep -v '^ *+' conftest.er1 >conftest.err
10274   rm -f conftest.er1
10275   cat conftest.err >&5
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } &&
10278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10279   { (case "(($ac_try" in
10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281   *) ac_try_echo=$ac_try;;
10282 esac
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284   (eval "$ac_try") 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; } &&
10288          { ac_try='test -s conftest$ac_exeext'
10289   { (case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_try") 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; }; then
10298   ac_cv_lib_dl_dlopen=yes
10299 else
10300   echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303         ac_cv_lib_dl_dlopen=no
10304 fi
10305
10306 rm -f core conftest.err conftest.$ac_objext \
10307       conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10309 fi
10310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10312 if test $ac_cv_lib_dl_dlopen = yes; then
10313
10314 cat >>confdefs.h <<\_ACEOF
10315 #define HAVE_LIBDL 1
10316 _ACEOF
10317
10318                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10319 else
10320   cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 #if HAVE_DLFCN_H
10327 #  include <dlfcn.h>
10328 #endif
10329
10330 int
10331 main ()
10332 {
10333 dlopen(0, 0);
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345   (eval "$ac_link") 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353   { (case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_try") 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; } &&
10362          { ac_try='test -s conftest$ac_exeext'
10363   { (case "(($ac_try" in
10364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365   *) ac_try_echo=$ac_try;;
10366 esac
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368   (eval "$ac_try") 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }; }; then
10372
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_LIBDL 1
10375 _ACEOF
10376  libltdl_cv_func_dlopen="yes"
10377 else
10378   echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10380
10381         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10382 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386   ac_check_lib_save_LIBS=$LIBS
10387 LIBS="-lsvld  $LIBS"
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394
10395 /* Override any GCC internal prototype to avoid an error.
10396    Use char because int might match the return type of a GCC
10397    builtin and then its argument prototype would still apply.  */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 char dlopen ();
10402 int
10403 main ()
10404 {
10405 return dlopen ();
10406   ;
10407   return 0;
10408 }
10409 _ACEOF
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (ac_try="$ac_link"
10412 case "(($ac_try" in
10413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414   *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417   (eval "$ac_link") 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10434          { ac_try='test -s conftest$ac_exeext'
10435   { (case "(($ac_try" in
10436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437   *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440   (eval "$ac_try") 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   ac_cv_lib_svld_dlopen=yes
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449         ac_cv_lib_svld_dlopen=no
10450 fi
10451
10452 rm -f core conftest.err conftest.$ac_objext \
10453       conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10455 fi
10456 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10457 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10458 if test $ac_cv_lib_svld_dlopen = yes; then
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_LIBDL 1
10462 _ACEOF
10463
10464                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10465 else
10466   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10467 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10468 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   ac_check_lib_save_LIBS=$LIBS
10472 LIBS="-ldld  $LIBS"
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h.  */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h.  */
10479
10480 /* Override any GCC internal prototype to avoid an error.
10481    Use char because int might match the return type of a GCC
10482    builtin and then its argument prototype would still apply.  */
10483 #ifdef __cplusplus
10484 extern "C"
10485 #endif
10486 char dld_link ();
10487 int
10488 main ()
10489 {
10490 return dld_link ();
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499   *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502   (eval "$ac_link") 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10510   { (case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515   (eval "$ac_try") 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; } &&
10519          { ac_try='test -s conftest$ac_exeext'
10520   { (case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_try") 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; }; then
10529   ac_cv_lib_dld_dld_link=yes
10530 else
10531   echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534         ac_cv_lib_dld_dld_link=no
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext \
10538       conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10543 if test $ac_cv_lib_dld_dld_link = yes; then
10544
10545 cat >>confdefs.h <<\_ACEOF
10546 #define HAVE_DLD 1
10547 _ACEOF
10548
10549                 LIBADD_DL="$LIBADD_DL -ldld"
10550 else
10551   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10552 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10553 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10564 #define _dyld_func_lookup innocuous__dyld_func_lookup
10565
10566 /* System header to define __stub macros and hopefully few prototypes,
10567     which can conflict with char _dyld_func_lookup (); below.
10568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569     <limits.h> exists even on freestanding compilers.  */
10570
10571 #ifdef __STDC__
10572 # include <limits.h>
10573 #else
10574 # include <assert.h>
10575 #endif
10576
10577 #undef _dyld_func_lookup
10578
10579 /* Override any GCC internal prototype to avoid an error.
10580    Use char because int might match the return type of a GCC
10581    builtin and then its argument prototype would still apply.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char _dyld_func_lookup ();
10586 /* The GNU C library defines this for functions which it implements
10587     to always fail with ENOSYS.  Some functions are actually named
10588     something starting with __ and the normal name is an alias.  */
10589 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10590 choke me
10591 #endif
10592
10593 int
10594 main ()
10595 {
10596 return _dyld_func_lookup ();
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_link") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616   { (case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_try") 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest$ac_exeext'
10626   { (case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_try") 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_cv_func__dyld_func_lookup=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_cv_func__dyld_func_lookup=no
10641 fi
10642
10643 rm -f core conftest.err conftest.$ac_objext \
10644       conftest$ac_exeext conftest.$ac_ext
10645 fi
10646 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10647 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10648 if test $ac_cv_func__dyld_func_lookup = yes; then
10649
10650 cat >>confdefs.h <<\_ACEOF
10651 #define HAVE_DYLD 1
10652 _ACEOF
10653
10654 fi
10655
10656
10657 fi
10658
10659
10660 fi
10661
10662
10663 fi
10664
10665 rm -f core conftest.err conftest.$ac_objext \
10666       conftest$ac_exeext conftest.$ac_ext
10667
10668 fi
10669
10670
10671 fi
10672
10673
10674 fi
10675
10676
10677 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10678 then
10679   lt_save_LIBS="$LIBS"
10680   LIBS="$LIBS $LIBADD_DL"
10681
10682 for ac_func in dlerror
10683 do
10684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10698 #define $ac_func innocuous_$ac_func
10699
10700 /* System header to define __stub macros and hopefully few prototypes,
10701     which can conflict with char $ac_func (); below.
10702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703     <limits.h> exists even on freestanding compilers.  */
10704
10705 #ifdef __STDC__
10706 # include <limits.h>
10707 #else
10708 # include <assert.h>
10709 #endif
10710
10711 #undef $ac_func
10712
10713 /* Override any GCC internal prototype to avoid an error.
10714    Use char because int might match the return type of a GCC
10715    builtin and then its argument prototype would still apply.  */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char $ac_func ();
10720 /* The GNU C library defines this for functions which it implements
10721     to always fail with ENOSYS.  Some functions are actually named
10722     something starting with __ and the normal name is an alias.  */
10723 #if defined __stub_$ac_func || defined __stub___$ac_func
10724 choke me
10725 #endif
10726
10727 int
10728 main ()
10729 {
10730 return $ac_func ();
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (ac_try="$ac_link"
10737 case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742   (eval "$ac_link") 2>conftest.er1
10743   ac_status=$?
10744   grep -v '^ *+' conftest.er1 >conftest.err
10745   rm -f conftest.er1
10746   cat conftest.err >&5
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); } &&
10749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10750   { (case "(($ac_try" in
10751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752   *) ac_try_echo=$ac_try;;
10753 esac
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755   (eval "$ac_try") 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; } &&
10759          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10769   eval "$as_ac_var=yes"
10770 else
10771   echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10773
10774         eval "$as_ac_var=no"
10775 fi
10776
10777 rm -f core conftest.err conftest.$ac_objext \
10778       conftest$ac_exeext conftest.$ac_ext
10779 fi
10780 ac_res=`eval echo '${'$as_ac_var'}'`
10781                { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 if test `eval echo '${'$as_ac_var'}'` = yes; then
10784   cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10786 _ACEOF
10787
10788 fi
10789 done
10790
10791   LIBS="$lt_save_LIBS"
10792 fi
10793 ac_ext=c
10794 ac_cpp='$CPP $CPPFLAGS'
10795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10798
10799
10800
10801 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10802 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10803 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10804   echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806   ac_cv_sys_symbol_underscore=no
10807   cat > conftest.$ac_ext <<EOF
10808 void nm_test_func(){}
10809 int main(){nm_test_func;return 0;}
10810 EOF
10811   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812   (eval $ac_compile) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; then
10816     # Now try to grab the symbols.
10817     ac_nlist=conftest.nm
10818     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10819   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } && test -s "$ac_nlist"; then
10823       # See whether the symbols have a leading underscore.
10824       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10825         ac_cv_sys_symbol_underscore=yes
10826       else
10827         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10828           :
10829         else
10830           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10831         fi
10832       fi
10833     else
10834       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10835     fi
10836   else
10837     echo "configure: failed program was:" >&5
10838     cat conftest.c >&5
10839   fi
10840   rm -rf conftest*
10841
10842 fi
10843 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10844 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10845
10846
10847 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10848   if test x"$libltdl_cv_func_dlopen" = xyes ||
10849      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10850         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10851 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10852 if test "${libltdl_cv_need_uscore+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   libltdl_cv_need_uscore=unknown
10856           save_LIBS="$LIBS"
10857           LIBS="$LIBS $LIBADD_DL"
10858           if test "$cross_compiling" = yes; then :
10859   libltdl_cv_need_uscore=cross
10860 else
10861   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862   lt_status=$lt_dlunknown
10863   cat > conftest.$ac_ext <<EOF
10864 #line 10864 "configure"
10865 #include "confdefs.h"
10866
10867 #if HAVE_DLFCN_H
10868 #include <dlfcn.h>
10869 #endif
10870
10871 #include <stdio.h>
10872
10873 #ifdef RTLD_GLOBAL
10874 #  define LT_DLGLOBAL           RTLD_GLOBAL
10875 #else
10876 #  ifdef DL_GLOBAL
10877 #    define LT_DLGLOBAL         DL_GLOBAL
10878 #  else
10879 #    define LT_DLGLOBAL         0
10880 #  endif
10881 #endif
10882
10883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10884    find out it does not work in some platform. */
10885 #ifndef LT_DLLAZY_OR_NOW
10886 #  ifdef RTLD_LAZY
10887 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10888 #  else
10889 #    ifdef DL_LAZY
10890 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10891 #    else
10892 #      ifdef RTLD_NOW
10893 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10894 #      else
10895 #        ifdef DL_NOW
10896 #          define LT_DLLAZY_OR_NOW      DL_NOW
10897 #        else
10898 #          define LT_DLLAZY_OR_NOW      0
10899 #        endif
10900 #      endif
10901 #    endif
10902 #  endif
10903 #endif
10904
10905 #ifdef __cplusplus
10906 extern "C" void exit (int);
10907 #endif
10908
10909 void fnord() { int i=42;}
10910 int main ()
10911 {
10912   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10913   int status = $lt_dlunknown;
10914
10915   if (self)
10916     {
10917       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10918       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10919       /* dlclose (self); */
10920     }
10921   else
10922     puts (dlerror ());
10923
10924     exit (status);
10925 }
10926 EOF
10927   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928   (eval $ac_link) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10932     (./conftest; exit; ) >&5 2>/dev/null
10933     lt_status=$?
10934     case x$lt_status in
10935       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10936       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10937       x$lt_dlunknown|x*)  ;;
10938     esac
10939   else :
10940     # compilation failed
10941
10942   fi
10943 fi
10944 rm -fr conftest*
10945
10946           LIBS="$save_LIBS"
10947
10948 fi
10949 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10950 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10951   fi
10952 fi
10953
10954 if test x"$libltdl_cv_need_uscore" = xyes; then
10955
10956 cat >>confdefs.h <<\_ACEOF
10957 #define NEED_USCORE 1
10958 _ACEOF
10959
10960 fi
10961
10962
10963 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10964 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10965 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   # PORTME does your system automatically load deplibs for dlopen?
10969   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10970   # For now, we just catch OSes we know something about -- in the
10971   # future, we'll try test this programmatically.
10972   libltdl_cv_sys_dlopen_deplibs=unknown
10973   case "$host_os" in
10974   aix3*|aix4.1.*|aix4.2.*)
10975     # Unknown whether this is true for these versions of AIX, but
10976     # we want this `case' here to explicitly catch those versions.
10977     libltdl_cv_sys_dlopen_deplibs=unknown
10978     ;;
10979   aix[45]*)
10980     libltdl_cv_sys_dlopen_deplibs=yes
10981     ;;
10982   darwin*)
10983     # Assuming the user has installed a libdl from somewhere, this is true
10984     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10985     libltdl_cv_sys_dlopen_deplibs=yes
10986     ;;
10987   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10988     # GNU and its variants, using gnu ld.so (Glibc)
10989     libltdl_cv_sys_dlopen_deplibs=yes
10990     ;;
10991   hpux10*|hpux11*)
10992     libltdl_cv_sys_dlopen_deplibs=yes
10993     ;;
10994   interix*)
10995     libltdl_cv_sys_dlopen_deplibs=yes
10996     ;;
10997   irix[12345]*|irix6.[01]*)
10998     # Catch all versions of IRIX before 6.2, and indicate that we don't
10999     # know how it worked for any of those versions.
11000     libltdl_cv_sys_dlopen_deplibs=unknown
11001     ;;
11002   irix*)
11003     # The case above catches anything before 6.2, and it's known that
11004     # at 6.2 and later dlopen does load deplibs.
11005     libltdl_cv_sys_dlopen_deplibs=yes
11006     ;;
11007   netbsd*)
11008     libltdl_cv_sys_dlopen_deplibs=yes
11009     ;;
11010   openbsd*)
11011     libltdl_cv_sys_dlopen_deplibs=yes
11012     ;;
11013   osf[1234]*)
11014     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11015     # it did *not* use an RPATH in a shared library to find objects the
11016     # library depends on, so we explictly say `no'.
11017     libltdl_cv_sys_dlopen_deplibs=no
11018     ;;
11019   osf5.0|osf5.0a|osf5.1)
11020     # dlopen *does* load deplibs and with the right loader patch applied
11021     # it even uses RPATH in a shared library to search for shared objects
11022     # that the library depends on, but there's no easy way to know if that
11023     # patch is installed.  Since this is the case, all we can really
11024     # say is unknown -- it depends on the patch being installed.  If
11025     # it is, this changes to `yes'.  Without it, it would be `no'.
11026     libltdl_cv_sys_dlopen_deplibs=unknown
11027     ;;
11028   osf*)
11029     # the two cases above should catch all versions of osf <= 5.1.  Read
11030     # the comments above for what we know about them.
11031     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11032     # is used to find them so we can finally say `yes'.
11033     libltdl_cv_sys_dlopen_deplibs=yes
11034     ;;
11035   solaris*)
11036     libltdl_cv_sys_dlopen_deplibs=yes
11037     ;;
11038   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11039     libltdl_cv_sys_dlopen_deplibs=yes
11040     ;;
11041   esac
11042
11043 fi
11044 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11045 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11046 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11047
11048 cat >>confdefs.h <<\_ACEOF
11049 #define LTDL_DLOPEN_DEPLIBS 1
11050 _ACEOF
11051
11052 fi
11053
11054
11055 for ac_header in argz.h
11056 do
11057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 fi
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065                { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11067 else
11068   # Is the header compilable?
11069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 $ac_includes_default
11078 #include <$ac_header>
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_try") 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   ac_header_compiler=yes
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119         ac_header_compiler=no
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
11125
11126 # Is the header present?
11127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <$ac_header>
11136 _ACEOF
11137 if { (ac_try="$ac_cpp conftest.$ac_ext"
11138 case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144   ac_status=$?
11145   grep -v '^ *+' conftest.er1 >conftest.err
11146   rm -f conftest.er1
11147   cat conftest.err >&5
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } >/dev/null; then
11150   if test -s conftest.err; then
11151     ac_cpp_err=$ac_c_preproc_warn_flag
11152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11153   else
11154     ac_cpp_err=
11155   fi
11156 else
11157   ac_cpp_err=yes
11158 fi
11159 if test -z "$ac_cpp_err"; then
11160   ac_header_preproc=yes
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165   ac_header_preproc=no
11166 fi
11167
11168 rm -f conftest.err conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170 echo "${ECHO_T}$ac_header_preproc" >&6; }
11171
11172 # So?  What about this header?
11173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174   yes:no: )
11175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179     ac_header_preproc=yes
11180     ;;
11181   no:yes:* )
11182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11194     ( cat <<\_ASBOX
11195 ## ----------------------------------- ##
11196 ## Report this to llvmbugs@cs.uiuc.edu ##
11197 ## ----------------------------------- ##
11198 _ASBOX
11199      ) | sed "s/^/$as_me: WARNING:     /" >&2
11200     ;;
11201 esac
11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207   eval "$as_ac_Header=\$ac_header_preproc"
11208 fi
11209 ac_res=`eval echo '${'$as_ac_Header'}'`
11210                { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11212
11213 fi
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215   cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 _ACEOF
11218
11219 fi
11220
11221 done
11222
11223
11224 { echo "$as_me:$LINENO: checking for error_t" >&5
11225 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11226 if test "${ac_cv_type_error_t+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229   cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h.  */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h.  */
11235 #if HAVE_ARGZ_H
11236 #  include <argz.h>
11237 #endif
11238
11239 typedef error_t ac__type_new_;
11240 int
11241 main ()
11242 {
11243 if ((ac__type_new_ *) 0)
11244   return 0;
11245 if (sizeof (ac__type_new_))
11246   return 0;
11247   ;
11248   return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_compile") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; } &&
11275          { ac_try='test -s conftest.$ac_objext'
11276   { (case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_try") 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_type_error_t=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290         ac_cv_type_error_t=no
11291 fi
11292
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 fi
11295 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11296 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11297 if test $ac_cv_type_error_t = yes; then
11298
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_ERROR_T 1
11301 _ACEOF
11302
11303
11304 else
11305
11306 cat >>confdefs.h <<\_ACEOF
11307 #define error_t int
11308 _ACEOF
11309
11310 fi
11311
11312
11313
11314
11315
11316
11317
11318 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11319 do
11320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11334 #define $ac_func innocuous_$ac_func
11335
11336 /* System header to define __stub macros and hopefully few prototypes,
11337     which can conflict with char $ac_func (); below.
11338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339     <limits.h> exists even on freestanding compilers.  */
11340
11341 #ifdef __STDC__
11342 # include <limits.h>
11343 #else
11344 # include <assert.h>
11345 #endif
11346
11347 #undef $ac_func
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char $ac_func ();
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11360 choke me
11361 #endif
11362
11363 int
11364 main ()
11365 {
11366 return $ac_func ();
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_link") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386   { (case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_try") 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest$ac_exeext'
11396   { (case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_try") 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405   eval "$as_ac_var=yes"
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410         eval "$as_ac_var=no"
11411 fi
11412
11413 rm -f core conftest.err conftest.$ac_objext \
11414       conftest$ac_exeext conftest.$ac_ext
11415 fi
11416 ac_res=`eval echo '${'$as_ac_var'}'`
11417                { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420   cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11422 _ACEOF
11423
11424 fi
11425 done
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11455                   stdio.h unistd.h
11456 do
11457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 fi
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465                { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467 else
11468   # Is the header compilable?
11469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 $ac_includes_default
11478 #include <$ac_header>
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (ac_try="$ac_compile"
11482 case "(($ac_try" in
11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484   *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487   (eval "$ac_compile") 2>conftest.er1
11488   ac_status=$?
11489   grep -v '^ *+' conftest.er1 >conftest.err
11490   rm -f conftest.er1
11491   cat conftest.err >&5
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } &&
11494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495   { (case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_try") 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest.$ac_objext'
11505   { (case "(($ac_try" in
11506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507   *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510   (eval "$ac_try") 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }; then
11514   ac_header_compiler=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519         ac_header_compiler=no
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11524 echo "${ECHO_T}$ac_header_compiler" >&6; }
11525
11526 # Is the header present?
11527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535 #include <$ac_header>
11536 _ACEOF
11537 if { (ac_try="$ac_cpp conftest.$ac_ext"
11538 case "(($ac_try" in
11539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540   *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11544   ac_status=$?
11545   grep -v '^ *+' conftest.er1 >conftest.err
11546   rm -f conftest.er1
11547   cat conftest.err >&5
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); } >/dev/null; then
11550   if test -s conftest.err; then
11551     ac_cpp_err=$ac_c_preproc_warn_flag
11552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11553   else
11554     ac_cpp_err=
11555   fi
11556 else
11557   ac_cpp_err=yes
11558 fi
11559 if test -z "$ac_cpp_err"; then
11560   ac_header_preproc=yes
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565   ac_header_preproc=no
11566 fi
11567
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11571
11572 # So?  What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574   yes:no: )
11575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579     ac_header_preproc=yes
11580     ;;
11581   no:yes:* )
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11594     ( cat <<\_ASBOX
11595 ## ----------------------------------- ##
11596 ## Report this to llvmbugs@cs.uiuc.edu ##
11597 ## ----------------------------------- ##
11598 _ASBOX
11599      ) | sed "s/^/$as_me: WARNING:     /" >&2
11600     ;;
11601 esac
11602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   eval "$as_ac_Header=\$ac_header_preproc"
11608 fi
11609 ac_res=`eval echo '${'$as_ac_Header'}'`
11610                { echo "$as_me:$LINENO: result: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11612
11613 fi
11614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11617 _ACEOF
11618
11619 fi
11620
11621 done
11622
11623
11624
11625
11626
11627 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11628 do
11629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 fi
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637                { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639 else
11640   # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 $ac_includes_default
11650 #include <$ac_header>
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_compile") 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest.$ac_objext'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_header_compiler=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691         ac_header_compiler=no
11692 fi
11693
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11696 echo "${ECHO_T}$ac_header_compiler" >&6; }
11697
11698 # Is the header present?
11699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707 #include <$ac_header>
11708 _ACEOF
11709 if { (ac_try="$ac_cpp conftest.$ac_ext"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } >/dev/null; then
11722   if test -s conftest.err; then
11723     ac_cpp_err=$ac_c_preproc_warn_flag
11724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725   else
11726     ac_cpp_err=
11727   fi
11728 else
11729   ac_cpp_err=yes
11730 fi
11731 if test -z "$ac_cpp_err"; then
11732   ac_header_preproc=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737   ac_header_preproc=no
11738 fi
11739
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11743
11744 # So?  What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746   yes:no: )
11747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751     ac_header_preproc=yes
11752     ;;
11753   no:yes:* )
11754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11766     ( cat <<\_ASBOX
11767 ## ----------------------------------- ##
11768 ## Report this to llvmbugs@cs.uiuc.edu ##
11769 ## ----------------------------------- ##
11770 _ASBOX
11771      ) | sed "s/^/$as_me: WARNING:     /" >&2
11772     ;;
11773 esac
11774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777   echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779   eval "$as_ac_Header=\$ac_header_preproc"
11780 fi
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782                { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11784
11785 fi
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787   cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11789 _ACEOF
11790
11791 fi
11792
11793 done
11794
11795
11796
11797 for ac_header in string.h strings.h
11798 do
11799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 fi
11806 ac_res=`eval echo '${'$as_ac_Header'}'`
11807                { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 else
11810   # Is the header compilable?
11811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819 $ac_includes_default
11820 #include <$ac_header>
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (ac_try="$ac_compile"
11824 case "(($ac_try" in
11825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826   *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829   (eval "$ac_compile") 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837   { (case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_try") 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); }; } &&
11846          { ac_try='test -s conftest.$ac_objext'
11847   { (case "(($ac_try" in
11848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849   *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852   (eval "$ac_try") 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); }; }; then
11856   ac_header_compiler=yes
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861         ac_header_compiler=no
11862 fi
11863
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866 echo "${ECHO_T}$ac_header_compiler" >&6; }
11867
11868 # Is the header present?
11869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877 #include <$ac_header>
11878 _ACEOF
11879 if { (ac_try="$ac_cpp conftest.$ac_ext"
11880 case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } >/dev/null; then
11892   if test -s conftest.err; then
11893     ac_cpp_err=$ac_c_preproc_warn_flag
11894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11895   else
11896     ac_cpp_err=
11897   fi
11898 else
11899   ac_cpp_err=yes
11900 fi
11901 if test -z "$ac_cpp_err"; then
11902   ac_header_preproc=yes
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907   ac_header_preproc=no
11908 fi
11909
11910 rm -f conftest.err conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11912 echo "${ECHO_T}$ac_header_preproc" >&6; }
11913
11914 # So?  What about this header?
11915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11916   yes:no: )
11917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11921     ac_header_preproc=yes
11922     ;;
11923   no:yes:* )
11924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11936     ( cat <<\_ASBOX
11937 ## ----------------------------------- ##
11938 ## Report this to llvmbugs@cs.uiuc.edu ##
11939 ## ----------------------------------- ##
11940 _ASBOX
11941      ) | sed "s/^/$as_me: WARNING:     /" >&2
11942     ;;
11943 esac
11944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   eval "$as_ac_Header=\$ac_header_preproc"
11950 fi
11951 ac_res=`eval echo '${'$as_ac_Header'}'`
11952                { echo "$as_me:$LINENO: result: $ac_res" >&5
11953 echo "${ECHO_T}$ac_res" >&6; }
11954
11955 fi
11956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 _ACEOF
11960  break
11961 fi
11962
11963 done
11964
11965
11966
11967
11968 for ac_func in strchr index
11969 do
11970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11974   echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976   cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11984 #define $ac_func innocuous_$ac_func
11985
11986 /* System header to define __stub macros and hopefully few prototypes,
11987     which can conflict with char $ac_func (); below.
11988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989     <limits.h> exists even on freestanding compilers.  */
11990
11991 #ifdef __STDC__
11992 # include <limits.h>
11993 #else
11994 # include <assert.h>
11995 #endif
11996
11997 #undef $ac_func
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000    Use char because int might match the return type of a GCC
12001    builtin and then its argument prototype would still apply.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char $ac_func ();
12006 /* The GNU C library defines this for functions which it implements
12007     to always fail with ENOSYS.  Some functions are actually named
12008     something starting with __ and the normal name is an alias.  */
12009 #if defined __stub_$ac_func || defined __stub___$ac_func
12010 choke me
12011 #endif
12012
12013 int
12014 main ()
12015 {
12016 return $ac_func ();
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (ac_try="$ac_link"
12023 case "(($ac_try" in
12024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025   *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028   (eval "$ac_link") 2>conftest.er1
12029   ac_status=$?
12030   grep -v '^ *+' conftest.er1 >conftest.err
12031   rm -f conftest.er1
12032   cat conftest.err >&5
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; } &&
12045          { ac_try='test -s conftest$ac_exeext'
12046   { (case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_try") 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; }; then
12055   eval "$as_ac_var=yes"
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060         eval "$as_ac_var=no"
12061 fi
12062
12063 rm -f core conftest.err conftest.$ac_objext \
12064       conftest$ac_exeext conftest.$ac_ext
12065 fi
12066 ac_res=`eval echo '${'$as_ac_var'}'`
12067                { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12069 if test `eval echo '${'$as_ac_var'}'` = yes; then
12070   cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072 _ACEOF
12073  break
12074 fi
12075 done
12076
12077
12078
12079 for ac_func in strrchr rindex
12080 do
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12095 #define $ac_func innocuous_$ac_func
12096
12097 /* System header to define __stub macros and hopefully few prototypes,
12098     which can conflict with char $ac_func (); below.
12099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100     <limits.h> exists even on freestanding compilers.  */
12101
12102 #ifdef __STDC__
12103 # include <limits.h>
12104 #else
12105 # include <assert.h>
12106 #endif
12107
12108 #undef $ac_func
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111    Use char because int might match the return type of a GCC
12112    builtin and then its argument prototype would still apply.  */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char $ac_func ();
12117 /* The GNU C library defines this for functions which it implements
12118     to always fail with ENOSYS.  Some functions are actually named
12119     something starting with __ and the normal name is an alias.  */
12120 #if defined __stub_$ac_func || defined __stub___$ac_func
12121 choke me
12122 #endif
12123
12124 int
12125 main ()
12126 {
12127 return $ac_func ();
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136   *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139   (eval "$ac_link") 2>conftest.er1
12140   ac_status=$?
12141   grep -v '^ *+' conftest.er1 >conftest.err
12142   rm -f conftest.er1
12143   cat conftest.err >&5
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147   { (case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_try") 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; } &&
12156          { ac_try='test -s conftest$ac_exeext'
12157   { (case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_try") 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   eval "$as_ac_var=yes"
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171         eval "$as_ac_var=no"
12172 fi
12173
12174 rm -f core conftest.err conftest.$ac_objext \
12175       conftest$ac_exeext conftest.$ac_ext
12176 fi
12177 ac_res=`eval echo '${'$as_ac_var'}'`
12178                { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 if test `eval echo '${'$as_ac_var'}'` = yes; then
12181   cat >>confdefs.h <<_ACEOF
12182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183 _ACEOF
12184  break
12185 fi
12186 done
12187
12188
12189
12190 for ac_func in memcpy bcopy
12191 do
12192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198   cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12206 #define $ac_func innocuous_$ac_func
12207
12208 /* System header to define __stub macros and hopefully few prototypes,
12209     which can conflict with char $ac_func (); below.
12210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211     <limits.h> exists even on freestanding compilers.  */
12212
12213 #ifdef __STDC__
12214 # include <limits.h>
12215 #else
12216 # include <assert.h>
12217 #endif
12218
12219 #undef $ac_func
12220
12221 /* Override any GCC internal prototype to avoid an error.
12222    Use char because int might match the return type of a GCC
12223    builtin and then its argument prototype would still apply.  */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 char $ac_func ();
12228 /* The GNU C library defines this for functions which it implements
12229     to always fail with ENOSYS.  Some functions are actually named
12230     something starting with __ and the normal name is an alias.  */
12231 #if defined __stub_$ac_func || defined __stub___$ac_func
12232 choke me
12233 #endif
12234
12235 int
12236 main ()
12237 {
12238 return $ac_func ();
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247   *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250   (eval "$ac_link") 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; } &&
12267          { ac_try='test -s conftest$ac_exeext'
12268   { (case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_try") 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   eval "$as_ac_var=yes"
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282         eval "$as_ac_var=no"
12283 fi
12284
12285 rm -f core conftest.err conftest.$ac_objext \
12286       conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 ac_res=`eval echo '${'$as_ac_var'}'`
12289                { echo "$as_me:$LINENO: result: $ac_res" >&5
12290 echo "${ECHO_T}$ac_res" >&6; }
12291 if test `eval echo '${'$as_ac_var'}'` = yes; then
12292   cat >>confdefs.h <<_ACEOF
12293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294 _ACEOF
12295  break
12296 fi
12297 done
12298
12299
12300
12301 for ac_func in memmove strcmp
12302 do
12303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12317 #define $ac_func innocuous_$ac_func
12318
12319 /* System header to define __stub macros and hopefully few prototypes,
12320     which can conflict with char $ac_func (); below.
12321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322     <limits.h> exists even on freestanding compilers.  */
12323
12324 #ifdef __STDC__
12325 # include <limits.h>
12326 #else
12327 # include <assert.h>
12328 #endif
12329
12330 #undef $ac_func
12331
12332 /* Override any GCC internal prototype to avoid an error.
12333    Use char because int might match the return type of a GCC
12334    builtin and then its argument prototype would still apply.  */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char $ac_func ();
12339 /* The GNU C library defines this for functions which it implements
12340     to always fail with ENOSYS.  Some functions are actually named
12341     something starting with __ and the normal name is an alias.  */
12342 #if defined __stub_$ac_func || defined __stub___$ac_func
12343 choke me
12344 #endif
12345
12346 int
12347 main ()
12348 {
12349 return $ac_func ();
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358   *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361   (eval "$ac_link") 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } &&
12368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369   { (case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_try") 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; } &&
12378          { ac_try='test -s conftest$ac_exeext'
12379   { (case "(($ac_try" in
12380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381   *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384   (eval "$ac_try") 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); }; }; then
12388   eval "$as_ac_var=yes"
12389 else
12390   echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393         eval "$as_ac_var=no"
12394 fi
12395
12396 rm -f core conftest.err conftest.$ac_objext \
12397       conftest$ac_exeext conftest.$ac_ext
12398 fi
12399 ac_res=`eval echo '${'$as_ac_var'}'`
12400                { echo "$as_me:$LINENO: result: $ac_res" >&5
12401 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_var'}'` = yes; then
12403   cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405 _ACEOF
12406
12407 fi
12408 done
12409
12410
12411
12412
12413 for ac_func in closedir opendir readdir
12414 do
12415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12419   echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421   cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12429 #define $ac_func innocuous_$ac_func
12430
12431 /* System header to define __stub macros and hopefully few prototypes,
12432     which can conflict with char $ac_func (); below.
12433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12434     <limits.h> exists even on freestanding compilers.  */
12435
12436 #ifdef __STDC__
12437 # include <limits.h>
12438 #else
12439 # include <assert.h>
12440 #endif
12441
12442 #undef $ac_func
12443
12444 /* Override any GCC internal prototype to avoid an error.
12445    Use char because int might match the return type of a GCC
12446    builtin and then its argument prototype would still apply.  */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char $ac_func ();
12451 /* The GNU C library defines this for functions which it implements
12452     to always fail with ENOSYS.  Some functions are actually named
12453     something starting with __ and the normal name is an alias.  */
12454 #if defined __stub_$ac_func || defined __stub___$ac_func
12455 choke me
12456 #endif
12457
12458 int
12459 main ()
12460 {
12461 return $ac_func ();
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (ac_try="$ac_link"
12468 case "(($ac_try" in
12469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470   *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473   (eval "$ac_link") 2>conftest.er1
12474   ac_status=$?
12475   grep -v '^ *+' conftest.er1 >conftest.err
12476   rm -f conftest.er1
12477   cat conftest.err >&5
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12481   { (case "(($ac_try" in
12482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483   *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486   (eval "$ac_try") 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; } &&
12490          { ac_try='test -s conftest$ac_exeext'
12491   { (case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_try") 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500   eval "$as_ac_var=yes"
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505         eval "$as_ac_var=no"
12506 fi
12507
12508 rm -f core conftest.err conftest.$ac_objext \
12509       conftest$ac_exeext conftest.$ac_ext
12510 fi
12511 ac_res=`eval echo '${'$as_ac_var'}'`
12512                { echo "$as_me:$LINENO: result: $ac_res" >&5
12513 echo "${ECHO_T}$ac_res" >&6; }
12514 if test `eval echo '${'$as_ac_var'}'` = yes; then
12515   cat >>confdefs.h <<_ACEOF
12516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12517 _ACEOF
12518
12519 fi
12520 done
12521
12522
12523 # Check whether --enable-shared was given.
12524 if test "${enable_shared+set}" = set; then
12525   enableval=$enable_shared; p=${PACKAGE-default}
12526     case $enableval in
12527     yes) enable_shared=yes ;;
12528     no) enable_shared=no ;;
12529     *)
12530       enable_shared=no
12531       # Look at the argument we got.  We use all the common list separators.
12532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12533       for pkg in $enableval; do
12534         IFS="$lt_save_ifs"
12535         if test "X$pkg" = "X$p"; then
12536           enable_shared=yes
12537         fi
12538       done
12539       IFS="$lt_save_ifs"
12540       ;;
12541     esac
12542 else
12543   enable_shared=yes
12544 fi
12545
12546
12547 # Check whether --enable-static was given.
12548 if test "${enable_static+set}" = set; then
12549   enableval=$enable_static; p=${PACKAGE-default}
12550     case $enableval in
12551     yes) enable_static=yes ;;
12552     no) enable_static=no ;;
12553     *)
12554      enable_static=no
12555       # Look at the argument we got.  We use all the common list separators.
12556       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12557       for pkg in $enableval; do
12558         IFS="$lt_save_ifs"
12559         if test "X$pkg" = "X$p"; then
12560           enable_static=yes
12561         fi
12562       done
12563       IFS="$lt_save_ifs"
12564       ;;
12565     esac
12566 else
12567   enable_static=yes
12568 fi
12569
12570
12571 # Check whether --enable-fast-install was given.
12572 if test "${enable_fast_install+set}" = set; then
12573   enableval=$enable_fast_install; p=${PACKAGE-default}
12574     case $enableval in
12575     yes) enable_fast_install=yes ;;
12576     no) enable_fast_install=no ;;
12577     *)
12578       enable_fast_install=no
12579       # Look at the argument we got.  We use all the common list separators.
12580       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12581       for pkg in $enableval; do
12582         IFS="$lt_save_ifs"
12583         if test "X$pkg" = "X$p"; then
12584           enable_fast_install=yes
12585         fi
12586       done
12587       IFS="$lt_save_ifs"
12588       ;;
12589     esac
12590 else
12591   enable_fast_install=yes
12592 fi
12593
12594
12595 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12596 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12597 if test "${lt_cv_path_SED+set}" = set; then
12598   echo $ECHO_N "(cached) $ECHO_C" >&6
12599 else
12600   # Loop through the user's path and test for sed and gsed.
12601 # Then use that list of sed's as ones to test for truncation.
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607   for lt_ac_prog in sed gsed; do
12608     for ac_exec_ext in '' $ac_executable_extensions; do
12609       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12610         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12611       fi
12612     done
12613   done
12614 done
12615 lt_ac_max=0
12616 lt_ac_count=0
12617 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12618 # along with /bin/sed that truncates output.
12619 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12620   test ! -f $lt_ac_sed && continue
12621   cat /dev/null > conftest.in
12622   lt_ac_count=0
12623   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12624   # Check for GNU sed and select it if it is found.
12625   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12626     lt_cv_path_SED=$lt_ac_sed
12627     break
12628   fi
12629   while true; do
12630     cat conftest.in conftest.in >conftest.tmp
12631     mv conftest.tmp conftest.in
12632     cp conftest.in conftest.nl
12633     echo >>conftest.nl
12634     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12635     cmp -s conftest.out conftest.nl || break
12636     # 10000 chars as input seems more than enough
12637     test $lt_ac_count -gt 10 && break
12638     lt_ac_count=`expr $lt_ac_count + 1`
12639     if test $lt_ac_count -gt $lt_ac_max; then
12640       lt_ac_max=$lt_ac_count
12641       lt_cv_path_SED=$lt_ac_sed
12642     fi
12643   done
12644 done
12645
12646 fi
12647
12648 SED=$lt_cv_path_SED
12649 { echo "$as_me:$LINENO: result: $SED" >&5
12650 echo "${ECHO_T}$SED" >&6; }
12651
12652
12653 # Check whether --with-gnu-ld was given.
12654 if test "${with_gnu_ld+set}" = set; then
12655   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12656 else
12657   with_gnu_ld=no
12658 fi
12659
12660 ac_prog=ld
12661 if test "$GCC" = yes; then
12662   # Check if gcc -print-prog-name=ld gives a path.
12663   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12664 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12665   case $host in
12666   *-*-mingw*)
12667     # gcc leaves a trailing carriage return which upsets mingw
12668     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669   *)
12670     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12671   esac
12672   case $ac_prog in
12673     # Accept absolute paths.
12674     [\\/]* | ?:[\\/]*)
12675       re_direlt='/[^/][^/]*/\.\./'
12676       # Canonicalize the pathname of ld
12677       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12678       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12679         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12680       done
12681       test -z "$LD" && LD="$ac_prog"
12682       ;;
12683   "")
12684     # If it fails, then pretend we aren't using GCC.
12685     ac_prog=ld
12686     ;;
12687   *)
12688     # If it is relative, then search for the first ld in PATH.
12689     with_gnu_ld=unknown
12690     ;;
12691   esac
12692 elif test "$with_gnu_ld" = yes; then
12693   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12694 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12695 else
12696   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12697 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12698 fi
12699 if test "${lt_cv_path_LD+set}" = set; then
12700   echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702   if test -z "$LD"; then
12703   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704   for ac_dir in $PATH; do
12705     IFS="$lt_save_ifs"
12706     test -z "$ac_dir" && ac_dir=.
12707     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708       lt_cv_path_LD="$ac_dir/$ac_prog"
12709       # Check to see if the program is GNU ld.  I'd rather use --version,
12710       # but apparently some variants of GNU ld only accept -v.
12711       # Break only if it was the GNU/non-GNU ld that we prefer.
12712       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713       *GNU* | *'with BFD'*)
12714         test "$with_gnu_ld" != no && break
12715         ;;
12716       *)
12717         test "$with_gnu_ld" != yes && break
12718         ;;
12719       esac
12720     fi
12721   done
12722   IFS="$lt_save_ifs"
12723 else
12724   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12725 fi
12726 fi
12727
12728 LD="$lt_cv_path_LD"
12729 if test -n "$LD"; then
12730   { echo "$as_me:$LINENO: result: $LD" >&5
12731 echo "${ECHO_T}$LD" >&6; }
12732 else
12733   { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12735 fi
12736 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12737 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12738    { (exit 1); exit 1; }; }
12739 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12740 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12741 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12745 case `$LD -v 2>&1 </dev/null` in
12746 *GNU* | *'with BFD'*)
12747   lt_cv_prog_gnu_ld=yes
12748   ;;
12749 *)
12750   lt_cv_prog_gnu_ld=no
12751   ;;
12752 esac
12753 fi
12754 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12755 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12756 with_gnu_ld=$lt_cv_prog_gnu_ld
12757
12758
12759 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12760 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12761 if test "${lt_cv_ld_reload_flag+set}" = set; then
12762   echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764   lt_cv_ld_reload_flag='-r'
12765 fi
12766 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12767 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12768 reload_flag=$lt_cv_ld_reload_flag
12769 case $reload_flag in
12770 "" | " "*) ;;
12771 *) reload_flag=" $reload_flag" ;;
12772 esac
12773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12774 case $host_os in
12775   darwin*)
12776     if test "$GCC" = yes; then
12777       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12778     else
12779       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12780     fi
12781     ;;
12782 esac
12783
12784 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12785 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12786 if test "${lt_cv_deplibs_check_method+set}" = set; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789   lt_cv_file_magic_cmd='$MAGIC_CMD'
12790 lt_cv_file_magic_test_file=
12791 lt_cv_deplibs_check_method='unknown'
12792 # Need to set the preceding variable on all platforms that support
12793 # interlibrary dependencies.
12794 # 'none' -- dependencies not supported.
12795 # `unknown' -- same as none, but documents that we really don't know.
12796 # 'pass_all' -- all dependencies passed with no checks.
12797 # 'test_compile' -- check by making test program.
12798 # 'file_magic [[regex]]' -- check by looking for files in library path
12799 # which responds to the $file_magic_cmd with a given extended regex.
12800 # If you have `file' or equivalent on your system and you're not sure
12801 # whether `pass_all' will *always* work, you probably want this one.
12802
12803 case $host_os in
12804 aix4* | aix5*)
12805   lt_cv_deplibs_check_method=pass_all
12806   ;;
12807
12808 beos*)
12809   lt_cv_deplibs_check_method=pass_all
12810   ;;
12811
12812 bsdi[45]*)
12813   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12814   lt_cv_file_magic_cmd='/usr/bin/file -L'
12815   lt_cv_file_magic_test_file=/shlib/libc.so
12816   ;;
12817
12818 cygwin*)
12819   # func_win32_libid is a shell function defined in ltmain.sh
12820   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12821   lt_cv_file_magic_cmd='func_win32_libid'
12822   ;;
12823
12824 mingw* | pw32*)
12825   # Base MSYS/MinGW do not provide the 'file' command needed by
12826   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12827   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12828   lt_cv_file_magic_cmd='$OBJDUMP -f'
12829   ;;
12830
12831 darwin* | rhapsody*)
12832   lt_cv_deplibs_check_method=pass_all
12833   ;;
12834
12835 freebsd* | kfreebsd*-gnu | dragonfly*)
12836   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12837     case $host_cpu in
12838     i*86 )
12839       # Not sure whether the presence of OpenBSD here was a mistake.
12840       # Let's accept both of them until this is cleared up.
12841       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12842       lt_cv_file_magic_cmd=/usr/bin/file
12843       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12844       ;;
12845     esac
12846   else
12847     lt_cv_deplibs_check_method=pass_all
12848   fi
12849   ;;
12850
12851 gnu*)
12852   lt_cv_deplibs_check_method=pass_all
12853   ;;
12854
12855 hpux10.20* | hpux11*)
12856   lt_cv_file_magic_cmd=/usr/bin/file
12857   case $host_cpu in
12858   ia64*)
12859     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12860     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12861     ;;
12862   hppa*64*)
12863     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]'
12864     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12865     ;;
12866   *)
12867     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12868     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12869     ;;
12870   esac
12871   ;;
12872
12873 interix3*)
12874   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12875   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12876   ;;
12877
12878 irix5* | irix6* | nonstopux*)
12879   case $LD in
12880   *-32|*"-32 ") libmagic=32-bit;;
12881   *-n32|*"-n32 ") libmagic=N32;;
12882   *-64|*"-64 ") libmagic=64-bit;;
12883   *) libmagic=never-match;;
12884   esac
12885   lt_cv_deplibs_check_method=pass_all
12886   ;;
12887
12888 # This must be Linux ELF.
12889 linux*)
12890   lt_cv_deplibs_check_method=pass_all
12891   ;;
12892
12893 netbsd*)
12894   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12895     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12896   else
12897     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12898   fi
12899   ;;
12900
12901 newos6*)
12902   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12903   lt_cv_file_magic_cmd=/usr/bin/file
12904   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12905   ;;
12906
12907 nto-qnx*)
12908   lt_cv_deplibs_check_method=unknown
12909   ;;
12910
12911 openbsd*)
12912   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12913     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12914   else
12915     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916   fi
12917   ;;
12918
12919 osf3* | osf4* | osf5*)
12920   lt_cv_deplibs_check_method=pass_all
12921   ;;
12922
12923 solaris*)
12924   lt_cv_deplibs_check_method=pass_all
12925   ;;
12926
12927 sysv4 | sysv4.3*)
12928   case $host_vendor in
12929   motorola)
12930     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]'
12931     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12932     ;;
12933   ncr)
12934     lt_cv_deplibs_check_method=pass_all
12935     ;;
12936   sequent)
12937     lt_cv_file_magic_cmd='/bin/file'
12938     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12939     ;;
12940   sni)
12941     lt_cv_file_magic_cmd='/bin/file'
12942     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12943     lt_cv_file_magic_test_file=/lib/libc.so
12944     ;;
12945   siemens)
12946     lt_cv_deplibs_check_method=pass_all
12947     ;;
12948   pc)
12949     lt_cv_deplibs_check_method=pass_all
12950     ;;
12951   esac
12952   ;;
12953
12954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12955   lt_cv_deplibs_check_method=pass_all
12956   ;;
12957 esac
12958
12959 fi
12960 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12961 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12962 file_magic_cmd=$lt_cv_file_magic_cmd
12963 deplibs_check_method=$lt_cv_deplibs_check_method
12964 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12965
12966
12967
12968 # If no C compiler was specified, use CC.
12969 LTCC=${LTCC-"$CC"}
12970
12971 # If no C compiler flags were specified, use CFLAGS.
12972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12973
12974 # Allow CC to be a program name with arguments.
12975 compiler=$CC
12976
12977 # Check whether --enable-libtool-lock was given.
12978 if test "${enable_libtool_lock+set}" = set; then
12979   enableval=$enable_libtool_lock;
12980 fi
12981
12982 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12983
12984 # Some flags need to be propagated to the compiler or linker for good
12985 # libtool support.
12986 case $host in
12987 ia64-*-hpux*)
12988   # Find out which ABI we are using.
12989   echo 'int i;' > conftest.$ac_ext
12990   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991   (eval $ac_compile) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; then
12995     case `/usr/bin/file conftest.$ac_objext` in
12996     *ELF-32*)
12997       HPUX_IA64_MODE="32"
12998       ;;
12999     *ELF-64*)
13000       HPUX_IA64_MODE="64"
13001       ;;
13002     esac
13003   fi
13004   rm -rf conftest*
13005   ;;
13006 *-*-irix6*)
13007   # Find out which ABI we are using.
13008   echo '#line 13008 "configure"' > conftest.$ac_ext
13009   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010   (eval $ac_compile) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; then
13014    if test "$lt_cv_prog_gnu_ld" = yes; then
13015     case `/usr/bin/file conftest.$ac_objext` in
13016     *32-bit*)
13017       LD="${LD-ld} -melf32bsmip"
13018       ;;
13019     *N32*)
13020       LD="${LD-ld} -melf32bmipn32"
13021       ;;
13022     *64-bit*)
13023       LD="${LD-ld} -melf64bmip"
13024       ;;
13025     esac
13026    else
13027     case `/usr/bin/file conftest.$ac_objext` in
13028     *32-bit*)
13029       LD="${LD-ld} -32"
13030       ;;
13031     *N32*)
13032       LD="${LD-ld} -n32"
13033       ;;
13034     *64-bit*)
13035       LD="${LD-ld} -64"
13036       ;;
13037     esac
13038    fi
13039   fi
13040   rm -rf conftest*
13041   ;;
13042
13043 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13044   # Find out which ABI we are using.
13045   echo 'int i;' > conftest.$ac_ext
13046   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047   (eval $ac_compile) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; then
13051     case `/usr/bin/file conftest.o` in
13052     *32-bit*)
13053       case $host in
13054         x86_64-*linux*)
13055           LD="${LD-ld} -m elf_i386"
13056           ;;
13057         ppc64-*linux*|powerpc64-*linux*)
13058           LD="${LD-ld} -m elf32ppclinux"
13059           ;;
13060         s390x-*linux*)
13061           LD="${LD-ld} -m elf_s390"
13062           ;;
13063         sparc64-*linux*)
13064           LD="${LD-ld} -m elf32_sparc"
13065           ;;
13066       esac
13067       ;;
13068     *64-bit*)
13069       case $host in
13070         x86_64-*linux*)
13071           LD="${LD-ld} -m elf_x86_64"
13072           ;;
13073         ppc*-*linux*|powerpc*-*linux*)
13074           LD="${LD-ld} -m elf64ppc"
13075           ;;
13076         s390*-*linux*)
13077           LD="${LD-ld} -m elf64_s390"
13078           ;;
13079         sparc*-*linux*)
13080           LD="${LD-ld} -m elf64_sparc"
13081           ;;
13082       esac
13083       ;;
13084     esac
13085   fi
13086   rm -rf conftest*
13087   ;;
13088
13089 *-*-sco3.2v5*)
13090   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13091   SAVE_CFLAGS="$CFLAGS"
13092   CFLAGS="$CFLAGS -belf"
13093   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13094 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13095 if test "${lt_cv_cc_needs_belf+set}" = set; then
13096   echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098   ac_ext=c
13099 ac_cpp='$CPP $CPPFLAGS'
13100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103
13104      cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110
13111 int
13112 main ()
13113 {
13114
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (ac_try="$ac_link"
13121 case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_link") 2>conftest.er1
13127   ac_status=$?
13128   grep -v '^ *+' conftest.er1 >conftest.err
13129   rm -f conftest.er1
13130   cat conftest.err >&5
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } &&
13133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13134   { (case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139   (eval "$ac_try") 2>&5
13140   ac_status=$?
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); }; } &&
13143          { ac_try='test -s conftest$ac_exeext'
13144   { (case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149   (eval "$ac_try") 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; }; then
13153   lt_cv_cc_needs_belf=yes
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158         lt_cv_cc_needs_belf=no
13159 fi
13160
13161 rm -f core conftest.err conftest.$ac_objext \
13162       conftest$ac_exeext conftest.$ac_ext
13163      ac_ext=c
13164 ac_cpp='$CPP $CPPFLAGS'
13165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168
13169 fi
13170 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13171 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13172   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13173     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13174     CFLAGS="$SAVE_CFLAGS"
13175   fi
13176   ;;
13177 sparc*-*solaris*)
13178   # Find out which ABI we are using.
13179   echo 'int i;' > conftest.$ac_ext
13180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; then
13185     case `/usr/bin/file conftest.o` in
13186     *64-bit*)
13187       case $lt_cv_prog_gnu_ld in
13188       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13189       *)    LD="${LD-ld} -64" ;;
13190       esac
13191       ;;
13192     esac
13193   fi
13194   rm -rf conftest*
13195   ;;
13196
13197
13198 esac
13199
13200 need_locks="$enable_libtool_lock"
13201
13202
13203
13204
13205 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13206     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13207     (test "X$CXX" != "Xg++"))) ; then
13208   ac_ext=cpp
13209 ac_cpp='$CXXCPP $CPPFLAGS'
13210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13213 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13214 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13215 if test -z "$CXXCPP"; then
13216   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219       # Double quotes because CXXCPP needs to be expanded
13220     for CXXCPP in "$CXX -E" "/lib/cpp"
13221     do
13222       ac_preproc_ok=false
13223 for ac_cxx_preproc_warn_flag in '' yes
13224 do
13225   # Use a header file that comes with gcc, so configuring glibc
13226   # with a fresh cross-compiler works.
13227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13228   # <limits.h> exists even on freestanding compilers.
13229   # On the NeXT, cc -E runs the code through the compiler's parser,
13230   # not just through cpp. "Syntax error" is here to catch this case.
13231   cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h.  */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h.  */
13237 #ifdef __STDC__
13238 # include <limits.h>
13239 #else
13240 # include <assert.h>
13241 #endif
13242                      Syntax error
13243 _ACEOF
13244 if { (ac_try="$ac_cpp conftest.$ac_ext"
13245 case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13251   ac_status=$?
13252   grep -v '^ *+' conftest.er1 >conftest.err
13253   rm -f conftest.er1
13254   cat conftest.err >&5
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); } >/dev/null; then
13257   if test -s conftest.err; then
13258     ac_cpp_err=$ac_cxx_preproc_warn_flag
13259     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13260   else
13261     ac_cpp_err=
13262   fi
13263 else
13264   ac_cpp_err=yes
13265 fi
13266 if test -z "$ac_cpp_err"; then
13267   :
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272   # Broken: fails on valid input.
13273 continue
13274 fi
13275
13276 rm -f conftest.err conftest.$ac_ext
13277
13278   # OK, works on sane cases.  Now check whether nonexistent headers
13279   # can be detected and how.
13280   cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 #include <ac_nonexistent.h>
13287 _ACEOF
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291   *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } >/dev/null; then
13301   if test -s conftest.err; then
13302     ac_cpp_err=$ac_cxx_preproc_warn_flag
13303     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13304   else
13305     ac_cpp_err=
13306   fi
13307 else
13308   ac_cpp_err=yes
13309 fi
13310 if test -z "$ac_cpp_err"; then
13311   # Broken: success on invalid input.
13312 continue
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317   # Passes both tests.
13318 ac_preproc_ok=:
13319 break
13320 fi
13321
13322 rm -f conftest.err conftest.$ac_ext
13323
13324 done
13325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13326 rm -f conftest.err conftest.$ac_ext
13327 if $ac_preproc_ok; then
13328   break
13329 fi
13330
13331     done
13332     ac_cv_prog_CXXCPP=$CXXCPP
13333
13334 fi
13335   CXXCPP=$ac_cv_prog_CXXCPP
13336 else
13337   ac_cv_prog_CXXCPP=$CXXCPP
13338 fi
13339 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13340 echo "${ECHO_T}$CXXCPP" >&6; }
13341 ac_preproc_ok=false
13342 for ac_cxx_preproc_warn_flag in '' yes
13343 do
13344   # Use a header file that comes with gcc, so configuring glibc
13345   # with a fresh cross-compiler works.
13346   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13347   # <limits.h> exists even on freestanding compilers.
13348   # On the NeXT, cc -E runs the code through the compiler's parser,
13349   # not just through cpp. "Syntax error" is here to catch this case.
13350   cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356 #ifdef __STDC__
13357 # include <limits.h>
13358 #else
13359 # include <assert.h>
13360 #endif
13361                      Syntax error
13362 _ACEOF
13363 if { (ac_try="$ac_cpp conftest.$ac_ext"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } >/dev/null; then
13376   if test -s conftest.err; then
13377     ac_cpp_err=$ac_cxx_preproc_warn_flag
13378     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13379   else
13380     ac_cpp_err=
13381   fi
13382 else
13383   ac_cpp_err=yes
13384 fi
13385 if test -z "$ac_cpp_err"; then
13386   :
13387 else
13388   echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13390
13391   # Broken: fails on valid input.
13392 continue
13393 fi
13394
13395 rm -f conftest.err conftest.$ac_ext
13396
13397   # OK, works on sane cases.  Now check whether nonexistent headers
13398   # can be detected and how.
13399   cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 #include <ac_nonexistent.h>
13406 _ACEOF
13407 if { (ac_try="$ac_cpp conftest.$ac_ext"
13408 case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13414   ac_status=$?
13415   grep -v '^ *+' conftest.er1 >conftest.err
13416   rm -f conftest.er1
13417   cat conftest.err >&5
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } >/dev/null; then
13420   if test -s conftest.err; then
13421     ac_cpp_err=$ac_cxx_preproc_warn_flag
13422     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13423   else
13424     ac_cpp_err=
13425   fi
13426 else
13427   ac_cpp_err=yes
13428 fi
13429 if test -z "$ac_cpp_err"; then
13430   # Broken: success on invalid input.
13431 continue
13432 else
13433   echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436   # Passes both tests.
13437 ac_preproc_ok=:
13438 break
13439 fi
13440
13441 rm -f conftest.err conftest.$ac_ext
13442
13443 done
13444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13445 rm -f conftest.err conftest.$ac_ext
13446 if $ac_preproc_ok; then
13447   :
13448 else
13449   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13450 See \`config.log' for more details." >&5
13451 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13452 See \`config.log' for more details." >&2;}
13453    { (exit 1); exit 1; }; }
13454 fi
13455
13456 ac_ext=cpp
13457 ac_cpp='$CXXCPP $CPPFLAGS'
13458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13461
13462 fi
13463
13464
13465 ac_ext=f
13466 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13467 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13469 if test -n "$ac_tool_prefix"; then
13470   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
13471   do
13472     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13476 if test "${ac_cv_prog_F77+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   if test -n "$F77"; then
13480   ac_cv_prog_F77="$F77" # Let the user override the test.
13481 else
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485   IFS=$as_save_IFS
13486   test -z "$as_dir" && as_dir=.
13487   for ac_exec_ext in '' $ac_executable_extensions; do
13488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13489     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13491     break 2
13492   fi
13493 done
13494 done
13495 IFS=$as_save_IFS
13496
13497 fi
13498 fi
13499 F77=$ac_cv_prog_F77
13500 if test -n "$F77"; then
13501   { echo "$as_me:$LINENO: result: $F77" >&5
13502 echo "${ECHO_T}$F77" >&6; }
13503 else
13504   { echo "$as_me:$LINENO: result: no" >&5
13505 echo "${ECHO_T}no" >&6; }
13506 fi
13507
13508
13509     test -n "$F77" && break
13510   done
13511 fi
13512 if test -z "$F77"; then
13513   ac_ct_F77=$F77
13514   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
13515 do
13516   # Extract the first word of "$ac_prog", so it can be a program name with args.
13517 set dummy $ac_prog; ac_word=$2
13518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13520 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   if test -n "$ac_ct_F77"; then
13524   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13525 else
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529   IFS=$as_save_IFS
13530   test -z "$as_dir" && as_dir=.
13531   for ac_exec_ext in '' $ac_executable_extensions; do
13532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13533     ac_cv_prog_ac_ct_F77="$ac_prog"
13534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13535     break 2
13536   fi
13537 done
13538 done
13539 IFS=$as_save_IFS
13540
13541 fi
13542 fi
13543 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13544 if test -n "$ac_ct_F77"; then
13545   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13546 echo "${ECHO_T}$ac_ct_F77" >&6; }
13547 else
13548   { echo "$as_me:$LINENO: result: no" >&5
13549 echo "${ECHO_T}no" >&6; }
13550 fi
13551
13552
13553   test -n "$ac_ct_F77" && break
13554 done
13555
13556   if test "x$ac_ct_F77" = x; then
13557     F77=""
13558   else
13559     case $cross_compiling:$ac_tool_warned in
13560 yes:)
13561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13562 whose name does not start with the host triplet.  If you think this
13563 configuration is useful to you, please write to autoconf@gnu.org." >&5
13564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13565 whose name does not start with the host triplet.  If you think this
13566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13567 ac_tool_warned=yes ;;
13568 esac
13569     F77=$ac_ct_F77
13570   fi
13571 fi
13572
13573
13574 # Provide some information about the compiler.
13575 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13576 ac_compiler=`set X $ac_compile; echo $2`
13577 { (ac_try="$ac_compiler --version >&5"
13578 case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_compiler --version >&5") 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }
13587 { (ac_try="$ac_compiler -v >&5"
13588 case "(($ac_try" in
13589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590   *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593   (eval "$ac_compiler -v >&5") 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }
13597 { (ac_try="$ac_compiler -V >&5"
13598 case "(($ac_try" in
13599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600   *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603   (eval "$ac_compiler -V >&5") 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }
13607 rm -f a.out
13608
13609 # If we don't use `.F' as extension, the preprocessor is not run on the
13610 # input file.  (Note that this only needs to work for GNU compilers.)
13611 ac_save_ext=$ac_ext
13612 ac_ext=F
13613 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13614 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13615 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619       program main
13620 #ifndef __GNUC__
13621        choke me
13622 #endif
13623
13624       end
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_compile") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13641   { (case "(($ac_try" in
13642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643   *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646   (eval "$ac_try") 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; } &&
13650          { ac_try='test -s conftest.$ac_objext'
13651   { (case "(($ac_try" in
13652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653   *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656   (eval "$ac_try") 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; }; then
13660   ac_compiler_gnu=yes
13661 else
13662   echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665         ac_compiler_gnu=no
13666 fi
13667
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13670
13671 fi
13672 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13673 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13674 ac_ext=$ac_save_ext
13675 ac_test_FFLAGS=${FFLAGS+set}
13676 ac_save_FFLAGS=$FFLAGS
13677 FFLAGS=
13678 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13679 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13680 if test "${ac_cv_prog_f77_g+set}" = set; then
13681   echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683   FFLAGS=-g
13684 cat >conftest.$ac_ext <<_ACEOF
13685       program main
13686
13687       end
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (ac_try="$ac_compile"
13691 case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696   (eval "$ac_compile") 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } &&
13703          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13704   { (case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; } &&
13713          { ac_try='test -s conftest.$ac_objext'
13714   { (case "(($ac_try" in
13715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716   *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719   (eval "$ac_try") 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; }; then
13723   ac_cv_prog_f77_g=yes
13724 else
13725   echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728         ac_cv_prog_f77_g=no
13729 fi
13730
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732
13733 fi
13734 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13735 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13736 if test "$ac_test_FFLAGS" = set; then
13737   FFLAGS=$ac_save_FFLAGS
13738 elif test $ac_cv_prog_f77_g = yes; then
13739   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13740     FFLAGS="-g -O2"
13741   else
13742     FFLAGS="-g"
13743   fi
13744 else
13745   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13746     FFLAGS="-O2"
13747   else
13748     FFLAGS=
13749   fi
13750 fi
13751
13752 G77=`test $ac_compiler_gnu = yes && echo yes`
13753 ac_ext=c
13754 ac_cpp='$CPP $CPPFLAGS'
13755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13758
13759
13760
13761 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13762
13763 # find the maximum length of command line arguments
13764 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13765 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13766 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769     i=0
13770   teststring="ABCD"
13771
13772   case $build_os in
13773   msdosdjgpp*)
13774     # On DJGPP, this test can blow up pretty badly due to problems in libc
13775     # (any single argument exceeding 2000 bytes causes a buffer overrun
13776     # during glob expansion).  Even if it were fixed, the result of this
13777     # check would be larger than it should be.
13778     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13779     ;;
13780
13781   gnu*)
13782     # Under GNU Hurd, this test is not required because there is
13783     # no limit to the length of command line arguments.
13784     # Libtool will interpret -1 as no limit whatsoever
13785     lt_cv_sys_max_cmd_len=-1;
13786     ;;
13787
13788   cygwin* | mingw*)
13789     # On Win9x/ME, this test blows up -- it succeeds, but takes
13790     # about 5 minutes as the teststring grows exponentially.
13791     # Worse, since 9x/ME are not pre-emptively multitasking,
13792     # you end up with a "frozen" computer, even though with patience
13793     # the test eventually succeeds (with a max line length of 256k).
13794     # Instead, let's just punt: use the minimum linelength reported by
13795     # all of the supported platforms: 8192 (on NT/2K/XP).
13796     lt_cv_sys_max_cmd_len=8192;
13797     ;;
13798
13799   amigaos*)
13800     # On AmigaOS with pdksh, this test takes hours, literally.
13801     # So we just punt and use a minimum line length of 8192.
13802     lt_cv_sys_max_cmd_len=8192;
13803     ;;
13804
13805   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13806     # This has been around since 386BSD, at least.  Likely further.
13807     if test -x /sbin/sysctl; then
13808       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13809     elif test -x /usr/sbin/sysctl; then
13810       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13811     else
13812       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13813     fi
13814     # And add a safety zone
13815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13816     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13817     ;;
13818
13819   interix*)
13820     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13821     lt_cv_sys_max_cmd_len=196608
13822     ;;
13823
13824   osf*)
13825     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13826     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13827     # nice to cause kernel panics so lets avoid the loop below.
13828     # First set a reasonable default.
13829     lt_cv_sys_max_cmd_len=16384
13830     #
13831     if test -x /sbin/sysconfig; then
13832       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13833         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13834       esac
13835     fi
13836     ;;
13837   sco3.2v5*)
13838     lt_cv_sys_max_cmd_len=102400
13839     ;;
13840   sysv5* | sco5v6* | sysv4.2uw2*)
13841     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13842     if test -n "$kargmax"; then
13843       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13844     else
13845       lt_cv_sys_max_cmd_len=32768
13846     fi
13847     ;;
13848   *)
13849     # If test is not a shell built-in, we'll probably end up computing a
13850     # maximum length that is only half of the actual maximum length, but
13851     # we can't tell.
13852     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13853     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13854                = "XX$teststring") >/dev/null 2>&1 &&
13855             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13856             lt_cv_sys_max_cmd_len=$new_result &&
13857             test $i != 17 # 1/2 MB should be enough
13858     do
13859       i=`expr $i + 1`
13860       teststring=$teststring$teststring
13861     done
13862     teststring=
13863     # Add a significant safety factor because C++ compilers can tack on massive
13864     # amounts of additional arguments before passing them to the linker.
13865     # It appears as though 1/2 is a usable value.
13866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13867     ;;
13868   esac
13869
13870 fi
13871
13872 if test -n $lt_cv_sys_max_cmd_len ; then
13873   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13874 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13875 else
13876   { echo "$as_me:$LINENO: result: none" >&5
13877 echo "${ECHO_T}none" >&6; }
13878 fi
13879
13880
13881
13882
13883 # Check for command to grab the raw symbol name followed by C symbol from nm.
13884 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13887   echo $ECHO_N "(cached) $ECHO_C" >&6
13888 else
13889
13890 # These are sane defaults that work on at least a few old systems.
13891 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13892
13893 # Character class describing NM global symbol codes.
13894 symcode='[BCDEGRST]'
13895
13896 # Regexp to match symbols that can be accessed directly from C.
13897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13898
13899 # Transform an extracted symbol line into a proper C declaration
13900 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13901
13902 # Transform an extracted symbol line into symbol name and symbol address
13903 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'"
13904
13905 # Define system-specific variables.
13906 case $host_os in
13907 aix*)
13908   symcode='[BCDT]'
13909   ;;
13910 cygwin* | mingw* | pw32*)
13911   symcode='[ABCDGISTW]'
13912   ;;
13913 hpux*) # Its linker distinguishes data from code symbols
13914   if test "$host_cpu" = ia64; then
13915     symcode='[ABCDEGRST]'
13916   fi
13917   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13918   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'"
13919   ;;
13920 linux*)
13921   if test "$host_cpu" = ia64; then
13922     symcode='[ABCDGIRSTW]'
13923     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13924     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'"
13925   fi
13926   ;;
13927 irix* | nonstopux*)
13928   symcode='[BCDEGRST]'
13929   ;;
13930 osf*)
13931   symcode='[BCDEGQRST]'
13932   ;;
13933 solaris*)
13934   symcode='[BDRT]'
13935   ;;
13936 sco3.2v5*)
13937   symcode='[DT]'
13938   ;;
13939 sysv4.2uw2*)
13940   symcode='[DT]'
13941   ;;
13942 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13943   symcode='[ABDT]'
13944   ;;
13945 sysv4)
13946   symcode='[DFNSTU]'
13947   ;;
13948 esac
13949
13950 # Handle CRLF in mingw tool chain
13951 opt_cr=
13952 case $build_os in
13953 mingw*)
13954   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13955   ;;
13956 esac
13957
13958 # If we're using GNU nm, then use its standard symbol codes.
13959 case `$NM -V 2>&1` in
13960 *GNU* | *'with BFD'*)
13961   symcode='[ABCDGIRSTW]' ;;
13962 esac
13963
13964 # Try without a prefix undercore, then with it.
13965 for ac_symprfx in "" "_"; do
13966
13967   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13968   symxfrm="\\1 $ac_symprfx\\2 \\2"
13969
13970   # Write the raw and C identifiers.
13971   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13972
13973   # Check to see that the pipe works correctly.
13974   pipe_works=no
13975
13976   rm -f conftest*
13977   cat > conftest.$ac_ext <<EOF
13978 #ifdef __cplusplus
13979 extern "C" {
13980 #endif
13981 char nm_test_var;
13982 void nm_test_func(){}
13983 #ifdef __cplusplus
13984 }
13985 #endif
13986 int main(){nm_test_var='a';nm_test_func();return(0);}
13987 EOF
13988
13989   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990   (eval $ac_compile) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; then
13994     # Now try to grab the symbols.
13995     nlist=conftest.nm
13996     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13997   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } && test -s "$nlist"; then
14001       # Try sorting and uniquifying the output.
14002       if sort "$nlist" | uniq > "$nlist"T; then
14003         mv -f "$nlist"T "$nlist"
14004       else
14005         rm -f "$nlist"T
14006       fi
14007
14008       # Make sure that we snagged all the symbols we need.
14009       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14010         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14011           cat <<EOF > conftest.$ac_ext
14012 #ifdef __cplusplus
14013 extern "C" {
14014 #endif
14015
14016 EOF
14017           # Now generate the symbol file.
14018           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14019
14020           cat <<EOF >> conftest.$ac_ext
14021 #if defined (__STDC__) && __STDC__
14022 # define lt_ptr_t void *
14023 #else
14024 # define lt_ptr_t char *
14025 # define const
14026 #endif
14027
14028 /* The mapping between symbol names and symbols. */
14029 const struct {
14030   const char *name;
14031   lt_ptr_t address;
14032 }
14033 lt_preloaded_symbols[] =
14034 {
14035 EOF
14036           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14037           cat <<\EOF >> conftest.$ac_ext
14038   {0, (lt_ptr_t) 0}
14039 };
14040
14041 #ifdef __cplusplus
14042 }
14043 #endif
14044 EOF
14045           # Now try linking the two files.
14046           mv conftest.$ac_objext conftstm.$ac_objext
14047           lt_save_LIBS="$LIBS"
14048           lt_save_CFLAGS="$CFLAGS"
14049           LIBS="conftstm.$ac_objext"
14050           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14051           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14052   (eval $ac_link) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14056             pipe_works=yes
14057           fi
14058           LIBS="$lt_save_LIBS"
14059           CFLAGS="$lt_save_CFLAGS"
14060         else
14061           echo "cannot find nm_test_func in $nlist" >&5
14062         fi
14063       else
14064         echo "cannot find nm_test_var in $nlist" >&5
14065       fi
14066     else
14067       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14068     fi
14069   else
14070     echo "$progname: failed program was:" >&5
14071     cat conftest.$ac_ext >&5
14072   fi
14073   rm -f conftest* conftst*
14074
14075   # Do not use the global_symbol_pipe unless it works.
14076   if test "$pipe_works" = yes; then
14077     break
14078   else
14079     lt_cv_sys_global_symbol_pipe=
14080   fi
14081 done
14082
14083 fi
14084
14085 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14086   lt_cv_sys_global_symbol_to_cdecl=
14087 fi
14088 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14089   { echo "$as_me:$LINENO: result: failed" >&5
14090 echo "${ECHO_T}failed" >&6; }
14091 else
14092   { echo "$as_me:$LINENO: result: ok" >&5
14093 echo "${ECHO_T}ok" >&6; }
14094 fi
14095
14096 { echo "$as_me:$LINENO: checking for objdir" >&5
14097 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14098 if test "${lt_cv_objdir+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   rm -f .libs 2>/dev/null
14102 mkdir .libs 2>/dev/null
14103 if test -d .libs; then
14104   lt_cv_objdir=.libs
14105 else
14106   # MS-DOS does not allow filenames that begin with a dot.
14107   lt_cv_objdir=_libs
14108 fi
14109 rmdir .libs 2>/dev/null
14110 fi
14111 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14112 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14113 objdir=$lt_cv_objdir
14114
14115
14116
14117
14118
14119 case $host_os in
14120 aix3*)
14121   # AIX sometimes has problems with the GCC collect2 program.  For some
14122   # reason, if we set the COLLECT_NAMES environment variable, the problems
14123   # vanish in a puff of smoke.
14124   if test "X${COLLECT_NAMES+set}" != Xset; then
14125     COLLECT_NAMES=
14126     export COLLECT_NAMES
14127   fi
14128   ;;
14129 esac
14130
14131 # Sed substitution that helps us do robust quoting.  It backslashifies
14132 # metacharacters that are still active within double-quoted strings.
14133 Xsed='sed -e 1s/^X//'
14134 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14135
14136 # Same as above, but do not quote variable references.
14137 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14138
14139 # Sed substitution to delay expansion of an escaped shell variable in a
14140 # double_quote_subst'ed string.
14141 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14142
14143 # Sed substitution to avoid accidental globbing in evaled expressions
14144 no_glob_subst='s/\*/\\\*/g'
14145
14146 # Constants:
14147 rm="rm -f"
14148
14149 # Global variables:
14150 default_ofile=mklib
14151 can_build_shared=yes
14152
14153 # All known linkers require a `.a' archive for static linking (except MSVC,
14154 # which needs '.lib').
14155 libext=a
14156 ltmain="$ac_aux_dir/ltmain.sh"
14157 ofile="$default_ofile"
14158 with_gnu_ld="$lt_cv_prog_gnu_ld"
14159
14160 if test -n "$ac_tool_prefix"; then
14161   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14162 set dummy ${ac_tool_prefix}ar; ac_word=$2
14163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14165 if test "${ac_cv_prog_AR+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   if test -n "$AR"; then
14169   ac_cv_prog_AR="$AR" # Let the user override the test.
14170 else
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14173 do
14174   IFS=$as_save_IFS
14175   test -z "$as_dir" && as_dir=.
14176   for ac_exec_ext in '' $ac_executable_extensions; do
14177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14178     ac_cv_prog_AR="${ac_tool_prefix}ar"
14179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14180     break 2
14181   fi
14182 done
14183 done
14184 IFS=$as_save_IFS
14185
14186 fi
14187 fi
14188 AR=$ac_cv_prog_AR
14189 if test -n "$AR"; then
14190   { echo "$as_me:$LINENO: result: $AR" >&5
14191 echo "${ECHO_T}$AR" >&6; }
14192 else
14193   { echo "$as_me:$LINENO: result: no" >&5
14194 echo "${ECHO_T}no" >&6; }
14195 fi
14196
14197
14198 fi
14199 if test -z "$ac_cv_prog_AR"; then
14200   ac_ct_AR=$AR
14201   # Extract the first word of "ar", so it can be a program name with args.
14202 set dummy ar; ac_word=$2
14203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   if test -n "$ac_ct_AR"; then
14209   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14210 else
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14213 do
14214   IFS=$as_save_IFS
14215   test -z "$as_dir" && as_dir=.
14216   for ac_exec_ext in '' $ac_executable_extensions; do
14217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14218     ac_cv_prog_ac_ct_AR="ar"
14219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14220     break 2
14221   fi
14222 done
14223 done
14224 IFS=$as_save_IFS
14225
14226 fi
14227 fi
14228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14229 if test -n "$ac_ct_AR"; then
14230   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14231 echo "${ECHO_T}$ac_ct_AR" >&6; }
14232 else
14233   { echo "$as_me:$LINENO: result: no" >&5
14234 echo "${ECHO_T}no" >&6; }
14235 fi
14236
14237   if test "x$ac_ct_AR" = x; then
14238     AR="false"
14239   else
14240     case $cross_compiling:$ac_tool_warned in
14241 yes:)
14242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14243 whose name does not start with the host triplet.  If you think this
14244 configuration is useful to you, please write to autoconf@gnu.org." >&5
14245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14246 whose name does not start with the host triplet.  If you think this
14247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14248 ac_tool_warned=yes ;;
14249 esac
14250     AR=$ac_ct_AR
14251   fi
14252 else
14253   AR="$ac_cv_prog_AR"
14254 fi
14255
14256 if test -n "$ac_tool_prefix"; then
14257   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14261 if test "${ac_cv_prog_RANLIB+set}" = set; then
14262   echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264   if test -n "$RANLIB"; then
14265   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14266 else
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270   IFS=$as_save_IFS
14271   test -z "$as_dir" && as_dir=.
14272   for ac_exec_ext in '' $ac_executable_extensions; do
14273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14274     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14276     break 2
14277   fi
14278 done
14279 done
14280 IFS=$as_save_IFS
14281
14282 fi
14283 fi
14284 RANLIB=$ac_cv_prog_RANLIB
14285 if test -n "$RANLIB"; then
14286   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14287 echo "${ECHO_T}$RANLIB" >&6; }
14288 else
14289   { echo "$as_me:$LINENO: result: no" >&5
14290 echo "${ECHO_T}no" >&6; }
14291 fi
14292
14293
14294 fi
14295 if test -z "$ac_cv_prog_RANLIB"; then
14296   ac_ct_RANLIB=$RANLIB
14297   # Extract the first word of "ranlib", so it can be a program name with args.
14298 set dummy ranlib; ac_word=$2
14299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14302   echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304   if test -n "$ac_ct_RANLIB"; then
14305   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14306 else
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14309 do
14310   IFS=$as_save_IFS
14311   test -z "$as_dir" && as_dir=.
14312   for ac_exec_ext in '' $ac_executable_extensions; do
14313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14314     ac_cv_prog_ac_ct_RANLIB="ranlib"
14315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14316     break 2
14317   fi
14318 done
14319 done
14320 IFS=$as_save_IFS
14321
14322 fi
14323 fi
14324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14325 if test -n "$ac_ct_RANLIB"; then
14326   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14327 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14328 else
14329   { echo "$as_me:$LINENO: result: no" >&5
14330 echo "${ECHO_T}no" >&6; }
14331 fi
14332
14333   if test "x$ac_ct_RANLIB" = x; then
14334     RANLIB=":"
14335   else
14336     case $cross_compiling:$ac_tool_warned in
14337 yes:)
14338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14339 whose name does not start with the host triplet.  If you think this
14340 configuration is useful to you, please write to autoconf@gnu.org." >&5
14341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14342 whose name does not start with the host triplet.  If you think this
14343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14344 ac_tool_warned=yes ;;
14345 esac
14346     RANLIB=$ac_ct_RANLIB
14347   fi
14348 else
14349   RANLIB="$ac_cv_prog_RANLIB"
14350 fi
14351
14352 if test -n "$ac_tool_prefix"; then
14353   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14354 set dummy ${ac_tool_prefix}strip; ac_word=$2
14355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14357 if test "${ac_cv_prog_STRIP+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   if test -n "$STRIP"; then
14361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14365 do
14366   IFS=$as_save_IFS
14367   test -z "$as_dir" && as_dir=.
14368   for ac_exec_ext in '' $ac_executable_extensions; do
14369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14370     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14372     break 2
14373   fi
14374 done
14375 done
14376 IFS=$as_save_IFS
14377
14378 fi
14379 fi
14380 STRIP=$ac_cv_prog_STRIP
14381 if test -n "$STRIP"; then
14382   { echo "$as_me:$LINENO: result: $STRIP" >&5
14383 echo "${ECHO_T}$STRIP" >&6; }
14384 else
14385   { echo "$as_me:$LINENO: result: no" >&5
14386 echo "${ECHO_T}no" >&6; }
14387 fi
14388
14389
14390 fi
14391 if test -z "$ac_cv_prog_STRIP"; then
14392   ac_ct_STRIP=$STRIP
14393   # Extract the first word of "strip", so it can be a program name with args.
14394 set dummy strip; ac_word=$2
14395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400   if test -n "$ac_ct_STRIP"; then
14401   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14402 else
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404 for as_dir in $PATH
14405 do
14406   IFS=$as_save_IFS
14407   test -z "$as_dir" && as_dir=.
14408   for ac_exec_ext in '' $ac_executable_extensions; do
14409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14410     ac_cv_prog_ac_ct_STRIP="strip"
14411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14412     break 2
14413   fi
14414 done
14415 done
14416 IFS=$as_save_IFS
14417
14418 fi
14419 fi
14420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14421 if test -n "$ac_ct_STRIP"; then
14422   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14423 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14424 else
14425   { echo "$as_me:$LINENO: result: no" >&5
14426 echo "${ECHO_T}no" >&6; }
14427 fi
14428
14429   if test "x$ac_ct_STRIP" = x; then
14430     STRIP=":"
14431   else
14432     case $cross_compiling:$ac_tool_warned in
14433 yes:)
14434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14435 whose name does not start with the host triplet.  If you think this
14436 configuration is useful to you, please write to autoconf@gnu.org." >&5
14437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14438 whose name does not start with the host triplet.  If you think this
14439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14440 ac_tool_warned=yes ;;
14441 esac
14442     STRIP=$ac_ct_STRIP
14443   fi
14444 else
14445   STRIP="$ac_cv_prog_STRIP"
14446 fi
14447
14448
14449 old_CC="$CC"
14450 old_CFLAGS="$CFLAGS"
14451
14452 # Set sane defaults for various variables
14453 test -z "$AR" && AR=ar
14454 test -z "$AR_FLAGS" && AR_FLAGS=cru
14455 test -z "$AS" && AS=as
14456 test -z "$CC" && CC=cc
14457 test -z "$LTCC" && LTCC=$CC
14458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14459 test -z "$DLLTOOL" && DLLTOOL=dlltool
14460 test -z "$LD" && LD=ld
14461 test -z "$LN_S" && LN_S="ln -s"
14462 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14463 test -z "$NM" && NM=nm
14464 test -z "$SED" && SED=sed
14465 test -z "$OBJDUMP" && OBJDUMP=objdump
14466 test -z "$RANLIB" && RANLIB=:
14467 test -z "$STRIP" && STRIP=:
14468 test -z "$ac_objext" && ac_objext=o
14469
14470 # Determine commands to create old-style static archives.
14471 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14472 old_postinstall_cmds='chmod 644 $oldlib'
14473 old_postuninstall_cmds=
14474
14475 if test -n "$RANLIB"; then
14476   case $host_os in
14477   openbsd*)
14478     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14479     ;;
14480   *)
14481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14482     ;;
14483   esac
14484   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14485 fi
14486
14487 for cc_temp in $compiler""; do
14488   case $cc_temp in
14489     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14490     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14491     \-*) ;;
14492     *) break;;
14493   esac
14494 done
14495 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14496
14497
14498 # Only perform the check for file, if the check method requires it
14499 case $deplibs_check_method in
14500 file_magic*)
14501   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14502     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14503 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14504 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14505   echo $ECHO_N "(cached) $ECHO_C" >&6
14506 else
14507   case $MAGIC_CMD in
14508 [\\/*] |  ?:[\\/]*)
14509   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14510   ;;
14511 *)
14512   lt_save_MAGIC_CMD="$MAGIC_CMD"
14513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14514   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14515   for ac_dir in $ac_dummy; do
14516     IFS="$lt_save_ifs"
14517     test -z "$ac_dir" && ac_dir=.
14518     if test -f $ac_dir/${ac_tool_prefix}file; then
14519       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14520       if test -n "$file_magic_test_file"; then
14521         case $deplibs_check_method in
14522         "file_magic "*)
14523           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14524           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14525           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14526             $EGREP "$file_magic_regex" > /dev/null; then
14527             :
14528           else
14529             cat <<EOF 1>&2
14530
14531 *** Warning: the command libtool uses to detect shared libraries,
14532 *** $file_magic_cmd, produces output that libtool cannot recognize.
14533 *** The result is that libtool may fail to recognize shared libraries
14534 *** as such.  This will affect the creation of libtool libraries that
14535 *** depend on shared libraries, but programs linked with such libtool
14536 *** libraries will work regardless of this problem.  Nevertheless, you
14537 *** may want to report the problem to your system manager and/or to
14538 *** bug-libtool@gnu.org
14539
14540 EOF
14541           fi ;;
14542         esac
14543       fi
14544       break
14545     fi
14546   done
14547   IFS="$lt_save_ifs"
14548   MAGIC_CMD="$lt_save_MAGIC_CMD"
14549   ;;
14550 esac
14551 fi
14552
14553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14554 if test -n "$MAGIC_CMD"; then
14555   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14556 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14557 else
14558   { echo "$as_me:$LINENO: result: no" >&5
14559 echo "${ECHO_T}no" >&6; }
14560 fi
14561
14562 if test -z "$lt_cv_path_MAGIC_CMD"; then
14563   if test -n "$ac_tool_prefix"; then
14564     { echo "$as_me:$LINENO: checking for file" >&5
14565 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   case $MAGIC_CMD in
14570 [\\/*] |  ?:[\\/]*)
14571   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14572   ;;
14573 *)
14574   lt_save_MAGIC_CMD="$MAGIC_CMD"
14575   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14576   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14577   for ac_dir in $ac_dummy; do
14578     IFS="$lt_save_ifs"
14579     test -z "$ac_dir" && ac_dir=.
14580     if test -f $ac_dir/file; then
14581       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14582       if test -n "$file_magic_test_file"; then
14583         case $deplibs_check_method in
14584         "file_magic "*)
14585           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14586           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14588             $EGREP "$file_magic_regex" > /dev/null; then
14589             :
14590           else
14591             cat <<EOF 1>&2
14592
14593 *** Warning: the command libtool uses to detect shared libraries,
14594 *** $file_magic_cmd, produces output that libtool cannot recognize.
14595 *** The result is that libtool may fail to recognize shared libraries
14596 *** as such.  This will affect the creation of libtool libraries that
14597 *** depend on shared libraries, but programs linked with such libtool
14598 *** libraries will work regardless of this problem.  Nevertheless, you
14599 *** may want to report the problem to your system manager and/or to
14600 *** bug-libtool@gnu.org
14601
14602 EOF
14603           fi ;;
14604         esac
14605       fi
14606       break
14607     fi
14608   done
14609   IFS="$lt_save_ifs"
14610   MAGIC_CMD="$lt_save_MAGIC_CMD"
14611   ;;
14612 esac
14613 fi
14614
14615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14616 if test -n "$MAGIC_CMD"; then
14617   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14618 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14619 else
14620   { echo "$as_me:$LINENO: result: no" >&5
14621 echo "${ECHO_T}no" >&6; }
14622 fi
14623
14624   else
14625     MAGIC_CMD=:
14626   fi
14627 fi
14628
14629   fi
14630   ;;
14631 esac
14632
14633 enable_dlopen=yes
14634 enable_win32_dll=no
14635
14636 # Check whether --enable-libtool-lock was given.
14637 if test "${enable_libtool_lock+set}" = set; then
14638   enableval=$enable_libtool_lock;
14639 fi
14640
14641 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14642
14643
14644 # Check whether --with-pic was given.
14645 if test "${with_pic+set}" = set; then
14646   withval=$with_pic; pic_mode="$withval"
14647 else
14648   pic_mode=default
14649 fi
14650
14651 test -z "$pic_mode" && pic_mode=default
14652
14653 # Use C for the default configuration in the libtool script
14654 tagname=
14655 lt_save_CC="$CC"
14656 ac_ext=c
14657 ac_cpp='$CPP $CPPFLAGS'
14658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14661
14662
14663 # Source file extension for C test sources.
14664 ac_ext=c
14665
14666 # Object file extension for compiled C test sources.
14667 objext=o
14668 objext=$objext
14669
14670 # Code to be used in simple compile tests
14671 lt_simple_compile_test_code="int some_variable = 0;\n"
14672
14673 # Code to be used in simple link tests
14674 lt_simple_link_test_code='int main(){return(0);}\n'
14675
14676
14677 # If no C compiler was specified, use CC.
14678 LTCC=${LTCC-"$CC"}
14679
14680 # If no C compiler flags were specified, use CFLAGS.
14681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14682
14683 # Allow CC to be a program name with arguments.
14684 compiler=$CC
14685
14686
14687 # save warnings/boilerplate of simple test code
14688 ac_outfile=conftest.$ac_objext
14689 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14690 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14691 _lt_compiler_boilerplate=`cat conftest.err`
14692 $rm conftest*
14693
14694 ac_outfile=conftest.$ac_objext
14695 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14696 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14697 _lt_linker_boilerplate=`cat conftest.err`
14698 $rm conftest*
14699
14700
14701
14702 lt_prog_compiler_no_builtin_flag=
14703
14704 if test "$GCC" = yes; then
14705   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14706
14707
14708 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14709 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   lt_cv_prog_compiler_rtti_exceptions=no
14714   ac_outfile=conftest.$ac_objext
14715    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14716    lt_compiler_flag="-fno-rtti -fno-exceptions"
14717    # Insert the option either (1) after the last *FLAGS variable, or
14718    # (2) before a word containing "conftest.", or (3) at the end.
14719    # Note that $ac_compile itself does not contain backslashes and begins
14720    # with a dollar sign (not a hyphen), so the echo should work correctly.
14721    # The option is referenced via a variable to avoid confusing sed.
14722    lt_compile=`echo "$ac_compile" | $SED \
14723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725    -e 's:$: $lt_compiler_flag:'`
14726    (eval echo "\"\$as_me:14726: $lt_compile\"" >&5)
14727    (eval "$lt_compile" 2>conftest.err)
14728    ac_status=$?
14729    cat conftest.err >&5
14730    echo "$as_me:14730: \$? = $ac_status" >&5
14731    if (exit $ac_status) && test -s "$ac_outfile"; then
14732      # The compiler can only warn and ignore the option if not recognized
14733      # So say no if there are warnings other than the usual output.
14734      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14735      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14736      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14737        lt_cv_prog_compiler_rtti_exceptions=yes
14738      fi
14739    fi
14740    $rm conftest*
14741
14742 fi
14743 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14744 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14745
14746 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14747     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14748 else
14749     :
14750 fi
14751
14752 fi
14753
14754 lt_prog_compiler_wl=
14755 lt_prog_compiler_pic=
14756 lt_prog_compiler_static=
14757
14758 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14759 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14760
14761   if test "$GCC" = yes; then
14762     lt_prog_compiler_wl='-Wl,'
14763     lt_prog_compiler_static='-static'
14764
14765     case $host_os in
14766       aix*)
14767       # All AIX code is PIC.
14768       if test "$host_cpu" = ia64; then
14769         # AIX 5 now supports IA64 processor
14770         lt_prog_compiler_static='-Bstatic'
14771       fi
14772       ;;
14773
14774     amigaos*)
14775       # FIXME: we need at least 68020 code to build shared libraries, but
14776       # adding the `-m68020' flag to GCC prevents building anything better,
14777       # like `-m68040'.
14778       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14779       ;;
14780
14781     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14782       # PIC is the default for these OSes.
14783       ;;
14784
14785     mingw* | pw32* | os2*)
14786       # This hack is so that the source file can tell whether it is being
14787       # built for inclusion in a dll (and should export symbols for example).
14788       lt_prog_compiler_pic='-DDLL_EXPORT'
14789       ;;
14790
14791     darwin* | rhapsody*)
14792       # PIC is the default on this platform
14793       # Common symbols not allowed in MH_DYLIB files
14794       lt_prog_compiler_pic='-fno-common'
14795       ;;
14796
14797     interix3*)
14798       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14799       # Instead, we relocate shared libraries at runtime.
14800       ;;
14801
14802     msdosdjgpp*)
14803       # Just because we use GCC doesn't mean we suddenly get shared libraries
14804       # on systems that don't support them.
14805       lt_prog_compiler_can_build_shared=no
14806       enable_shared=no
14807       ;;
14808
14809     sysv4*MP*)
14810       if test -d /usr/nec; then
14811         lt_prog_compiler_pic=-Kconform_pic
14812       fi
14813       ;;
14814
14815     hpux*)
14816       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14817       # not for PA HP-UX.
14818       case $host_cpu in
14819       hppa*64*|ia64*)
14820         # +Z the default
14821         ;;
14822       *)
14823         lt_prog_compiler_pic='-fPIC'
14824         ;;
14825       esac
14826       ;;
14827
14828     *)
14829       lt_prog_compiler_pic='-fPIC'
14830       ;;
14831     esac
14832   else
14833     # PORTME Check for flag to pass linker flags through the system compiler.
14834     case $host_os in
14835     aix*)
14836       lt_prog_compiler_wl='-Wl,'
14837       if test "$host_cpu" = ia64; then
14838         # AIX 5 now supports IA64 processor
14839         lt_prog_compiler_static='-Bstatic'
14840       else
14841         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14842       fi
14843       ;;
14844       darwin*)
14845         # PIC is the default on this platform
14846         # Common symbols not allowed in MH_DYLIB files
14847        case $cc_basename in
14848          xlc*)
14849          lt_prog_compiler_pic='-qnocommon'
14850          lt_prog_compiler_wl='-Wl,'
14851          ;;
14852        esac
14853        ;;
14854
14855     mingw* | pw32* | os2*)
14856       # This hack is so that the source file can tell whether it is being
14857       # built for inclusion in a dll (and should export symbols for example).
14858       lt_prog_compiler_pic='-DDLL_EXPORT'
14859       ;;
14860
14861     hpux9* | hpux10* | hpux11*)
14862       lt_prog_compiler_wl='-Wl,'
14863       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14864       # not for PA HP-UX.
14865       case $host_cpu in
14866       hppa*64*|ia64*)
14867         # +Z the default
14868         ;;
14869       *)
14870         lt_prog_compiler_pic='+Z'
14871         ;;
14872       esac
14873       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14874       lt_prog_compiler_static='${wl}-a ${wl}archive'
14875       ;;
14876
14877     irix5* | irix6* | nonstopux*)
14878       lt_prog_compiler_wl='-Wl,'
14879       # PIC (with -KPIC) is the default.
14880       lt_prog_compiler_static='-non_shared'
14881       ;;
14882
14883     newsos6)
14884       lt_prog_compiler_pic='-KPIC'
14885       lt_prog_compiler_static='-Bstatic'
14886       ;;
14887
14888     linux*)
14889       case $cc_basename in
14890       icc* | ecc*)
14891         lt_prog_compiler_wl='-Wl,'
14892         lt_prog_compiler_pic='-KPIC'
14893         lt_prog_compiler_static='-static'
14894         ;;
14895       pgcc* | pgf77* | pgf90* | pgf95*)
14896         # Portland Group compilers (*not* the Pentium gcc compiler,
14897         # which looks to be a dead project)
14898         lt_prog_compiler_wl='-Wl,'
14899         lt_prog_compiler_pic='-fpic'
14900         lt_prog_compiler_static='-Bstatic'
14901         ;;
14902       ccc*)
14903         lt_prog_compiler_wl='-Wl,'
14904         # All Alpha code is PIC.
14905         lt_prog_compiler_static='-non_shared'
14906         ;;
14907       esac
14908       ;;
14909
14910     osf3* | osf4* | osf5*)
14911       lt_prog_compiler_wl='-Wl,'
14912       # All OSF/1 code is PIC.
14913       lt_prog_compiler_static='-non_shared'
14914       ;;
14915
14916     solaris*)
14917       lt_prog_compiler_pic='-KPIC'
14918       lt_prog_compiler_static='-Bstatic'
14919       case $cc_basename in
14920       f77* | f90* | f95*)
14921         lt_prog_compiler_wl='-Qoption ld ';;
14922       *)
14923         lt_prog_compiler_wl='-Wl,';;
14924       esac
14925       ;;
14926
14927     sunos4*)
14928       lt_prog_compiler_wl='-Qoption ld '
14929       lt_prog_compiler_pic='-PIC'
14930       lt_prog_compiler_static='-Bstatic'
14931       ;;
14932
14933     sysv4 | sysv4.2uw2* | sysv4.3*)
14934       lt_prog_compiler_wl='-Wl,'
14935       lt_prog_compiler_pic='-KPIC'
14936       lt_prog_compiler_static='-Bstatic'
14937       ;;
14938
14939     sysv4*MP*)
14940       if test -d /usr/nec ;then
14941         lt_prog_compiler_pic='-Kconform_pic'
14942         lt_prog_compiler_static='-Bstatic'
14943       fi
14944       ;;
14945
14946     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14947       lt_prog_compiler_wl='-Wl,'
14948       lt_prog_compiler_pic='-KPIC'
14949       lt_prog_compiler_static='-Bstatic'
14950       ;;
14951
14952     unicos*)
14953       lt_prog_compiler_wl='-Wl,'
14954       lt_prog_compiler_can_build_shared=no
14955       ;;
14956
14957     uts4*)
14958       lt_prog_compiler_pic='-pic'
14959       lt_prog_compiler_static='-Bstatic'
14960       ;;
14961
14962     *)
14963       lt_prog_compiler_can_build_shared=no
14964       ;;
14965     esac
14966   fi
14967
14968 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14969 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14970
14971 #
14972 # Check to make sure the PIC flag actually works.
14973 #
14974 if test -n "$lt_prog_compiler_pic"; then
14975
14976 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14978 if test "${lt_prog_compiler_pic_works+set}" = set; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   lt_prog_compiler_pic_works=no
14982   ac_outfile=conftest.$ac_objext
14983    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14984    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14985    # Insert the option either (1) after the last *FLAGS variable, or
14986    # (2) before a word containing "conftest.", or (3) at the end.
14987    # Note that $ac_compile itself does not contain backslashes and begins
14988    # with a dollar sign (not a hyphen), so the echo should work correctly.
14989    # The option is referenced via a variable to avoid confusing sed.
14990    lt_compile=`echo "$ac_compile" | $SED \
14991    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14993    -e 's:$: $lt_compiler_flag:'`
14994    (eval echo "\"\$as_me:14994: $lt_compile\"" >&5)
14995    (eval "$lt_compile" 2>conftest.err)
14996    ac_status=$?
14997    cat conftest.err >&5
14998    echo "$as_me:14998: \$? = $ac_status" >&5
14999    if (exit $ac_status) && test -s "$ac_outfile"; then
15000      # The compiler can only warn and ignore the option if not recognized
15001      # So say no if there are warnings other than the usual output.
15002      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15003      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15004      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15005        lt_prog_compiler_pic_works=yes
15006      fi
15007    fi
15008    $rm conftest*
15009
15010 fi
15011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15013
15014 if test x"$lt_prog_compiler_pic_works" = xyes; then
15015     case $lt_prog_compiler_pic in
15016      "" | " "*) ;;
15017      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15018      esac
15019 else
15020     lt_prog_compiler_pic=
15021      lt_prog_compiler_can_build_shared=no
15022 fi
15023
15024 fi
15025 case $host_os in
15026   # For platforms which do not support PIC, -DPIC is meaningless:
15027   *djgpp*)
15028     lt_prog_compiler_pic=
15029     ;;
15030   *)
15031     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15032     ;;
15033 esac
15034
15035 #
15036 # Check to make sure the static flag actually works.
15037 #
15038 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15039 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15040 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15041 if test "${lt_prog_compiler_static_works+set}" = set; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044   lt_prog_compiler_static_works=no
15045    save_LDFLAGS="$LDFLAGS"
15046    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15047    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15048    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15049      # The linker can only warn and ignore the option if not recognized
15050      # So say no if there are warnings
15051      if test -s conftest.err; then
15052        # Append any errors to the config.log.
15053        cat conftest.err 1>&5
15054        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15055        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15056        if diff conftest.exp conftest.er2 >/dev/null; then
15057          lt_prog_compiler_static_works=yes
15058        fi
15059      else
15060        lt_prog_compiler_static_works=yes
15061      fi
15062    fi
15063    $rm conftest*
15064    LDFLAGS="$save_LDFLAGS"
15065
15066 fi
15067 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15068 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15069
15070 if test x"$lt_prog_compiler_static_works" = xyes; then
15071     :
15072 else
15073     lt_prog_compiler_static=
15074 fi
15075
15076
15077 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15079 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15080   echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082   lt_cv_prog_compiler_c_o=no
15083    $rm -r conftest 2>/dev/null
15084    mkdir conftest
15085    cd conftest
15086    mkdir out
15087    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15088
15089    lt_compiler_flag="-o out/conftest2.$ac_objext"
15090    # Insert the option either (1) after the last *FLAGS variable, or
15091    # (2) before a word containing "conftest.", or (3) at the end.
15092    # Note that $ac_compile itself does not contain backslashes and begins
15093    # with a dollar sign (not a hyphen), so the echo should work correctly.
15094    lt_compile=`echo "$ac_compile" | $SED \
15095    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097    -e 's:$: $lt_compiler_flag:'`
15098    (eval echo "\"\$as_me:15098: $lt_compile\"" >&5)
15099    (eval "$lt_compile" 2>out/conftest.err)
15100    ac_status=$?
15101    cat out/conftest.err >&5
15102    echo "$as_me:15102: \$? = $ac_status" >&5
15103    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15104    then
15105      # The compiler can only warn and ignore the option if not recognized
15106      # So say no if there are warnings
15107      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15108      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15109      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15110        lt_cv_prog_compiler_c_o=yes
15111      fi
15112    fi
15113    chmod u+w . 2>&5
15114    $rm conftest*
15115    # SGI C++ compiler will create directory out/ii_files/ for
15116    # template instantiation
15117    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15118    $rm out/* && rmdir out
15119    cd ..
15120    rmdir conftest
15121    $rm conftest*
15122
15123 fi
15124 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15126
15127
15128 hard_links="nottested"
15129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15130   # do not overwrite the value of need_locks provided by the user
15131   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15133   hard_links=yes
15134   $rm conftest*
15135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15136   touch conftest.a
15137   ln conftest.a conftest.b 2>&5 || hard_links=no
15138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15139   { echo "$as_me:$LINENO: result: $hard_links" >&5
15140 echo "${ECHO_T}$hard_links" >&6; }
15141   if test "$hard_links" = no; then
15142     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15144     need_locks=warn
15145   fi
15146 else
15147   need_locks=no
15148 fi
15149
15150 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15152
15153   runpath_var=
15154   allow_undefined_flag=
15155   enable_shared_with_static_runtimes=no
15156   archive_cmds=
15157   archive_expsym_cmds=
15158   old_archive_From_new_cmds=
15159   old_archive_from_expsyms_cmds=
15160   export_dynamic_flag_spec=
15161   whole_archive_flag_spec=
15162   thread_safe_flag_spec=
15163   hardcode_libdir_flag_spec=
15164   hardcode_libdir_flag_spec_ld=
15165   hardcode_libdir_separator=
15166   hardcode_direct=no
15167   hardcode_minus_L=no
15168   hardcode_shlibpath_var=unsupported
15169   link_all_deplibs=unknown
15170   hardcode_automatic=no
15171   module_cmds=
15172   module_expsym_cmds=
15173   always_export_symbols=no
15174   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15175   # include_expsyms should be a list of space-separated symbols to be *always*
15176   # included in the symbol list
15177   include_expsyms=
15178   # exclude_expsyms can be an extended regexp of symbols to exclude
15179   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15180   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15181   # as well as any symbol that contains `d'.
15182   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15183   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15184   # platforms (ab)use it in PIC code, but their linkers get confused if
15185   # the symbol is explicitly referenced.  Since portable code cannot
15186   # rely on this symbol name, it's probably fine to never include it in
15187   # preloaded symbol tables.
15188   extract_expsyms_cmds=
15189   # Just being paranoid about ensuring that cc_basename is set.
15190   for cc_temp in $compiler""; do
15191   case $cc_temp in
15192     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15193     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15194     \-*) ;;
15195     *) break;;
15196   esac
15197 done
15198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15199
15200   case $host_os in
15201   cygwin* | mingw* | pw32*)
15202     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15203     # When not using gcc, we currently assume that we are using
15204     # Microsoft Visual C++.
15205     if test "$GCC" != yes; then
15206       with_gnu_ld=no
15207     fi
15208     ;;
15209   interix*)
15210     # we just hope/assume this is gcc and not c89 (= MSVC++)
15211     with_gnu_ld=yes
15212     ;;
15213   openbsd*)
15214     with_gnu_ld=no
15215     ;;
15216   esac
15217
15218   ld_shlibs=yes
15219   if test "$with_gnu_ld" = yes; then
15220     # If archive_cmds runs LD, not CC, wlarc should be empty
15221     wlarc='${wl}'
15222
15223     # Set some defaults for GNU ld with shared library support. These
15224     # are reset later if shared libraries are not supported. Putting them
15225     # here allows them to be overridden if necessary.
15226     runpath_var=LD_RUN_PATH
15227     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15228     export_dynamic_flag_spec='${wl}--export-dynamic'
15229     # ancient GNU ld didn't support --whole-archive et. al.
15230     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15231         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15232       else
15233         whole_archive_flag_spec=
15234     fi
15235     supports_anon_versioning=no
15236     case `$LD -v 2>/dev/null` in
15237       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15238       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15239       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15240       *\ 2.11.*) ;; # other 2.11 versions
15241       *) supports_anon_versioning=yes ;;
15242     esac
15243
15244     # See if GNU ld supports shared libraries.
15245     case $host_os in
15246     aix3* | aix4* | aix5*)
15247       # On AIX/PPC, the GNU linker is very broken
15248       if test "$host_cpu" != ia64; then
15249         ld_shlibs=no
15250         cat <<EOF 1>&2
15251
15252 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15253 *** to be unable to reliably create shared libraries on AIX.
15254 *** Therefore, libtool is disabling shared libraries support.  If you
15255 *** really care for shared libraries, you may want to modify your PATH
15256 *** so that a non-GNU linker is found, and then restart.
15257
15258 EOF
15259       fi
15260       ;;
15261
15262     amigaos*)
15263       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)'
15264       hardcode_libdir_flag_spec='-L$libdir'
15265       hardcode_minus_L=yes
15266
15267       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15268       # that the semantics of dynamic libraries on AmigaOS, at least up
15269       # to version 4, is to share data among multiple programs linked
15270       # with the same dynamic library.  Since this doesn't match the
15271       # behavior of shared libraries on other platforms, we can't use
15272       # them.
15273       ld_shlibs=no
15274       ;;
15275
15276     beos*)
15277       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15278         allow_undefined_flag=unsupported
15279         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15280         # support --undefined.  This deserves some investigation.  FIXME
15281         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282       else
15283         ld_shlibs=no
15284       fi
15285       ;;
15286
15287     cygwin* | mingw* | pw32*)
15288       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15289       # as there is no search path for DLLs.
15290       hardcode_libdir_flag_spec='-L$libdir'
15291       allow_undefined_flag=unsupported
15292       always_export_symbols=no
15293       enable_shared_with_static_runtimes=yes
15294       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15295
15296       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15297         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15298         # If the export-symbols file already is a .def file (1st line
15299         # is EXPORTS), use it as is; otherwise, prepend...
15300         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15301           cp $export_symbols $output_objdir/$soname.def;
15302         else
15303           echo EXPORTS > $output_objdir/$soname.def;
15304           cat $export_symbols >> $output_objdir/$soname.def;
15305         fi~
15306         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15307       else
15308         ld_shlibs=no
15309       fi
15310       ;;
15311
15312     interix3*)
15313       hardcode_direct=no
15314       hardcode_shlibpath_var=no
15315       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15316       export_dynamic_flag_spec='${wl}-E'
15317       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15318       # Instead, shared libraries are loaded at an image base (0x10000000 by
15319       # default) and relocated if they conflict, which is a slow very memory
15320       # consuming and fragmenting process.  To avoid this, we pick a random,
15321       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15322       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15323       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15324       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'
15325       ;;
15326
15327     linux*)
15328       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15329         tmp_addflag=
15330         case $cc_basename,$host_cpu in
15331         pgcc*)                          # Portland Group C compiler
15332           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'
15333           tmp_addflag=' $pic_flag'
15334           ;;
15335         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15336           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'
15337           tmp_addflag=' $pic_flag -Mnomain' ;;
15338         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15339           tmp_addflag=' -i_dynamic' ;;
15340         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15341           tmp_addflag=' -i_dynamic -nofor_main' ;;
15342         ifc* | ifort*)                  # Intel Fortran compiler
15343           tmp_addflag=' -nofor_main' ;;
15344         esac
15345         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15346
15347         if test $supports_anon_versioning = yes; then
15348           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15349   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15350   $echo "local: *; };" >> $output_objdir/$libname.ver~
15351           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15352         fi
15353       else
15354         ld_shlibs=no
15355       fi
15356       ;;
15357
15358     netbsd*)
15359       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15360         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15361         wlarc=
15362       else
15363         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15365       fi
15366       ;;
15367
15368     solaris*)
15369       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15370         ld_shlibs=no
15371         cat <<EOF 1>&2
15372
15373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15374 *** create shared libraries on Solaris systems.  Therefore, libtool
15375 *** is disabling shared libraries support.  We urge you to upgrade GNU
15376 *** binutils to release 2.9.1 or newer.  Another option is to modify
15377 *** your PATH or compiler configuration so that the native linker is
15378 *** used, and then restart.
15379
15380 EOF
15381       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15383         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15384       else
15385         ld_shlibs=no
15386       fi
15387       ;;
15388
15389     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15390       case `$LD -v 2>&1` in
15391         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15392         ld_shlibs=no
15393         cat <<_LT_EOF 1>&2
15394
15395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15396 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15397 *** is disabling shared libraries support.  We urge you to upgrade GNU
15398 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15399 *** your PATH or compiler configuration so that the native linker is
15400 *** used, and then restart.
15401
15402 _LT_EOF
15403         ;;
15404         *)
15405           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15406             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15407             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15408             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15409           else
15410             ld_shlibs=no
15411           fi
15412         ;;
15413       esac
15414       ;;
15415
15416     sunos4*)
15417       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15418       wlarc=
15419       hardcode_direct=yes
15420       hardcode_shlibpath_var=no
15421       ;;
15422
15423     *)
15424       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15425         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15427       else
15428         ld_shlibs=no
15429       fi
15430       ;;
15431     esac
15432
15433     if test "$ld_shlibs" = no; then
15434       runpath_var=
15435       hardcode_libdir_flag_spec=
15436       export_dynamic_flag_spec=
15437       whole_archive_flag_spec=
15438     fi
15439   else
15440     # PORTME fill in a description of your system's linker (not GNU ld)
15441     case $host_os in
15442     aix3*)
15443       allow_undefined_flag=unsupported
15444       always_export_symbols=yes
15445       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'
15446       # Note: this linker hardcodes the directories in LIBPATH if there
15447       # are no directories specified by -L.
15448       hardcode_minus_L=yes
15449       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15450         # Neither direct hardcoding nor static linking is supported with a
15451         # broken collect2.
15452         hardcode_direct=unsupported
15453       fi
15454       ;;
15455
15456     aix4* | aix5*)
15457       if test "$host_cpu" = ia64; then
15458         # On IA64, the linker does run time linking by default, so we don't
15459         # have to do anything special.
15460         aix_use_runtimelinking=no
15461         exp_sym_flag='-Bexport'
15462         no_entry_flag=""
15463       else
15464         # If we're using GNU nm, then we don't want the "-C" option.
15465         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15466         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15467           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'
15468         else
15469           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'
15470         fi
15471         aix_use_runtimelinking=no
15472
15473         # Test if we are trying to use run time linking or normal
15474         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15475         # need to do runtime linking.
15476         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15477           for ld_flag in $LDFLAGS; do
15478           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15479             aix_use_runtimelinking=yes
15480             break
15481           fi
15482           done
15483           ;;
15484         esac
15485
15486         exp_sym_flag='-bexport'
15487         no_entry_flag='-bnoentry'
15488       fi
15489
15490       # When large executables or shared objects are built, AIX ld can
15491       # have problems creating the table of contents.  If linking a library
15492       # or program results in "error TOC overflow" add -mminimal-toc to
15493       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15494       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15495
15496       archive_cmds=''
15497       hardcode_direct=yes
15498       hardcode_libdir_separator=':'
15499       link_all_deplibs=yes
15500
15501       if test "$GCC" = yes; then
15502         case $host_os in aix4.[012]|aix4.[012].*)
15503         # We only want to do this on AIX 4.2 and lower, the check
15504         # below for broken collect2 doesn't work under 4.3+
15505           collect2name=`${CC} -print-prog-name=collect2`
15506           if test -f "$collect2name" && \
15507            strings "$collect2name" | grep resolve_lib_name >/dev/null
15508           then
15509           # We have reworked collect2
15510           hardcode_direct=yes
15511           else
15512           # We have old collect2
15513           hardcode_direct=unsupported
15514           # It fails to find uninstalled libraries when the uninstalled
15515           # path is not listed in the libpath.  Setting hardcode_minus_L
15516           # to unsupported forces relinking
15517           hardcode_minus_L=yes
15518           hardcode_libdir_flag_spec='-L$libdir'
15519           hardcode_libdir_separator=
15520           fi
15521           ;;
15522         esac
15523         shared_flag='-shared'
15524         if test "$aix_use_runtimelinking" = yes; then
15525           shared_flag="$shared_flag "'${wl}-G'
15526         fi
15527       else
15528         # not using gcc
15529         if test "$host_cpu" = ia64; then
15530         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15531         # chokes on -Wl,-G. The following line is correct:
15532           shared_flag='-G'
15533         else
15534           if test "$aix_use_runtimelinking" = yes; then
15535             shared_flag='${wl}-G'
15536           else
15537             shared_flag='${wl}-bM:SRE'
15538           fi
15539         fi
15540       fi
15541
15542       # It seems that -bexpall does not export symbols beginning with
15543       # underscore (_), so it is better to generate a list of symbols to export.
15544       always_export_symbols=yes
15545       if test "$aix_use_runtimelinking" = yes; then
15546         # Warning - without using the other runtime loading flags (-brtl),
15547         # -berok will link without error, but may produce a broken library.
15548         allow_undefined_flag='-berok'
15549        # Determine the default libpath from the value encoded in an empty executable.
15550        cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556
15557 int
15558 main ()
15559 {
15560
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (ac_try="$ac_link"
15567 case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_link") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } &&
15579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; } &&
15589          { ac_try='test -s conftest$ac_exeext'
15590   { (case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_try") 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599
15600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15601 }'`
15602 # Check for a 64-bit object if we didn't find anything.
15603 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; }
15604 }'`; fi
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609
15610 fi
15611
15612 rm -f core conftest.err conftest.$ac_objext \
15613       conftest$ac_exeext conftest.$ac_ext
15614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15615
15616        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15617         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"
15618        else
15619         if test "$host_cpu" = ia64; then
15620           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15621           allow_undefined_flag="-z nodefs"
15622           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"
15623         else
15624          # Determine the default libpath from the value encoded in an empty executable.
15625          cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631
15632 int
15633 main ()
15634 {
15635
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (ac_try="$ac_link"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_link") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655   { (case "(($ac_try" in
15656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657   *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660   (eval "$ac_try") 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest$ac_exeext'
15665   { (case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_try") 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); }; }; then
15674
15675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15676 }'`
15677 # Check for a 64-bit object if we didn't find anything.
15678 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; }
15679 }'`; fi
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext \
15688       conftest$ac_exeext conftest.$ac_ext
15689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15690
15691          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15692           # Warning - without using the other run time loading flags,
15693           # -berok will link without error, but may produce a broken library.
15694           no_undefined_flag=' ${wl}-bernotok'
15695           allow_undefined_flag=' ${wl}-berok'
15696           # Exported symbols can be pulled into shared objects from archives
15697           whole_archive_flag_spec='$convenience'
15698           archive_cmds_need_lc=yes
15699           # This is similar to how AIX traditionally builds its shared libraries.
15700           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'
15701         fi
15702       fi
15703       ;;
15704
15705     amigaos*)
15706       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)'
15707       hardcode_libdir_flag_spec='-L$libdir'
15708       hardcode_minus_L=yes
15709       # see comment about different semantics on the GNU ld section
15710       ld_shlibs=no
15711       ;;
15712
15713     bsdi[45]*)
15714       export_dynamic_flag_spec=-rdynamic
15715       ;;
15716
15717     cygwin* | mingw* | pw32*)
15718       # When not using gcc, we currently assume that we are using
15719       # Microsoft Visual C++.
15720       # hardcode_libdir_flag_spec is actually meaningless, as there is
15721       # no search path for DLLs.
15722       hardcode_libdir_flag_spec=' '
15723       allow_undefined_flag=unsupported
15724       # Tell ltmain to make .lib files, not .a files.
15725       libext=lib
15726       # Tell ltmain to make .dll files, not .so files.
15727       shrext_cmds=".dll"
15728       # FIXME: Setting linknames here is a bad hack.
15729       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15730       # The linker will automatically build a .lib file if we build a DLL.
15731       old_archive_From_new_cmds='true'
15732       # FIXME: Should let the user specify the lib program.
15733       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15734       fix_srcfile_path='`cygpath -w "$srcfile"`'
15735       enable_shared_with_static_runtimes=yes
15736       ;;
15737
15738     darwin* | rhapsody*)
15739       case $host_os in
15740         rhapsody* | darwin1.[012])
15741          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15742          ;;
15743        *) # Darwin 1.3 on
15744          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15745            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15746          else
15747            case ${MACOSX_DEPLOYMENT_TARGET} in
15748              10.[012])
15749                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15750                ;;
15751              10.*)
15752                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15753                ;;
15754            esac
15755          fi
15756          ;;
15757       esac
15758       archive_cmds_need_lc=no
15759       hardcode_direct=no
15760       hardcode_automatic=yes
15761       hardcode_shlibpath_var=unsupported
15762       whole_archive_flag_spec=''
15763       link_all_deplibs=yes
15764     if test "$GCC" = yes ; then
15765         output_verbose_link_cmd='echo'
15766         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15767       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15768       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15769       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}'
15770       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}'
15771     else
15772       case $cc_basename in
15773         xlc*)
15774          output_verbose_link_cmd='echo'
15775          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15776          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15777           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15778          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}'
15779           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}'
15780           ;;
15781        *)
15782          ld_shlibs=no
15783           ;;
15784       esac
15785     fi
15786       ;;
15787
15788     dgux*)
15789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790       hardcode_libdir_flag_spec='-L$libdir'
15791       hardcode_shlibpath_var=no
15792       ;;
15793
15794     freebsd1*)
15795       ld_shlibs=no
15796       ;;
15797
15798     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15799     # support.  Future versions do this automatically, but an explicit c++rt0.o
15800     # does not break anything, and helps significantly (at the cost of a little
15801     # extra space).
15802     freebsd2.2*)
15803       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15804       hardcode_libdir_flag_spec='-R$libdir'
15805       hardcode_direct=yes
15806       hardcode_shlibpath_var=no
15807       ;;
15808
15809     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15810     freebsd2*)
15811       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15812       hardcode_direct=yes
15813       hardcode_minus_L=yes
15814       hardcode_shlibpath_var=no
15815       ;;
15816
15817     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15818     freebsd* | kfreebsd*-gnu | dragonfly*)
15819       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15820       hardcode_libdir_flag_spec='-R$libdir'
15821       hardcode_direct=yes
15822       hardcode_shlibpath_var=no
15823       ;;
15824
15825     hpux9*)
15826       if test "$GCC" = yes; then
15827         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'
15828       else
15829         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'
15830       fi
15831       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15832       hardcode_libdir_separator=:
15833       hardcode_direct=yes
15834
15835       # hardcode_minus_L: Not really in the search PATH,
15836       # but as the default location of the library.
15837       hardcode_minus_L=yes
15838       export_dynamic_flag_spec='${wl}-E'
15839       ;;
15840
15841     hpux10*)
15842       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15843         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15844       else
15845         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15846       fi
15847       if test "$with_gnu_ld" = no; then
15848         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15849         hardcode_libdir_separator=:
15850
15851         hardcode_direct=yes
15852         export_dynamic_flag_spec='${wl}-E'
15853
15854         # hardcode_minus_L: Not really in the search PATH,
15855         # but as the default location of the library.
15856         hardcode_minus_L=yes
15857       fi
15858       ;;
15859
15860     hpux11*)
15861       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15862         case $host_cpu in
15863         hppa*64*)
15864           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865           ;;
15866         ia64*)
15867           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15868           ;;
15869         *)
15870           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15871           ;;
15872         esac
15873       else
15874         case $host_cpu in
15875         hppa*64*)
15876           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877           ;;
15878         ia64*)
15879           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15880           ;;
15881         *)
15882           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15883           ;;
15884         esac
15885       fi
15886       if test "$with_gnu_ld" = no; then
15887         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15888         hardcode_libdir_separator=:
15889
15890         case $host_cpu in
15891         hppa*64*|ia64*)
15892           hardcode_libdir_flag_spec_ld='+b $libdir'
15893           hardcode_direct=no
15894           hardcode_shlibpath_var=no
15895           ;;
15896         *)
15897           hardcode_direct=yes
15898           export_dynamic_flag_spec='${wl}-E'
15899
15900           # hardcode_minus_L: Not really in the search PATH,
15901           # but as the default location of the library.
15902           hardcode_minus_L=yes
15903           ;;
15904         esac
15905       fi
15906       ;;
15907
15908     irix5* | irix6* | nonstopux*)
15909       if test "$GCC" = yes; then
15910         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'
15911       else
15912         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'
15913         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15914       fi
15915       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15916       hardcode_libdir_separator=:
15917       link_all_deplibs=yes
15918       ;;
15919
15920     netbsd*)
15921       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15922         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15923       else
15924         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15925       fi
15926       hardcode_libdir_flag_spec='-R$libdir'
15927       hardcode_direct=yes
15928       hardcode_shlibpath_var=no
15929       ;;
15930
15931     newsos6)
15932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15933       hardcode_direct=yes
15934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15935       hardcode_libdir_separator=:
15936       hardcode_shlibpath_var=no
15937       ;;
15938
15939     openbsd*)
15940       hardcode_direct=yes
15941       hardcode_shlibpath_var=no
15942       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15943         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15944         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15945         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15946         export_dynamic_flag_spec='${wl}-E'
15947       else
15948        case $host_os in
15949          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15950            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15951            hardcode_libdir_flag_spec='-R$libdir'
15952            ;;
15953          *)
15954            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15956            ;;
15957        esac
15958       fi
15959       ;;
15960
15961     os2*)
15962       hardcode_libdir_flag_spec='-L$libdir'
15963       hardcode_minus_L=yes
15964       allow_undefined_flag=unsupported
15965       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'
15966       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15967       ;;
15968
15969     osf3*)
15970       if test "$GCC" = yes; then
15971         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15972         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'
15973       else
15974         allow_undefined_flag=' -expect_unresolved \*'
15975         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'
15976       fi
15977       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15978       hardcode_libdir_separator=:
15979       ;;
15980
15981     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15982       if test "$GCC" = yes; then
15983         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15984         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'
15985         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15986       else
15987         allow_undefined_flag=' -expect_unresolved \*'
15988         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'
15989         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15990         $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'
15991
15992         # Both c and cxx compiler support -rpath directly
15993         hardcode_libdir_flag_spec='-rpath $libdir'
15994       fi
15995       hardcode_libdir_separator=:
15996       ;;
15997
15998     solaris*)
15999       no_undefined_flag=' -z text'
16000       if test "$GCC" = yes; then
16001         wlarc='${wl}'
16002         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16004           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16005       else
16006         wlarc=''
16007         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16009         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16010       fi
16011       hardcode_libdir_flag_spec='-R$libdir'
16012       hardcode_shlibpath_var=no
16013       case $host_os in
16014       solaris2.[0-5] | solaris2.[0-5].*) ;;
16015       *)
16016         # The compiler driver will combine linker options so we
16017         # cannot just pass the convience library names through
16018         # without $wl, iff we do not link with $LD.
16019         # Luckily, gcc supports the same syntax we need for Sun Studio.
16020         # Supported since Solaris 2.6 (maybe 2.5.1?)
16021         case $wlarc in
16022         '')
16023           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16024         *)
16025           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' ;;
16026         esac ;;
16027       esac
16028       link_all_deplibs=yes
16029       ;;
16030
16031     sunos4*)
16032       if test "x$host_vendor" = xsequent; then
16033         # Use $CC to link under sequent, because it throws in some extra .o
16034         # files that make .init and .fini sections work.
16035         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16036       else
16037         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16038       fi
16039       hardcode_libdir_flag_spec='-L$libdir'
16040       hardcode_direct=yes
16041       hardcode_minus_L=yes
16042       hardcode_shlibpath_var=no
16043       ;;
16044
16045     sysv4)
16046       case $host_vendor in
16047         sni)
16048           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049           hardcode_direct=yes # is this really true???
16050         ;;
16051         siemens)
16052           ## LD is ld it makes a PLAMLIB
16053           ## CC just makes a GrossModule.
16054           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16055           reload_cmds='$CC -r -o $output$reload_objs'
16056           hardcode_direct=no
16057         ;;
16058         motorola)
16059           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16061         ;;
16062       esac
16063       runpath_var='LD_RUN_PATH'
16064       hardcode_shlibpath_var=no
16065       ;;
16066
16067     sysv4.3*)
16068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069       hardcode_shlibpath_var=no
16070       export_dynamic_flag_spec='-Bexport'
16071       ;;
16072
16073     sysv4*MP*)
16074       if test -d /usr/nec; then
16075         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076         hardcode_shlibpath_var=no
16077         runpath_var=LD_RUN_PATH
16078         hardcode_runpath_var=yes
16079         ld_shlibs=yes
16080       fi
16081       ;;
16082
16083     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16084       no_undefined_flag='${wl}-z,text'
16085       archive_cmds_need_lc=no
16086       hardcode_shlibpath_var=no
16087       runpath_var='LD_RUN_PATH'
16088
16089       if test "$GCC" = yes; then
16090         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16091         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092       else
16093         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095       fi
16096       ;;
16097
16098     sysv5* | sco3.2v5* | sco5v6*)
16099       # Note: We can NOT use -z defs as we might desire, because we do not
16100       # link with -lc, and that would cause any symbols used from libc to
16101       # always be unresolved, which means just about no library would
16102       # ever link correctly.  If we're not using GNU ld we use -z text
16103       # though, which does catch some bad symbols but isn't as heavy-handed
16104       # as -z defs.
16105       no_undefined_flag='${wl}-z,text'
16106       allow_undefined_flag='${wl}-z,nodefs'
16107       archive_cmds_need_lc=no
16108       hardcode_shlibpath_var=no
16109       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16110       hardcode_libdir_separator=':'
16111       link_all_deplibs=yes
16112       export_dynamic_flag_spec='${wl}-Bexport'
16113       runpath_var='LD_RUN_PATH'
16114
16115       if test "$GCC" = yes; then
16116         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16117         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118       else
16119         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121       fi
16122       ;;
16123
16124     uts4*)
16125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126       hardcode_libdir_flag_spec='-L$libdir'
16127       hardcode_shlibpath_var=no
16128       ;;
16129
16130     *)
16131       ld_shlibs=no
16132       ;;
16133     esac
16134   fi
16135
16136 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16137 echo "${ECHO_T}$ld_shlibs" >&6; }
16138 test "$ld_shlibs" = no && can_build_shared=no
16139
16140 #
16141 # Do we need to explicitly link libc?
16142 #
16143 case "x$archive_cmds_need_lc" in
16144 x|xyes)
16145   # Assume -lc should be added
16146   archive_cmds_need_lc=yes
16147
16148   if test "$enable_shared" = yes && test "$GCC" = yes; then
16149     case $archive_cmds in
16150     *'~'*)
16151       # FIXME: we may have to deal with multi-command sequences.
16152       ;;
16153     '$CC '*)
16154       # Test whether the compiler implicitly links with -lc since on some
16155       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16156       # to ld, don't add -lc before -lgcc.
16157       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16158 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16159       $rm conftest*
16160       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16161
16162       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163   (eval $ac_compile) 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } 2>conftest.err; then
16167         soname=conftest
16168         lib=conftest
16169         libobjs=conftest.$ac_objext
16170         deplibs=
16171         wl=$lt_prog_compiler_wl
16172         pic_flag=$lt_prog_compiler_pic
16173         compiler_flags=-v
16174         linker_flags=-v
16175         verstring=
16176         output_objdir=.
16177         libname=conftest
16178         lt_save_allow_undefined_flag=$allow_undefined_flag
16179         allow_undefined_flag=
16180         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16181   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }
16185         then
16186           archive_cmds_need_lc=no
16187         else
16188           archive_cmds_need_lc=yes
16189         fi
16190         allow_undefined_flag=$lt_save_allow_undefined_flag
16191       else
16192         cat conftest.err 1>&5
16193       fi
16194       $rm conftest*
16195       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16196 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16197       ;;
16198     esac
16199   fi
16200   ;;
16201 esac
16202
16203 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16204 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16205 library_names_spec=
16206 libname_spec='lib$name'
16207 soname_spec=
16208 shrext_cmds=".so"
16209 postinstall_cmds=
16210 postuninstall_cmds=
16211 finish_cmds=
16212 finish_eval=
16213 shlibpath_var=
16214 shlibpath_overrides_runpath=unknown
16215 version_type=none
16216 dynamic_linker="$host_os ld.so"
16217 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16218 if test "$GCC" = yes; then
16219   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16220   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16221     # if the path contains ";" then we assume it to be the separator
16222     # otherwise default to the standard path separator (i.e. ":") - it is
16223     # assumed that no part of a normal pathname contains ";" but that should
16224     # okay in the real world where ";" in dirpaths is itself problematic.
16225     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16226   else
16227     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16228   fi
16229 else
16230   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16231 fi
16232 need_lib_prefix=unknown
16233 hardcode_into_libs=no
16234
16235 # when you set need_version to no, make sure it does not cause -set_version
16236 # flags to be left without arguments
16237 need_version=unknown
16238
16239 case $host_os in
16240 aix3*)
16241   version_type=linux
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16243   shlibpath_var=LIBPATH
16244
16245   # AIX 3 has no versioning support, so we append a major version to the name.
16246   soname_spec='${libname}${release}${shared_ext}$major'
16247   ;;
16248
16249 aix4* | aix5*)
16250   version_type=linux
16251   need_lib_prefix=no
16252   need_version=no
16253   hardcode_into_libs=yes
16254   if test "$host_cpu" = ia64; then
16255     # AIX 5 supports IA64
16256     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16257     shlibpath_var=LD_LIBRARY_PATH
16258   else
16259     # With GCC up to 2.95.x, collect2 would create an import file
16260     # for dependence libraries.  The import file would start with
16261     # the line `#! .'.  This would cause the generated library to
16262     # depend on `.', always an invalid library.  This was fixed in
16263     # development snapshots of GCC prior to 3.0.
16264     case $host_os in
16265       aix4 | aix4.[01] | aix4.[01].*)
16266       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16267            echo ' yes '
16268            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16269         :
16270       else
16271         can_build_shared=no
16272       fi
16273       ;;
16274     esac
16275     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16276     # soname into executable. Probably we can add versioning support to
16277     # collect2, so additional links can be useful in future.
16278     if test "$aix_use_runtimelinking" = yes; then
16279       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16280       # instead of lib<name>.a to let people know that these are not
16281       # typical AIX shared libraries.
16282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283     else
16284       # We preserve .a as extension for shared libraries through AIX4.2
16285       # and later when we are not doing run time linking.
16286       library_names_spec='${libname}${release}.a $libname.a'
16287       soname_spec='${libname}${release}${shared_ext}$major'
16288     fi
16289     shlibpath_var=LIBPATH
16290   fi
16291   ;;
16292
16293 amigaos*)
16294   library_names_spec='$libname.ixlibrary $libname.a'
16295   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16296   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'
16297   ;;
16298
16299 beos*)
16300   library_names_spec='${libname}${shared_ext}'
16301   dynamic_linker="$host_os ld.so"
16302   shlibpath_var=LIBRARY_PATH
16303   ;;
16304
16305 bsdi[45]*)
16306   version_type=linux
16307   need_version=no
16308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309   soname_spec='${libname}${release}${shared_ext}$major'
16310   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16311   shlibpath_var=LD_LIBRARY_PATH
16312   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16313   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16314   # the default ld.so.conf also contains /usr/contrib/lib and
16315   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16316   # libtool to hard-code these into programs
16317   ;;
16318
16319 cygwin* | mingw* | pw32*)
16320   version_type=windows
16321   shrext_cmds=".dll"
16322   need_version=no
16323   need_lib_prefix=no
16324
16325   case $GCC,$host_os in
16326   yes,cygwin* | yes,mingw* | yes,pw32*)
16327     library_names_spec='$libname.dll.a'
16328     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16329     postinstall_cmds='base_file=`basename \${file}`~
16330       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16331       dldir=$destdir/`dirname \$dlpath`~
16332       test -d \$dldir || mkdir -p \$dldir~
16333       $install_prog $dir/$dlname \$dldir/$dlname~
16334       chmod a+x \$dldir/$dlname'
16335     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16336       dlpath=$dir/\$dldll~
16337        $rm \$dlpath'
16338     shlibpath_overrides_runpath=yes
16339
16340     case $host_os in
16341     cygwin*)
16342       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16343       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16344       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16345       ;;
16346     mingw*)
16347       # MinGW DLLs use traditional 'lib' prefix
16348       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16349       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16350       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16351         # It is most probably a Windows format PATH printed by
16352         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16353         # path with ; separators, and with drive letters. We can handle the
16354         # drive letters (cygwin fileutils understands them), so leave them,
16355         # especially as we might pass files found there to a mingw objdump,
16356         # which wouldn't understand a cygwinified path. Ahh.
16357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16358       else
16359         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16360       fi
16361       ;;
16362     pw32*)
16363       # pw32 DLLs use 'pw' prefix rather than 'lib'
16364       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16365       ;;
16366     esac
16367     ;;
16368
16369   *)
16370     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16371     ;;
16372   esac
16373   dynamic_linker='Win32 ld.exe'
16374   # FIXME: first we should search . and the directory the executable is in
16375   shlibpath_var=PATH
16376   ;;
16377
16378 darwin* | rhapsody*)
16379   dynamic_linker="$host_os dyld"
16380   version_type=darwin
16381   need_lib_prefix=no
16382   need_version=no
16383   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16384   soname_spec='${libname}${release}${major}$shared_ext'
16385   shlibpath_overrides_runpath=yes
16386   shlibpath_var=DYLD_LIBRARY_PATH
16387   shrext_cmds='.dylib'
16388   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16389   if test "$GCC" = yes; then
16390     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"`
16391   else
16392     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16393   fi
16394   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16395   ;;
16396
16397 dgux*)
16398   version_type=linux
16399   need_lib_prefix=no
16400   need_version=no
16401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16402   soname_spec='${libname}${release}${shared_ext}$major'
16403   shlibpath_var=LD_LIBRARY_PATH
16404   ;;
16405
16406 freebsd1*)
16407   dynamic_linker=no
16408   ;;
16409
16410 kfreebsd*-gnu)
16411   version_type=linux
16412   need_lib_prefix=no
16413   need_version=no
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=no
16418   hardcode_into_libs=yes
16419   dynamic_linker='GNU ld.so'
16420   ;;
16421
16422 freebsd* | dragonfly*)
16423   # DragonFly does not have aout.  When/if they implement a new
16424   # versioning mechanism, adjust this.
16425   if test -x /usr/bin/objformat; then
16426     objformat=`/usr/bin/objformat`
16427   else
16428     case $host_os in
16429     freebsd[123]*) objformat=aout ;;
16430     *) objformat=elf ;;
16431     esac
16432   fi
16433   version_type=freebsd-$objformat
16434   case $version_type in
16435     freebsd-elf*)
16436       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16437       need_version=no
16438       need_lib_prefix=no
16439       ;;
16440     freebsd-*)
16441       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16442       need_version=yes
16443       ;;
16444   esac
16445   shlibpath_var=LD_LIBRARY_PATH
16446   case $host_os in
16447   freebsd2*)
16448     shlibpath_overrides_runpath=yes
16449     ;;
16450   freebsd3.[01]* | freebsdelf3.[01]*)
16451     shlibpath_overrides_runpath=yes
16452     hardcode_into_libs=yes
16453     ;;
16454   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16455   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16456     shlibpath_overrides_runpath=no
16457     hardcode_into_libs=yes
16458     ;;
16459   freebsd*) # from 4.6 on
16460     shlibpath_overrides_runpath=yes
16461     hardcode_into_libs=yes
16462     ;;
16463   esac
16464   ;;
16465
16466 gnu*)
16467   version_type=linux
16468   need_lib_prefix=no
16469   need_version=no
16470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16471   soname_spec='${libname}${release}${shared_ext}$major'
16472   shlibpath_var=LD_LIBRARY_PATH
16473   hardcode_into_libs=yes
16474   ;;
16475
16476 hpux9* | hpux10* | hpux11*)
16477   # Give a soname corresponding to the major version so that dld.sl refuses to
16478   # link against other versions.
16479   version_type=sunos
16480   need_lib_prefix=no
16481   need_version=no
16482   case $host_cpu in
16483   ia64*)
16484     shrext_cmds='.so'
16485     hardcode_into_libs=yes
16486     dynamic_linker="$host_os dld.so"
16487     shlibpath_var=LD_LIBRARY_PATH
16488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490     soname_spec='${libname}${release}${shared_ext}$major'
16491     if test "X$HPUX_IA64_MODE" = X32; then
16492       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16493     else
16494       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16495     fi
16496     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16497     ;;
16498    hppa*64*)
16499      shrext_cmds='.sl'
16500      hardcode_into_libs=yes
16501      dynamic_linker="$host_os dld.sl"
16502      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16503      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16504      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505      soname_spec='${libname}${release}${shared_ext}$major'
16506      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16507      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16508      ;;
16509    *)
16510     shrext_cmds='.sl'
16511     dynamic_linker="$host_os dld.sl"
16512     shlibpath_var=SHLIB_PATH
16513     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515     soname_spec='${libname}${release}${shared_ext}$major'
16516     ;;
16517   esac
16518   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16519   postinstall_cmds='chmod 555 $lib'
16520   ;;
16521
16522 interix3*)
16523   version_type=linux
16524   need_lib_prefix=no
16525   need_version=no
16526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527   soname_spec='${libname}${release}${shared_ext}$major'
16528   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16529   shlibpath_var=LD_LIBRARY_PATH
16530   shlibpath_overrides_runpath=no
16531   hardcode_into_libs=yes
16532   ;;
16533
16534 irix5* | irix6* | nonstopux*)
16535   case $host_os in
16536     nonstopux*) version_type=nonstopux ;;
16537     *)
16538         if test "$lt_cv_prog_gnu_ld" = yes; then
16539                 version_type=linux
16540         else
16541                 version_type=irix
16542         fi ;;
16543   esac
16544   need_lib_prefix=no
16545   need_version=no
16546   soname_spec='${libname}${release}${shared_ext}$major'
16547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16548   case $host_os in
16549   irix5* | nonstopux*)
16550     libsuff= shlibsuff=
16551     ;;
16552   *)
16553     case $LD in # libtool.m4 will add one of these switches to LD
16554     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16555       libsuff= shlibsuff= libmagic=32-bit;;
16556     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16557       libsuff=32 shlibsuff=N32 libmagic=N32;;
16558     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16559       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16560     *) libsuff= shlibsuff= libmagic=never-match;;
16561     esac
16562     ;;
16563   esac
16564   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16565   shlibpath_overrides_runpath=no
16566   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16567   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16568   hardcode_into_libs=yes
16569   ;;
16570
16571 # No shared lib support for Linux oldld, aout, or coff.
16572 linux*oldld* | linux*aout* | linux*coff*)
16573   dynamic_linker=no
16574   ;;
16575
16576 # This must be Linux ELF.
16577 linux*)
16578   version_type=linux
16579   need_lib_prefix=no
16580   need_version=no
16581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582   soname_spec='${libname}${release}${shared_ext}$major'
16583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16584   shlibpath_var=LD_LIBRARY_PATH
16585   shlibpath_overrides_runpath=no
16586   # This implies no fast_install, which is unacceptable.
16587   # Some rework will be needed to allow for fast_install
16588   # before this can be enabled.
16589   hardcode_into_libs=yes
16590
16591   # Append ld.so.conf contents to the search path
16592   if test -f /etc/ld.so.conf; then
16593     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' ' '`
16594     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16595   fi
16596
16597   # We used to test for /lib/ld.so.1 and disable shared libraries on
16598   # powerpc, because MkLinux only supported shared libraries with the
16599   # GNU dynamic linker.  Since this was broken with cross compilers,
16600   # most powerpc-linux boxes support dynamic linking these days and
16601   # people can always --disable-shared, the test was removed, and we
16602   # assume the GNU/Linux dynamic linker is in use.
16603   dynamic_linker='GNU/Linux ld.so'
16604   ;;
16605
16606 knetbsd*-gnu)
16607   version_type=linux
16608   need_lib_prefix=no
16609   need_version=no
16610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16611   soname_spec='${libname}${release}${shared_ext}$major'
16612   shlibpath_var=LD_LIBRARY_PATH
16613   shlibpath_overrides_runpath=no
16614   hardcode_into_libs=yes
16615   dynamic_linker='GNU ld.so'
16616   ;;
16617
16618 netbsd*)
16619   version_type=sunos
16620   need_lib_prefix=no
16621   need_version=no
16622   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16624     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16625     dynamic_linker='NetBSD (a.out) ld.so'
16626   else
16627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16628     soname_spec='${libname}${release}${shared_ext}$major'
16629     dynamic_linker='NetBSD ld.elf_so'
16630   fi
16631   shlibpath_var=LD_LIBRARY_PATH
16632   shlibpath_overrides_runpath=yes
16633   hardcode_into_libs=yes
16634   ;;
16635
16636 newsos6)
16637   version_type=linux
16638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639   shlibpath_var=LD_LIBRARY_PATH
16640   shlibpath_overrides_runpath=yes
16641   ;;
16642
16643 nto-qnx*)
16644   version_type=linux
16645   need_lib_prefix=no
16646   need_version=no
16647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648   soname_spec='${libname}${release}${shared_ext}$major'
16649   shlibpath_var=LD_LIBRARY_PATH
16650   shlibpath_overrides_runpath=yes
16651   ;;
16652
16653 openbsd*)
16654   version_type=sunos
16655   sys_lib_dlsearch_path_spec="/usr/lib"
16656   need_lib_prefix=no
16657   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16658   case $host_os in
16659     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16660     *)                         need_version=no  ;;
16661   esac
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16663   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16664   shlibpath_var=LD_LIBRARY_PATH
16665   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16666     case $host_os in
16667       openbsd2.[89] | openbsd2.[89].*)
16668         shlibpath_overrides_runpath=no
16669         ;;
16670       *)
16671         shlibpath_overrides_runpath=yes
16672         ;;
16673       esac
16674   else
16675     shlibpath_overrides_runpath=yes
16676   fi
16677   ;;
16678
16679 os2*)
16680   libname_spec='$name'
16681   shrext_cmds=".dll"
16682   need_lib_prefix=no
16683   library_names_spec='$libname${shared_ext} $libname.a'
16684   dynamic_linker='OS/2 ld.exe'
16685   shlibpath_var=LIBPATH
16686   ;;
16687
16688 osf3* | osf4* | osf5*)
16689   version_type=osf
16690   need_lib_prefix=no
16691   need_version=no
16692   soname_spec='${libname}${release}${shared_ext}$major'
16693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16696   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16697   ;;
16698
16699 solaris*)
16700   version_type=linux
16701   need_lib_prefix=no
16702   need_version=no
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704   soname_spec='${libname}${release}${shared_ext}$major'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   shlibpath_overrides_runpath=yes
16707   hardcode_into_libs=yes
16708   # ldd complains unless libraries are executable
16709   postinstall_cmds='chmod +x $lib'
16710   ;;
16711
16712 sunos4*)
16713   version_type=sunos
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16715   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16716   shlibpath_var=LD_LIBRARY_PATH
16717   shlibpath_overrides_runpath=yes
16718   if test "$with_gnu_ld" = yes; then
16719     need_lib_prefix=no
16720   fi
16721   need_version=yes
16722   ;;
16723
16724 sysv4 | sysv4.3*)
16725   version_type=linux
16726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   shlibpath_var=LD_LIBRARY_PATH
16729   case $host_vendor in
16730     sni)
16731       shlibpath_overrides_runpath=no
16732       need_lib_prefix=no
16733       export_dynamic_flag_spec='${wl}-Blargedynsym'
16734       runpath_var=LD_RUN_PATH
16735       ;;
16736     siemens)
16737       need_lib_prefix=no
16738       ;;
16739     motorola)
16740       need_lib_prefix=no
16741       need_version=no
16742       shlibpath_overrides_runpath=no
16743       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16744       ;;
16745   esac
16746   ;;
16747
16748 sysv4*MP*)
16749   if test -d /usr/nec ;then
16750     version_type=linux
16751     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16752     soname_spec='$libname${shared_ext}.$major'
16753     shlibpath_var=LD_LIBRARY_PATH
16754   fi
16755   ;;
16756
16757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16758   version_type=freebsd-elf
16759   need_lib_prefix=no
16760   need_version=no
16761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16762   soname_spec='${libname}${release}${shared_ext}$major'
16763   shlibpath_var=LD_LIBRARY_PATH
16764   hardcode_into_libs=yes
16765   if test "$with_gnu_ld" = yes; then
16766     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16767     shlibpath_overrides_runpath=no
16768   else
16769     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16770     shlibpath_overrides_runpath=yes
16771     case $host_os in
16772       sco3.2v5*)
16773         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16774         ;;
16775     esac
16776   fi
16777   sys_lib_dlsearch_path_spec='/usr/lib'
16778   ;;
16779
16780 uts4*)
16781   version_type=linux
16782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783   soname_spec='${libname}${release}${shared_ext}$major'
16784   shlibpath_var=LD_LIBRARY_PATH
16785   ;;
16786
16787 *)
16788   dynamic_linker=no
16789   ;;
16790 esac
16791 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16792 echo "${ECHO_T}$dynamic_linker" >&6; }
16793 test "$dynamic_linker" = no && can_build_shared=no
16794
16795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16796 if test "$GCC" = yes; then
16797   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798 fi
16799
16800 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16802 hardcode_action=
16803 if test -n "$hardcode_libdir_flag_spec" || \
16804    test -n "$runpath_var" || \
16805    test "X$hardcode_automatic" = "Xyes" ; then
16806
16807   # We can hardcode non-existant directories.
16808   if test "$hardcode_direct" != no &&
16809      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16810      # have to relink, otherwise we might link with an installed library
16811      # when we should be linking with a yet-to-be-installed one
16812      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16813      test "$hardcode_minus_L" != no; then
16814     # Linking always hardcodes the temporary library directory.
16815     hardcode_action=relink
16816   else
16817     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16818     hardcode_action=immediate
16819   fi
16820 else
16821   # We cannot hardcode anything, or else we can only hardcode existing
16822   # directories.
16823   hardcode_action=unsupported
16824 fi
16825 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16826 echo "${ECHO_T}$hardcode_action" >&6; }
16827
16828 if test "$hardcode_action" = relink; then
16829   # Fast installation is not supported
16830   enable_fast_install=no
16831 elif test "$shlibpath_overrides_runpath" = yes ||
16832      test "$enable_shared" = no; then
16833   # Fast installation is not necessary
16834   enable_fast_install=needless
16835 fi
16836
16837 striplib=
16838 old_striplib=
16839 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16840 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16841 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16842   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16843   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16844   { echo "$as_me:$LINENO: result: yes" >&5
16845 echo "${ECHO_T}yes" >&6; }
16846 else
16847 # FIXME - insert some real tests, host_os isn't really good enough
16848   case $host_os in
16849    darwin*)
16850        if test -n "$STRIP" ; then
16851          striplib="$STRIP -x"
16852          { echo "$as_me:$LINENO: result: yes" >&5
16853 echo "${ECHO_T}yes" >&6; }
16854        else
16855   { echo "$as_me:$LINENO: result: no" >&5
16856 echo "${ECHO_T}no" >&6; }
16857 fi
16858        ;;
16859    *)
16860   { echo "$as_me:$LINENO: result: no" >&5
16861 echo "${ECHO_T}no" >&6; }
16862     ;;
16863   esac
16864 fi
16865
16866 if test "x$enable_dlopen" != xyes; then
16867   enable_dlopen=unknown
16868   enable_dlopen_self=unknown
16869   enable_dlopen_self_static=unknown
16870 else
16871   lt_cv_dlopen=no
16872   lt_cv_dlopen_libs=
16873
16874   case $host_os in
16875   beos*)
16876     lt_cv_dlopen="load_add_on"
16877     lt_cv_dlopen_libs=
16878     lt_cv_dlopen_self=yes
16879     ;;
16880
16881   mingw* | pw32*)
16882     lt_cv_dlopen="LoadLibrary"
16883     lt_cv_dlopen_libs=
16884    ;;
16885
16886   cygwin*)
16887     lt_cv_dlopen="dlopen"
16888     lt_cv_dlopen_libs=
16889    ;;
16890
16891   darwin*)
16892   # if libdl is installed we need to link against it
16893     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16896   echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898   ac_check_lib_save_LIBS=$LIBS
16899 LIBS="-ldl  $LIBS"
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906
16907 /* Override any GCC internal prototype to avoid an error.
16908    Use char because int might match the return type of a GCC
16909    builtin and then its argument prototype would still apply.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 #endif
16913 char dlopen ();
16914 int
16915 main ()
16916 {
16917 return dlopen ();
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (ac_try="$ac_link"
16924 case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929   (eval "$ac_link") 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937   { (case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_try") 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; } &&
16946          { ac_try='test -s conftest$ac_exeext'
16947   { (case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_try") 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956   ac_cv_lib_dl_dlopen=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         ac_cv_lib_dl_dlopen=no
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext \
16965       conftest$ac_exeext conftest.$ac_ext
16966 LIBS=$ac_check_lib_save_LIBS
16967 fi
16968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16970 if test $ac_cv_lib_dl_dlopen = yes; then
16971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16972 else
16973
16974     lt_cv_dlopen="dyld"
16975     lt_cv_dlopen_libs=
16976     lt_cv_dlopen_self=yes
16977
16978 fi
16979
16980    ;;
16981
16982   *)
16983     { echo "$as_me:$LINENO: checking for shl_load" >&5
16984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16985 if test "${ac_cv_func_shl_load+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16996 #define shl_load innocuous_shl_load
16997
16998 /* System header to define __stub macros and hopefully few prototypes,
16999     which can conflict with char shl_load (); below.
17000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001     <limits.h> exists even on freestanding compilers.  */
17002
17003 #ifdef __STDC__
17004 # include <limits.h>
17005 #else
17006 # include <assert.h>
17007 #endif
17008
17009 #undef shl_load
17010
17011 /* Override any GCC internal prototype to avoid an error.
17012    Use char because int might match the return type of a GCC
17013    builtin and then its argument prototype would still apply.  */
17014 #ifdef __cplusplus
17015 extern "C"
17016 #endif
17017 char shl_load ();
17018 /* The GNU C library defines this for functions which it implements
17019     to always fail with ENOSYS.  Some functions are actually named
17020     something starting with __ and the normal name is an alias.  */
17021 #if defined __stub_shl_load || defined __stub___shl_load
17022 choke me
17023 #endif
17024
17025 int
17026 main ()
17027 {
17028 return shl_load ();
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_link") 2>conftest.er1
17041   ac_status=$?
17042   grep -v '^ *+' conftest.er1 >conftest.err
17043   rm -f conftest.er1
17044   cat conftest.err >&5
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048   { (case "(($ac_try" in
17049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050   *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053   (eval "$ac_try") 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); }; } &&
17057          { ac_try='test -s conftest$ac_exeext'
17058   { (case "(($ac_try" in
17059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060   *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063   (eval "$ac_try") 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067   ac_cv_func_shl_load=yes
17068 else
17069   echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072         ac_cv_func_shl_load=no
17073 fi
17074
17075 rm -f core conftest.err conftest.$ac_objext \
17076       conftest$ac_exeext conftest.$ac_ext
17077 fi
17078 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17079 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17080 if test $ac_cv_func_shl_load = yes; then
17081   lt_cv_dlopen="shl_load"
17082 else
17083   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17084 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17085 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   ac_check_lib_save_LIBS=$LIBS
17089 LIBS="-ldld  $LIBS"
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096
17097 /* Override any GCC internal prototype to avoid an error.
17098    Use char because int might match the return type of a GCC
17099    builtin and then its argument prototype would still apply.  */
17100 #ifdef __cplusplus
17101 extern "C"
17102 #endif
17103 char shl_load ();
17104 int
17105 main ()
17106 {
17107 return shl_load ();
17108   ;
17109   return 0;
17110 }
17111 _ACEOF
17112 rm -f conftest.$ac_objext conftest$ac_exeext
17113 if { (ac_try="$ac_link"
17114 case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_link") 2>conftest.er1
17120   ac_status=$?
17121   grep -v '^ *+' conftest.er1 >conftest.err
17122   rm -f conftest.er1
17123   cat conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17127   { (case "(($ac_try" in
17128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129   *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132   (eval "$ac_try") 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; } &&
17136          { ac_try='test -s conftest$ac_exeext'
17137   { (case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_try") 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); }; }; then
17146   ac_cv_lib_dld_shl_load=yes
17147 else
17148   echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17150
17151         ac_cv_lib_dld_shl_load=no
17152 fi
17153
17154 rm -f core conftest.err conftest.$ac_objext \
17155       conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17157 fi
17158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17160 if test $ac_cv_lib_dld_shl_load = yes; then
17161   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17162 else
17163   { echo "$as_me:$LINENO: checking for dlopen" >&5
17164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17165 if test "${ac_cv_func_dlopen+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17176 #define dlopen innocuous_dlopen
17177
17178 /* System header to define __stub macros and hopefully few prototypes,
17179     which can conflict with char dlopen (); below.
17180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181     <limits.h> exists even on freestanding compilers.  */
17182
17183 #ifdef __STDC__
17184 # include <limits.h>
17185 #else
17186 # include <assert.h>
17187 #endif
17188
17189 #undef dlopen
17190
17191 /* Override any GCC internal prototype to avoid an error.
17192    Use char because int might match the return type of a GCC
17193    builtin and then its argument prototype would still apply.  */
17194 #ifdef __cplusplus
17195 extern "C"
17196 #endif
17197 char dlopen ();
17198 /* The GNU C library defines this for functions which it implements
17199     to always fail with ENOSYS.  Some functions are actually named
17200     something starting with __ and the normal name is an alias.  */
17201 #if defined __stub_dlopen || defined __stub___dlopen
17202 choke me
17203 #endif
17204
17205 int
17206 main ()
17207 {
17208 return dlopen ();
17209   ;
17210   return 0;
17211 }
17212 _ACEOF
17213 rm -f conftest.$ac_objext conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220   (eval "$ac_link") 2>conftest.er1
17221   ac_status=$?
17222   grep -v '^ *+' conftest.er1 >conftest.err
17223   rm -f conftest.er1
17224   cat conftest.err >&5
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); } &&
17227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; } &&
17237          { ac_try='test -s conftest$ac_exeext'
17238   { (case "(($ac_try" in
17239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240   *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243   (eval "$ac_try") 2>&5
17244   ac_status=$?
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); }; }; then
17247   ac_cv_func_dlopen=yes
17248 else
17249   echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252         ac_cv_func_dlopen=no
17253 fi
17254
17255 rm -f core conftest.err conftest.$ac_objext \
17256       conftest$ac_exeext conftest.$ac_ext
17257 fi
17258 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17259 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17260 if test $ac_cv_func_dlopen = yes; then
17261   lt_cv_dlopen="dlopen"
17262 else
17263   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17266   echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268   ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-ldl  $LIBS"
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276
17277 /* Override any GCC internal prototype to avoid an error.
17278    Use char because int might match the return type of a GCC
17279    builtin and then its argument prototype would still apply.  */
17280 #ifdef __cplusplus
17281 extern "C"
17282 #endif
17283 char dlopen ();
17284 int
17285 main ()
17286 {
17287 return dlopen ();
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299   (eval "$ac_link") 2>conftest.er1
17300   ac_status=$?
17301   grep -v '^ *+' conftest.er1 >conftest.err
17302   rm -f conftest.er1
17303   cat conftest.err >&5
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); } &&
17306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307   { (case "(($ac_try" in
17308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309   *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312   (eval "$ac_try") 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; } &&
17316          { ac_try='test -s conftest$ac_exeext'
17317   { (case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_try") 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_cv_lib_dl_dlopen=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331         ac_cv_lib_dl_dlopen=no
17332 fi
17333
17334 rm -f core conftest.err conftest.$ac_objext \
17335       conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17337 fi
17338 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17340 if test $ac_cv_lib_dl_dlopen = yes; then
17341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17342 else
17343   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17344 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lsvld  $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356
17357 /* Override any GCC internal prototype to avoid an error.
17358    Use char because int might match the return type of a GCC
17359    builtin and then its argument prototype would still apply.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 char dlopen ();
17364 int
17365 main ()
17366 {
17367 return dlopen ();
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_link") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } &&
17386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387   { (case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_try") 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; } &&
17396          { ac_try='test -s conftest$ac_exeext'
17397   { (case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_try") 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; }; then
17406   ac_cv_lib_svld_dlopen=yes
17407 else
17408   echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411         ac_cv_lib_svld_dlopen=no
17412 fi
17413
17414 rm -f core conftest.err conftest.$ac_objext \
17415       conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17419 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17420 if test $ac_cv_lib_svld_dlopen = yes; then
17421   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17422 else
17423   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17424 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   ac_check_lib_save_LIBS=$LIBS
17429 LIBS="-ldld  $LIBS"
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h.  */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h.  */
17436
17437 /* Override any GCC internal prototype to avoid an error.
17438    Use char because int might match the return type of a GCC
17439    builtin and then its argument prototype would still apply.  */
17440 #ifdef __cplusplus
17441 extern "C"
17442 #endif
17443 char dld_link ();
17444 int
17445 main ()
17446 {
17447 return dld_link ();
17448   ;
17449   return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (ac_try="$ac_link"
17454 case "(($ac_try" in
17455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456   *) ac_try_echo=$ac_try;;
17457 esac
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459   (eval "$ac_link") 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467   { (case "(($ac_try" in
17468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469   *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472   (eval "$ac_try") 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_try") 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; }; then
17486   ac_cv_lib_dld_dld_link=yes
17487 else
17488   echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17490
17491         ac_cv_lib_dld_dld_link=no
17492 fi
17493
17494 rm -f core conftest.err conftest.$ac_objext \
17495       conftest$ac_exeext conftest.$ac_ext
17496 LIBS=$ac_check_lib_save_LIBS
17497 fi
17498 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17499 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17500 if test $ac_cv_lib_dld_dld_link = yes; then
17501   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17502 fi
17503
17504
17505 fi
17506
17507
17508 fi
17509
17510
17511 fi
17512
17513
17514 fi
17515
17516
17517 fi
17518
17519     ;;
17520   esac
17521
17522   if test "x$lt_cv_dlopen" != xno; then
17523     enable_dlopen=yes
17524   else
17525     enable_dlopen=no
17526   fi
17527
17528   case $lt_cv_dlopen in
17529   dlopen)
17530     save_CPPFLAGS="$CPPFLAGS"
17531     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17532
17533     save_LDFLAGS="$LDFLAGS"
17534     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17535
17536     save_LIBS="$LIBS"
17537     LIBS="$lt_cv_dlopen_libs $LIBS"
17538
17539     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17540 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17541 if test "${lt_cv_dlopen_self+set}" = set; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544           if test "$cross_compiling" = yes; then :
17545   lt_cv_dlopen_self=cross
17546 else
17547   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17548   lt_status=$lt_dlunknown
17549   cat > conftest.$ac_ext <<EOF
17550 #line 17550 "configure"
17551 #include "confdefs.h"
17552
17553 #if HAVE_DLFCN_H
17554 #include <dlfcn.h>
17555 #endif
17556
17557 #include <stdio.h>
17558
17559 #ifdef RTLD_GLOBAL
17560 #  define LT_DLGLOBAL           RTLD_GLOBAL
17561 #else
17562 #  ifdef DL_GLOBAL
17563 #    define LT_DLGLOBAL         DL_GLOBAL
17564 #  else
17565 #    define LT_DLGLOBAL         0
17566 #  endif
17567 #endif
17568
17569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17570    find out it does not work in some platform. */
17571 #ifndef LT_DLLAZY_OR_NOW
17572 #  ifdef RTLD_LAZY
17573 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17574 #  else
17575 #    ifdef DL_LAZY
17576 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17577 #    else
17578 #      ifdef RTLD_NOW
17579 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17580 #      else
17581 #        ifdef DL_NOW
17582 #          define LT_DLLAZY_OR_NOW      DL_NOW
17583 #        else
17584 #          define LT_DLLAZY_OR_NOW      0
17585 #        endif
17586 #      endif
17587 #    endif
17588 #  endif
17589 #endif
17590
17591 #ifdef __cplusplus
17592 extern "C" void exit (int);
17593 #endif
17594
17595 void fnord() { int i=42;}
17596 int main ()
17597 {
17598   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17599   int status = $lt_dlunknown;
17600
17601   if (self)
17602     {
17603       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17604       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17605       /* dlclose (self); */
17606     }
17607   else
17608     puts (dlerror ());
17609
17610     exit (status);
17611 }
17612 EOF
17613   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614   (eval $ac_link) 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17618     (./conftest; exit; ) >&5 2>/dev/null
17619     lt_status=$?
17620     case x$lt_status in
17621       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17622       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17623       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17624     esac
17625   else :
17626     # compilation failed
17627     lt_cv_dlopen_self=no
17628   fi
17629 fi
17630 rm -fr conftest*
17631
17632
17633 fi
17634 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17635 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17636
17637     if test "x$lt_cv_dlopen_self" = xyes; then
17638       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17639       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17640 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17641 if test "${lt_cv_dlopen_self_static+set}" = set; then
17642   echo $ECHO_N "(cached) $ECHO_C" >&6
17643 else
17644           if test "$cross_compiling" = yes; then :
17645   lt_cv_dlopen_self_static=cross
17646 else
17647   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17648   lt_status=$lt_dlunknown
17649   cat > conftest.$ac_ext <<EOF
17650 #line 17650 "configure"
17651 #include "confdefs.h"
17652
17653 #if HAVE_DLFCN_H
17654 #include <dlfcn.h>
17655 #endif
17656
17657 #include <stdio.h>
17658
17659 #ifdef RTLD_GLOBAL
17660 #  define LT_DLGLOBAL           RTLD_GLOBAL
17661 #else
17662 #  ifdef DL_GLOBAL
17663 #    define LT_DLGLOBAL         DL_GLOBAL
17664 #  else
17665 #    define LT_DLGLOBAL         0
17666 #  endif
17667 #endif
17668
17669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17670    find out it does not work in some platform. */
17671 #ifndef LT_DLLAZY_OR_NOW
17672 #  ifdef RTLD_LAZY
17673 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17674 #  else
17675 #    ifdef DL_LAZY
17676 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17677 #    else
17678 #      ifdef RTLD_NOW
17679 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17680 #      else
17681 #        ifdef DL_NOW
17682 #          define LT_DLLAZY_OR_NOW      DL_NOW
17683 #        else
17684 #          define LT_DLLAZY_OR_NOW      0
17685 #        endif
17686 #      endif
17687 #    endif
17688 #  endif
17689 #endif
17690
17691 #ifdef __cplusplus
17692 extern "C" void exit (int);
17693 #endif
17694
17695 void fnord() { int i=42;}
17696 int main ()
17697 {
17698   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17699   int status = $lt_dlunknown;
17700
17701   if (self)
17702     {
17703       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17704       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17705       /* dlclose (self); */
17706     }
17707   else
17708     puts (dlerror ());
17709
17710     exit (status);
17711 }
17712 EOF
17713   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714   (eval $ac_link) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17718     (./conftest; exit; ) >&5 2>/dev/null
17719     lt_status=$?
17720     case x$lt_status in
17721       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17722       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17723       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17724     esac
17725   else :
17726     # compilation failed
17727     lt_cv_dlopen_self_static=no
17728   fi
17729 fi
17730 rm -fr conftest*
17731
17732
17733 fi
17734 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17736     fi
17737
17738     CPPFLAGS="$save_CPPFLAGS"
17739     LDFLAGS="$save_LDFLAGS"
17740     LIBS="$save_LIBS"
17741     ;;
17742   esac
17743
17744   case $lt_cv_dlopen_self in
17745   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17746   *) enable_dlopen_self=unknown ;;
17747   esac
17748
17749   case $lt_cv_dlopen_self_static in
17750   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17751   *) enable_dlopen_self_static=unknown ;;
17752   esac
17753 fi
17754
17755
17756 # Report which library types will actually be built
17757 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17758 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17759 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17760 echo "${ECHO_T}$can_build_shared" >&6; }
17761
17762 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17763 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17764 test "$can_build_shared" = "no" && enable_shared=no
17765
17766 # On AIX, shared libraries and static libraries use the same namespace, and
17767 # are all built from PIC.
17768 case $host_os in
17769 aix3*)
17770   test "$enable_shared" = yes && enable_static=no
17771   if test -n "$RANLIB"; then
17772     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17773     postinstall_cmds='$RANLIB $lib'
17774   fi
17775   ;;
17776
17777 aix4* | aix5*)
17778   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17779     test "$enable_shared" = yes && enable_static=no
17780   fi
17781     ;;
17782 esac
17783 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17784 echo "${ECHO_T}$enable_shared" >&6; }
17785
17786 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17787 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17788 # Make sure either enable_shared or enable_static is yes.
17789 test "$enable_shared" = yes || enable_static=yes
17790 { echo "$as_me:$LINENO: result: $enable_static" >&5
17791 echo "${ECHO_T}$enable_static" >&6; }
17792
17793 # The else clause should only fire when bootstrapping the
17794 # libtool distribution, otherwise you forgot to ship ltmain.sh
17795 # with your package, and you will get complaints that there are
17796 # no rules to generate ltmain.sh.
17797 if test -f "$ltmain"; then
17798   # See if we are running on zsh, and set the options which allow our commands through
17799   # without removal of \ escapes.
17800   if test -n "${ZSH_VERSION+set}" ; then
17801     setopt NO_GLOB_SUBST
17802   fi
17803   # Now quote all the things that may contain metacharacters while being
17804   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17805   # variables and quote the copies for generation of the libtool script.
17806   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17807     SED SHELL STRIP \
17808     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17809     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17810     deplibs_check_method reload_flag reload_cmds need_locks \
17811     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17812     lt_cv_sys_global_symbol_to_c_name_address \
17813     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17814     old_postinstall_cmds old_postuninstall_cmds \
17815     compiler \
17816     CC \
17817     LD \
17818     lt_prog_compiler_wl \
17819     lt_prog_compiler_pic \
17820     lt_prog_compiler_static \
17821     lt_prog_compiler_no_builtin_flag \
17822     export_dynamic_flag_spec \
17823     thread_safe_flag_spec \
17824     whole_archive_flag_spec \
17825     enable_shared_with_static_runtimes \
17826     old_archive_cmds \
17827     old_archive_from_new_cmds \
17828     predep_objects \
17829     postdep_objects \
17830     predeps \
17831     postdeps \
17832     compiler_lib_search_path \
17833     archive_cmds \
17834     archive_expsym_cmds \
17835     postinstall_cmds \
17836     postuninstall_cmds \
17837     old_archive_from_expsyms_cmds \
17838     allow_undefined_flag \
17839     no_undefined_flag \
17840     export_symbols_cmds \
17841     hardcode_libdir_flag_spec \
17842     hardcode_libdir_flag_spec_ld \
17843     hardcode_libdir_separator \
17844     hardcode_automatic \
17845     module_cmds \
17846     module_expsym_cmds \
17847     lt_cv_prog_compiler_c_o \
17848     exclude_expsyms \
17849     include_expsyms; do
17850
17851     case $var in
17852     old_archive_cmds | \
17853     old_archive_from_new_cmds | \
17854     archive_cmds | \
17855     archive_expsym_cmds | \
17856     module_cmds | \
17857     module_expsym_cmds | \
17858     old_archive_from_expsyms_cmds | \
17859     export_symbols_cmds | \
17860     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17861     postinstall_cmds | postuninstall_cmds | \
17862     old_postinstall_cmds | old_postuninstall_cmds | \
17863     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17864       # Double-quote double-evaled strings.
17865       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17866       ;;
17867     *)
17868       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17869       ;;
17870     esac
17871   done
17872
17873   case $lt_echo in
17874   *'\$0 --fallback-echo"')
17875     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17876     ;;
17877   esac
17878
17879 cfgfile="${ofile}T"
17880   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17881   $rm -f "$cfgfile"
17882   { echo "$as_me:$LINENO: creating $ofile" >&5
17883 echo "$as_me: creating $ofile" >&6;}
17884
17885   cat <<__EOF__ >> "$cfgfile"
17886 #! $SHELL
17887
17888 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17889 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17891 #
17892 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17893 # Free Software Foundation, Inc.
17894 #
17895 # This file is part of GNU Libtool:
17896 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17897 #
17898 # This program is free software; you can redistribute it and/or modify
17899 # it under the terms of the GNU General Public License as published by
17900 # the Free Software Foundation; either version 2 of the License, or
17901 # (at your option) any later version.
17902 #
17903 # This program is distributed in the hope that it will be useful, but
17904 # WITHOUT ANY WARRANTY; without even the implied warranty of
17905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17906 # General Public License for more details.
17907 #
17908 # You should have received a copy of the GNU General Public License
17909 # along with this program; if not, write to the Free Software
17910 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17911 #
17912 # As a special exception to the GNU General Public License, if you
17913 # distribute this file as part of a program that contains a
17914 # configuration script generated by Autoconf, you may include it under
17915 # the same distribution terms that you use for the rest of that program.
17916
17917 # A sed program that does not truncate output.
17918 SED=$lt_SED
17919
17920 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17921 Xsed="$SED -e 1s/^X//"
17922
17923 # The HP-UX ksh and POSIX shell print the target directory to stdout
17924 # if CDPATH is set.
17925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17926
17927 # The names of the tagged configurations supported by this script.
17928 available_tags=
17929
17930 # ### BEGIN LIBTOOL CONFIG
17931
17932 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17933
17934 # Shell to use when invoking shell scripts.
17935 SHELL=$lt_SHELL
17936
17937 # Whether or not to build shared libraries.
17938 build_libtool_libs=$enable_shared
17939
17940 # Whether or not to build static libraries.
17941 build_old_libs=$enable_static
17942
17943 # Whether or not to add -lc for building shared libraries.
17944 build_libtool_need_lc=$archive_cmds_need_lc
17945
17946 # Whether or not to disallow shared libs when runtime libs are static
17947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17948
17949 # Whether or not to optimize for fast installation.
17950 fast_install=$enable_fast_install
17951
17952 # The host system.
17953 host_alias=$host_alias
17954 host=$host
17955 host_os=$host_os
17956
17957 # The build system.
17958 build_alias=$build_alias
17959 build=$build
17960 build_os=$build_os
17961
17962 # An echo program that does not interpret backslashes.
17963 echo=$lt_echo
17964
17965 # The archiver.
17966 AR=$lt_AR
17967 AR_FLAGS=$lt_AR_FLAGS
17968
17969 # A C compiler.
17970 LTCC=$lt_LTCC
17971
17972 # LTCC compiler flags.
17973 LTCFLAGS=$lt_LTCFLAGS
17974
17975 # A language-specific compiler.
17976 CC=$lt_compiler
17977
17978 # Is the compiler the GNU C compiler?
17979 with_gcc=$GCC
17980
17981 # An ERE matcher.
17982 EGREP=$lt_EGREP
17983
17984 # The linker used to build libraries.
17985 LD=$lt_LD
17986
17987 # Whether we need hard or soft links.
17988 LN_S=$lt_LN_S
17989
17990 # A BSD-compatible nm program.
17991 NM=$lt_NM
17992
17993 # A symbol stripping program
17994 STRIP=$lt_STRIP
17995
17996 # Used to examine libraries when file_magic_cmd begins "file"
17997 MAGIC_CMD=$MAGIC_CMD
17998
17999 # Used on cygwin: DLL creation program.
18000 DLLTOOL="$DLLTOOL"
18001
18002 # Used on cygwin: object dumper.
18003 OBJDUMP="$OBJDUMP"
18004
18005 # Used on cygwin: assembler.
18006 AS="$AS"
18007
18008 # The name of the directory that contains temporary libtool files.
18009 objdir=$objdir
18010
18011 # How to create reloadable object files.
18012 reload_flag=$lt_reload_flag
18013 reload_cmds=$lt_reload_cmds
18014
18015 # How to pass a linker flag through the compiler.
18016 wl=$lt_lt_prog_compiler_wl
18017
18018 # Object file suffix (normally "o").
18019 objext="$ac_objext"
18020
18021 # Old archive suffix (normally "a").
18022 libext="$libext"
18023
18024 # Shared library suffix (normally ".so").
18025 shrext_cmds='$shrext_cmds'
18026
18027 # Executable file suffix (normally "").
18028 exeext="$exeext"
18029
18030 # Additional compiler flags for building library objects.
18031 pic_flag=$lt_lt_prog_compiler_pic
18032 pic_mode=$pic_mode
18033
18034 # What is the maximum length of a command?
18035 max_cmd_len=$lt_cv_sys_max_cmd_len
18036
18037 # Does compiler simultaneously support -c and -o options?
18038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18039
18040 # Must we lock files when doing compilation?
18041 need_locks=$lt_need_locks
18042
18043 # Do we need the lib prefix for modules?
18044 need_lib_prefix=$need_lib_prefix
18045
18046 # Do we need a version for libraries?
18047 need_version=$need_version
18048
18049 # Whether dlopen is supported.
18050 dlopen_support=$enable_dlopen
18051
18052 # Whether dlopen of programs is supported.
18053 dlopen_self=$enable_dlopen_self
18054
18055 # Whether dlopen of statically linked programs is supported.
18056 dlopen_self_static=$enable_dlopen_self_static
18057
18058 # Compiler flag to prevent dynamic linking.
18059 link_static_flag=$lt_lt_prog_compiler_static
18060
18061 # Compiler flag to turn off builtin functions.
18062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18063
18064 # Compiler flag to allow reflexive dlopens.
18065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18066
18067 # Compiler flag to generate shared objects directly from archives.
18068 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18069
18070 # Compiler flag to generate thread-safe objects.
18071 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18072
18073 # Library versioning type.
18074 version_type=$version_type
18075
18076 # Format of library name prefix.
18077 libname_spec=$lt_libname_spec
18078
18079 # List of archive names.  First name is the real one, the rest are links.
18080 # The last name is the one that the linker finds with -lNAME.
18081 library_names_spec=$lt_library_names_spec
18082
18083 # The coded name of the library, if different from the real name.
18084 soname_spec=$lt_soname_spec
18085
18086 # Commands used to build and install an old-style archive.
18087 RANLIB=$lt_RANLIB
18088 old_archive_cmds=$lt_old_archive_cmds
18089 old_postinstall_cmds=$lt_old_postinstall_cmds
18090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18091
18092 # Create an old-style archive from a shared archive.
18093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18094
18095 # Create a temporary old-style archive to link instead of a shared archive.
18096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18097
18098 # Commands used to build and install a shared archive.
18099 archive_cmds=$lt_archive_cmds
18100 archive_expsym_cmds=$lt_archive_expsym_cmds
18101 postinstall_cmds=$lt_postinstall_cmds
18102 postuninstall_cmds=$lt_postuninstall_cmds
18103
18104 # Commands used to build a loadable module (assumed same as above if empty)
18105 module_cmds=$lt_module_cmds
18106 module_expsym_cmds=$lt_module_expsym_cmds
18107
18108 # Commands to strip libraries.
18109 old_striplib=$lt_old_striplib
18110 striplib=$lt_striplib
18111
18112 # Dependencies to place before the objects being linked to create a
18113 # shared library.
18114 predep_objects=$lt_predep_objects
18115
18116 # Dependencies to place after the objects being linked to create a
18117 # shared library.
18118 postdep_objects=$lt_postdep_objects
18119
18120 # Dependencies to place before the objects being linked to create a
18121 # shared library.
18122 predeps=$lt_predeps
18123
18124 # Dependencies to place after the objects being linked to create a
18125 # shared library.
18126 postdeps=$lt_postdeps
18127
18128 # The library search path used internally by the compiler when linking
18129 # a shared library.
18130 compiler_lib_search_path=$lt_compiler_lib_search_path
18131
18132 # Method to check whether dependent libraries are shared objects.
18133 deplibs_check_method=$lt_deplibs_check_method
18134
18135 # Command to use when deplibs_check_method == file_magic.
18136 file_magic_cmd=$lt_file_magic_cmd
18137
18138 # Flag that allows shared libraries with undefined symbols to be built.
18139 allow_undefined_flag=$lt_allow_undefined_flag
18140
18141 # Flag that forces no undefined symbols.
18142 no_undefined_flag=$lt_no_undefined_flag
18143
18144 # Commands used to finish a libtool library installation in a directory.
18145 finish_cmds=$lt_finish_cmds
18146
18147 # Same as above, but a single script fragment to be evaled but not shown.
18148 finish_eval=$lt_finish_eval
18149
18150 # Take the output of nm and produce a listing of raw symbols and C names.
18151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18152
18153 # Transform the output of nm in a proper C declaration
18154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18155
18156 # Transform the output of nm in a C name address pair
18157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18158
18159 # This is the shared library runtime path variable.
18160 runpath_var=$runpath_var
18161
18162 # This is the shared library path variable.
18163 shlibpath_var=$shlibpath_var
18164
18165 # Is shlibpath searched before the hard-coded library search path?
18166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18167
18168 # How to hardcode a shared library path into an executable.
18169 hardcode_action=$hardcode_action
18170
18171 # Whether we should hardcode library paths into libraries.
18172 hardcode_into_libs=$hardcode_into_libs
18173
18174 # Flag to hardcode \$libdir into a binary during linking.
18175 # This must work even if \$libdir does not exist.
18176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18177
18178 # If ld is used when linking, flag to hardcode \$libdir into
18179 # a binary during linking. This must work even if \$libdir does
18180 # not exist.
18181 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18182
18183 # Whether we need a single -rpath flag with a separated argument.
18184 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18185
18186 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18187 # resulting binary.
18188 hardcode_direct=$hardcode_direct
18189
18190 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18191 # resulting binary.
18192 hardcode_minus_L=$hardcode_minus_L
18193
18194 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18195 # the resulting binary.
18196 hardcode_shlibpath_var=$hardcode_shlibpath_var
18197
18198 # Set to yes if building a shared library automatically hardcodes DIR into the library
18199 # and all subsequent libraries and executables linked against it.
18200 hardcode_automatic=$hardcode_automatic
18201
18202 # Variables whose values should be saved in libtool wrapper scripts and
18203 # restored at relink time.
18204 variables_saved_for_relink="$variables_saved_for_relink"
18205
18206 # Whether libtool must link a program against all its dependency libraries.
18207 link_all_deplibs=$link_all_deplibs
18208
18209 # Compile-time system search path for libraries
18210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18211
18212 # Run-time system search path for libraries
18213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18214
18215 # Fix the shell variable \$srcfile for the compiler.
18216 fix_srcfile_path="$fix_srcfile_path"
18217
18218 # Set to yes if exported symbols are required.
18219 always_export_symbols=$always_export_symbols
18220
18221 # The commands to list exported symbols.
18222 export_symbols_cmds=$lt_export_symbols_cmds
18223
18224 # The commands to extract the exported symbol list from a shared archive.
18225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18226
18227 # Symbols that should not be listed in the preloaded symbols.
18228 exclude_expsyms=$lt_exclude_expsyms
18229
18230 # Symbols that must always be exported.
18231 include_expsyms=$lt_include_expsyms
18232
18233 # ### END LIBTOOL CONFIG
18234
18235 __EOF__
18236
18237
18238   case $host_os in
18239   aix3*)
18240     cat <<\EOF >> "$cfgfile"
18241
18242 # AIX sometimes has problems with the GCC collect2 program.  For some
18243 # reason, if we set the COLLECT_NAMES environment variable, the problems
18244 # vanish in a puff of smoke.
18245 if test "X${COLLECT_NAMES+set}" != Xset; then
18246   COLLECT_NAMES=
18247   export COLLECT_NAMES
18248 fi
18249 EOF
18250     ;;
18251   esac
18252
18253   # We use sed instead of cat because bash on DJGPP gets confused if
18254   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18255   # text mode, it properly converts lines to CR/LF.  This bash problem
18256   # is reportedly fixed, but why not run on old versions too?
18257   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18258
18259   mv -f "$cfgfile" "$ofile" || \
18260     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18261   chmod +x "$ofile"
18262
18263 else
18264   # If there is no Makefile yet, we rely on a make rule to execute
18265   # `config.status --recheck' to rerun these tests and create the
18266   # libtool script then.
18267   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18268   if test -f "$ltmain_in"; then
18269     test -f Makefile && make "$ltmain"
18270   fi
18271 fi
18272
18273
18274 ac_ext=c
18275 ac_cpp='$CPP $CPPFLAGS'
18276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18279
18280 CC="$lt_save_CC"
18281
18282
18283 # Check whether --with-tags was given.
18284 if test "${with_tags+set}" = set; then
18285   withval=$with_tags; tagnames="$withval"
18286 fi
18287
18288
18289 if test -f "$ltmain" && test -n "$tagnames"; then
18290   if test ! -f "${ofile}"; then
18291     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18292 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18293   fi
18294
18295   if test -z "$LTCC"; then
18296     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18297     if test -z "$LTCC"; then
18298       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18299 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18300     else
18301       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18302 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18303     fi
18304   fi
18305   if test -z "$LTCFLAGS"; then
18306     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18307   fi
18308
18309   # Extract list of available tagged configurations in $ofile.
18310   # Note that this assumes the entire list is on one line.
18311   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18312
18313   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18314   for tagname in $tagnames; do
18315     IFS="$lt_save_ifs"
18316     # Check whether tagname contains only valid characters
18317     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18318     "") ;;
18319     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18320 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18321    { (exit 1); exit 1; }; }
18322         ;;
18323     esac
18324
18325     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18326     then
18327       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18328 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18329    { (exit 1); exit 1; }; }
18330     fi
18331
18332     # Update the list of available tags.
18333     if test -n "$tagname"; then
18334       echo appending configuration tag \"$tagname\" to $ofile
18335
18336       case $tagname in
18337       CXX)
18338         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18339             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18340             (test "X$CXX" != "Xg++"))) ; then
18341           ac_ext=cpp
18342 ac_cpp='$CXXCPP $CPPFLAGS'
18343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18346
18347
18348
18349
18350 archive_cmds_need_lc_CXX=no
18351 allow_undefined_flag_CXX=
18352 always_export_symbols_CXX=no
18353 archive_expsym_cmds_CXX=
18354 export_dynamic_flag_spec_CXX=
18355 hardcode_direct_CXX=no
18356 hardcode_libdir_flag_spec_CXX=
18357 hardcode_libdir_flag_spec_ld_CXX=
18358 hardcode_libdir_separator_CXX=
18359 hardcode_minus_L_CXX=no
18360 hardcode_shlibpath_var_CXX=unsupported
18361 hardcode_automatic_CXX=no
18362 module_cmds_CXX=
18363 module_expsym_cmds_CXX=
18364 link_all_deplibs_CXX=unknown
18365 old_archive_cmds_CXX=$old_archive_cmds
18366 no_undefined_flag_CXX=
18367 whole_archive_flag_spec_CXX=
18368 enable_shared_with_static_runtimes_CXX=no
18369
18370 # Dependencies to place before and after the object being linked:
18371 predep_objects_CXX=
18372 postdep_objects_CXX=
18373 predeps_CXX=
18374 postdeps_CXX=
18375 compiler_lib_search_path_CXX=
18376
18377 # Source file extension for C++ test sources.
18378 ac_ext=cpp
18379
18380 # Object file extension for compiled C++ test sources.
18381 objext=o
18382 objext_CXX=$objext
18383
18384 # Code to be used in simple compile tests
18385 lt_simple_compile_test_code="int some_variable = 0;\n"
18386
18387 # Code to be used in simple link tests
18388 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18389
18390 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18391
18392 # If no C compiler was specified, use CC.
18393 LTCC=${LTCC-"$CC"}
18394
18395 # If no C compiler flags were specified, use CFLAGS.
18396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18397
18398 # Allow CC to be a program name with arguments.
18399 compiler=$CC
18400
18401
18402 # save warnings/boilerplate of simple test code
18403 ac_outfile=conftest.$ac_objext
18404 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18406 _lt_compiler_boilerplate=`cat conftest.err`
18407 $rm conftest*
18408
18409 ac_outfile=conftest.$ac_objext
18410 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18412 _lt_linker_boilerplate=`cat conftest.err`
18413 $rm conftest*
18414
18415
18416 # Allow CC to be a program name with arguments.
18417 lt_save_CC=$CC
18418 lt_save_LD=$LD
18419 lt_save_GCC=$GCC
18420 GCC=$GXX
18421 lt_save_with_gnu_ld=$with_gnu_ld
18422 lt_save_path_LD=$lt_cv_path_LD
18423 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18424   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18425 else
18426   $as_unset lt_cv_prog_gnu_ld
18427 fi
18428 if test -n "${lt_cv_path_LDCXX+set}"; then
18429   lt_cv_path_LD=$lt_cv_path_LDCXX
18430 else
18431   $as_unset lt_cv_path_LD
18432 fi
18433 test -z "${LDCXX+set}" || LD=$LDCXX
18434 CC=${CXX-"c++"}
18435 compiler=$CC
18436 compiler_CXX=$CC
18437 for cc_temp in $compiler""; do
18438   case $cc_temp in
18439     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18440     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18441     \-*) ;;
18442     *) break;;
18443   esac
18444 done
18445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18446
18447
18448 # We don't want -fno-exception wen compiling C++ code, so set the
18449 # no_builtin_flag separately
18450 if test "$GXX" = yes; then
18451   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18452 else
18453   lt_prog_compiler_no_builtin_flag_CXX=
18454 fi
18455
18456 if test "$GXX" = yes; then
18457   # Set up default GNU C++ configuration
18458
18459
18460 # Check whether --with-gnu-ld was given.
18461 if test "${with_gnu_ld+set}" = set; then
18462   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18463 else
18464   with_gnu_ld=no
18465 fi
18466
18467 ac_prog=ld
18468 if test "$GCC" = yes; then
18469   # Check if gcc -print-prog-name=ld gives a path.
18470   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18471 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18472   case $host in
18473   *-*-mingw*)
18474     # gcc leaves a trailing carriage return which upsets mingw
18475     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18476   *)
18477     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18478   esac
18479   case $ac_prog in
18480     # Accept absolute paths.
18481     [\\/]* | ?:[\\/]*)
18482       re_direlt='/[^/][^/]*/\.\./'
18483       # Canonicalize the pathname of ld
18484       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18485       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18486         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18487       done
18488       test -z "$LD" && LD="$ac_prog"
18489       ;;
18490   "")
18491     # If it fails, then pretend we aren't using GCC.
18492     ac_prog=ld
18493     ;;
18494   *)
18495     # If it is relative, then search for the first ld in PATH.
18496     with_gnu_ld=unknown
18497     ;;
18498   esac
18499 elif test "$with_gnu_ld" = yes; then
18500   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18502 else
18503   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18505 fi
18506 if test "${lt_cv_path_LD+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   if test -z "$LD"; then
18510   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18511   for ac_dir in $PATH; do
18512     IFS="$lt_save_ifs"
18513     test -z "$ac_dir" && ac_dir=.
18514     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18515       lt_cv_path_LD="$ac_dir/$ac_prog"
18516       # Check to see if the program is GNU ld.  I'd rather use --version,
18517       # but apparently some variants of GNU ld only accept -v.
18518       # Break only if it was the GNU/non-GNU ld that we prefer.
18519       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18520       *GNU* | *'with BFD'*)
18521         test "$with_gnu_ld" != no && break
18522         ;;
18523       *)
18524         test "$with_gnu_ld" != yes && break
18525         ;;
18526       esac
18527     fi
18528   done
18529   IFS="$lt_save_ifs"
18530 else
18531   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18532 fi
18533 fi
18534
18535 LD="$lt_cv_path_LD"
18536 if test -n "$LD"; then
18537   { echo "$as_me:$LINENO: result: $LD" >&5
18538 echo "${ECHO_T}$LD" >&6; }
18539 else
18540   { echo "$as_me:$LINENO: result: no" >&5
18541 echo "${ECHO_T}no" >&6; }
18542 fi
18543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18545    { (exit 1); exit 1; }; }
18546 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18552 case `$LD -v 2>&1 </dev/null` in
18553 *GNU* | *'with BFD'*)
18554   lt_cv_prog_gnu_ld=yes
18555   ;;
18556 *)
18557   lt_cv_prog_gnu_ld=no
18558   ;;
18559 esac
18560 fi
18561 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18562 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18563 with_gnu_ld=$lt_cv_prog_gnu_ld
18564
18565
18566
18567   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18568   # archiving commands below assume that GNU ld is being used.
18569   if test "$with_gnu_ld" = yes; then
18570     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18571     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'
18572
18573     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18574     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18575
18576     # If archive_cmds runs LD, not CC, wlarc should be empty
18577     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18578     #     investigate it a little bit more. (MM)
18579     wlarc='${wl}'
18580
18581     # ancient GNU ld didn't support --whole-archive et. al.
18582     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18583         grep 'no-whole-archive' > /dev/null; then
18584       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18585     else
18586       whole_archive_flag_spec_CXX=
18587     fi
18588   else
18589     with_gnu_ld=no
18590     wlarc=
18591
18592     # A generic and very simple default shared library creation
18593     # command for GNU C++ for the case where it uses the native
18594     # linker, instead of GNU ld.  If possible, this setting should
18595     # overridden to take advantage of the native linker features on
18596     # the platform it is being used on.
18597     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18598   fi
18599
18600   # Commands to make compiler produce verbose output that lists
18601   # what "hidden" libraries, object files and flags are used when
18602   # linking a shared library.
18603   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18604
18605 else
18606   GXX=no
18607   with_gnu_ld=no
18608   wlarc=
18609 fi
18610
18611 # PORTME: fill in a description of your system's C++ link characteristics
18612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18614 ld_shlibs_CXX=yes
18615 case $host_os in
18616   aix3*)
18617     # FIXME: insert proper C++ library support
18618     ld_shlibs_CXX=no
18619     ;;
18620   aix4* | aix5*)
18621     if test "$host_cpu" = ia64; then
18622       # On IA64, the linker does run time linking by default, so we don't
18623       # have to do anything special.
18624       aix_use_runtimelinking=no
18625       exp_sym_flag='-Bexport'
18626       no_entry_flag=""
18627     else
18628       aix_use_runtimelinking=no
18629
18630       # Test if we are trying to use run time linking or normal
18631       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18632       # need to do runtime linking.
18633       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18634         for ld_flag in $LDFLAGS; do
18635           case $ld_flag in
18636           *-brtl*)
18637             aix_use_runtimelinking=yes
18638             break
18639             ;;
18640           esac
18641         done
18642         ;;
18643       esac
18644
18645       exp_sym_flag='-bexport'
18646       no_entry_flag='-bnoentry'
18647     fi
18648
18649     # When large executables or shared objects are built, AIX ld can
18650     # have problems creating the table of contents.  If linking a library
18651     # or program results in "error TOC overflow" add -mminimal-toc to
18652     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18653     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18654
18655     archive_cmds_CXX=''
18656     hardcode_direct_CXX=yes
18657     hardcode_libdir_separator_CXX=':'
18658     link_all_deplibs_CXX=yes
18659
18660     if test "$GXX" = yes; then
18661       case $host_os in aix4.[012]|aix4.[012].*)
18662       # We only want to do this on AIX 4.2 and lower, the check
18663       # below for broken collect2 doesn't work under 4.3+
18664         collect2name=`${CC} -print-prog-name=collect2`
18665         if test -f "$collect2name" && \
18666            strings "$collect2name" | grep resolve_lib_name >/dev/null
18667         then
18668           # We have reworked collect2
18669           hardcode_direct_CXX=yes
18670         else
18671           # We have old collect2
18672           hardcode_direct_CXX=unsupported
18673           # It fails to find uninstalled libraries when the uninstalled
18674           # path is not listed in the libpath.  Setting hardcode_minus_L
18675           # to unsupported forces relinking
18676           hardcode_minus_L_CXX=yes
18677           hardcode_libdir_flag_spec_CXX='-L$libdir'
18678           hardcode_libdir_separator_CXX=
18679         fi
18680         ;;
18681       esac
18682       shared_flag='-shared'
18683       if test "$aix_use_runtimelinking" = yes; then
18684         shared_flag="$shared_flag "'${wl}-G'
18685       fi
18686     else
18687       # not using gcc
18688       if test "$host_cpu" = ia64; then
18689         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18690         # chokes on -Wl,-G. The following line is correct:
18691         shared_flag='-G'
18692       else
18693         if test "$aix_use_runtimelinking" = yes; then
18694           shared_flag='${wl}-G'
18695         else
18696           shared_flag='${wl}-bM:SRE'
18697         fi
18698       fi
18699     fi
18700
18701     # It seems that -bexpall does not export symbols beginning with
18702     # underscore (_), so it is better to generate a list of symbols to export.
18703     always_export_symbols_CXX=yes
18704     if test "$aix_use_runtimelinking" = yes; then
18705       # Warning - without using the other runtime loading flags (-brtl),
18706       # -berok will link without error, but may produce a broken library.
18707       allow_undefined_flag_CXX='-berok'
18708       # Determine the default libpath from the value encoded in an empty executable.
18709       cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715
18716 int
18717 main ()
18718 {
18719
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_link") 2>conftest.er1
18732   ac_status=$?
18733   grep -v '^ *+' conftest.er1 >conftest.err
18734   rm -f conftest.er1
18735   cat conftest.err >&5
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } &&
18738          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18739   { (case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_try") 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; } &&
18748          { ac_try='test -s conftest$ac_exeext'
18749   { (case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754   (eval "$ac_try") 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; }; then
18758
18759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18760 }'`
18761 # Check for a 64-bit object if we didn't find anything.
18762 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; }
18763 }'`; fi
18764 else
18765   echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18767
18768
18769 fi
18770
18771 rm -f core conftest.err conftest.$ac_objext \
18772       conftest$ac_exeext conftest.$ac_ext
18773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18774
18775       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18776
18777       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"
18778      else
18779       if test "$host_cpu" = ia64; then
18780         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18781         allow_undefined_flag_CXX="-z nodefs"
18782         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"
18783       else
18784         # Determine the default libpath from the value encoded in an empty executable.
18785         cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h.  */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h.  */
18791
18792 int
18793 main ()
18794 {
18795
18796   ;
18797   return 0;
18798 }
18799 _ACEOF
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804   *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807   (eval "$ac_link") 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18815   { (case "(($ac_try" in
18816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817   *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820   (eval "$ac_try") 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; } &&
18824          { ac_try='test -s conftest$ac_exeext'
18825   { (case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_try") 2>&5
18831   ac_status=$?
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); }; }; then
18834
18835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18836 }'`
18837 # Check for a 64-bit object if we didn't find anything.
18838 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; }
18839 }'`; fi
18840 else
18841   echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844
18845 fi
18846
18847 rm -f core conftest.err conftest.$ac_objext \
18848       conftest$ac_exeext conftest.$ac_ext
18849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18850
18851         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18852         # Warning - without using the other run time loading flags,
18853         # -berok will link without error, but may produce a broken library.
18854         no_undefined_flag_CXX=' ${wl}-bernotok'
18855         allow_undefined_flag_CXX=' ${wl}-berok'
18856         # Exported symbols can be pulled into shared objects from archives
18857         whole_archive_flag_spec_CXX='$convenience'
18858         archive_cmds_need_lc_CXX=yes
18859         # This is similar to how AIX traditionally builds its shared libraries.
18860         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'
18861       fi
18862     fi
18863     ;;
18864
18865   beos*)
18866     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18867       allow_undefined_flag_CXX=unsupported
18868       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18869       # support --undefined.  This deserves some investigation.  FIXME
18870       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18871     else
18872       ld_shlibs_CXX=no
18873     fi
18874     ;;
18875
18876   chorus*)
18877     case $cc_basename in
18878       *)
18879         # FIXME: insert proper C++ library support
18880         ld_shlibs_CXX=no
18881         ;;
18882     esac
18883     ;;
18884
18885   cygwin* | mingw* | pw32*)
18886     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18887     # as there is no search path for DLLs.
18888     hardcode_libdir_flag_spec_CXX='-L$libdir'
18889     allow_undefined_flag_CXX=unsupported
18890     always_export_symbols_CXX=no
18891     enable_shared_with_static_runtimes_CXX=yes
18892
18893     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18894       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'
18895       # If the export-symbols file already is a .def file (1st line
18896       # is EXPORTS), use it as is; otherwise, prepend...
18897       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18898         cp $export_symbols $output_objdir/$soname.def;
18899       else
18900         echo EXPORTS > $output_objdir/$soname.def;
18901         cat $export_symbols >> $output_objdir/$soname.def;
18902       fi~
18903       $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'
18904     else
18905       ld_shlibs_CXX=no
18906     fi
18907   ;;
18908       darwin* | rhapsody*)
18909         case $host_os in
18910         rhapsody* | darwin1.[012])
18911          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18912          ;;
18913        *) # Darwin 1.3 on
18914          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18915            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18916          else
18917            case ${MACOSX_DEPLOYMENT_TARGET} in
18918              10.[012])
18919                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18920                ;;
18921              10.*)
18922                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18923                ;;
18924            esac
18925          fi
18926          ;;
18927         esac
18928       archive_cmds_need_lc_CXX=no
18929       hardcode_direct_CXX=no
18930       hardcode_automatic_CXX=yes
18931       hardcode_shlibpath_var_CXX=unsupported
18932       whole_archive_flag_spec_CXX=''
18933       link_all_deplibs_CXX=yes
18934
18935     if test "$GXX" = yes ; then
18936       lt_int_apple_cc_single_mod=no
18937       output_verbose_link_cmd='echo'
18938       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18939        lt_int_apple_cc_single_mod=yes
18940       fi
18941       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18942        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18943       else
18944           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'
18945         fi
18946         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18947         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18948           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18949             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}'
18950           else
18951             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}'
18952           fi
18953             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}'
18954       else
18955       case $cc_basename in
18956         xlc*)
18957          output_verbose_link_cmd='echo'
18958           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'
18959           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18960           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18961           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}'
18962           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}'
18963           ;;
18964        *)
18965          ld_shlibs_CXX=no
18966           ;;
18967       esac
18968       fi
18969         ;;
18970
18971   dgux*)
18972     case $cc_basename in
18973       ec++*)
18974         # FIXME: insert proper C++ library support
18975         ld_shlibs_CXX=no
18976         ;;
18977       ghcx*)
18978         # Green Hills C++ Compiler
18979         # FIXME: insert proper C++ library support
18980         ld_shlibs_CXX=no
18981         ;;
18982       *)
18983         # FIXME: insert proper C++ library support
18984         ld_shlibs_CXX=no
18985         ;;
18986     esac
18987     ;;
18988   freebsd[12]*)
18989     # C++ shared libraries reported to be fairly broken before switch to ELF
18990     ld_shlibs_CXX=no
18991     ;;
18992   freebsd-elf*)
18993     archive_cmds_need_lc_CXX=no
18994     ;;
18995   freebsd* | kfreebsd*-gnu | dragonfly*)
18996     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18997     # conventions
18998     ld_shlibs_CXX=yes
18999     ;;
19000   gnu*)
19001     ;;
19002   hpux9*)
19003     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19004     hardcode_libdir_separator_CXX=:
19005     export_dynamic_flag_spec_CXX='${wl}-E'
19006     hardcode_direct_CXX=yes
19007     hardcode_minus_L_CXX=yes # Not in the search PATH,
19008                                 # but as the default
19009                                 # location of the library.
19010
19011     case $cc_basename in
19012     CC*)
19013       # FIXME: insert proper C++ library support
19014       ld_shlibs_CXX=no
19015       ;;
19016     aCC*)
19017       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'
19018       # Commands to make compiler produce verbose output that lists
19019       # what "hidden" libraries, object files and flags are used when
19020       # linking a shared library.
19021       #
19022       # There doesn't appear to be a way to prevent this compiler from
19023       # explicitly linking system object files so we need to strip them
19024       # from the output so that they don't get included in the library
19025       # dependencies.
19026       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'
19027       ;;
19028     *)
19029       if test "$GXX" = yes; then
19030         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'
19031       else
19032         # FIXME: insert proper C++ library support
19033         ld_shlibs_CXX=no
19034       fi
19035       ;;
19036     esac
19037     ;;
19038   hpux10*|hpux11*)
19039     if test $with_gnu_ld = no; then
19040       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19041       hardcode_libdir_separator_CXX=:
19042
19043       case $host_cpu in
19044       hppa*64*|ia64*)
19045         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19046         ;;
19047       *)
19048         export_dynamic_flag_spec_CXX='${wl}-E'
19049         ;;
19050       esac
19051     fi
19052     case $host_cpu in
19053     hppa*64*|ia64*)
19054       hardcode_direct_CXX=no
19055       hardcode_shlibpath_var_CXX=no
19056       ;;
19057     *)
19058       hardcode_direct_CXX=yes
19059       hardcode_minus_L_CXX=yes # Not in the search PATH,
19060                                               # but as the default
19061                                               # location of the library.
19062       ;;
19063     esac
19064
19065     case $cc_basename in
19066       CC*)
19067         # FIXME: insert proper C++ library support
19068         ld_shlibs_CXX=no
19069         ;;
19070       aCC*)
19071         case $host_cpu in
19072         hppa*64*)
19073           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074           ;;
19075         ia64*)
19076           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19077           ;;
19078         *)
19079           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080           ;;
19081         esac
19082         # Commands to make compiler produce verbose output that lists
19083         # what "hidden" libraries, object files and flags are used when
19084         # linking a shared library.
19085         #
19086         # There doesn't appear to be a way to prevent this compiler from
19087         # explicitly linking system object files so we need to strip them
19088         # from the output so that they don't get included in the library
19089         # dependencies.
19090         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'
19091         ;;
19092       *)
19093         if test "$GXX" = yes; then
19094           if test $with_gnu_ld = no; then
19095             case $host_cpu in
19096             hppa*64*)
19097               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19098               ;;
19099             ia64*)
19100               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19101               ;;
19102             *)
19103               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'
19104               ;;
19105             esac
19106           fi
19107         else
19108           # FIXME: insert proper C++ library support
19109           ld_shlibs_CXX=no
19110         fi
19111         ;;
19112     esac
19113     ;;
19114   interix3*)
19115     hardcode_direct_CXX=no
19116     hardcode_shlibpath_var_CXX=no
19117     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19118     export_dynamic_flag_spec_CXX='${wl}-E'
19119     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19120     # Instead, shared libraries are loaded at an image base (0x10000000 by
19121     # default) and relocated if they conflict, which is a slow very memory
19122     # consuming and fragmenting process.  To avoid this, we pick a random,
19123     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19124     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19125     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'
19126     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'
19127     ;;
19128   irix5* | irix6*)
19129     case $cc_basename in
19130       CC*)
19131         # SGI C++
19132         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'
19133
19134         # Archives containing C++ object files must be created using
19135         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19136         # necessary to make sure instantiated templates are included
19137         # in the archive.
19138         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19139         ;;
19140       *)
19141         if test "$GXX" = yes; then
19142           if test "$with_gnu_ld" = no; then
19143             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'
19144           else
19145             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'
19146           fi
19147         fi
19148         link_all_deplibs_CXX=yes
19149         ;;
19150     esac
19151     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19152     hardcode_libdir_separator_CXX=:
19153     ;;
19154   linux*)
19155     case $cc_basename in
19156       KCC*)
19157         # Kuck and Associates, Inc. (KAI) C++ Compiler
19158
19159         # KCC will only create a shared library if the output file
19160         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19161         # to its proper name (with version) after linking.
19162         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'
19163         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'
19164         # Commands to make compiler produce verbose output that lists
19165         # what "hidden" libraries, object files and flags are used when
19166         # linking a shared library.
19167         #
19168         # There doesn't appear to be a way to prevent this compiler from
19169         # explicitly linking system object files so we need to strip them
19170         # from the output so that they don't get included in the library
19171         # dependencies.
19172         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'
19173
19174         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19175         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19176
19177         # Archives containing C++ object files must be created using
19178         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19179         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19180         ;;
19181       icpc*)
19182         # Intel C++
19183         with_gnu_ld=yes
19184         # version 8.0 and above of icpc choke on multiply defined symbols
19185         # if we add $predep_objects and $postdep_objects, however 7.1 and
19186         # earlier do not add the objects themselves.
19187         case `$CC -V 2>&1` in
19188         *"Version 7."*)
19189           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19190           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'
19191           ;;
19192         *)  # Version 8.0 or newer
19193           tmp_idyn=
19194           case $host_cpu in
19195             ia64*) tmp_idyn=' -i_dynamic';;
19196           esac
19197           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19198           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'
19199           ;;
19200         esac
19201         archive_cmds_need_lc_CXX=no
19202         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19203         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19204         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19205         ;;
19206       pgCC*)
19207         # Portland Group C++ compiler
19208         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19209         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'
19210
19211         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19212         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213         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'
19214         ;;
19215       cxx*)
19216         # Compaq C++
19217         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218         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'
19219
19220         runpath_var=LD_RUN_PATH
19221         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19222         hardcode_libdir_separator_CXX=:
19223
19224         # Commands to make compiler produce verbose output that lists
19225         # what "hidden" libraries, object files and flags are used when
19226         # linking a shared library.
19227         #
19228         # There doesn't appear to be a way to prevent this compiler from
19229         # explicitly linking system object files so we need to strip them
19230         # from the output so that they don't get included in the library
19231         # dependencies.
19232         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'
19233         ;;
19234     esac
19235     ;;
19236   lynxos*)
19237     # FIXME: insert proper C++ library support
19238     ld_shlibs_CXX=no
19239     ;;
19240   m88k*)
19241     # FIXME: insert proper C++ library support
19242     ld_shlibs_CXX=no
19243     ;;
19244   mvs*)
19245     case $cc_basename in
19246       cxx*)
19247         # FIXME: insert proper C++ library support
19248         ld_shlibs_CXX=no
19249         ;;
19250       *)
19251         # FIXME: insert proper C++ library support
19252         ld_shlibs_CXX=no
19253         ;;
19254     esac
19255     ;;
19256   netbsd*)
19257     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19258       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19259       wlarc=
19260       hardcode_libdir_flag_spec_CXX='-R$libdir'
19261       hardcode_direct_CXX=yes
19262       hardcode_shlibpath_var_CXX=no
19263     fi
19264     # Workaround some broken pre-1.5 toolchains
19265     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19266     ;;
19267   openbsd2*)
19268     # C++ shared libraries are fairly broken
19269     ld_shlibs_CXX=no
19270     ;;
19271   openbsd*)
19272     hardcode_direct_CXX=yes
19273     hardcode_shlibpath_var_CXX=no
19274     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19275     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19276     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19277       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19278       export_dynamic_flag_spec_CXX='${wl}-E'
19279       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19280     fi
19281     output_verbose_link_cmd='echo'
19282     ;;
19283   osf3*)
19284     case $cc_basename in
19285       KCC*)
19286         # Kuck and Associates, Inc. (KAI) C++ Compiler
19287
19288         # KCC will only create a shared library if the output file
19289         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19290         # to its proper name (with version) after linking.
19291         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'
19292
19293         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19294         hardcode_libdir_separator_CXX=:
19295
19296         # Archives containing C++ object files must be created using
19297         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19298         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19299
19300         ;;
19301       RCC*)
19302         # Rational C++ 2.4.1
19303         # FIXME: insert proper C++ library support
19304         ld_shlibs_CXX=no
19305         ;;
19306       cxx*)
19307         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19308         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'
19309
19310         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19311         hardcode_libdir_separator_CXX=:
19312
19313         # Commands to make compiler produce verbose output that lists
19314         # what "hidden" libraries, object files and flags are used when
19315         # linking a shared library.
19316         #
19317         # There doesn't appear to be a way to prevent this compiler from
19318         # explicitly linking system object files so we need to strip them
19319         # from the output so that they don't get included in the library
19320         # dependencies.
19321         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'
19322         ;;
19323       *)
19324         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19325           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19326           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'
19327
19328           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19329           hardcode_libdir_separator_CXX=:
19330
19331           # Commands to make compiler produce verbose output that lists
19332           # what "hidden" libraries, object files and flags are used when
19333           # linking a shared library.
19334           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19335
19336         else
19337           # FIXME: insert proper C++ library support
19338           ld_shlibs_CXX=no
19339         fi
19340         ;;
19341     esac
19342     ;;
19343   osf4* | osf5*)
19344     case $cc_basename in
19345       KCC*)
19346         # Kuck and Associates, Inc. (KAI) C++ Compiler
19347
19348         # KCC will only create a shared library if the output file
19349         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19350         # to its proper name (with version) after linking.
19351         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'
19352
19353         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19354         hardcode_libdir_separator_CXX=:
19355
19356         # Archives containing C++ object files must be created using
19357         # the KAI C++ compiler.
19358         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19359         ;;
19360       RCC*)
19361         # Rational C++ 2.4.1
19362         # FIXME: insert proper C++ library support
19363         ld_shlibs_CXX=no
19364         ;;
19365       cxx*)
19366         allow_undefined_flag_CXX=' -expect_unresolved \*'
19367         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'
19368         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19369           echo "-hidden">> $lib.exp~
19370           $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~
19371           $rm $lib.exp'
19372
19373         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19374         hardcode_libdir_separator_CXX=:
19375
19376         # Commands to make compiler produce verbose output that lists
19377         # what "hidden" libraries, object files and flags are used when
19378         # linking a shared library.
19379         #
19380         # There doesn't appear to be a way to prevent this compiler from
19381         # explicitly linking system object files so we need to strip them
19382         # from the output so that they don't get included in the library
19383         # dependencies.
19384         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'
19385         ;;
19386       *)
19387         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19388           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19389          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'
19390
19391           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19392           hardcode_libdir_separator_CXX=:
19393
19394           # Commands to make compiler produce verbose output that lists
19395           # what "hidden" libraries, object files and flags are used when
19396           # linking a shared library.
19397           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19398
19399         else
19400           # FIXME: insert proper C++ library support
19401           ld_shlibs_CXX=no
19402         fi
19403         ;;
19404     esac
19405     ;;
19406   psos*)
19407     # FIXME: insert proper C++ library support
19408     ld_shlibs_CXX=no
19409     ;;
19410   sunos4*)
19411     case $cc_basename in
19412       CC*)
19413         # Sun C++ 4.x
19414         # FIXME: insert proper C++ library support
19415         ld_shlibs_CXX=no
19416         ;;
19417       lcc*)
19418         # Lucid
19419         # FIXME: insert proper C++ library support
19420         ld_shlibs_CXX=no
19421         ;;
19422       *)
19423         # FIXME: insert proper C++ library support
19424         ld_shlibs_CXX=no
19425         ;;
19426     esac
19427     ;;
19428   solaris*)
19429     case $cc_basename in
19430       CC*)
19431         # Sun C++ 4.2, 5.x and Centerline C++
19432         archive_cmds_need_lc_CXX=yes
19433         no_undefined_flag_CXX=' -zdefs'
19434         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19435         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19436         $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'
19437
19438         hardcode_libdir_flag_spec_CXX='-R$libdir'
19439         hardcode_shlibpath_var_CXX=no
19440         case $host_os in
19441           solaris2.[0-5] | solaris2.[0-5].*) ;;
19442           *)
19443             # The C++ compiler is used as linker so we must use $wl
19444             # flag to pass the commands to the underlying system
19445             # linker. We must also pass each convience library through
19446             # to the system linker between allextract/defaultextract.
19447             # The C++ compiler will combine linker options so we
19448             # cannot just pass the convience library names through
19449             # without $wl.
19450             # Supported since Solaris 2.6 (maybe 2.5.1?)
19451             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'
19452             ;;
19453         esac
19454         link_all_deplibs_CXX=yes
19455
19456         output_verbose_link_cmd='echo'
19457
19458         # Archives containing C++ object files must be created using
19459         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19460         # necessary to make sure instantiated templates are included
19461         # in the archive.
19462         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19463         ;;
19464       gcx*)
19465         # Green Hills C++ Compiler
19466         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19467
19468         # The C++ compiler must be used to create the archive.
19469         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19470         ;;
19471       *)
19472         # GNU C++ compiler with Solaris linker
19473         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19474           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19475           if $CC --version | grep -v '^2\.7' > /dev/null; then
19476             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19477             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19478                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19479
19480             # Commands to make compiler produce verbose output that lists
19481             # what "hidden" libraries, object files and flags are used when
19482             # linking a shared library.
19483             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19484           else
19485             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19486             # platform.
19487             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19488             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19489                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19490
19491             # Commands to make compiler produce verbose output that lists
19492             # what "hidden" libraries, object files and flags are used when
19493             # linking a shared library.
19494             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19495           fi
19496
19497           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19498         fi
19499         ;;
19500     esac
19501     ;;
19502   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19503     no_undefined_flag_CXX='${wl}-z,text'
19504     archive_cmds_need_lc_CXX=no
19505     hardcode_shlibpath_var_CXX=no
19506     runpath_var='LD_RUN_PATH'
19507
19508     case $cc_basename in
19509       CC*)
19510         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512         ;;
19513       *)
19514         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19515         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19516         ;;
19517     esac
19518     ;;
19519   sysv5* | sco3.2v5* | sco5v6*)
19520     # Note: We can NOT use -z defs as we might desire, because we do not
19521     # link with -lc, and that would cause any symbols used from libc to
19522     # always be unresolved, which means just about no library would
19523     # ever link correctly.  If we're not using GNU ld we use -z text
19524     # though, which does catch some bad symbols but isn't as heavy-handed
19525     # as -z defs.
19526     # For security reasons, it is highly recommended that you always
19527     # use absolute paths for naming shared libraries, and exclude the
19528     # DT_RUNPATH tag from executables and libraries.  But doing so
19529     # requires that you compile everything twice, which is a pain.
19530     # So that behaviour is only enabled if SCOABSPATH is set to a
19531     # non-empty value in the environment.  Most likely only useful for
19532     # creating official distributions of packages.
19533     # This is a hack until libtool officially supports absolute path
19534     # names for shared libraries.
19535     no_undefined_flag_CXX='${wl}-z,text'
19536     allow_undefined_flag_CXX='${wl}-z,nodefs'
19537     archive_cmds_need_lc_CXX=no
19538     hardcode_shlibpath_var_CXX=no
19539     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19540     hardcode_libdir_separator_CXX=':'
19541     link_all_deplibs_CXX=yes
19542     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19543     runpath_var='LD_RUN_PATH'
19544
19545     case $cc_basename in
19546       CC*)
19547         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19548         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19549         ;;
19550       *)
19551         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19552         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19553         ;;
19554     esac
19555     ;;
19556   tandem*)
19557     case $cc_basename in
19558       NCC*)
19559         # NonStop-UX NCC 3.20
19560         # FIXME: insert proper C++ library support
19561         ld_shlibs_CXX=no
19562         ;;
19563       *)
19564         # FIXME: insert proper C++ library support
19565         ld_shlibs_CXX=no
19566         ;;
19567     esac
19568     ;;
19569   vxworks*)
19570     # FIXME: insert proper C++ library support
19571     ld_shlibs_CXX=no
19572     ;;
19573   *)
19574     # FIXME: insert proper C++ library support
19575     ld_shlibs_CXX=no
19576     ;;
19577 esac
19578 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19579 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19580 test "$ld_shlibs_CXX" = no && can_build_shared=no
19581
19582 GCC_CXX="$GXX"
19583 LD_CXX="$LD"
19584
19585
19586 cat > conftest.$ac_ext <<EOF
19587 class Foo
19588 {
19589 public:
19590   Foo (void) { a = 0; }
19591 private:
19592   int a;
19593 };
19594 EOF
19595
19596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597   (eval $ac_compile) 2>&5
19598   ac_status=$?
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); }; then
19601   # Parse the compiler output and extract the necessary
19602   # objects, libraries and library flags.
19603
19604   # Sentinel used to keep track of whether or not we are before
19605   # the conftest object file.
19606   pre_test_object_deps_done=no
19607
19608   # The `*' in the case matches for architectures that use `case' in
19609   # $output_verbose_cmd can trigger glob expansion during the loop
19610   # eval without this substitution.
19611   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19612
19613   for p in `eval $output_verbose_link_cmd`; do
19614     case $p in
19615
19616     -L* | -R* | -l*)
19617        # Some compilers place space between "-{L,R}" and the path.
19618        # Remove the space.
19619        if test $p = "-L" \
19620           || test $p = "-R"; then
19621          prev=$p
19622          continue
19623        else
19624          prev=
19625        fi
19626
19627        if test "$pre_test_object_deps_done" = no; then
19628          case $p in
19629          -L* | -R*)
19630            # Internal compiler library paths should come after those
19631            # provided the user.  The postdeps already come after the
19632            # user supplied libs so there is no need to process them.
19633            if test -z "$compiler_lib_search_path_CXX"; then
19634              compiler_lib_search_path_CXX="${prev}${p}"
19635            else
19636              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19637            fi
19638            ;;
19639          # The "-l" case would never come before the object being
19640          # linked, so don't bother handling this case.
19641          esac
19642        else
19643          if test -z "$postdeps_CXX"; then
19644            postdeps_CXX="${prev}${p}"
19645          else
19646            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19647          fi
19648        fi
19649        ;;
19650
19651     *.$objext)
19652        # This assumes that the test object file only shows up
19653        # once in the compiler output.
19654        if test "$p" = "conftest.$objext"; then
19655          pre_test_object_deps_done=yes
19656          continue
19657        fi
19658
19659        if test "$pre_test_object_deps_done" = no; then
19660          if test -z "$predep_objects_CXX"; then
19661            predep_objects_CXX="$p"
19662          else
19663            predep_objects_CXX="$predep_objects_CXX $p"
19664          fi
19665        else
19666          if test -z "$postdep_objects_CXX"; then
19667            postdep_objects_CXX="$p"
19668          else
19669            postdep_objects_CXX="$postdep_objects_CXX $p"
19670          fi
19671        fi
19672        ;;
19673
19674     *) ;; # Ignore the rest.
19675
19676     esac
19677   done
19678
19679   # Clean up.
19680   rm -f a.out a.exe
19681 else
19682   echo "libtool.m4: error: problem compiling CXX test program"
19683 fi
19684
19685 $rm -f confest.$objext
19686
19687 # PORTME: override above test on systems where it is broken
19688 case $host_os in
19689 interix3*)
19690   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19691   # hack all around it, let's just trust "g++" to DTRT.
19692   predep_objects_CXX=
19693   postdep_objects_CXX=
19694   postdeps_CXX=
19695   ;;
19696
19697 solaris*)
19698   case $cc_basename in
19699   CC*)
19700     # Adding this requires a known-good setup of shared libraries for
19701     # Sun compiler versions before 5.6, else PIC objects from an old
19702     # archive will be linked into the output, leading to subtle bugs.
19703     postdeps_CXX='-lCstd -lCrun'
19704     ;;
19705   esac
19706   ;;
19707 esac
19708
19709
19710 case " $postdeps_CXX " in
19711 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19712 esac
19713
19714 lt_prog_compiler_wl_CXX=
19715 lt_prog_compiler_pic_CXX=
19716 lt_prog_compiler_static_CXX=
19717
19718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19720
19721   # C++ specific cases for pic, static, wl, etc.
19722   if test "$GXX" = yes; then
19723     lt_prog_compiler_wl_CXX='-Wl,'
19724     lt_prog_compiler_static_CXX='-static'
19725
19726     case $host_os in
19727     aix*)
19728       # All AIX code is PIC.
19729       if test "$host_cpu" = ia64; then
19730         # AIX 5 now supports IA64 processor
19731         lt_prog_compiler_static_CXX='-Bstatic'
19732       fi
19733       ;;
19734     amigaos*)
19735       # FIXME: we need at least 68020 code to build shared libraries, but
19736       # adding the `-m68020' flag to GCC prevents building anything better,
19737       # like `-m68040'.
19738       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19739       ;;
19740     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19741       # PIC is the default for these OSes.
19742       ;;
19743     mingw* | os2* | pw32*)
19744       # This hack is so that the source file can tell whether it is being
19745       # built for inclusion in a dll (and should export symbols for example).
19746       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19747       ;;
19748     darwin* | rhapsody*)
19749       # PIC is the default on this platform
19750       # Common symbols not allowed in MH_DYLIB files
19751       lt_prog_compiler_pic_CXX='-fno-common'
19752       ;;
19753     *djgpp*)
19754       # DJGPP does not support shared libraries at all
19755       lt_prog_compiler_pic_CXX=
19756       ;;
19757     interix3*)
19758       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19759       # Instead, we relocate shared libraries at runtime.
19760       ;;
19761     sysv4*MP*)
19762       if test -d /usr/nec; then
19763         lt_prog_compiler_pic_CXX=-Kconform_pic
19764       fi
19765       ;;
19766     hpux*)
19767       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19768       # not for PA HP-UX.
19769       case $host_cpu in
19770       hppa*64*|ia64*)
19771         ;;
19772       *)
19773         lt_prog_compiler_pic_CXX='-fPIC'
19774         ;;
19775       esac
19776       ;;
19777     *)
19778       lt_prog_compiler_pic_CXX='-fPIC'
19779       ;;
19780     esac
19781   else
19782     case $host_os in
19783       aix4* | aix5*)
19784         # All AIX code is PIC.
19785         if test "$host_cpu" = ia64; then
19786           # AIX 5 now supports IA64 processor
19787           lt_prog_compiler_static_CXX='-Bstatic'
19788         else
19789           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19790         fi
19791         ;;
19792       chorus*)
19793         case $cc_basename in
19794         cxch68*)
19795           # Green Hills C++ Compiler
19796           # _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"
19797           ;;
19798         esac
19799         ;;
19800        darwin*)
19801          # PIC is the default on this platform
19802          # Common symbols not allowed in MH_DYLIB files
19803          case $cc_basename in
19804            xlc*)
19805            lt_prog_compiler_pic_CXX='-qnocommon'
19806            lt_prog_compiler_wl_CXX='-Wl,'
19807            ;;
19808          esac
19809        ;;
19810       dgux*)
19811         case $cc_basename in
19812           ec++*)
19813             lt_prog_compiler_pic_CXX='-KPIC'
19814             ;;
19815           ghcx*)
19816             # Green Hills C++ Compiler
19817             lt_prog_compiler_pic_CXX='-pic'
19818             ;;
19819           *)
19820             ;;
19821         esac
19822         ;;
19823       freebsd* | kfreebsd*-gnu | dragonfly*)
19824         # FreeBSD uses GNU C++
19825         ;;
19826       hpux9* | hpux10* | hpux11*)
19827         case $cc_basename in
19828           CC*)
19829             lt_prog_compiler_wl_CXX='-Wl,'
19830             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19831             if test "$host_cpu" != ia64; then
19832               lt_prog_compiler_pic_CXX='+Z'
19833             fi
19834             ;;
19835           aCC*)
19836             lt_prog_compiler_wl_CXX='-Wl,'
19837             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19838             case $host_cpu in
19839             hppa*64*|ia64*)
19840               # +Z the default
19841               ;;
19842             *)
19843               lt_prog_compiler_pic_CXX='+Z'
19844               ;;
19845             esac
19846             ;;
19847           *)
19848             ;;
19849         esac
19850         ;;
19851       interix*)
19852         # This is c89, which is MS Visual C++ (no shared libs)
19853         # Anyone wants to do a port?
19854         ;;
19855       irix5* | irix6* | nonstopux*)
19856         case $cc_basename in
19857           CC*)
19858             lt_prog_compiler_wl_CXX='-Wl,'
19859             lt_prog_compiler_static_CXX='-non_shared'
19860             # CC pic flag -KPIC is the default.
19861             ;;
19862           *)
19863             ;;
19864         esac
19865         ;;
19866       linux*)
19867         case $cc_basename in
19868           KCC*)
19869             # KAI C++ Compiler
19870             lt_prog_compiler_wl_CXX='--backend -Wl,'
19871             lt_prog_compiler_pic_CXX='-fPIC'
19872             ;;
19873           icpc* | ecpc*)
19874             # Intel C++
19875             lt_prog_compiler_wl_CXX='-Wl,'
19876             lt_prog_compiler_pic_CXX='-KPIC'
19877             lt_prog_compiler_static_CXX='-static'
19878             ;;
19879           pgCC*)
19880             # Portland Group C++ compiler.
19881             lt_prog_compiler_wl_CXX='-Wl,'
19882             lt_prog_compiler_pic_CXX='-fpic'
19883             lt_prog_compiler_static_CXX='-Bstatic'
19884             ;;
19885           cxx*)
19886             # Compaq C++
19887             # Make sure the PIC flag is empty.  It appears that all Alpha
19888             # Linux and Compaq Tru64 Unix objects are PIC.
19889             lt_prog_compiler_pic_CXX=
19890             lt_prog_compiler_static_CXX='-non_shared'
19891             ;;
19892           *)
19893             ;;
19894         esac
19895         ;;
19896       lynxos*)
19897         ;;
19898       m88k*)
19899         ;;
19900       mvs*)
19901         case $cc_basename in
19902           cxx*)
19903             lt_prog_compiler_pic_CXX='-W c,exportall'
19904             ;;
19905           *)
19906             ;;
19907         esac
19908         ;;
19909       netbsd*)
19910         ;;
19911       osf3* | osf4* | osf5*)
19912         case $cc_basename in
19913           KCC*)
19914             lt_prog_compiler_wl_CXX='--backend -Wl,'
19915             ;;
19916           RCC*)
19917             # Rational C++ 2.4.1
19918             lt_prog_compiler_pic_CXX='-pic'
19919             ;;
19920           cxx*)
19921             # Digital/Compaq C++
19922             lt_prog_compiler_wl_CXX='-Wl,'
19923             # Make sure the PIC flag is empty.  It appears that all Alpha
19924             # Linux and Compaq Tru64 Unix objects are PIC.
19925             lt_prog_compiler_pic_CXX=
19926             lt_prog_compiler_static_CXX='-non_shared'
19927             ;;
19928           *)
19929             ;;
19930         esac
19931         ;;
19932       psos*)
19933         ;;
19934       solaris*)
19935         case $cc_basename in
19936           CC*)
19937             # Sun C++ 4.2, 5.x and Centerline C++
19938             lt_prog_compiler_pic_CXX='-KPIC'
19939             lt_prog_compiler_static_CXX='-Bstatic'
19940             lt_prog_compiler_wl_CXX='-Qoption ld '
19941             ;;
19942           gcx*)
19943             # Green Hills C++ Compiler
19944             lt_prog_compiler_pic_CXX='-PIC'
19945             ;;
19946           *)
19947             ;;
19948         esac
19949         ;;
19950       sunos4*)
19951         case $cc_basename in
19952           CC*)
19953             # Sun C++ 4.x
19954             lt_prog_compiler_pic_CXX='-pic'
19955             lt_prog_compiler_static_CXX='-Bstatic'
19956             ;;
19957           lcc*)
19958             # Lucid
19959             lt_prog_compiler_pic_CXX='-pic'
19960             ;;
19961           *)
19962             ;;
19963         esac
19964         ;;
19965       tandem*)
19966         case $cc_basename in
19967           NCC*)
19968             # NonStop-UX NCC 3.20
19969             lt_prog_compiler_pic_CXX='-KPIC'
19970             ;;
19971           *)
19972             ;;
19973         esac
19974         ;;
19975       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19976         case $cc_basename in
19977           CC*)
19978             lt_prog_compiler_wl_CXX='-Wl,'
19979             lt_prog_compiler_pic_CXX='-KPIC'
19980             lt_prog_compiler_static_CXX='-Bstatic'
19981             ;;
19982         esac
19983         ;;
19984       vxworks*)
19985         ;;
19986       *)
19987         lt_prog_compiler_can_build_shared_CXX=no
19988         ;;
19989     esac
19990   fi
19991
19992 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19993 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19994
19995 #
19996 # Check to make sure the PIC flag actually works.
19997 #
19998 if test -n "$lt_prog_compiler_pic_CXX"; then
19999
20000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20002 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005   lt_prog_compiler_pic_works_CXX=no
20006   ac_outfile=conftest.$ac_objext
20007    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20008    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20009    # Insert the option either (1) after the last *FLAGS variable, or
20010    # (2) before a word containing "conftest.", or (3) at the end.
20011    # Note that $ac_compile itself does not contain backslashes and begins
20012    # with a dollar sign (not a hyphen), so the echo should work correctly.
20013    # The option is referenced via a variable to avoid confusing sed.
20014    lt_compile=`echo "$ac_compile" | $SED \
20015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20017    -e 's:$: $lt_compiler_flag:'`
20018    (eval echo "\"\$as_me:20018: $lt_compile\"" >&5)
20019    (eval "$lt_compile" 2>conftest.err)
20020    ac_status=$?
20021    cat conftest.err >&5
20022    echo "$as_me:20022: \$? = $ac_status" >&5
20023    if (exit $ac_status) && test -s "$ac_outfile"; then
20024      # The compiler can only warn and ignore the option if not recognized
20025      # So say no if there are warnings other than the usual output.
20026      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20027      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20028      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20029        lt_prog_compiler_pic_works_CXX=yes
20030      fi
20031    fi
20032    $rm conftest*
20033
20034 fi
20035 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20036 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20037
20038 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20039     case $lt_prog_compiler_pic_CXX in
20040      "" | " "*) ;;
20041      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20042      esac
20043 else
20044     lt_prog_compiler_pic_CXX=
20045      lt_prog_compiler_can_build_shared_CXX=no
20046 fi
20047
20048 fi
20049 case $host_os in
20050   # For platforms which do not support PIC, -DPIC is meaningless:
20051   *djgpp*)
20052     lt_prog_compiler_pic_CXX=
20053     ;;
20054   *)
20055     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20056     ;;
20057 esac
20058
20059 #
20060 # Check to make sure the static flag actually works.
20061 #
20062 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20063 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20064 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20065 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20066   echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068   lt_prog_compiler_static_works_CXX=no
20069    save_LDFLAGS="$LDFLAGS"
20070    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20071    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20072    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20073      # The linker can only warn and ignore the option if not recognized
20074      # So say no if there are warnings
20075      if test -s conftest.err; then
20076        # Append any errors to the config.log.
20077        cat conftest.err 1>&5
20078        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20079        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20080        if diff conftest.exp conftest.er2 >/dev/null; then
20081          lt_prog_compiler_static_works_CXX=yes
20082        fi
20083      else
20084        lt_prog_compiler_static_works_CXX=yes
20085      fi
20086    fi
20087    $rm conftest*
20088    LDFLAGS="$save_LDFLAGS"
20089
20090 fi
20091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20092 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20093
20094 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20095     :
20096 else
20097     lt_prog_compiler_static_CXX=
20098 fi
20099
20100
20101 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20103 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106   lt_cv_prog_compiler_c_o_CXX=no
20107    $rm -r conftest 2>/dev/null
20108    mkdir conftest
20109    cd conftest
20110    mkdir out
20111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20112
20113    lt_compiler_flag="-o out/conftest2.$ac_objext"
20114    # Insert the option either (1) after the last *FLAGS variable, or
20115    # (2) before a word containing "conftest.", or (3) at the end.
20116    # Note that $ac_compile itself does not contain backslashes and begins
20117    # with a dollar sign (not a hyphen), so the echo should work correctly.
20118    lt_compile=`echo "$ac_compile" | $SED \
20119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20121    -e 's:$: $lt_compiler_flag:'`
20122    (eval echo "\"\$as_me:20122: $lt_compile\"" >&5)
20123    (eval "$lt_compile" 2>out/conftest.err)
20124    ac_status=$?
20125    cat out/conftest.err >&5
20126    echo "$as_me:20126: \$? = $ac_status" >&5
20127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20128    then
20129      # The compiler can only warn and ignore the option if not recognized
20130      # So say no if there are warnings
20131      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20132      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20133      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20134        lt_cv_prog_compiler_c_o_CXX=yes
20135      fi
20136    fi
20137    chmod u+w . 2>&5
20138    $rm conftest*
20139    # SGI C++ compiler will create directory out/ii_files/ for
20140    # template instantiation
20141    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20142    $rm out/* && rmdir out
20143    cd ..
20144    rmdir conftest
20145    $rm conftest*
20146
20147 fi
20148 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20150
20151
20152 hard_links="nottested"
20153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20154   # do not overwrite the value of need_locks provided by the user
20155   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20157   hard_links=yes
20158   $rm conftest*
20159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20160   touch conftest.a
20161   ln conftest.a conftest.b 2>&5 || hard_links=no
20162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20163   { echo "$as_me:$LINENO: result: $hard_links" >&5
20164 echo "${ECHO_T}$hard_links" >&6; }
20165   if test "$hard_links" = no; then
20166     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20168     need_locks=warn
20169   fi
20170 else
20171   need_locks=no
20172 fi
20173
20174 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20176
20177   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20178   case $host_os in
20179   aix4* | aix5*)
20180     # If we're using GNU nm, then we don't want the "-C" option.
20181     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20182     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20183       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'
20184     else
20185       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'
20186     fi
20187     ;;
20188   pw32*)
20189     export_symbols_cmds_CXX="$ltdll_cmds"
20190   ;;
20191   cygwin* | mingw*)
20192     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'
20193   ;;
20194   *)
20195     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20196   ;;
20197   esac
20198
20199 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20200 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20201 test "$ld_shlibs_CXX" = no && can_build_shared=no
20202
20203 #
20204 # Do we need to explicitly link libc?
20205 #
20206 case "x$archive_cmds_need_lc_CXX" in
20207 x|xyes)
20208   # Assume -lc should be added
20209   archive_cmds_need_lc_CXX=yes
20210
20211   if test "$enable_shared" = yes && test "$GCC" = yes; then
20212     case $archive_cmds_CXX in
20213     *'~'*)
20214       # FIXME: we may have to deal with multi-command sequences.
20215       ;;
20216     '$CC '*)
20217       # Test whether the compiler implicitly links with -lc since on some
20218       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20219       # to ld, don't add -lc before -lgcc.
20220       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20222       $rm conftest*
20223       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20224
20225       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226   (eval $ac_compile) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } 2>conftest.err; then
20230         soname=conftest
20231         lib=conftest
20232         libobjs=conftest.$ac_objext
20233         deplibs=
20234         wl=$lt_prog_compiler_wl_CXX
20235         pic_flag=$lt_prog_compiler_pic_CXX
20236         compiler_flags=-v
20237         linker_flags=-v
20238         verstring=
20239         output_objdir=.
20240         libname=conftest
20241         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20242         allow_undefined_flag_CXX=
20243         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20244   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }
20248         then
20249           archive_cmds_need_lc_CXX=no
20250         else
20251           archive_cmds_need_lc_CXX=yes
20252         fi
20253         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20254       else
20255         cat conftest.err 1>&5
20256       fi
20257       $rm conftest*
20258       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20259 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20260       ;;
20261     esac
20262   fi
20263   ;;
20264 esac
20265
20266 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20267 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20268 library_names_spec=
20269 libname_spec='lib$name'
20270 soname_spec=
20271 shrext_cmds=".so"
20272 postinstall_cmds=
20273 postuninstall_cmds=
20274 finish_cmds=
20275 finish_eval=
20276 shlibpath_var=
20277 shlibpath_overrides_runpath=unknown
20278 version_type=none
20279 dynamic_linker="$host_os ld.so"
20280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20281 if test "$GCC" = yes; then
20282   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20283   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20284     # if the path contains ";" then we assume it to be the separator
20285     # otherwise default to the standard path separator (i.e. ":") - it is
20286     # assumed that no part of a normal pathname contains ";" but that should
20287     # okay in the real world where ";" in dirpaths is itself problematic.
20288     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20289   else
20290     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20291   fi
20292 else
20293   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20294 fi
20295 need_lib_prefix=unknown
20296 hardcode_into_libs=no
20297
20298 # when you set need_version to no, make sure it does not cause -set_version
20299 # flags to be left without arguments
20300 need_version=unknown
20301
20302 case $host_os in
20303 aix3*)
20304   version_type=linux
20305   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20306   shlibpath_var=LIBPATH
20307
20308   # AIX 3 has no versioning support, so we append a major version to the name.
20309   soname_spec='${libname}${release}${shared_ext}$major'
20310   ;;
20311
20312 aix4* | aix5*)
20313   version_type=linux
20314   need_lib_prefix=no
20315   need_version=no
20316   hardcode_into_libs=yes
20317   if test "$host_cpu" = ia64; then
20318     # AIX 5 supports IA64
20319     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20320     shlibpath_var=LD_LIBRARY_PATH
20321   else
20322     # With GCC up to 2.95.x, collect2 would create an import file
20323     # for dependence libraries.  The import file would start with
20324     # the line `#! .'.  This would cause the generated library to
20325     # depend on `.', always an invalid library.  This was fixed in
20326     # development snapshots of GCC prior to 3.0.
20327     case $host_os in
20328       aix4 | aix4.[01] | aix4.[01].*)
20329       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20330            echo ' yes '
20331            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20332         :
20333       else
20334         can_build_shared=no
20335       fi
20336       ;;
20337     esac
20338     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20339     # soname into executable. Probably we can add versioning support to
20340     # collect2, so additional links can be useful in future.
20341     if test "$aix_use_runtimelinking" = yes; then
20342       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20343       # instead of lib<name>.a to let people know that these are not
20344       # typical AIX shared libraries.
20345       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346     else
20347       # We preserve .a as extension for shared libraries through AIX4.2
20348       # and later when we are not doing run time linking.
20349       library_names_spec='${libname}${release}.a $libname.a'
20350       soname_spec='${libname}${release}${shared_ext}$major'
20351     fi
20352     shlibpath_var=LIBPATH
20353   fi
20354   ;;
20355
20356 amigaos*)
20357   library_names_spec='$libname.ixlibrary $libname.a'
20358   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20359   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'
20360   ;;
20361
20362 beos*)
20363   library_names_spec='${libname}${shared_ext}'
20364   dynamic_linker="$host_os ld.so"
20365   shlibpath_var=LIBRARY_PATH
20366   ;;
20367
20368 bsdi[45]*)
20369   version_type=linux
20370   need_version=no
20371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372   soname_spec='${libname}${release}${shared_ext}$major'
20373   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20374   shlibpath_var=LD_LIBRARY_PATH
20375   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20376   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20377   # the default ld.so.conf also contains /usr/contrib/lib and
20378   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20379   # libtool to hard-code these into programs
20380   ;;
20381
20382 cygwin* | mingw* | pw32*)
20383   version_type=windows
20384   shrext_cmds=".dll"
20385   need_version=no
20386   need_lib_prefix=no
20387
20388   case $GCC,$host_os in
20389   yes,cygwin* | yes,mingw* | yes,pw32*)
20390     library_names_spec='$libname.dll.a'
20391     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20392     postinstall_cmds='base_file=`basename \${file}`~
20393       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20394       dldir=$destdir/`dirname \$dlpath`~
20395       test -d \$dldir || mkdir -p \$dldir~
20396       $install_prog $dir/$dlname \$dldir/$dlname~
20397       chmod a+x \$dldir/$dlname'
20398     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20399       dlpath=$dir/\$dldll~
20400        $rm \$dlpath'
20401     shlibpath_overrides_runpath=yes
20402
20403     case $host_os in
20404     cygwin*)
20405       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20406       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20407       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20408       ;;
20409     mingw*)
20410       # MinGW DLLs use traditional 'lib' prefix
20411       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20412       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20413       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20414         # It is most probably a Windows format PATH printed by
20415         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20416         # path with ; separators, and with drive letters. We can handle the
20417         # drive letters (cygwin fileutils understands them), so leave them,
20418         # especially as we might pass files found there to a mingw objdump,
20419         # which wouldn't understand a cygwinified path. Ahh.
20420         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20421       else
20422         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20423       fi
20424       ;;
20425     pw32*)
20426       # pw32 DLLs use 'pw' prefix rather than 'lib'
20427       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20428       ;;
20429     esac
20430     ;;
20431
20432   *)
20433     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20434     ;;
20435   esac
20436   dynamic_linker='Win32 ld.exe'
20437   # FIXME: first we should search . and the directory the executable is in
20438   shlibpath_var=PATH
20439   ;;
20440
20441 darwin* | rhapsody*)
20442   dynamic_linker="$host_os dyld"
20443   version_type=darwin
20444   need_lib_prefix=no
20445   need_version=no
20446   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20447   soname_spec='${libname}${release}${major}$shared_ext'
20448   shlibpath_overrides_runpath=yes
20449   shlibpath_var=DYLD_LIBRARY_PATH
20450   shrext_cmds='.dylib'
20451   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20452   if test "$GCC" = yes; then
20453     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"`
20454   else
20455     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20456   fi
20457   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20458   ;;
20459
20460 dgux*)
20461   version_type=linux
20462   need_lib_prefix=no
20463   need_version=no
20464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20465   soname_spec='${libname}${release}${shared_ext}$major'
20466   shlibpath_var=LD_LIBRARY_PATH
20467   ;;
20468
20469 freebsd1*)
20470   dynamic_linker=no
20471   ;;
20472
20473 kfreebsd*-gnu)
20474   version_type=linux
20475   need_lib_prefix=no
20476   need_version=no
20477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20478   soname_spec='${libname}${release}${shared_ext}$major'
20479   shlibpath_var=LD_LIBRARY_PATH
20480   shlibpath_overrides_runpath=no
20481   hardcode_into_libs=yes
20482   dynamic_linker='GNU ld.so'
20483   ;;
20484
20485 freebsd* | dragonfly*)
20486   # DragonFly does not have aout.  When/if they implement a new
20487   # versioning mechanism, adjust this.
20488   if test -x /usr/bin/objformat; then
20489     objformat=`/usr/bin/objformat`
20490   else
20491     case $host_os in
20492     freebsd[123]*) objformat=aout ;;
20493     *) objformat=elf ;;
20494     esac
20495   fi
20496   version_type=freebsd-$objformat
20497   case $version_type in
20498     freebsd-elf*)
20499       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20500       need_version=no
20501       need_lib_prefix=no
20502       ;;
20503     freebsd-*)
20504       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20505       need_version=yes
20506       ;;
20507   esac
20508   shlibpath_var=LD_LIBRARY_PATH
20509   case $host_os in
20510   freebsd2*)
20511     shlibpath_overrides_runpath=yes
20512     ;;
20513   freebsd3.[01]* | freebsdelf3.[01]*)
20514     shlibpath_overrides_runpath=yes
20515     hardcode_into_libs=yes
20516     ;;
20517   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20518   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20519     shlibpath_overrides_runpath=no
20520     hardcode_into_libs=yes
20521     ;;
20522   freebsd*) # from 4.6 on
20523     shlibpath_overrides_runpath=yes
20524     hardcode_into_libs=yes
20525     ;;
20526   esac
20527   ;;
20528
20529 gnu*)
20530   version_type=linux
20531   need_lib_prefix=no
20532   need_version=no
20533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20534   soname_spec='${libname}${release}${shared_ext}$major'
20535   shlibpath_var=LD_LIBRARY_PATH
20536   hardcode_into_libs=yes
20537   ;;
20538
20539 hpux9* | hpux10* | hpux11*)
20540   # Give a soname corresponding to the major version so that dld.sl refuses to
20541   # link against other versions.
20542   version_type=sunos
20543   need_lib_prefix=no
20544   need_version=no
20545   case $host_cpu in
20546   ia64*)
20547     shrext_cmds='.so'
20548     hardcode_into_libs=yes
20549     dynamic_linker="$host_os dld.so"
20550     shlibpath_var=LD_LIBRARY_PATH
20551     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553     soname_spec='${libname}${release}${shared_ext}$major'
20554     if test "X$HPUX_IA64_MODE" = X32; then
20555       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20556     else
20557       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20558     fi
20559     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20560     ;;
20561    hppa*64*)
20562      shrext_cmds='.sl'
20563      hardcode_into_libs=yes
20564      dynamic_linker="$host_os dld.sl"
20565      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20566      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20567      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568      soname_spec='${libname}${release}${shared_ext}$major'
20569      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20570      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20571      ;;
20572    *)
20573     shrext_cmds='.sl'
20574     dynamic_linker="$host_os dld.sl"
20575     shlibpath_var=SHLIB_PATH
20576     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578     soname_spec='${libname}${release}${shared_ext}$major'
20579     ;;
20580   esac
20581   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20582   postinstall_cmds='chmod 555 $lib'
20583   ;;
20584
20585 interix3*)
20586   version_type=linux
20587   need_lib_prefix=no
20588   need_version=no
20589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20590   soname_spec='${libname}${release}${shared_ext}$major'
20591   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20592   shlibpath_var=LD_LIBRARY_PATH
20593   shlibpath_overrides_runpath=no
20594   hardcode_into_libs=yes
20595   ;;
20596
20597 irix5* | irix6* | nonstopux*)
20598   case $host_os in
20599     nonstopux*) version_type=nonstopux ;;
20600     *)
20601         if test "$lt_cv_prog_gnu_ld" = yes; then
20602                 version_type=linux
20603         else
20604                 version_type=irix
20605         fi ;;
20606   esac
20607   need_lib_prefix=no
20608   need_version=no
20609   soname_spec='${libname}${release}${shared_ext}$major'
20610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20611   case $host_os in
20612   irix5* | nonstopux*)
20613     libsuff= shlibsuff=
20614     ;;
20615   *)
20616     case $LD in # libtool.m4 will add one of these switches to LD
20617     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20618       libsuff= shlibsuff= libmagic=32-bit;;
20619     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20620       libsuff=32 shlibsuff=N32 libmagic=N32;;
20621     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20622       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20623     *) libsuff= shlibsuff= libmagic=never-match;;
20624     esac
20625     ;;
20626   esac
20627   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20628   shlibpath_overrides_runpath=no
20629   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20630   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20631   hardcode_into_libs=yes
20632   ;;
20633
20634 # No shared lib support for Linux oldld, aout, or coff.
20635 linux*oldld* | linux*aout* | linux*coff*)
20636   dynamic_linker=no
20637   ;;
20638
20639 # This must be Linux ELF.
20640 linux*)
20641   version_type=linux
20642   need_lib_prefix=no
20643   need_version=no
20644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645   soname_spec='${libname}${release}${shared_ext}$major'
20646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20647   shlibpath_var=LD_LIBRARY_PATH
20648   shlibpath_overrides_runpath=no
20649   # This implies no fast_install, which is unacceptable.
20650   # Some rework will be needed to allow for fast_install
20651   # before this can be enabled.
20652   hardcode_into_libs=yes
20653
20654   # Append ld.so.conf contents to the search path
20655   if test -f /etc/ld.so.conf; then
20656     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' ' '`
20657     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20658   fi
20659
20660   # We used to test for /lib/ld.so.1 and disable shared libraries on
20661   # powerpc, because MkLinux only supported shared libraries with the
20662   # GNU dynamic linker.  Since this was broken with cross compilers,
20663   # most powerpc-linux boxes support dynamic linking these days and
20664   # people can always --disable-shared, the test was removed, and we
20665   # assume the GNU/Linux dynamic linker is in use.
20666   dynamic_linker='GNU/Linux ld.so'
20667   ;;
20668
20669 knetbsd*-gnu)
20670   version_type=linux
20671   need_lib_prefix=no
20672   need_version=no
20673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20674   soname_spec='${libname}${release}${shared_ext}$major'
20675   shlibpath_var=LD_LIBRARY_PATH
20676   shlibpath_overrides_runpath=no
20677   hardcode_into_libs=yes
20678   dynamic_linker='GNU ld.so'
20679   ;;
20680
20681 netbsd*)
20682   version_type=sunos
20683   need_lib_prefix=no
20684   need_version=no
20685   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20687     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20688     dynamic_linker='NetBSD (a.out) ld.so'
20689   else
20690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20691     soname_spec='${libname}${release}${shared_ext}$major'
20692     dynamic_linker='NetBSD ld.elf_so'
20693   fi
20694   shlibpath_var=LD_LIBRARY_PATH
20695   shlibpath_overrides_runpath=yes
20696   hardcode_into_libs=yes
20697   ;;
20698
20699 newsos6)
20700   version_type=linux
20701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702   shlibpath_var=LD_LIBRARY_PATH
20703   shlibpath_overrides_runpath=yes
20704   ;;
20705
20706 nto-qnx*)
20707   version_type=linux
20708   need_lib_prefix=no
20709   need_version=no
20710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711   soname_spec='${libname}${release}${shared_ext}$major'
20712   shlibpath_var=LD_LIBRARY_PATH
20713   shlibpath_overrides_runpath=yes
20714   ;;
20715
20716 openbsd*)
20717   version_type=sunos
20718   sys_lib_dlsearch_path_spec="/usr/lib"
20719   need_lib_prefix=no
20720   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20721   case $host_os in
20722     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20723     *)                         need_version=no  ;;
20724   esac
20725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20727   shlibpath_var=LD_LIBRARY_PATH
20728   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20729     case $host_os in
20730       openbsd2.[89] | openbsd2.[89].*)
20731         shlibpath_overrides_runpath=no
20732         ;;
20733       *)
20734         shlibpath_overrides_runpath=yes
20735         ;;
20736       esac
20737   else
20738     shlibpath_overrides_runpath=yes
20739   fi
20740   ;;
20741
20742 os2*)
20743   libname_spec='$name'
20744   shrext_cmds=".dll"
20745   need_lib_prefix=no
20746   library_names_spec='$libname${shared_ext} $libname.a'
20747   dynamic_linker='OS/2 ld.exe'
20748   shlibpath_var=LIBPATH
20749   ;;
20750
20751 osf3* | osf4* | osf5*)
20752   version_type=osf
20753   need_lib_prefix=no
20754   need_version=no
20755   soname_spec='${libname}${release}${shared_ext}$major'
20756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757   shlibpath_var=LD_LIBRARY_PATH
20758   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20759   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20760   ;;
20761
20762 solaris*)
20763   version_type=linux
20764   need_lib_prefix=no
20765   need_version=no
20766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20767   soname_spec='${libname}${release}${shared_ext}$major'
20768   shlibpath_var=LD_LIBRARY_PATH
20769   shlibpath_overrides_runpath=yes
20770   hardcode_into_libs=yes
20771   # ldd complains unless libraries are executable
20772   postinstall_cmds='chmod +x $lib'
20773   ;;
20774
20775 sunos4*)
20776   version_type=sunos
20777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20778   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20779   shlibpath_var=LD_LIBRARY_PATH
20780   shlibpath_overrides_runpath=yes
20781   if test "$with_gnu_ld" = yes; then
20782     need_lib_prefix=no
20783   fi
20784   need_version=yes
20785   ;;
20786
20787 sysv4 | sysv4.3*)
20788   version_type=linux
20789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790   soname_spec='${libname}${release}${shared_ext}$major'
20791   shlibpath_var=LD_LIBRARY_PATH
20792   case $host_vendor in
20793     sni)
20794       shlibpath_overrides_runpath=no
20795       need_lib_prefix=no
20796       export_dynamic_flag_spec='${wl}-Blargedynsym'
20797       runpath_var=LD_RUN_PATH
20798       ;;
20799     siemens)
20800       need_lib_prefix=no
20801       ;;
20802     motorola)
20803       need_lib_prefix=no
20804       need_version=no
20805       shlibpath_overrides_runpath=no
20806       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20807       ;;
20808   esac
20809   ;;
20810
20811 sysv4*MP*)
20812   if test -d /usr/nec ;then
20813     version_type=linux
20814     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20815     soname_spec='$libname${shared_ext}.$major'
20816     shlibpath_var=LD_LIBRARY_PATH
20817   fi
20818   ;;
20819
20820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20821   version_type=freebsd-elf
20822   need_lib_prefix=no
20823   need_version=no
20824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20825   soname_spec='${libname}${release}${shared_ext}$major'
20826   shlibpath_var=LD_LIBRARY_PATH
20827   hardcode_into_libs=yes
20828   if test "$with_gnu_ld" = yes; then
20829     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20830     shlibpath_overrides_runpath=no
20831   else
20832     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20833     shlibpath_overrides_runpath=yes
20834     case $host_os in
20835       sco3.2v5*)
20836         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20837         ;;
20838     esac
20839   fi
20840   sys_lib_dlsearch_path_spec='/usr/lib'
20841   ;;
20842
20843 uts4*)
20844   version_type=linux
20845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846   soname_spec='${libname}${release}${shared_ext}$major'
20847   shlibpath_var=LD_LIBRARY_PATH
20848   ;;
20849
20850 *)
20851   dynamic_linker=no
20852   ;;
20853 esac
20854 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20855 echo "${ECHO_T}$dynamic_linker" >&6; }
20856 test "$dynamic_linker" = no && can_build_shared=no
20857
20858 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20859 if test "$GCC" = yes; then
20860   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20861 fi
20862
20863 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20865 hardcode_action_CXX=
20866 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20867    test -n "$runpath_var_CXX" || \
20868    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20869
20870   # We can hardcode non-existant directories.
20871   if test "$hardcode_direct_CXX" != no &&
20872      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20873      # have to relink, otherwise we might link with an installed library
20874      # when we should be linking with a yet-to-be-installed one
20875      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20876      test "$hardcode_minus_L_CXX" != no; then
20877     # Linking always hardcodes the temporary library directory.
20878     hardcode_action_CXX=relink
20879   else
20880     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20881     hardcode_action_CXX=immediate
20882   fi
20883 else
20884   # We cannot hardcode anything, or else we can only hardcode existing
20885   # directories.
20886   hardcode_action_CXX=unsupported
20887 fi
20888 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20889 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20890
20891 if test "$hardcode_action_CXX" = relink; then
20892   # Fast installation is not supported
20893   enable_fast_install=no
20894 elif test "$shlibpath_overrides_runpath" = yes ||
20895      test "$enable_shared" = no; then
20896   # Fast installation is not necessary
20897   enable_fast_install=needless
20898 fi
20899
20900
20901 # The else clause should only fire when bootstrapping the
20902 # libtool distribution, otherwise you forgot to ship ltmain.sh
20903 # with your package, and you will get complaints that there are
20904 # no rules to generate ltmain.sh.
20905 if test -f "$ltmain"; then
20906   # See if we are running on zsh, and set the options which allow our commands through
20907   # without removal of \ escapes.
20908   if test -n "${ZSH_VERSION+set}" ; then
20909     setopt NO_GLOB_SUBST
20910   fi
20911   # Now quote all the things that may contain metacharacters while being
20912   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20913   # variables and quote the copies for generation of the libtool script.
20914   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20915     SED SHELL STRIP \
20916     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20917     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20918     deplibs_check_method reload_flag reload_cmds need_locks \
20919     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20920     lt_cv_sys_global_symbol_to_c_name_address \
20921     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20922     old_postinstall_cmds old_postuninstall_cmds \
20923     compiler_CXX \
20924     CC_CXX \
20925     LD_CXX \
20926     lt_prog_compiler_wl_CXX \
20927     lt_prog_compiler_pic_CXX \
20928     lt_prog_compiler_static_CXX \
20929     lt_prog_compiler_no_builtin_flag_CXX \
20930     export_dynamic_flag_spec_CXX \
20931     thread_safe_flag_spec_CXX \
20932     whole_archive_flag_spec_CXX \
20933     enable_shared_with_static_runtimes_CXX \
20934     old_archive_cmds_CXX \
20935     old_archive_from_new_cmds_CXX \
20936     predep_objects_CXX \
20937     postdep_objects_CXX \
20938     predeps_CXX \
20939     postdeps_CXX \
20940     compiler_lib_search_path_CXX \
20941     archive_cmds_CXX \
20942     archive_expsym_cmds_CXX \
20943     postinstall_cmds_CXX \
20944     postuninstall_cmds_CXX \
20945     old_archive_from_expsyms_cmds_CXX \
20946     allow_undefined_flag_CXX \
20947     no_undefined_flag_CXX \
20948     export_symbols_cmds_CXX \
20949     hardcode_libdir_flag_spec_CXX \
20950     hardcode_libdir_flag_spec_ld_CXX \
20951     hardcode_libdir_separator_CXX \
20952     hardcode_automatic_CXX \
20953     module_cmds_CXX \
20954     module_expsym_cmds_CXX \
20955     lt_cv_prog_compiler_c_o_CXX \
20956     exclude_expsyms_CXX \
20957     include_expsyms_CXX; do
20958
20959     case $var in
20960     old_archive_cmds_CXX | \
20961     old_archive_from_new_cmds_CXX | \
20962     archive_cmds_CXX | \
20963     archive_expsym_cmds_CXX | \
20964     module_cmds_CXX | \
20965     module_expsym_cmds_CXX | \
20966     old_archive_from_expsyms_cmds_CXX | \
20967     export_symbols_cmds_CXX | \
20968     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20969     postinstall_cmds | postuninstall_cmds | \
20970     old_postinstall_cmds | old_postuninstall_cmds | \
20971     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20972       # Double-quote double-evaled strings.
20973       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20974       ;;
20975     *)
20976       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20977       ;;
20978     esac
20979   done
20980
20981   case $lt_echo in
20982   *'\$0 --fallback-echo"')
20983     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20984     ;;
20985   esac
20986
20987 cfgfile="$ofile"
20988
20989   cat <<__EOF__ >> "$cfgfile"
20990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20991
20992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20993
20994 # Shell to use when invoking shell scripts.
20995 SHELL=$lt_SHELL
20996
20997 # Whether or not to build shared libraries.
20998 build_libtool_libs=$enable_shared
20999
21000 # Whether or not to build static libraries.
21001 build_old_libs=$enable_static
21002
21003 # Whether or not to add -lc for building shared libraries.
21004 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21005
21006 # Whether or not to disallow shared libs when runtime libs are static
21007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21008
21009 # Whether or not to optimize for fast installation.
21010 fast_install=$enable_fast_install
21011
21012 # The host system.
21013 host_alias=$host_alias
21014 host=$host
21015 host_os=$host_os
21016
21017 # The build system.
21018 build_alias=$build_alias
21019 build=$build
21020 build_os=$build_os
21021
21022 # An echo program that does not interpret backslashes.
21023 echo=$lt_echo
21024
21025 # The archiver.
21026 AR=$lt_AR
21027 AR_FLAGS=$lt_AR_FLAGS
21028
21029 # A C compiler.
21030 LTCC=$lt_LTCC
21031
21032 # LTCC compiler flags.
21033 LTCFLAGS=$lt_LTCFLAGS
21034
21035 # A language-specific compiler.
21036 CC=$lt_compiler_CXX
21037
21038 # Is the compiler the GNU C compiler?
21039 with_gcc=$GCC_CXX
21040
21041 # An ERE matcher.
21042 EGREP=$lt_EGREP
21043
21044 # The linker used to build libraries.
21045 LD=$lt_LD_CXX
21046
21047 # Whether we need hard or soft links.
21048 LN_S=$lt_LN_S
21049
21050 # A BSD-compatible nm program.
21051 NM=$lt_NM
21052
21053 # A symbol stripping program
21054 STRIP=$lt_STRIP
21055
21056 # Used to examine libraries when file_magic_cmd begins "file"
21057 MAGIC_CMD=$MAGIC_CMD
21058
21059 # Used on cygwin: DLL creation program.
21060 DLLTOOL="$DLLTOOL"
21061
21062 # Used on cygwin: object dumper.
21063 OBJDUMP="$OBJDUMP"
21064
21065 # Used on cygwin: assembler.
21066 AS="$AS"
21067
21068 # The name of the directory that contains temporary libtool files.
21069 objdir=$objdir
21070
21071 # How to create reloadable object files.
21072 reload_flag=$lt_reload_flag
21073 reload_cmds=$lt_reload_cmds
21074
21075 # How to pass a linker flag through the compiler.
21076 wl=$lt_lt_prog_compiler_wl_CXX
21077
21078 # Object file suffix (normally "o").
21079 objext="$ac_objext"
21080
21081 # Old archive suffix (normally "a").
21082 libext="$libext"
21083
21084 # Shared library suffix (normally ".so").
21085 shrext_cmds='$shrext_cmds'
21086
21087 # Executable file suffix (normally "").
21088 exeext="$exeext"
21089
21090 # Additional compiler flags for building library objects.
21091 pic_flag=$lt_lt_prog_compiler_pic_CXX
21092 pic_mode=$pic_mode
21093
21094 # What is the maximum length of a command?
21095 max_cmd_len=$lt_cv_sys_max_cmd_len
21096
21097 # Does compiler simultaneously support -c and -o options?
21098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21099
21100 # Must we lock files when doing compilation?
21101 need_locks=$lt_need_locks
21102
21103 # Do we need the lib prefix for modules?
21104 need_lib_prefix=$need_lib_prefix
21105
21106 # Do we need a version for libraries?
21107 need_version=$need_version
21108
21109 # Whether dlopen is supported.
21110 dlopen_support=$enable_dlopen
21111
21112 # Whether dlopen of programs is supported.
21113 dlopen_self=$enable_dlopen_self
21114
21115 # Whether dlopen of statically linked programs is supported.
21116 dlopen_self_static=$enable_dlopen_self_static
21117
21118 # Compiler flag to prevent dynamic linking.
21119 link_static_flag=$lt_lt_prog_compiler_static_CXX
21120
21121 # Compiler flag to turn off builtin functions.
21122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21123
21124 # Compiler flag to allow reflexive dlopens.
21125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21126
21127 # Compiler flag to generate shared objects directly from archives.
21128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21129
21130 # Compiler flag to generate thread-safe objects.
21131 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21132
21133 # Library versioning type.
21134 version_type=$version_type
21135
21136 # Format of library name prefix.
21137 libname_spec=$lt_libname_spec
21138
21139 # List of archive names.  First name is the real one, the rest are links.
21140 # The last name is the one that the linker finds with -lNAME.
21141 library_names_spec=$lt_library_names_spec
21142
21143 # The coded name of the library, if different from the real name.
21144 soname_spec=$lt_soname_spec
21145
21146 # Commands used to build and install an old-style archive.
21147 RANLIB=$lt_RANLIB
21148 old_archive_cmds=$lt_old_archive_cmds_CXX
21149 old_postinstall_cmds=$lt_old_postinstall_cmds
21150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21151
21152 # Create an old-style archive from a shared archive.
21153 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21154
21155 # Create a temporary old-style archive to link instead of a shared archive.
21156 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21157
21158 # Commands used to build and install a shared archive.
21159 archive_cmds=$lt_archive_cmds_CXX
21160 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21161 postinstall_cmds=$lt_postinstall_cmds
21162 postuninstall_cmds=$lt_postuninstall_cmds
21163
21164 # Commands used to build a loadable module (assumed same as above if empty)
21165 module_cmds=$lt_module_cmds_CXX
21166 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21167
21168 # Commands to strip libraries.
21169 old_striplib=$lt_old_striplib
21170 striplib=$lt_striplib
21171
21172 # Dependencies to place before the objects being linked to create a
21173 # shared library.
21174 predep_objects=$lt_predep_objects_CXX
21175
21176 # Dependencies to place after the objects being linked to create a
21177 # shared library.
21178 postdep_objects=$lt_postdep_objects_CXX
21179
21180 # Dependencies to place before the objects being linked to create a
21181 # shared library.
21182 predeps=$lt_predeps_CXX
21183
21184 # Dependencies to place after the objects being linked to create a
21185 # shared library.
21186 postdeps=$lt_postdeps_CXX
21187
21188 # The library search path used internally by the compiler when linking
21189 # a shared library.
21190 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21191
21192 # Method to check whether dependent libraries are shared objects.
21193 deplibs_check_method=$lt_deplibs_check_method
21194
21195 # Command to use when deplibs_check_method == file_magic.
21196 file_magic_cmd=$lt_file_magic_cmd
21197
21198 # Flag that allows shared libraries with undefined symbols to be built.
21199 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21200
21201 # Flag that forces no undefined symbols.
21202 no_undefined_flag=$lt_no_undefined_flag_CXX
21203
21204 # Commands used to finish a libtool library installation in a directory.
21205 finish_cmds=$lt_finish_cmds
21206
21207 # Same as above, but a single script fragment to be evaled but not shown.
21208 finish_eval=$lt_finish_eval
21209
21210 # Take the output of nm and produce a listing of raw symbols and C names.
21211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21212
21213 # Transform the output of nm in a proper C declaration
21214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21215
21216 # Transform the output of nm in a C name address pair
21217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21218
21219 # This is the shared library runtime path variable.
21220 runpath_var=$runpath_var
21221
21222 # This is the shared library path variable.
21223 shlibpath_var=$shlibpath_var
21224
21225 # Is shlibpath searched before the hard-coded library search path?
21226 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21227
21228 # How to hardcode a shared library path into an executable.
21229 hardcode_action=$hardcode_action_CXX
21230
21231 # Whether we should hardcode library paths into libraries.
21232 hardcode_into_libs=$hardcode_into_libs
21233
21234 # Flag to hardcode \$libdir into a binary during linking.
21235 # This must work even if \$libdir does not exist.
21236 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21237
21238 # If ld is used when linking, flag to hardcode \$libdir into
21239 # a binary during linking. This must work even if \$libdir does
21240 # not exist.
21241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21242
21243 # Whether we need a single -rpath flag with a separated argument.
21244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21245
21246 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21247 # resulting binary.
21248 hardcode_direct=$hardcode_direct_CXX
21249
21250 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21251 # resulting binary.
21252 hardcode_minus_L=$hardcode_minus_L_CXX
21253
21254 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21255 # the resulting binary.
21256 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21257
21258 # Set to yes if building a shared library automatically hardcodes DIR into the library
21259 # and all subsequent libraries and executables linked against it.
21260 hardcode_automatic=$hardcode_automatic_CXX
21261
21262 # Variables whose values should be saved in libtool wrapper scripts and
21263 # restored at relink time.
21264 variables_saved_for_relink="$variables_saved_for_relink"
21265
21266 # Whether libtool must link a program against all its dependency libraries.
21267 link_all_deplibs=$link_all_deplibs_CXX
21268
21269 # Compile-time system search path for libraries
21270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21271
21272 # Run-time system search path for libraries
21273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21274
21275 # Fix the shell variable \$srcfile for the compiler.
21276 fix_srcfile_path="$fix_srcfile_path_CXX"
21277
21278 # Set to yes if exported symbols are required.
21279 always_export_symbols=$always_export_symbols_CXX
21280
21281 # The commands to list exported symbols.
21282 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21283
21284 # The commands to extract the exported symbol list from a shared archive.
21285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21286
21287 # Symbols that should not be listed in the preloaded symbols.
21288 exclude_expsyms=$lt_exclude_expsyms_CXX
21289
21290 # Symbols that must always be exported.
21291 include_expsyms=$lt_include_expsyms_CXX
21292
21293 # ### END LIBTOOL TAG CONFIG: $tagname
21294
21295 __EOF__
21296
21297
21298 else
21299   # If there is no Makefile yet, we rely on a make rule to execute
21300   # `config.status --recheck' to rerun these tests and create the
21301   # libtool script then.
21302   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21303   if test -f "$ltmain_in"; then
21304     test -f Makefile && make "$ltmain"
21305   fi
21306 fi
21307
21308
21309 ac_ext=c
21310 ac_cpp='$CPP $CPPFLAGS'
21311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21314
21315 CC=$lt_save_CC
21316 LDCXX=$LD
21317 LD=$lt_save_LD
21318 GCC=$lt_save_GCC
21319 with_gnu_ldcxx=$with_gnu_ld
21320 with_gnu_ld=$lt_save_with_gnu_ld
21321 lt_cv_path_LDCXX=$lt_cv_path_LD
21322 lt_cv_path_LD=$lt_save_path_LD
21323 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21324 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21325
21326         else
21327           tagname=""
21328         fi
21329         ;;
21330
21331       F77)
21332         if test -n "$F77" && test "X$F77" != "Xno"; then
21333
21334 ac_ext=f
21335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21338
21339
21340 archive_cmds_need_lc_F77=no
21341 allow_undefined_flag_F77=
21342 always_export_symbols_F77=no
21343 archive_expsym_cmds_F77=
21344 export_dynamic_flag_spec_F77=
21345 hardcode_direct_F77=no
21346 hardcode_libdir_flag_spec_F77=
21347 hardcode_libdir_flag_spec_ld_F77=
21348 hardcode_libdir_separator_F77=
21349 hardcode_minus_L_F77=no
21350 hardcode_automatic_F77=no
21351 module_cmds_F77=
21352 module_expsym_cmds_F77=
21353 link_all_deplibs_F77=unknown
21354 old_archive_cmds_F77=$old_archive_cmds
21355 no_undefined_flag_F77=
21356 whole_archive_flag_spec_F77=
21357 enable_shared_with_static_runtimes_F77=no
21358
21359 # Source file extension for f77 test sources.
21360 ac_ext=f
21361
21362 # Object file extension for compiled f77 test sources.
21363 objext=o
21364 objext_F77=$objext
21365
21366 # Code to be used in simple compile tests
21367 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21368
21369 # Code to be used in simple link tests
21370 lt_simple_link_test_code="      program t\n      end\n"
21371
21372 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21373
21374 # If no C compiler was specified, use CC.
21375 LTCC=${LTCC-"$CC"}
21376
21377 # If no C compiler flags were specified, use CFLAGS.
21378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21379
21380 # Allow CC to be a program name with arguments.
21381 compiler=$CC
21382
21383
21384 # save warnings/boilerplate of simple test code
21385 ac_outfile=conftest.$ac_objext
21386 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21388 _lt_compiler_boilerplate=`cat conftest.err`
21389 $rm conftest*
21390
21391 ac_outfile=conftest.$ac_objext
21392 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21394 _lt_linker_boilerplate=`cat conftest.err`
21395 $rm conftest*
21396
21397
21398 # Allow CC to be a program name with arguments.
21399 lt_save_CC="$CC"
21400 CC=${F77-"f77"}
21401 compiler=$CC
21402 compiler_F77=$CC
21403 for cc_temp in $compiler""; do
21404   case $cc_temp in
21405     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21406     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21407     \-*) ;;
21408     *) break;;
21409   esac
21410 done
21411 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21412
21413
21414 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21416 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21417 echo "${ECHO_T}$can_build_shared" >&6; }
21418
21419 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21421 test "$can_build_shared" = "no" && enable_shared=no
21422
21423 # On AIX, shared libraries and static libraries use the same namespace, and
21424 # are all built from PIC.
21425 case $host_os in
21426 aix3*)
21427   test "$enable_shared" = yes && enable_static=no
21428   if test -n "$RANLIB"; then
21429     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21430     postinstall_cmds='$RANLIB $lib'
21431   fi
21432   ;;
21433 aix4* | aix5*)
21434   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21435     test "$enable_shared" = yes && enable_static=no
21436   fi
21437   ;;
21438 esac
21439 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21440 echo "${ECHO_T}$enable_shared" >&6; }
21441
21442 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21443 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21444 # Make sure either enable_shared or enable_static is yes.
21445 test "$enable_shared" = yes || enable_static=yes
21446 { echo "$as_me:$LINENO: result: $enable_static" >&5
21447 echo "${ECHO_T}$enable_static" >&6; }
21448
21449 GCC_F77="$G77"
21450 LD_F77="$LD"
21451
21452 lt_prog_compiler_wl_F77=
21453 lt_prog_compiler_pic_F77=
21454 lt_prog_compiler_static_F77=
21455
21456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21458
21459   if test "$GCC" = yes; then
21460     lt_prog_compiler_wl_F77='-Wl,'
21461     lt_prog_compiler_static_F77='-static'
21462
21463     case $host_os in
21464       aix*)
21465       # All AIX code is PIC.
21466       if test "$host_cpu" = ia64; then
21467         # AIX 5 now supports IA64 processor
21468         lt_prog_compiler_static_F77='-Bstatic'
21469       fi
21470       ;;
21471
21472     amigaos*)
21473       # FIXME: we need at least 68020 code to build shared libraries, but
21474       # adding the `-m68020' flag to GCC prevents building anything better,
21475       # like `-m68040'.
21476       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21477       ;;
21478
21479     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21480       # PIC is the default for these OSes.
21481       ;;
21482
21483     mingw* | pw32* | os2*)
21484       # This hack is so that the source file can tell whether it is being
21485       # built for inclusion in a dll (and should export symbols for example).
21486       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21487       ;;
21488
21489     darwin* | rhapsody*)
21490       # PIC is the default on this platform
21491       # Common symbols not allowed in MH_DYLIB files
21492       lt_prog_compiler_pic_F77='-fno-common'
21493       ;;
21494
21495     interix3*)
21496       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21497       # Instead, we relocate shared libraries at runtime.
21498       ;;
21499
21500     msdosdjgpp*)
21501       # Just because we use GCC doesn't mean we suddenly get shared libraries
21502       # on systems that don't support them.
21503       lt_prog_compiler_can_build_shared_F77=no
21504       enable_shared=no
21505       ;;
21506
21507     sysv4*MP*)
21508       if test -d /usr/nec; then
21509         lt_prog_compiler_pic_F77=-Kconform_pic
21510       fi
21511       ;;
21512
21513     hpux*)
21514       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21515       # not for PA HP-UX.
21516       case $host_cpu in
21517       hppa*64*|ia64*)
21518         # +Z the default
21519         ;;
21520       *)
21521         lt_prog_compiler_pic_F77='-fPIC'
21522         ;;
21523       esac
21524       ;;
21525
21526     *)
21527       lt_prog_compiler_pic_F77='-fPIC'
21528       ;;
21529     esac
21530   else
21531     # PORTME Check for flag to pass linker flags through the system compiler.
21532     case $host_os in
21533     aix*)
21534       lt_prog_compiler_wl_F77='-Wl,'
21535       if test "$host_cpu" = ia64; then
21536         # AIX 5 now supports IA64 processor
21537         lt_prog_compiler_static_F77='-Bstatic'
21538       else
21539         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21540       fi
21541       ;;
21542       darwin*)
21543         # PIC is the default on this platform
21544         # Common symbols not allowed in MH_DYLIB files
21545        case $cc_basename in
21546          xlc*)
21547          lt_prog_compiler_pic_F77='-qnocommon'
21548          lt_prog_compiler_wl_F77='-Wl,'
21549          ;;
21550        esac
21551        ;;
21552
21553     mingw* | pw32* | os2*)
21554       # This hack is so that the source file can tell whether it is being
21555       # built for inclusion in a dll (and should export symbols for example).
21556       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21557       ;;
21558
21559     hpux9* | hpux10* | hpux11*)
21560       lt_prog_compiler_wl_F77='-Wl,'
21561       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21562       # not for PA HP-UX.
21563       case $host_cpu in
21564       hppa*64*|ia64*)
21565         # +Z the default
21566         ;;
21567       *)
21568         lt_prog_compiler_pic_F77='+Z'
21569         ;;
21570       esac
21571       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21572       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21573       ;;
21574
21575     irix5* | irix6* | nonstopux*)
21576       lt_prog_compiler_wl_F77='-Wl,'
21577       # PIC (with -KPIC) is the default.
21578       lt_prog_compiler_static_F77='-non_shared'
21579       ;;
21580
21581     newsos6)
21582       lt_prog_compiler_pic_F77='-KPIC'
21583       lt_prog_compiler_static_F77='-Bstatic'
21584       ;;
21585
21586     linux*)
21587       case $cc_basename in
21588       icc* | ecc*)
21589         lt_prog_compiler_wl_F77='-Wl,'
21590         lt_prog_compiler_pic_F77='-KPIC'
21591         lt_prog_compiler_static_F77='-static'
21592         ;;
21593       pgcc* | pgf77* | pgf90* | pgf95*)
21594         # Portland Group compilers (*not* the Pentium gcc compiler,
21595         # which looks to be a dead project)
21596         lt_prog_compiler_wl_F77='-Wl,'
21597         lt_prog_compiler_pic_F77='-fpic'
21598         lt_prog_compiler_static_F77='-Bstatic'
21599         ;;
21600       ccc*)
21601         lt_prog_compiler_wl_F77='-Wl,'
21602         # All Alpha code is PIC.
21603         lt_prog_compiler_static_F77='-non_shared'
21604         ;;
21605       esac
21606       ;;
21607
21608     osf3* | osf4* | osf5*)
21609       lt_prog_compiler_wl_F77='-Wl,'
21610       # All OSF/1 code is PIC.
21611       lt_prog_compiler_static_F77='-non_shared'
21612       ;;
21613
21614     solaris*)
21615       lt_prog_compiler_pic_F77='-KPIC'
21616       lt_prog_compiler_static_F77='-Bstatic'
21617       case $cc_basename in
21618       f77* | f90* | f95*)
21619         lt_prog_compiler_wl_F77='-Qoption ld ';;
21620       *)
21621         lt_prog_compiler_wl_F77='-Wl,';;
21622       esac
21623       ;;
21624
21625     sunos4*)
21626       lt_prog_compiler_wl_F77='-Qoption ld '
21627       lt_prog_compiler_pic_F77='-PIC'
21628       lt_prog_compiler_static_F77='-Bstatic'
21629       ;;
21630
21631     sysv4 | sysv4.2uw2* | sysv4.3*)
21632       lt_prog_compiler_wl_F77='-Wl,'
21633       lt_prog_compiler_pic_F77='-KPIC'
21634       lt_prog_compiler_static_F77='-Bstatic'
21635       ;;
21636
21637     sysv4*MP*)
21638       if test -d /usr/nec ;then
21639         lt_prog_compiler_pic_F77='-Kconform_pic'
21640         lt_prog_compiler_static_F77='-Bstatic'
21641       fi
21642       ;;
21643
21644     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21645       lt_prog_compiler_wl_F77='-Wl,'
21646       lt_prog_compiler_pic_F77='-KPIC'
21647       lt_prog_compiler_static_F77='-Bstatic'
21648       ;;
21649
21650     unicos*)
21651       lt_prog_compiler_wl_F77='-Wl,'
21652       lt_prog_compiler_can_build_shared_F77=no
21653       ;;
21654
21655     uts4*)
21656       lt_prog_compiler_pic_F77='-pic'
21657       lt_prog_compiler_static_F77='-Bstatic'
21658       ;;
21659
21660     *)
21661       lt_prog_compiler_can_build_shared_F77=no
21662       ;;
21663     esac
21664   fi
21665
21666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21667 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21668
21669 #
21670 # Check to make sure the PIC flag actually works.
21671 #
21672 if test -n "$lt_prog_compiler_pic_F77"; then
21673
21674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21676 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679   lt_prog_compiler_pic_works_F77=no
21680   ac_outfile=conftest.$ac_objext
21681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21682    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21683    # Insert the option either (1) after the last *FLAGS variable, or
21684    # (2) before a word containing "conftest.", or (3) at the end.
21685    # Note that $ac_compile itself does not contain backslashes and begins
21686    # with a dollar sign (not a hyphen), so the echo should work correctly.
21687    # The option is referenced via a variable to avoid confusing sed.
21688    lt_compile=`echo "$ac_compile" | $SED \
21689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21691    -e 's:$: $lt_compiler_flag:'`
21692    (eval echo "\"\$as_me:21692: $lt_compile\"" >&5)
21693    (eval "$lt_compile" 2>conftest.err)
21694    ac_status=$?
21695    cat conftest.err >&5
21696    echo "$as_me:21696: \$? = $ac_status" >&5
21697    if (exit $ac_status) && test -s "$ac_outfile"; then
21698      # The compiler can only warn and ignore the option if not recognized
21699      # So say no if there are warnings other than the usual output.
21700      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21703        lt_prog_compiler_pic_works_F77=yes
21704      fi
21705    fi
21706    $rm conftest*
21707
21708 fi
21709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21710 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21711
21712 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21713     case $lt_prog_compiler_pic_F77 in
21714      "" | " "*) ;;
21715      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21716      esac
21717 else
21718     lt_prog_compiler_pic_F77=
21719      lt_prog_compiler_can_build_shared_F77=no
21720 fi
21721
21722 fi
21723 case $host_os in
21724   # For platforms which do not support PIC, -DPIC is meaningless:
21725   *djgpp*)
21726     lt_prog_compiler_pic_F77=
21727     ;;
21728   *)
21729     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21730     ;;
21731 esac
21732
21733 #
21734 # Check to make sure the static flag actually works.
21735 #
21736 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21739 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742   lt_prog_compiler_static_works_F77=no
21743    save_LDFLAGS="$LDFLAGS"
21744    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21745    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21746    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21747      # The linker can only warn and ignore the option if not recognized
21748      # So say no if there are warnings
21749      if test -s conftest.err; then
21750        # Append any errors to the config.log.
21751        cat conftest.err 1>&5
21752        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21753        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21754        if diff conftest.exp conftest.er2 >/dev/null; then
21755          lt_prog_compiler_static_works_F77=yes
21756        fi
21757      else
21758        lt_prog_compiler_static_works_F77=yes
21759      fi
21760    fi
21761    $rm conftest*
21762    LDFLAGS="$save_LDFLAGS"
21763
21764 fi
21765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21766 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21767
21768 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21769     :
21770 else
21771     lt_prog_compiler_static_F77=
21772 fi
21773
21774
21775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21777 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   lt_cv_prog_compiler_c_o_F77=no
21781    $rm -r conftest 2>/dev/null
21782    mkdir conftest
21783    cd conftest
21784    mkdir out
21785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21786
21787    lt_compiler_flag="-o out/conftest2.$ac_objext"
21788    # Insert the option either (1) after the last *FLAGS variable, or
21789    # (2) before a word containing "conftest.", or (3) at the end.
21790    # Note that $ac_compile itself does not contain backslashes and begins
21791    # with a dollar sign (not a hyphen), so the echo should work correctly.
21792    lt_compile=`echo "$ac_compile" | $SED \
21793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21795    -e 's:$: $lt_compiler_flag:'`
21796    (eval echo "\"\$as_me:21796: $lt_compile\"" >&5)
21797    (eval "$lt_compile" 2>out/conftest.err)
21798    ac_status=$?
21799    cat out/conftest.err >&5
21800    echo "$as_me:21800: \$? = $ac_status" >&5
21801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21802    then
21803      # The compiler can only warn and ignore the option if not recognized
21804      # So say no if there are warnings
21805      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21808        lt_cv_prog_compiler_c_o_F77=yes
21809      fi
21810    fi
21811    chmod u+w . 2>&5
21812    $rm conftest*
21813    # SGI C++ compiler will create directory out/ii_files/ for
21814    # template instantiation
21815    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21816    $rm out/* && rmdir out
21817    cd ..
21818    rmdir conftest
21819    $rm conftest*
21820
21821 fi
21822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21824
21825
21826 hard_links="nottested"
21827 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21828   # do not overwrite the value of need_locks provided by the user
21829   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21831   hard_links=yes
21832   $rm conftest*
21833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21834   touch conftest.a
21835   ln conftest.a conftest.b 2>&5 || hard_links=no
21836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21837   { echo "$as_me:$LINENO: result: $hard_links" >&5
21838 echo "${ECHO_T}$hard_links" >&6; }
21839   if test "$hard_links" = no; then
21840     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21842     need_locks=warn
21843   fi
21844 else
21845   need_locks=no
21846 fi
21847
21848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21850
21851   runpath_var=
21852   allow_undefined_flag_F77=
21853   enable_shared_with_static_runtimes_F77=no
21854   archive_cmds_F77=
21855   archive_expsym_cmds_F77=
21856   old_archive_From_new_cmds_F77=
21857   old_archive_from_expsyms_cmds_F77=
21858   export_dynamic_flag_spec_F77=
21859   whole_archive_flag_spec_F77=
21860   thread_safe_flag_spec_F77=
21861   hardcode_libdir_flag_spec_F77=
21862   hardcode_libdir_flag_spec_ld_F77=
21863   hardcode_libdir_separator_F77=
21864   hardcode_direct_F77=no
21865   hardcode_minus_L_F77=no
21866   hardcode_shlibpath_var_F77=unsupported
21867   link_all_deplibs_F77=unknown
21868   hardcode_automatic_F77=no
21869   module_cmds_F77=
21870   module_expsym_cmds_F77=
21871   always_export_symbols_F77=no
21872   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21873   # include_expsyms should be a list of space-separated symbols to be *always*
21874   # included in the symbol list
21875   include_expsyms_F77=
21876   # exclude_expsyms can be an extended regexp of symbols to exclude
21877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21879   # as well as any symbol that contains `d'.
21880   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21882   # platforms (ab)use it in PIC code, but their linkers get confused if
21883   # the symbol is explicitly referenced.  Since portable code cannot
21884   # rely on this symbol name, it's probably fine to never include it in
21885   # preloaded symbol tables.
21886   extract_expsyms_cmds=
21887   # Just being paranoid about ensuring that cc_basename is set.
21888   for cc_temp in $compiler""; do
21889   case $cc_temp in
21890     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21891     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21892     \-*) ;;
21893     *) break;;
21894   esac
21895 done
21896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21897
21898   case $host_os in
21899   cygwin* | mingw* | pw32*)
21900     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21901     # When not using gcc, we currently assume that we are using
21902     # Microsoft Visual C++.
21903     if test "$GCC" != yes; then
21904       with_gnu_ld=no
21905     fi
21906     ;;
21907   interix*)
21908     # we just hope/assume this is gcc and not c89 (= MSVC++)
21909     with_gnu_ld=yes
21910     ;;
21911   openbsd*)
21912     with_gnu_ld=no
21913     ;;
21914   esac
21915
21916   ld_shlibs_F77=yes
21917   if test "$with_gnu_ld" = yes; then
21918     # If archive_cmds runs LD, not CC, wlarc should be empty
21919     wlarc='${wl}'
21920
21921     # Set some defaults for GNU ld with shared library support. These
21922     # are reset later if shared libraries are not supported. Putting them
21923     # here allows them to be overridden if necessary.
21924     runpath_var=LD_RUN_PATH
21925     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21926     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21927     # ancient GNU ld didn't support --whole-archive et. al.
21928     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21929         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21930       else
21931         whole_archive_flag_spec_F77=
21932     fi
21933     supports_anon_versioning=no
21934     case `$LD -v 2>/dev/null` in
21935       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21936       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21937       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21938       *\ 2.11.*) ;; # other 2.11 versions
21939       *) supports_anon_versioning=yes ;;
21940     esac
21941
21942     # See if GNU ld supports shared libraries.
21943     case $host_os in
21944     aix3* | aix4* | aix5*)
21945       # On AIX/PPC, the GNU linker is very broken
21946       if test "$host_cpu" != ia64; then
21947         ld_shlibs_F77=no
21948         cat <<EOF 1>&2
21949
21950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21951 *** to be unable to reliably create shared libraries on AIX.
21952 *** Therefore, libtool is disabling shared libraries support.  If you
21953 *** really care for shared libraries, you may want to modify your PATH
21954 *** so that a non-GNU linker is found, and then restart.
21955
21956 EOF
21957       fi
21958       ;;
21959
21960     amigaos*)
21961       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)'
21962       hardcode_libdir_flag_spec_F77='-L$libdir'
21963       hardcode_minus_L_F77=yes
21964
21965       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21966       # that the semantics of dynamic libraries on AmigaOS, at least up
21967       # to version 4, is to share data among multiple programs linked
21968       # with the same dynamic library.  Since this doesn't match the
21969       # behavior of shared libraries on other platforms, we can't use
21970       # them.
21971       ld_shlibs_F77=no
21972       ;;
21973
21974     beos*)
21975       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21976         allow_undefined_flag_F77=unsupported
21977         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21978         # support --undefined.  This deserves some investigation.  FIXME
21979         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21980       else
21981         ld_shlibs_F77=no
21982       fi
21983       ;;
21984
21985     cygwin* | mingw* | pw32*)
21986       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21987       # as there is no search path for DLLs.
21988       hardcode_libdir_flag_spec_F77='-L$libdir'
21989       allow_undefined_flag_F77=unsupported
21990       always_export_symbols_F77=no
21991       enable_shared_with_static_runtimes_F77=yes
21992       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21993
21994       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21995         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21996         # If the export-symbols file already is a .def file (1st line
21997         # is EXPORTS), use it as is; otherwise, prepend...
21998         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21999           cp $export_symbols $output_objdir/$soname.def;
22000         else
22001           echo EXPORTS > $output_objdir/$soname.def;
22002           cat $export_symbols >> $output_objdir/$soname.def;
22003         fi~
22004         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22005       else
22006         ld_shlibs_F77=no
22007       fi
22008       ;;
22009
22010     interix3*)
22011       hardcode_direct_F77=no
22012       hardcode_shlibpath_var_F77=no
22013       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22014       export_dynamic_flag_spec_F77='${wl}-E'
22015       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22016       # Instead, shared libraries are loaded at an image base (0x10000000 by
22017       # default) and relocated if they conflict, which is a slow very memory
22018       # consuming and fragmenting process.  To avoid this, we pick a random,
22019       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22020       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22021       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'
22022       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'
22023       ;;
22024
22025     linux*)
22026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22027         tmp_addflag=
22028         case $cc_basename,$host_cpu in
22029         pgcc*)                          # Portland Group C compiler
22030           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'
22031           tmp_addflag=' $pic_flag'
22032           ;;
22033         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22034           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'
22035           tmp_addflag=' $pic_flag -Mnomain' ;;
22036         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22037           tmp_addflag=' -i_dynamic' ;;
22038         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22039           tmp_addflag=' -i_dynamic -nofor_main' ;;
22040         ifc* | ifort*)                  # Intel Fortran compiler
22041           tmp_addflag=' -nofor_main' ;;
22042         esac
22043         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22044
22045         if test $supports_anon_versioning = yes; then
22046           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22047   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22048   $echo "local: *; };" >> $output_objdir/$libname.ver~
22049           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22050         fi
22051       else
22052         ld_shlibs_F77=no
22053       fi
22054       ;;
22055
22056     netbsd*)
22057       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22058         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22059         wlarc=
22060       else
22061         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22062         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22063       fi
22064       ;;
22065
22066     solaris*)
22067       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22068         ld_shlibs_F77=no
22069         cat <<EOF 1>&2
22070
22071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22072 *** create shared libraries on Solaris systems.  Therefore, libtool
22073 *** is disabling shared libraries support.  We urge you to upgrade GNU
22074 *** binutils to release 2.9.1 or newer.  Another option is to modify
22075 *** your PATH or compiler configuration so that the native linker is
22076 *** used, and then restart.
22077
22078 EOF
22079       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22080         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22081         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22082       else
22083         ld_shlibs_F77=no
22084       fi
22085       ;;
22086
22087     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22088       case `$LD -v 2>&1` in
22089         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22090         ld_shlibs_F77=no
22091         cat <<_LT_EOF 1>&2
22092
22093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22094 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22095 *** is disabling shared libraries support.  We urge you to upgrade GNU
22096 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22097 *** your PATH or compiler configuration so that the native linker is
22098 *** used, and then restart.
22099
22100 _LT_EOF
22101         ;;
22102         *)
22103           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22104             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22105             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22106             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22107           else
22108             ld_shlibs_F77=no
22109           fi
22110         ;;
22111       esac
22112       ;;
22113
22114     sunos4*)
22115       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22116       wlarc=
22117       hardcode_direct_F77=yes
22118       hardcode_shlibpath_var_F77=no
22119       ;;
22120
22121     *)
22122       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22123         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22124         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22125       else
22126         ld_shlibs_F77=no
22127       fi
22128       ;;
22129     esac
22130
22131     if test "$ld_shlibs_F77" = no; then
22132       runpath_var=
22133       hardcode_libdir_flag_spec_F77=
22134       export_dynamic_flag_spec_F77=
22135       whole_archive_flag_spec_F77=
22136     fi
22137   else
22138     # PORTME fill in a description of your system's linker (not GNU ld)
22139     case $host_os in
22140     aix3*)
22141       allow_undefined_flag_F77=unsupported
22142       always_export_symbols_F77=yes
22143       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'
22144       # Note: this linker hardcodes the directories in LIBPATH if there
22145       # are no directories specified by -L.
22146       hardcode_minus_L_F77=yes
22147       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22148         # Neither direct hardcoding nor static linking is supported with a
22149         # broken collect2.
22150         hardcode_direct_F77=unsupported
22151       fi
22152       ;;
22153
22154     aix4* | aix5*)
22155       if test "$host_cpu" = ia64; then
22156         # On IA64, the linker does run time linking by default, so we don't
22157         # have to do anything special.
22158         aix_use_runtimelinking=no
22159         exp_sym_flag='-Bexport'
22160         no_entry_flag=""
22161       else
22162         # If we're using GNU nm, then we don't want the "-C" option.
22163         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22164         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22165           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'
22166         else
22167           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'
22168         fi
22169         aix_use_runtimelinking=no
22170
22171         # Test if we are trying to use run time linking or normal
22172         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22173         # need to do runtime linking.
22174         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22175           for ld_flag in $LDFLAGS; do
22176           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22177             aix_use_runtimelinking=yes
22178             break
22179           fi
22180           done
22181           ;;
22182         esac
22183
22184         exp_sym_flag='-bexport'
22185         no_entry_flag='-bnoentry'
22186       fi
22187
22188       # When large executables or shared objects are built, AIX ld can
22189       # have problems creating the table of contents.  If linking a library
22190       # or program results in "error TOC overflow" add -mminimal-toc to
22191       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22192       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22193
22194       archive_cmds_F77=''
22195       hardcode_direct_F77=yes
22196       hardcode_libdir_separator_F77=':'
22197       link_all_deplibs_F77=yes
22198
22199       if test "$GCC" = yes; then
22200         case $host_os in aix4.[012]|aix4.[012].*)
22201         # We only want to do this on AIX 4.2 and lower, the check
22202         # below for broken collect2 doesn't work under 4.3+
22203           collect2name=`${CC} -print-prog-name=collect2`
22204           if test -f "$collect2name" && \
22205            strings "$collect2name" | grep resolve_lib_name >/dev/null
22206           then
22207           # We have reworked collect2
22208           hardcode_direct_F77=yes
22209           else
22210           # We have old collect2
22211           hardcode_direct_F77=unsupported
22212           # It fails to find uninstalled libraries when the uninstalled
22213           # path is not listed in the libpath.  Setting hardcode_minus_L
22214           # to unsupported forces relinking
22215           hardcode_minus_L_F77=yes
22216           hardcode_libdir_flag_spec_F77='-L$libdir'
22217           hardcode_libdir_separator_F77=
22218           fi
22219           ;;
22220         esac
22221         shared_flag='-shared'
22222         if test "$aix_use_runtimelinking" = yes; then
22223           shared_flag="$shared_flag "'${wl}-G'
22224         fi
22225       else
22226         # not using gcc
22227         if test "$host_cpu" = ia64; then
22228         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22229         # chokes on -Wl,-G. The following line is correct:
22230           shared_flag='-G'
22231         else
22232           if test "$aix_use_runtimelinking" = yes; then
22233             shared_flag='${wl}-G'
22234           else
22235             shared_flag='${wl}-bM:SRE'
22236           fi
22237         fi
22238       fi
22239
22240       # It seems that -bexpall does not export symbols beginning with
22241       # underscore (_), so it is better to generate a list of symbols to export.
22242       always_export_symbols_F77=yes
22243       if test "$aix_use_runtimelinking" = yes; then
22244         # Warning - without using the other runtime loading flags (-brtl),
22245         # -berok will link without error, but may produce a broken library.
22246         allow_undefined_flag_F77='-berok'
22247        # Determine the default libpath from the value encoded in an empty executable.
22248        cat >conftest.$ac_ext <<_ACEOF
22249       program main
22250
22251       end
22252 _ACEOF
22253 rm -f conftest.$ac_objext conftest$ac_exeext
22254 if { (ac_try="$ac_link"
22255 case "(($ac_try" in
22256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257   *) ac_try_echo=$ac_try;;
22258 esac
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260   (eval "$ac_link") 2>conftest.er1
22261   ac_status=$?
22262   grep -v '^ *+' conftest.er1 >conftest.err
22263   rm -f conftest.er1
22264   cat conftest.err >&5
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); } &&
22267          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22268   { (case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_try") 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; } &&
22277          { ac_try='test -s conftest$ac_exeext'
22278   { (case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_try") 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); }; }; then
22287
22288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22289 }'`
22290 # Check for a 64-bit object if we didn't find anything.
22291 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; }
22292 }'`; fi
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297
22298 fi
22299
22300 rm -f core conftest.err conftest.$ac_objext \
22301       conftest$ac_exeext conftest.$ac_ext
22302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22303
22304        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22305         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"
22306        else
22307         if test "$host_cpu" = ia64; then
22308           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22309           allow_undefined_flag_F77="-z nodefs"
22310           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"
22311         else
22312          # Determine the default libpath from the value encoded in an empty executable.
22313          cat >conftest.$ac_ext <<_ACEOF
22314       program main
22315
22316       end
22317 _ACEOF
22318 rm -f conftest.$ac_objext conftest$ac_exeext
22319 if { (ac_try="$ac_link"
22320 case "(($ac_try" in
22321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322   *) ac_try_echo=$ac_try;;
22323 esac
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325   (eval "$ac_link") 2>conftest.er1
22326   ac_status=$?
22327   grep -v '^ *+' conftest.er1 >conftest.err
22328   rm -f conftest.er1
22329   cat conftest.err >&5
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); } &&
22332          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22333   { (case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_try") 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; } &&
22342          { ac_try='test -s conftest$ac_exeext'
22343   { (case "(($ac_try" in
22344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345   *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348   (eval "$ac_try") 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352
22353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22354 }'`
22355 # Check for a 64-bit object if we didn't find anything.
22356 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; }
22357 }'`; fi
22358 else
22359   echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362
22363 fi
22364
22365 rm -f core conftest.err conftest.$ac_objext \
22366       conftest$ac_exeext conftest.$ac_ext
22367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22368
22369          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22370           # Warning - without using the other run time loading flags,
22371           # -berok will link without error, but may produce a broken library.
22372           no_undefined_flag_F77=' ${wl}-bernotok'
22373           allow_undefined_flag_F77=' ${wl}-berok'
22374           # Exported symbols can be pulled into shared objects from archives
22375           whole_archive_flag_spec_F77='$convenience'
22376           archive_cmds_need_lc_F77=yes
22377           # This is similar to how AIX traditionally builds its shared libraries.
22378           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'
22379         fi
22380       fi
22381       ;;
22382
22383     amigaos*)
22384       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)'
22385       hardcode_libdir_flag_spec_F77='-L$libdir'
22386       hardcode_minus_L_F77=yes
22387       # see comment about different semantics on the GNU ld section
22388       ld_shlibs_F77=no
22389       ;;
22390
22391     bsdi[45]*)
22392       export_dynamic_flag_spec_F77=-rdynamic
22393       ;;
22394
22395     cygwin* | mingw* | pw32*)
22396       # When not using gcc, we currently assume that we are using
22397       # Microsoft Visual C++.
22398       # hardcode_libdir_flag_spec is actually meaningless, as there is
22399       # no search path for DLLs.
22400       hardcode_libdir_flag_spec_F77=' '
22401       allow_undefined_flag_F77=unsupported
22402       # Tell ltmain to make .lib files, not .a files.
22403       libext=lib
22404       # Tell ltmain to make .dll files, not .so files.
22405       shrext_cmds=".dll"
22406       # FIXME: Setting linknames here is a bad hack.
22407       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22408       # The linker will automatically build a .lib file if we build a DLL.
22409       old_archive_From_new_cmds_F77='true'
22410       # FIXME: Should let the user specify the lib program.
22411       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22412       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22413       enable_shared_with_static_runtimes_F77=yes
22414       ;;
22415
22416     darwin* | rhapsody*)
22417       case $host_os in
22418         rhapsody* | darwin1.[012])
22419          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22420          ;;
22421        *) # Darwin 1.3 on
22422          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22423            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22424          else
22425            case ${MACOSX_DEPLOYMENT_TARGET} in
22426              10.[012])
22427                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22428                ;;
22429              10.*)
22430                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22431                ;;
22432            esac
22433          fi
22434          ;;
22435       esac
22436       archive_cmds_need_lc_F77=no
22437       hardcode_direct_F77=no
22438       hardcode_automatic_F77=yes
22439       hardcode_shlibpath_var_F77=unsupported
22440       whole_archive_flag_spec_F77=''
22441       link_all_deplibs_F77=yes
22442     if test "$GCC" = yes ; then
22443         output_verbose_link_cmd='echo'
22444         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22445       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22446       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22447       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}'
22448       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}'
22449     else
22450       case $cc_basename in
22451         xlc*)
22452          output_verbose_link_cmd='echo'
22453          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22454          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22455           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22456          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}'
22457           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}'
22458           ;;
22459        *)
22460          ld_shlibs_F77=no
22461           ;;
22462       esac
22463     fi
22464       ;;
22465
22466     dgux*)
22467       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468       hardcode_libdir_flag_spec_F77='-L$libdir'
22469       hardcode_shlibpath_var_F77=no
22470       ;;
22471
22472     freebsd1*)
22473       ld_shlibs_F77=no
22474       ;;
22475
22476     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22477     # support.  Future versions do this automatically, but an explicit c++rt0.o
22478     # does not break anything, and helps significantly (at the cost of a little
22479     # extra space).
22480     freebsd2.2*)
22481       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22482       hardcode_libdir_flag_spec_F77='-R$libdir'
22483       hardcode_direct_F77=yes
22484       hardcode_shlibpath_var_F77=no
22485       ;;
22486
22487     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22488     freebsd2*)
22489       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22490       hardcode_direct_F77=yes
22491       hardcode_minus_L_F77=yes
22492       hardcode_shlibpath_var_F77=no
22493       ;;
22494
22495     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22496     freebsd* | kfreebsd*-gnu | dragonfly*)
22497       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22498       hardcode_libdir_flag_spec_F77='-R$libdir'
22499       hardcode_direct_F77=yes
22500       hardcode_shlibpath_var_F77=no
22501       ;;
22502
22503     hpux9*)
22504       if test "$GCC" = yes; then
22505         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'
22506       else
22507         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'
22508       fi
22509       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22510       hardcode_libdir_separator_F77=:
22511       hardcode_direct_F77=yes
22512
22513       # hardcode_minus_L: Not really in the search PATH,
22514       # but as the default location of the library.
22515       hardcode_minus_L_F77=yes
22516       export_dynamic_flag_spec_F77='${wl}-E'
22517       ;;
22518
22519     hpux10*)
22520       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22521         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22522       else
22523         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22524       fi
22525       if test "$with_gnu_ld" = no; then
22526         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22527         hardcode_libdir_separator_F77=:
22528
22529         hardcode_direct_F77=yes
22530         export_dynamic_flag_spec_F77='${wl}-E'
22531
22532         # hardcode_minus_L: Not really in the search PATH,
22533         # but as the default location of the library.
22534         hardcode_minus_L_F77=yes
22535       fi
22536       ;;
22537
22538     hpux11*)
22539       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22540         case $host_cpu in
22541         hppa*64*)
22542           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22543           ;;
22544         ia64*)
22545           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22546           ;;
22547         *)
22548           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22549           ;;
22550         esac
22551       else
22552         case $host_cpu in
22553         hppa*64*)
22554           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22555           ;;
22556         ia64*)
22557           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22558           ;;
22559         *)
22560           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22561           ;;
22562         esac
22563       fi
22564       if test "$with_gnu_ld" = no; then
22565         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22566         hardcode_libdir_separator_F77=:
22567
22568         case $host_cpu in
22569         hppa*64*|ia64*)
22570           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22571           hardcode_direct_F77=no
22572           hardcode_shlibpath_var_F77=no
22573           ;;
22574         *)
22575           hardcode_direct_F77=yes
22576           export_dynamic_flag_spec_F77='${wl}-E'
22577
22578           # hardcode_minus_L: Not really in the search PATH,
22579           # but as the default location of the library.
22580           hardcode_minus_L_F77=yes
22581           ;;
22582         esac
22583       fi
22584       ;;
22585
22586     irix5* | irix6* | nonstopux*)
22587       if test "$GCC" = yes; then
22588         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'
22589       else
22590         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'
22591         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22592       fi
22593       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22594       hardcode_libdir_separator_F77=:
22595       link_all_deplibs_F77=yes
22596       ;;
22597
22598     netbsd*)
22599       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22600         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22601       else
22602         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22603       fi
22604       hardcode_libdir_flag_spec_F77='-R$libdir'
22605       hardcode_direct_F77=yes
22606       hardcode_shlibpath_var_F77=no
22607       ;;
22608
22609     newsos6)
22610       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22611       hardcode_direct_F77=yes
22612       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22613       hardcode_libdir_separator_F77=:
22614       hardcode_shlibpath_var_F77=no
22615       ;;
22616
22617     openbsd*)
22618       hardcode_direct_F77=yes
22619       hardcode_shlibpath_var_F77=no
22620       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22621         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22622         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22623         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22624         export_dynamic_flag_spec_F77='${wl}-E'
22625       else
22626        case $host_os in
22627          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22628            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22629            hardcode_libdir_flag_spec_F77='-R$libdir'
22630            ;;
22631          *)
22632            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22633            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22634            ;;
22635        esac
22636       fi
22637       ;;
22638
22639     os2*)
22640       hardcode_libdir_flag_spec_F77='-L$libdir'
22641       hardcode_minus_L_F77=yes
22642       allow_undefined_flag_F77=unsupported
22643       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'
22644       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22645       ;;
22646
22647     osf3*)
22648       if test "$GCC" = yes; then
22649         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22650         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'
22651       else
22652         allow_undefined_flag_F77=' -expect_unresolved \*'
22653         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'
22654       fi
22655       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22656       hardcode_libdir_separator_F77=:
22657       ;;
22658
22659     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22660       if test "$GCC" = yes; then
22661         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22662         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'
22663         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22664       else
22665         allow_undefined_flag_F77=' -expect_unresolved \*'
22666         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'
22667         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~
22668         $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'
22669
22670         # Both c and cxx compiler support -rpath directly
22671         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22672       fi
22673       hardcode_libdir_separator_F77=:
22674       ;;
22675
22676     solaris*)
22677       no_undefined_flag_F77=' -z text'
22678       if test "$GCC" = yes; then
22679         wlarc='${wl}'
22680         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22681         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22682           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22683       else
22684         wlarc=''
22685         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22686         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22687         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22688       fi
22689       hardcode_libdir_flag_spec_F77='-R$libdir'
22690       hardcode_shlibpath_var_F77=no
22691       case $host_os in
22692       solaris2.[0-5] | solaris2.[0-5].*) ;;
22693       *)
22694         # The compiler driver will combine linker options so we
22695         # cannot just pass the convience library names through
22696         # without $wl, iff we do not link with $LD.
22697         # Luckily, gcc supports the same syntax we need for Sun Studio.
22698         # Supported since Solaris 2.6 (maybe 2.5.1?)
22699         case $wlarc in
22700         '')
22701           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22702         *)
22703           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' ;;
22704         esac ;;
22705       esac
22706       link_all_deplibs_F77=yes
22707       ;;
22708
22709     sunos4*)
22710       if test "x$host_vendor" = xsequent; then
22711         # Use $CC to link under sequent, because it throws in some extra .o
22712         # files that make .init and .fini sections work.
22713         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22714       else
22715         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22716       fi
22717       hardcode_libdir_flag_spec_F77='-L$libdir'
22718       hardcode_direct_F77=yes
22719       hardcode_minus_L_F77=yes
22720       hardcode_shlibpath_var_F77=no
22721       ;;
22722
22723     sysv4)
22724       case $host_vendor in
22725         sni)
22726           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727           hardcode_direct_F77=yes # is this really true???
22728         ;;
22729         siemens)
22730           ## LD is ld it makes a PLAMLIB
22731           ## CC just makes a GrossModule.
22732           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22733           reload_cmds_F77='$CC -r -o $output$reload_objs'
22734           hardcode_direct_F77=no
22735         ;;
22736         motorola)
22737           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22739         ;;
22740       esac
22741       runpath_var='LD_RUN_PATH'
22742       hardcode_shlibpath_var_F77=no
22743       ;;
22744
22745     sysv4.3*)
22746       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22747       hardcode_shlibpath_var_F77=no
22748       export_dynamic_flag_spec_F77='-Bexport'
22749       ;;
22750
22751     sysv4*MP*)
22752       if test -d /usr/nec; then
22753         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22754         hardcode_shlibpath_var_F77=no
22755         runpath_var=LD_RUN_PATH
22756         hardcode_runpath_var=yes
22757         ld_shlibs_F77=yes
22758       fi
22759       ;;
22760
22761     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22762       no_undefined_flag_F77='${wl}-z,text'
22763       archive_cmds_need_lc_F77=no
22764       hardcode_shlibpath_var_F77=no
22765       runpath_var='LD_RUN_PATH'
22766
22767       if test "$GCC" = yes; then
22768         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22769         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770       else
22771         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22772         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22773       fi
22774       ;;
22775
22776     sysv5* | sco3.2v5* | sco5v6*)
22777       # Note: We can NOT use -z defs as we might desire, because we do not
22778       # link with -lc, and that would cause any symbols used from libc to
22779       # always be unresolved, which means just about no library would
22780       # ever link correctly.  If we're not using GNU ld we use -z text
22781       # though, which does catch some bad symbols but isn't as heavy-handed
22782       # as -z defs.
22783       no_undefined_flag_F77='${wl}-z,text'
22784       allow_undefined_flag_F77='${wl}-z,nodefs'
22785       archive_cmds_need_lc_F77=no
22786       hardcode_shlibpath_var_F77=no
22787       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22788       hardcode_libdir_separator_F77=':'
22789       link_all_deplibs_F77=yes
22790       export_dynamic_flag_spec_F77='${wl}-Bexport'
22791       runpath_var='LD_RUN_PATH'
22792
22793       if test "$GCC" = yes; then
22794         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22795         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796       else
22797         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22798         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22799       fi
22800       ;;
22801
22802     uts4*)
22803       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22804       hardcode_libdir_flag_spec_F77='-L$libdir'
22805       hardcode_shlibpath_var_F77=no
22806       ;;
22807
22808     *)
22809       ld_shlibs_F77=no
22810       ;;
22811     esac
22812   fi
22813
22814 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22815 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22816 test "$ld_shlibs_F77" = no && can_build_shared=no
22817
22818 #
22819 # Do we need to explicitly link libc?
22820 #
22821 case "x$archive_cmds_need_lc_F77" in
22822 x|xyes)
22823   # Assume -lc should be added
22824   archive_cmds_need_lc_F77=yes
22825
22826   if test "$enable_shared" = yes && test "$GCC" = yes; then
22827     case $archive_cmds_F77 in
22828     *'~'*)
22829       # FIXME: we may have to deal with multi-command sequences.
22830       ;;
22831     '$CC '*)
22832       # Test whether the compiler implicitly links with -lc since on some
22833       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22834       # to ld, don't add -lc before -lgcc.
22835       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22837       $rm conftest*
22838       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22839
22840       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22841   (eval $ac_compile) 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); } 2>conftest.err; then
22845         soname=conftest
22846         lib=conftest
22847         libobjs=conftest.$ac_objext
22848         deplibs=
22849         wl=$lt_prog_compiler_wl_F77
22850         pic_flag=$lt_prog_compiler_pic_F77
22851         compiler_flags=-v
22852         linker_flags=-v
22853         verstring=
22854         output_objdir=.
22855         libname=conftest
22856         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22857         allow_undefined_flag_F77=
22858         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22859   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22860   ac_status=$?
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); }
22863         then
22864           archive_cmds_need_lc_F77=no
22865         else
22866           archive_cmds_need_lc_F77=yes
22867         fi
22868         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22869       else
22870         cat conftest.err 1>&5
22871       fi
22872       $rm conftest*
22873       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22874 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22875       ;;
22876     esac
22877   fi
22878   ;;
22879 esac
22880
22881 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22883 library_names_spec=
22884 libname_spec='lib$name'
22885 soname_spec=
22886 shrext_cmds=".so"
22887 postinstall_cmds=
22888 postuninstall_cmds=
22889 finish_cmds=
22890 finish_eval=
22891 shlibpath_var=
22892 shlibpath_overrides_runpath=unknown
22893 version_type=none
22894 dynamic_linker="$host_os ld.so"
22895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22896 if test "$GCC" = yes; then
22897   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22898   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22899     # if the path contains ";" then we assume it to be the separator
22900     # otherwise default to the standard path separator (i.e. ":") - it is
22901     # assumed that no part of a normal pathname contains ";" but that should
22902     # okay in the real world where ";" in dirpaths is itself problematic.
22903     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22904   else
22905     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22906   fi
22907 else
22908   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22909 fi
22910 need_lib_prefix=unknown
22911 hardcode_into_libs=no
22912
22913 # when you set need_version to no, make sure it does not cause -set_version
22914 # flags to be left without arguments
22915 need_version=unknown
22916
22917 case $host_os in
22918 aix3*)
22919   version_type=linux
22920   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22921   shlibpath_var=LIBPATH
22922
22923   # AIX 3 has no versioning support, so we append a major version to the name.
22924   soname_spec='${libname}${release}${shared_ext}$major'
22925   ;;
22926
22927 aix4* | aix5*)
22928   version_type=linux
22929   need_lib_prefix=no
22930   need_version=no
22931   hardcode_into_libs=yes
22932   if test "$host_cpu" = ia64; then
22933     # AIX 5 supports IA64
22934     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22935     shlibpath_var=LD_LIBRARY_PATH
22936   else
22937     # With GCC up to 2.95.x, collect2 would create an import file
22938     # for dependence libraries.  The import file would start with
22939     # the line `#! .'.  This would cause the generated library to
22940     # depend on `.', always an invalid library.  This was fixed in
22941     # development snapshots of GCC prior to 3.0.
22942     case $host_os in
22943       aix4 | aix4.[01] | aix4.[01].*)
22944       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22945            echo ' yes '
22946            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22947         :
22948       else
22949         can_build_shared=no
22950       fi
22951       ;;
22952     esac
22953     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22954     # soname into executable. Probably we can add versioning support to
22955     # collect2, so additional links can be useful in future.
22956     if test "$aix_use_runtimelinking" = yes; then
22957       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22958       # instead of lib<name>.a to let people know that these are not
22959       # typical AIX shared libraries.
22960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961     else
22962       # We preserve .a as extension for shared libraries through AIX4.2
22963       # and later when we are not doing run time linking.
22964       library_names_spec='${libname}${release}.a $libname.a'
22965       soname_spec='${libname}${release}${shared_ext}$major'
22966     fi
22967     shlibpath_var=LIBPATH
22968   fi
22969   ;;
22970
22971 amigaos*)
22972   library_names_spec='$libname.ixlibrary $libname.a'
22973   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22974   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'
22975   ;;
22976
22977 beos*)
22978   library_names_spec='${libname}${shared_ext}'
22979   dynamic_linker="$host_os ld.so"
22980   shlibpath_var=LIBRARY_PATH
22981   ;;
22982
22983 bsdi[45]*)
22984   version_type=linux
22985   need_version=no
22986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987   soname_spec='${libname}${release}${shared_ext}$major'
22988   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22989   shlibpath_var=LD_LIBRARY_PATH
22990   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22991   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22992   # the default ld.so.conf also contains /usr/contrib/lib and
22993   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22994   # libtool to hard-code these into programs
22995   ;;
22996
22997 cygwin* | mingw* | pw32*)
22998   version_type=windows
22999   shrext_cmds=".dll"
23000   need_version=no
23001   need_lib_prefix=no
23002
23003   case $GCC,$host_os in
23004   yes,cygwin* | yes,mingw* | yes,pw32*)
23005     library_names_spec='$libname.dll.a'
23006     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23007     postinstall_cmds='base_file=`basename \${file}`~
23008       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23009       dldir=$destdir/`dirname \$dlpath`~
23010       test -d \$dldir || mkdir -p \$dldir~
23011       $install_prog $dir/$dlname \$dldir/$dlname~
23012       chmod a+x \$dldir/$dlname'
23013     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23014       dlpath=$dir/\$dldll~
23015        $rm \$dlpath'
23016     shlibpath_overrides_runpath=yes
23017
23018     case $host_os in
23019     cygwin*)
23020       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23021       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23022       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23023       ;;
23024     mingw*)
23025       # MinGW DLLs use traditional 'lib' prefix
23026       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23027       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23028       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23029         # It is most probably a Windows format PATH printed by
23030         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23031         # path with ; separators, and with drive letters. We can handle the
23032         # drive letters (cygwin fileutils understands them), so leave them,
23033         # especially as we might pass files found there to a mingw objdump,
23034         # which wouldn't understand a cygwinified path. Ahh.
23035         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23036       else
23037         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23038       fi
23039       ;;
23040     pw32*)
23041       # pw32 DLLs use 'pw' prefix rather than 'lib'
23042       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23043       ;;
23044     esac
23045     ;;
23046
23047   *)
23048     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23049     ;;
23050   esac
23051   dynamic_linker='Win32 ld.exe'
23052   # FIXME: first we should search . and the directory the executable is in
23053   shlibpath_var=PATH
23054   ;;
23055
23056 darwin* | rhapsody*)
23057   dynamic_linker="$host_os dyld"
23058   version_type=darwin
23059   need_lib_prefix=no
23060   need_version=no
23061   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23062   soname_spec='${libname}${release}${major}$shared_ext'
23063   shlibpath_overrides_runpath=yes
23064   shlibpath_var=DYLD_LIBRARY_PATH
23065   shrext_cmds='.dylib'
23066   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23067   if test "$GCC" = yes; then
23068     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"`
23069   else
23070     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23071   fi
23072   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23073   ;;
23074
23075 dgux*)
23076   version_type=linux
23077   need_lib_prefix=no
23078   need_version=no
23079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23080   soname_spec='${libname}${release}${shared_ext}$major'
23081   shlibpath_var=LD_LIBRARY_PATH
23082   ;;
23083
23084 freebsd1*)
23085   dynamic_linker=no
23086   ;;
23087
23088 kfreebsd*-gnu)
23089   version_type=linux
23090   need_lib_prefix=no
23091   need_version=no
23092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23093   soname_spec='${libname}${release}${shared_ext}$major'
23094   shlibpath_var=LD_LIBRARY_PATH
23095   shlibpath_overrides_runpath=no
23096   hardcode_into_libs=yes
23097   dynamic_linker='GNU ld.so'
23098   ;;
23099
23100 freebsd* | dragonfly*)
23101   # DragonFly does not have aout.  When/if they implement a new
23102   # versioning mechanism, adjust this.
23103   if test -x /usr/bin/objformat; then
23104     objformat=`/usr/bin/objformat`
23105   else
23106     case $host_os in
23107     freebsd[123]*) objformat=aout ;;
23108     *) objformat=elf ;;
23109     esac
23110   fi
23111   version_type=freebsd-$objformat
23112   case $version_type in
23113     freebsd-elf*)
23114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23115       need_version=no
23116       need_lib_prefix=no
23117       ;;
23118     freebsd-*)
23119       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23120       need_version=yes
23121       ;;
23122   esac
23123   shlibpath_var=LD_LIBRARY_PATH
23124   case $host_os in
23125   freebsd2*)
23126     shlibpath_overrides_runpath=yes
23127     ;;
23128   freebsd3.[01]* | freebsdelf3.[01]*)
23129     shlibpath_overrides_runpath=yes
23130     hardcode_into_libs=yes
23131     ;;
23132   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23133   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23134     shlibpath_overrides_runpath=no
23135     hardcode_into_libs=yes
23136     ;;
23137   freebsd*) # from 4.6 on
23138     shlibpath_overrides_runpath=yes
23139     hardcode_into_libs=yes
23140     ;;
23141   esac
23142   ;;
23143
23144 gnu*)
23145   version_type=linux
23146   need_lib_prefix=no
23147   need_version=no
23148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23149   soname_spec='${libname}${release}${shared_ext}$major'
23150   shlibpath_var=LD_LIBRARY_PATH
23151   hardcode_into_libs=yes
23152   ;;
23153
23154 hpux9* | hpux10* | hpux11*)
23155   # Give a soname corresponding to the major version so that dld.sl refuses to
23156   # link against other versions.
23157   version_type=sunos
23158   need_lib_prefix=no
23159   need_version=no
23160   case $host_cpu in
23161   ia64*)
23162     shrext_cmds='.so'
23163     hardcode_into_libs=yes
23164     dynamic_linker="$host_os dld.so"
23165     shlibpath_var=LD_LIBRARY_PATH
23166     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23168     soname_spec='${libname}${release}${shared_ext}$major'
23169     if test "X$HPUX_IA64_MODE" = X32; then
23170       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23171     else
23172       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23173     fi
23174     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23175     ;;
23176    hppa*64*)
23177      shrext_cmds='.sl'
23178      hardcode_into_libs=yes
23179      dynamic_linker="$host_os dld.sl"
23180      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23181      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183      soname_spec='${libname}${release}${shared_ext}$major'
23184      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23185      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23186      ;;
23187    *)
23188     shrext_cmds='.sl'
23189     dynamic_linker="$host_os dld.sl"
23190     shlibpath_var=SHLIB_PATH
23191     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23193     soname_spec='${libname}${release}${shared_ext}$major'
23194     ;;
23195   esac
23196   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23197   postinstall_cmds='chmod 555 $lib'
23198   ;;
23199
23200 interix3*)
23201   version_type=linux
23202   need_lib_prefix=no
23203   need_version=no
23204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23205   soname_spec='${libname}${release}${shared_ext}$major'
23206   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23207   shlibpath_var=LD_LIBRARY_PATH
23208   shlibpath_overrides_runpath=no
23209   hardcode_into_libs=yes
23210   ;;
23211
23212 irix5* | irix6* | nonstopux*)
23213   case $host_os in
23214     nonstopux*) version_type=nonstopux ;;
23215     *)
23216         if test "$lt_cv_prog_gnu_ld" = yes; then
23217                 version_type=linux
23218         else
23219                 version_type=irix
23220         fi ;;
23221   esac
23222   need_lib_prefix=no
23223   need_version=no
23224   soname_spec='${libname}${release}${shared_ext}$major'
23225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23226   case $host_os in
23227   irix5* | nonstopux*)
23228     libsuff= shlibsuff=
23229     ;;
23230   *)
23231     case $LD in # libtool.m4 will add one of these switches to LD
23232     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23233       libsuff= shlibsuff= libmagic=32-bit;;
23234     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23235       libsuff=32 shlibsuff=N32 libmagic=N32;;
23236     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23237       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23238     *) libsuff= shlibsuff= libmagic=never-match;;
23239     esac
23240     ;;
23241   esac
23242   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23243   shlibpath_overrides_runpath=no
23244   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23245   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23246   hardcode_into_libs=yes
23247   ;;
23248
23249 # No shared lib support for Linux oldld, aout, or coff.
23250 linux*oldld* | linux*aout* | linux*coff*)
23251   dynamic_linker=no
23252   ;;
23253
23254 # This must be Linux ELF.
23255 linux*)
23256   version_type=linux
23257   need_lib_prefix=no
23258   need_version=no
23259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23260   soname_spec='${libname}${release}${shared_ext}$major'
23261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23262   shlibpath_var=LD_LIBRARY_PATH
23263   shlibpath_overrides_runpath=no
23264   # This implies no fast_install, which is unacceptable.
23265   # Some rework will be needed to allow for fast_install
23266   # before this can be enabled.
23267   hardcode_into_libs=yes
23268
23269   # Append ld.so.conf contents to the search path
23270   if test -f /etc/ld.so.conf; then
23271     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' ' '`
23272     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23273   fi
23274
23275   # We used to test for /lib/ld.so.1 and disable shared libraries on
23276   # powerpc, because MkLinux only supported shared libraries with the
23277   # GNU dynamic linker.  Since this was broken with cross compilers,
23278   # most powerpc-linux boxes support dynamic linking these days and
23279   # people can always --disable-shared, the test was removed, and we
23280   # assume the GNU/Linux dynamic linker is in use.
23281   dynamic_linker='GNU/Linux ld.so'
23282   ;;
23283
23284 knetbsd*-gnu)
23285   version_type=linux
23286   need_lib_prefix=no
23287   need_version=no
23288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23289   soname_spec='${libname}${release}${shared_ext}$major'
23290   shlibpath_var=LD_LIBRARY_PATH
23291   shlibpath_overrides_runpath=no
23292   hardcode_into_libs=yes
23293   dynamic_linker='GNU ld.so'
23294   ;;
23295
23296 netbsd*)
23297   version_type=sunos
23298   need_lib_prefix=no
23299   need_version=no
23300   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23302     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23303     dynamic_linker='NetBSD (a.out) ld.so'
23304   else
23305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23306     soname_spec='${libname}${release}${shared_ext}$major'
23307     dynamic_linker='NetBSD ld.elf_so'
23308   fi
23309   shlibpath_var=LD_LIBRARY_PATH
23310   shlibpath_overrides_runpath=yes
23311   hardcode_into_libs=yes
23312   ;;
23313
23314 newsos6)
23315   version_type=linux
23316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23317   shlibpath_var=LD_LIBRARY_PATH
23318   shlibpath_overrides_runpath=yes
23319   ;;
23320
23321 nto-qnx*)
23322   version_type=linux
23323   need_lib_prefix=no
23324   need_version=no
23325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326   soname_spec='${libname}${release}${shared_ext}$major'
23327   shlibpath_var=LD_LIBRARY_PATH
23328   shlibpath_overrides_runpath=yes
23329   ;;
23330
23331 openbsd*)
23332   version_type=sunos
23333   sys_lib_dlsearch_path_spec="/usr/lib"
23334   need_lib_prefix=no
23335   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23336   case $host_os in
23337     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23338     *)                         need_version=no  ;;
23339   esac
23340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23342   shlibpath_var=LD_LIBRARY_PATH
23343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23344     case $host_os in
23345       openbsd2.[89] | openbsd2.[89].*)
23346         shlibpath_overrides_runpath=no
23347         ;;
23348       *)
23349         shlibpath_overrides_runpath=yes
23350         ;;
23351       esac
23352   else
23353     shlibpath_overrides_runpath=yes
23354   fi
23355   ;;
23356
23357 os2*)
23358   libname_spec='$name'
23359   shrext_cmds=".dll"
23360   need_lib_prefix=no
23361   library_names_spec='$libname${shared_ext} $libname.a'
23362   dynamic_linker='OS/2 ld.exe'
23363   shlibpath_var=LIBPATH
23364   ;;
23365
23366 osf3* | osf4* | osf5*)
23367   version_type=osf
23368   need_lib_prefix=no
23369   need_version=no
23370   soname_spec='${libname}${release}${shared_ext}$major'
23371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23372   shlibpath_var=LD_LIBRARY_PATH
23373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23375   ;;
23376
23377 solaris*)
23378   version_type=linux
23379   need_lib_prefix=no
23380   need_version=no
23381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23382   soname_spec='${libname}${release}${shared_ext}$major'
23383   shlibpath_var=LD_LIBRARY_PATH
23384   shlibpath_overrides_runpath=yes
23385   hardcode_into_libs=yes
23386   # ldd complains unless libraries are executable
23387   postinstall_cmds='chmod +x $lib'
23388   ;;
23389
23390 sunos4*)
23391   version_type=sunos
23392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23393   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23394   shlibpath_var=LD_LIBRARY_PATH
23395   shlibpath_overrides_runpath=yes
23396   if test "$with_gnu_ld" = yes; then
23397     need_lib_prefix=no
23398   fi
23399   need_version=yes
23400   ;;
23401
23402 sysv4 | sysv4.3*)
23403   version_type=linux
23404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23405   soname_spec='${libname}${release}${shared_ext}$major'
23406   shlibpath_var=LD_LIBRARY_PATH
23407   case $host_vendor in
23408     sni)
23409       shlibpath_overrides_runpath=no
23410       need_lib_prefix=no
23411       export_dynamic_flag_spec='${wl}-Blargedynsym'
23412       runpath_var=LD_RUN_PATH
23413       ;;
23414     siemens)
23415       need_lib_prefix=no
23416       ;;
23417     motorola)
23418       need_lib_prefix=no
23419       need_version=no
23420       shlibpath_overrides_runpath=no
23421       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23422       ;;
23423   esac
23424   ;;
23425
23426 sysv4*MP*)
23427   if test -d /usr/nec ;then
23428     version_type=linux
23429     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23430     soname_spec='$libname${shared_ext}.$major'
23431     shlibpath_var=LD_LIBRARY_PATH
23432   fi
23433   ;;
23434
23435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23436   version_type=freebsd-elf
23437   need_lib_prefix=no
23438   need_version=no
23439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23440   soname_spec='${libname}${release}${shared_ext}$major'
23441   shlibpath_var=LD_LIBRARY_PATH
23442   hardcode_into_libs=yes
23443   if test "$with_gnu_ld" = yes; then
23444     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23445     shlibpath_overrides_runpath=no
23446   else
23447     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23448     shlibpath_overrides_runpath=yes
23449     case $host_os in
23450       sco3.2v5*)
23451         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23452         ;;
23453     esac
23454   fi
23455   sys_lib_dlsearch_path_spec='/usr/lib'
23456   ;;
23457
23458 uts4*)
23459   version_type=linux
23460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23461   soname_spec='${libname}${release}${shared_ext}$major'
23462   shlibpath_var=LD_LIBRARY_PATH
23463   ;;
23464
23465 *)
23466   dynamic_linker=no
23467   ;;
23468 esac
23469 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23470 echo "${ECHO_T}$dynamic_linker" >&6; }
23471 test "$dynamic_linker" = no && can_build_shared=no
23472
23473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23474 if test "$GCC" = yes; then
23475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23476 fi
23477
23478 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23479 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23480 hardcode_action_F77=
23481 if test -n "$hardcode_libdir_flag_spec_F77" || \
23482    test -n "$runpath_var_F77" || \
23483    test "X$hardcode_automatic_F77" = "Xyes" ; then
23484
23485   # We can hardcode non-existant directories.
23486   if test "$hardcode_direct_F77" != no &&
23487      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23488      # have to relink, otherwise we might link with an installed library
23489      # when we should be linking with a yet-to-be-installed one
23490      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23491      test "$hardcode_minus_L_F77" != no; then
23492     # Linking always hardcodes the temporary library directory.
23493     hardcode_action_F77=relink
23494   else
23495     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23496     hardcode_action_F77=immediate
23497   fi
23498 else
23499   # We cannot hardcode anything, or else we can only hardcode existing
23500   # directories.
23501   hardcode_action_F77=unsupported
23502 fi
23503 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23504 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23505
23506 if test "$hardcode_action_F77" = relink; then
23507   # Fast installation is not supported
23508   enable_fast_install=no
23509 elif test "$shlibpath_overrides_runpath" = yes ||
23510      test "$enable_shared" = no; then
23511   # Fast installation is not necessary
23512   enable_fast_install=needless
23513 fi
23514
23515
23516 # The else clause should only fire when bootstrapping the
23517 # libtool distribution, otherwise you forgot to ship ltmain.sh
23518 # with your package, and you will get complaints that there are
23519 # no rules to generate ltmain.sh.
23520 if test -f "$ltmain"; then
23521   # See if we are running on zsh, and set the options which allow our commands through
23522   # without removal of \ escapes.
23523   if test -n "${ZSH_VERSION+set}" ; then
23524     setopt NO_GLOB_SUBST
23525   fi
23526   # Now quote all the things that may contain metacharacters while being
23527   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23528   # variables and quote the copies for generation of the libtool script.
23529   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23530     SED SHELL STRIP \
23531     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23532     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23533     deplibs_check_method reload_flag reload_cmds need_locks \
23534     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23535     lt_cv_sys_global_symbol_to_c_name_address \
23536     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23537     old_postinstall_cmds old_postuninstall_cmds \
23538     compiler_F77 \
23539     CC_F77 \
23540     LD_F77 \
23541     lt_prog_compiler_wl_F77 \
23542     lt_prog_compiler_pic_F77 \
23543     lt_prog_compiler_static_F77 \
23544     lt_prog_compiler_no_builtin_flag_F77 \
23545     export_dynamic_flag_spec_F77 \
23546     thread_safe_flag_spec_F77 \
23547     whole_archive_flag_spec_F77 \
23548     enable_shared_with_static_runtimes_F77 \
23549     old_archive_cmds_F77 \
23550     old_archive_from_new_cmds_F77 \
23551     predep_objects_F77 \
23552     postdep_objects_F77 \
23553     predeps_F77 \
23554     postdeps_F77 \
23555     compiler_lib_search_path_F77 \
23556     archive_cmds_F77 \
23557     archive_expsym_cmds_F77 \
23558     postinstall_cmds_F77 \
23559     postuninstall_cmds_F77 \
23560     old_archive_from_expsyms_cmds_F77 \
23561     allow_undefined_flag_F77 \
23562     no_undefined_flag_F77 \
23563     export_symbols_cmds_F77 \
23564     hardcode_libdir_flag_spec_F77 \
23565     hardcode_libdir_flag_spec_ld_F77 \
23566     hardcode_libdir_separator_F77 \
23567     hardcode_automatic_F77 \
23568     module_cmds_F77 \
23569     module_expsym_cmds_F77 \
23570     lt_cv_prog_compiler_c_o_F77 \
23571     exclude_expsyms_F77 \
23572     include_expsyms_F77; do
23573
23574     case $var in
23575     old_archive_cmds_F77 | \
23576     old_archive_from_new_cmds_F77 | \
23577     archive_cmds_F77 | \
23578     archive_expsym_cmds_F77 | \
23579     module_cmds_F77 | \
23580     module_expsym_cmds_F77 | \
23581     old_archive_from_expsyms_cmds_F77 | \
23582     export_symbols_cmds_F77 | \
23583     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23584     postinstall_cmds | postuninstall_cmds | \
23585     old_postinstall_cmds | old_postuninstall_cmds | \
23586     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23587       # Double-quote double-evaled strings.
23588       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23589       ;;
23590     *)
23591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23592       ;;
23593     esac
23594   done
23595
23596   case $lt_echo in
23597   *'\$0 --fallback-echo"')
23598     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23599     ;;
23600   esac
23601
23602 cfgfile="$ofile"
23603
23604   cat <<__EOF__ >> "$cfgfile"
23605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23606
23607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23608
23609 # Shell to use when invoking shell scripts.
23610 SHELL=$lt_SHELL
23611
23612 # Whether or not to build shared libraries.
23613 build_libtool_libs=$enable_shared
23614
23615 # Whether or not to build static libraries.
23616 build_old_libs=$enable_static
23617
23618 # Whether or not to add -lc for building shared libraries.
23619 build_libtool_need_lc=$archive_cmds_need_lc_F77
23620
23621 # Whether or not to disallow shared libs when runtime libs are static
23622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23623
23624 # Whether or not to optimize for fast installation.
23625 fast_install=$enable_fast_install
23626
23627 # The host system.
23628 host_alias=$host_alias
23629 host=$host
23630 host_os=$host_os
23631
23632 # The build system.
23633 build_alias=$build_alias
23634 build=$build
23635 build_os=$build_os
23636
23637 # An echo program that does not interpret backslashes.
23638 echo=$lt_echo
23639
23640 # The archiver.
23641 AR=$lt_AR
23642 AR_FLAGS=$lt_AR_FLAGS
23643
23644 # A C compiler.
23645 LTCC=$lt_LTCC
23646
23647 # LTCC compiler flags.
23648 LTCFLAGS=$lt_LTCFLAGS
23649
23650 # A language-specific compiler.
23651 CC=$lt_compiler_F77
23652
23653 # Is the compiler the GNU C compiler?
23654 with_gcc=$GCC_F77
23655
23656 # An ERE matcher.
23657 EGREP=$lt_EGREP
23658
23659 # The linker used to build libraries.
23660 LD=$lt_LD_F77
23661
23662 # Whether we need hard or soft links.
23663 LN_S=$lt_LN_S
23664
23665 # A BSD-compatible nm program.
23666 NM=$lt_NM
23667
23668 # A symbol stripping program
23669 STRIP=$lt_STRIP
23670
23671 # Used to examine libraries when file_magic_cmd begins "file"
23672 MAGIC_CMD=$MAGIC_CMD
23673
23674 # Used on cygwin: DLL creation program.
23675 DLLTOOL="$DLLTOOL"
23676
23677 # Used on cygwin: object dumper.
23678 OBJDUMP="$OBJDUMP"
23679
23680 # Used on cygwin: assembler.
23681 AS="$AS"
23682
23683 # The name of the directory that contains temporary libtool files.
23684 objdir=$objdir
23685
23686 # How to create reloadable object files.
23687 reload_flag=$lt_reload_flag
23688 reload_cmds=$lt_reload_cmds
23689
23690 # How to pass a linker flag through the compiler.
23691 wl=$lt_lt_prog_compiler_wl_F77
23692
23693 # Object file suffix (normally "o").
23694 objext="$ac_objext"
23695
23696 # Old archive suffix (normally "a").
23697 libext="$libext"
23698
23699 # Shared library suffix (normally ".so").
23700 shrext_cmds='$shrext_cmds'
23701
23702 # Executable file suffix (normally "").
23703 exeext="$exeext"
23704
23705 # Additional compiler flags for building library objects.
23706 pic_flag=$lt_lt_prog_compiler_pic_F77
23707 pic_mode=$pic_mode
23708
23709 # What is the maximum length of a command?
23710 max_cmd_len=$lt_cv_sys_max_cmd_len
23711
23712 # Does compiler simultaneously support -c and -o options?
23713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23714
23715 # Must we lock files when doing compilation?
23716 need_locks=$lt_need_locks
23717
23718 # Do we need the lib prefix for modules?
23719 need_lib_prefix=$need_lib_prefix
23720
23721 # Do we need a version for libraries?
23722 need_version=$need_version
23723
23724 # Whether dlopen is supported.
23725 dlopen_support=$enable_dlopen
23726
23727 # Whether dlopen of programs is supported.
23728 dlopen_self=$enable_dlopen_self
23729
23730 # Whether dlopen of statically linked programs is supported.
23731 dlopen_self_static=$enable_dlopen_self_static
23732
23733 # Compiler flag to prevent dynamic linking.
23734 link_static_flag=$lt_lt_prog_compiler_static_F77
23735
23736 # Compiler flag to turn off builtin functions.
23737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23738
23739 # Compiler flag to allow reflexive dlopens.
23740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23741
23742 # Compiler flag to generate shared objects directly from archives.
23743 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23744
23745 # Compiler flag to generate thread-safe objects.
23746 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23747
23748 # Library versioning type.
23749 version_type=$version_type
23750
23751 # Format of library name prefix.
23752 libname_spec=$lt_libname_spec
23753
23754 # List of archive names.  First name is the real one, the rest are links.
23755 # The last name is the one that the linker finds with -lNAME.
23756 library_names_spec=$lt_library_names_spec
23757
23758 # The coded name of the library, if different from the real name.
23759 soname_spec=$lt_soname_spec
23760
23761 # Commands used to build and install an old-style archive.
23762 RANLIB=$lt_RANLIB
23763 old_archive_cmds=$lt_old_archive_cmds_F77
23764 old_postinstall_cmds=$lt_old_postinstall_cmds
23765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23766
23767 # Create an old-style archive from a shared archive.
23768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23769
23770 # Create a temporary old-style archive to link instead of a shared archive.
23771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23772
23773 # Commands used to build and install a shared archive.
23774 archive_cmds=$lt_archive_cmds_F77
23775 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23776 postinstall_cmds=$lt_postinstall_cmds
23777 postuninstall_cmds=$lt_postuninstall_cmds
23778
23779 # Commands used to build a loadable module (assumed same as above if empty)
23780 module_cmds=$lt_module_cmds_F77
23781 module_expsym_cmds=$lt_module_expsym_cmds_F77
23782
23783 # Commands to strip libraries.
23784 old_striplib=$lt_old_striplib
23785 striplib=$lt_striplib
23786
23787 # Dependencies to place before the objects being linked to create a
23788 # shared library.
23789 predep_objects=$lt_predep_objects_F77
23790
23791 # Dependencies to place after the objects being linked to create a
23792 # shared library.
23793 postdep_objects=$lt_postdep_objects_F77
23794
23795 # Dependencies to place before the objects being linked to create a
23796 # shared library.
23797 predeps=$lt_predeps_F77
23798
23799 # Dependencies to place after the objects being linked to create a
23800 # shared library.
23801 postdeps=$lt_postdeps_F77
23802
23803 # The library search path used internally by the compiler when linking
23804 # a shared library.
23805 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23806
23807 # Method to check whether dependent libraries are shared objects.
23808 deplibs_check_method=$lt_deplibs_check_method
23809
23810 # Command to use when deplibs_check_method == file_magic.
23811 file_magic_cmd=$lt_file_magic_cmd
23812
23813 # Flag that allows shared libraries with undefined symbols to be built.
23814 allow_undefined_flag=$lt_allow_undefined_flag_F77
23815
23816 # Flag that forces no undefined symbols.
23817 no_undefined_flag=$lt_no_undefined_flag_F77
23818
23819 # Commands used to finish a libtool library installation in a directory.
23820 finish_cmds=$lt_finish_cmds
23821
23822 # Same as above, but a single script fragment to be evaled but not shown.
23823 finish_eval=$lt_finish_eval
23824
23825 # Take the output of nm and produce a listing of raw symbols and C names.
23826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23827
23828 # Transform the output of nm in a proper C declaration
23829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23830
23831 # Transform the output of nm in a C name address pair
23832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23833
23834 # This is the shared library runtime path variable.
23835 runpath_var=$runpath_var
23836
23837 # This is the shared library path variable.
23838 shlibpath_var=$shlibpath_var
23839
23840 # Is shlibpath searched before the hard-coded library search path?
23841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23842
23843 # How to hardcode a shared library path into an executable.
23844 hardcode_action=$hardcode_action_F77
23845
23846 # Whether we should hardcode library paths into libraries.
23847 hardcode_into_libs=$hardcode_into_libs
23848
23849 # Flag to hardcode \$libdir into a binary during linking.
23850 # This must work even if \$libdir does not exist.
23851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23852
23853 # If ld is used when linking, flag to hardcode \$libdir into
23854 # a binary during linking. This must work even if \$libdir does
23855 # not exist.
23856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23857
23858 # Whether we need a single -rpath flag with a separated argument.
23859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23860
23861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23862 # resulting binary.
23863 hardcode_direct=$hardcode_direct_F77
23864
23865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23866 # resulting binary.
23867 hardcode_minus_L=$hardcode_minus_L_F77
23868
23869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23870 # the resulting binary.
23871 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23872
23873 # Set to yes if building a shared library automatically hardcodes DIR into the library
23874 # and all subsequent libraries and executables linked against it.
23875 hardcode_automatic=$hardcode_automatic_F77
23876
23877 # Variables whose values should be saved in libtool wrapper scripts and
23878 # restored at relink time.
23879 variables_saved_for_relink="$variables_saved_for_relink"
23880
23881 # Whether libtool must link a program against all its dependency libraries.
23882 link_all_deplibs=$link_all_deplibs_F77
23883
23884 # Compile-time system search path for libraries
23885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23886
23887 # Run-time system search path for libraries
23888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23889
23890 # Fix the shell variable \$srcfile for the compiler.
23891 fix_srcfile_path="$fix_srcfile_path_F77"
23892
23893 # Set to yes if exported symbols are required.
23894 always_export_symbols=$always_export_symbols_F77
23895
23896 # The commands to list exported symbols.
23897 export_symbols_cmds=$lt_export_symbols_cmds_F77
23898
23899 # The commands to extract the exported symbol list from a shared archive.
23900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23901
23902 # Symbols that should not be listed in the preloaded symbols.
23903 exclude_expsyms=$lt_exclude_expsyms_F77
23904
23905 # Symbols that must always be exported.
23906 include_expsyms=$lt_include_expsyms_F77
23907
23908 # ### END LIBTOOL TAG CONFIG: $tagname
23909
23910 __EOF__
23911
23912
23913 else
23914   # If there is no Makefile yet, we rely on a make rule to execute
23915   # `config.status --recheck' to rerun these tests and create the
23916   # libtool script then.
23917   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23918   if test -f "$ltmain_in"; then
23919     test -f Makefile && make "$ltmain"
23920   fi
23921 fi
23922
23923
23924 ac_ext=c
23925 ac_cpp='$CPP $CPPFLAGS'
23926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23929
23930 CC="$lt_save_CC"
23931
23932         else
23933           tagname=""
23934         fi
23935         ;;
23936
23937       GCJ)
23938         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23939           ac_ext=c
23940 ac_cpp='$CPP $CPPFLAGS'
23941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23944
23945
23946 # Source file extension for Java test sources.
23947 ac_ext=java
23948
23949 # Object file extension for compiled Java test sources.
23950 objext=o
23951 objext_GCJ=$objext
23952
23953 # Code to be used in simple compile tests
23954 lt_simple_compile_test_code="class foo {}\n"
23955
23956 # Code to be used in simple link tests
23957 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23958
23959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23960
23961 # If no C compiler was specified, use CC.
23962 LTCC=${LTCC-"$CC"}
23963
23964 # If no C compiler flags were specified, use CFLAGS.
23965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23966
23967 # Allow CC to be a program name with arguments.
23968 compiler=$CC
23969
23970
23971 # save warnings/boilerplate of simple test code
23972 ac_outfile=conftest.$ac_objext
23973 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23974 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23975 _lt_compiler_boilerplate=`cat conftest.err`
23976 $rm conftest*
23977
23978 ac_outfile=conftest.$ac_objext
23979 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23980 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23981 _lt_linker_boilerplate=`cat conftest.err`
23982 $rm conftest*
23983
23984
23985 # Allow CC to be a program name with arguments.
23986 lt_save_CC="$CC"
23987 CC=${GCJ-"gcj"}
23988 compiler=$CC
23989 compiler_GCJ=$CC
23990 for cc_temp in $compiler""; do
23991   case $cc_temp in
23992     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23993     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23994     \-*) ;;
23995     *) break;;
23996   esac
23997 done
23998 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23999
24000
24001 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24002 archive_cmds_need_lc_GCJ=no
24003
24004 old_archive_cmds_GCJ=$old_archive_cmds
24005
24006
24007 lt_prog_compiler_no_builtin_flag_GCJ=
24008
24009 if test "$GCC" = yes; then
24010   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24011
24012
24013 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24014 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24015 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24016   echo $ECHO_N "(cached) $ECHO_C" >&6
24017 else
24018   lt_cv_prog_compiler_rtti_exceptions=no
24019   ac_outfile=conftest.$ac_objext
24020    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24021    lt_compiler_flag="-fno-rtti -fno-exceptions"
24022    # Insert the option either (1) after the last *FLAGS variable, or
24023    # (2) before a word containing "conftest.", or (3) at the end.
24024    # Note that $ac_compile itself does not contain backslashes and begins
24025    # with a dollar sign (not a hyphen), so the echo should work correctly.
24026    # The option is referenced via a variable to avoid confusing sed.
24027    lt_compile=`echo "$ac_compile" | $SED \
24028    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24030    -e 's:$: $lt_compiler_flag:'`
24031    (eval echo "\"\$as_me:24031: $lt_compile\"" >&5)
24032    (eval "$lt_compile" 2>conftest.err)
24033    ac_status=$?
24034    cat conftest.err >&5
24035    echo "$as_me:24035: \$? = $ac_status" >&5
24036    if (exit $ac_status) && test -s "$ac_outfile"; then
24037      # The compiler can only warn and ignore the option if not recognized
24038      # So say no if there are warnings other than the usual output.
24039      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24040      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24041      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24042        lt_cv_prog_compiler_rtti_exceptions=yes
24043      fi
24044    fi
24045    $rm conftest*
24046
24047 fi
24048 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24049 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24050
24051 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24052     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24053 else
24054     :
24055 fi
24056
24057 fi
24058
24059 lt_prog_compiler_wl_GCJ=
24060 lt_prog_compiler_pic_GCJ=
24061 lt_prog_compiler_static_GCJ=
24062
24063 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24064 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24065
24066   if test "$GCC" = yes; then
24067     lt_prog_compiler_wl_GCJ='-Wl,'
24068     lt_prog_compiler_static_GCJ='-static'
24069
24070     case $host_os in
24071       aix*)
24072       # All AIX code is PIC.
24073       if test "$host_cpu" = ia64; then
24074         # AIX 5 now supports IA64 processor
24075         lt_prog_compiler_static_GCJ='-Bstatic'
24076       fi
24077       ;;
24078
24079     amigaos*)
24080       # FIXME: we need at least 68020 code to build shared libraries, but
24081       # adding the `-m68020' flag to GCC prevents building anything better,
24082       # like `-m68040'.
24083       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24084       ;;
24085
24086     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24087       # PIC is the default for these OSes.
24088       ;;
24089
24090     mingw* | pw32* | os2*)
24091       # This hack is so that the source file can tell whether it is being
24092       # built for inclusion in a dll (and should export symbols for example).
24093       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24094       ;;
24095
24096     darwin* | rhapsody*)
24097       # PIC is the default on this platform
24098       # Common symbols not allowed in MH_DYLIB files
24099       lt_prog_compiler_pic_GCJ='-fno-common'
24100       ;;
24101
24102     interix3*)
24103       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24104       # Instead, we relocate shared libraries at runtime.
24105       ;;
24106
24107     msdosdjgpp*)
24108       # Just because we use GCC doesn't mean we suddenly get shared libraries
24109       # on systems that don't support them.
24110       lt_prog_compiler_can_build_shared_GCJ=no
24111       enable_shared=no
24112       ;;
24113
24114     sysv4*MP*)
24115       if test -d /usr/nec; then
24116         lt_prog_compiler_pic_GCJ=-Kconform_pic
24117       fi
24118       ;;
24119
24120     hpux*)
24121       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24122       # not for PA HP-UX.
24123       case $host_cpu in
24124       hppa*64*|ia64*)
24125         # +Z the default
24126         ;;
24127       *)
24128         lt_prog_compiler_pic_GCJ='-fPIC'
24129         ;;
24130       esac
24131       ;;
24132
24133     *)
24134       lt_prog_compiler_pic_GCJ='-fPIC'
24135       ;;
24136     esac
24137   else
24138     # PORTME Check for flag to pass linker flags through the system compiler.
24139     case $host_os in
24140     aix*)
24141       lt_prog_compiler_wl_GCJ='-Wl,'
24142       if test "$host_cpu" = ia64; then
24143         # AIX 5 now supports IA64 processor
24144         lt_prog_compiler_static_GCJ='-Bstatic'
24145       else
24146         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24147       fi
24148       ;;
24149       darwin*)
24150         # PIC is the default on this platform
24151         # Common symbols not allowed in MH_DYLIB files
24152        case $cc_basename in
24153          xlc*)
24154          lt_prog_compiler_pic_GCJ='-qnocommon'
24155          lt_prog_compiler_wl_GCJ='-Wl,'
24156          ;;
24157        esac
24158        ;;
24159
24160     mingw* | pw32* | os2*)
24161       # This hack is so that the source file can tell whether it is being
24162       # built for inclusion in a dll (and should export symbols for example).
24163       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24164       ;;
24165
24166     hpux9* | hpux10* | hpux11*)
24167       lt_prog_compiler_wl_GCJ='-Wl,'
24168       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24169       # not for PA HP-UX.
24170       case $host_cpu in
24171       hppa*64*|ia64*)
24172         # +Z the default
24173         ;;
24174       *)
24175         lt_prog_compiler_pic_GCJ='+Z'
24176         ;;
24177       esac
24178       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24179       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24180       ;;
24181
24182     irix5* | irix6* | nonstopux*)
24183       lt_prog_compiler_wl_GCJ='-Wl,'
24184       # PIC (with -KPIC) is the default.
24185       lt_prog_compiler_static_GCJ='-non_shared'
24186       ;;
24187
24188     newsos6)
24189       lt_prog_compiler_pic_GCJ='-KPIC'
24190       lt_prog_compiler_static_GCJ='-Bstatic'
24191       ;;
24192
24193     linux*)
24194       case $cc_basename in
24195       icc* | ecc*)
24196         lt_prog_compiler_wl_GCJ='-Wl,'
24197         lt_prog_compiler_pic_GCJ='-KPIC'
24198         lt_prog_compiler_static_GCJ='-static'
24199         ;;
24200       pgcc* | pgf77* | pgf90* | pgf95*)
24201         # Portland Group compilers (*not* the Pentium gcc compiler,
24202         # which looks to be a dead project)
24203         lt_prog_compiler_wl_GCJ='-Wl,'
24204         lt_prog_compiler_pic_GCJ='-fpic'
24205         lt_prog_compiler_static_GCJ='-Bstatic'
24206         ;;
24207       ccc*)
24208         lt_prog_compiler_wl_GCJ='-Wl,'
24209         # All Alpha code is PIC.
24210         lt_prog_compiler_static_GCJ='-non_shared'
24211         ;;
24212       esac
24213       ;;
24214
24215     osf3* | osf4* | osf5*)
24216       lt_prog_compiler_wl_GCJ='-Wl,'
24217       # All OSF/1 code is PIC.
24218       lt_prog_compiler_static_GCJ='-non_shared'
24219       ;;
24220
24221     solaris*)
24222       lt_prog_compiler_pic_GCJ='-KPIC'
24223       lt_prog_compiler_static_GCJ='-Bstatic'
24224       case $cc_basename in
24225       f77* | f90* | f95*)
24226         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24227       *)
24228         lt_prog_compiler_wl_GCJ='-Wl,';;
24229       esac
24230       ;;
24231
24232     sunos4*)
24233       lt_prog_compiler_wl_GCJ='-Qoption ld '
24234       lt_prog_compiler_pic_GCJ='-PIC'
24235       lt_prog_compiler_static_GCJ='-Bstatic'
24236       ;;
24237
24238     sysv4 | sysv4.2uw2* | sysv4.3*)
24239       lt_prog_compiler_wl_GCJ='-Wl,'
24240       lt_prog_compiler_pic_GCJ='-KPIC'
24241       lt_prog_compiler_static_GCJ='-Bstatic'
24242       ;;
24243
24244     sysv4*MP*)
24245       if test -d /usr/nec ;then
24246         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24247         lt_prog_compiler_static_GCJ='-Bstatic'
24248       fi
24249       ;;
24250
24251     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24252       lt_prog_compiler_wl_GCJ='-Wl,'
24253       lt_prog_compiler_pic_GCJ='-KPIC'
24254       lt_prog_compiler_static_GCJ='-Bstatic'
24255       ;;
24256
24257     unicos*)
24258       lt_prog_compiler_wl_GCJ='-Wl,'
24259       lt_prog_compiler_can_build_shared_GCJ=no
24260       ;;
24261
24262     uts4*)
24263       lt_prog_compiler_pic_GCJ='-pic'
24264       lt_prog_compiler_static_GCJ='-Bstatic'
24265       ;;
24266
24267     *)
24268       lt_prog_compiler_can_build_shared_GCJ=no
24269       ;;
24270     esac
24271   fi
24272
24273 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24274 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24275
24276 #
24277 # Check to make sure the PIC flag actually works.
24278 #
24279 if test -n "$lt_prog_compiler_pic_GCJ"; then
24280
24281 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24282 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24283 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24284   echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286   lt_prog_compiler_pic_works_GCJ=no
24287   ac_outfile=conftest.$ac_objext
24288    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24289    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24290    # Insert the option either (1) after the last *FLAGS variable, or
24291    # (2) before a word containing "conftest.", or (3) at the end.
24292    # Note that $ac_compile itself does not contain backslashes and begins
24293    # with a dollar sign (not a hyphen), so the echo should work correctly.
24294    # The option is referenced via a variable to avoid confusing sed.
24295    lt_compile=`echo "$ac_compile" | $SED \
24296    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24298    -e 's:$: $lt_compiler_flag:'`
24299    (eval echo "\"\$as_me:24299: $lt_compile\"" >&5)
24300    (eval "$lt_compile" 2>conftest.err)
24301    ac_status=$?
24302    cat conftest.err >&5
24303    echo "$as_me:24303: \$? = $ac_status" >&5
24304    if (exit $ac_status) && test -s "$ac_outfile"; then
24305      # The compiler can only warn and ignore the option if not recognized
24306      # So say no if there are warnings other than the usual output.
24307      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24308      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24309      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24310        lt_prog_compiler_pic_works_GCJ=yes
24311      fi
24312    fi
24313    $rm conftest*
24314
24315 fi
24316 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24317 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24318
24319 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24320     case $lt_prog_compiler_pic_GCJ in
24321      "" | " "*) ;;
24322      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24323      esac
24324 else
24325     lt_prog_compiler_pic_GCJ=
24326      lt_prog_compiler_can_build_shared_GCJ=no
24327 fi
24328
24329 fi
24330 case $host_os in
24331   # For platforms which do not support PIC, -DPIC is meaningless:
24332   *djgpp*)
24333     lt_prog_compiler_pic_GCJ=
24334     ;;
24335   *)
24336     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24337     ;;
24338 esac
24339
24340 #
24341 # Check to make sure the static flag actually works.
24342 #
24343 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24344 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24345 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24346 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24347   echo $ECHO_N "(cached) $ECHO_C" >&6
24348 else
24349   lt_prog_compiler_static_works_GCJ=no
24350    save_LDFLAGS="$LDFLAGS"
24351    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24352    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24353    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24354      # The linker can only warn and ignore the option if not recognized
24355      # So say no if there are warnings
24356      if test -s conftest.err; then
24357        # Append any errors to the config.log.
24358        cat conftest.err 1>&5
24359        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24360        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24361        if diff conftest.exp conftest.er2 >/dev/null; then
24362          lt_prog_compiler_static_works_GCJ=yes
24363        fi
24364      else
24365        lt_prog_compiler_static_works_GCJ=yes
24366      fi
24367    fi
24368    $rm conftest*
24369    LDFLAGS="$save_LDFLAGS"
24370
24371 fi
24372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24373 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24374
24375 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24376     :
24377 else
24378     lt_prog_compiler_static_GCJ=
24379 fi
24380
24381
24382 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24383 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24384 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24385   echo $ECHO_N "(cached) $ECHO_C" >&6
24386 else
24387   lt_cv_prog_compiler_c_o_GCJ=no
24388    $rm -r conftest 2>/dev/null
24389    mkdir conftest
24390    cd conftest
24391    mkdir out
24392    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24393
24394    lt_compiler_flag="-o out/conftest2.$ac_objext"
24395    # Insert the option either (1) after the last *FLAGS variable, or
24396    # (2) before a word containing "conftest.", or (3) at the end.
24397    # Note that $ac_compile itself does not contain backslashes and begins
24398    # with a dollar sign (not a hyphen), so the echo should work correctly.
24399    lt_compile=`echo "$ac_compile" | $SED \
24400    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24402    -e 's:$: $lt_compiler_flag:'`
24403    (eval echo "\"\$as_me:24403: $lt_compile\"" >&5)
24404    (eval "$lt_compile" 2>out/conftest.err)
24405    ac_status=$?
24406    cat out/conftest.err >&5
24407    echo "$as_me:24407: \$? = $ac_status" >&5
24408    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24409    then
24410      # The compiler can only warn and ignore the option if not recognized
24411      # So say no if there are warnings
24412      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24413      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24414      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24415        lt_cv_prog_compiler_c_o_GCJ=yes
24416      fi
24417    fi
24418    chmod u+w . 2>&5
24419    $rm conftest*
24420    # SGI C++ compiler will create directory out/ii_files/ for
24421    # template instantiation
24422    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24423    $rm out/* && rmdir out
24424    cd ..
24425    rmdir conftest
24426    $rm conftest*
24427
24428 fi
24429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24430 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24431
24432
24433 hard_links="nottested"
24434 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24435   # do not overwrite the value of need_locks provided by the user
24436   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24437 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24438   hard_links=yes
24439   $rm conftest*
24440   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24441   touch conftest.a
24442   ln conftest.a conftest.b 2>&5 || hard_links=no
24443   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24444   { echo "$as_me:$LINENO: result: $hard_links" >&5
24445 echo "${ECHO_T}$hard_links" >&6; }
24446   if test "$hard_links" = no; then
24447     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24448 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24449     need_locks=warn
24450   fi
24451 else
24452   need_locks=no
24453 fi
24454
24455 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24456 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24457
24458   runpath_var=
24459   allow_undefined_flag_GCJ=
24460   enable_shared_with_static_runtimes_GCJ=no
24461   archive_cmds_GCJ=
24462   archive_expsym_cmds_GCJ=
24463   old_archive_From_new_cmds_GCJ=
24464   old_archive_from_expsyms_cmds_GCJ=
24465   export_dynamic_flag_spec_GCJ=
24466   whole_archive_flag_spec_GCJ=
24467   thread_safe_flag_spec_GCJ=
24468   hardcode_libdir_flag_spec_GCJ=
24469   hardcode_libdir_flag_spec_ld_GCJ=
24470   hardcode_libdir_separator_GCJ=
24471   hardcode_direct_GCJ=no
24472   hardcode_minus_L_GCJ=no
24473   hardcode_shlibpath_var_GCJ=unsupported
24474   link_all_deplibs_GCJ=unknown
24475   hardcode_automatic_GCJ=no
24476   module_cmds_GCJ=
24477   module_expsym_cmds_GCJ=
24478   always_export_symbols_GCJ=no
24479   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24480   # include_expsyms should be a list of space-separated symbols to be *always*
24481   # included in the symbol list
24482   include_expsyms_GCJ=
24483   # exclude_expsyms can be an extended regexp of symbols to exclude
24484   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24485   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24486   # as well as any symbol that contains `d'.
24487   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24488   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24489   # platforms (ab)use it in PIC code, but their linkers get confused if
24490   # the symbol is explicitly referenced.  Since portable code cannot
24491   # rely on this symbol name, it's probably fine to never include it in
24492   # preloaded symbol tables.
24493   extract_expsyms_cmds=
24494   # Just being paranoid about ensuring that cc_basename is set.
24495   for cc_temp in $compiler""; do
24496   case $cc_temp in
24497     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24498     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24499     \-*) ;;
24500     *) break;;
24501   esac
24502 done
24503 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24504
24505   case $host_os in
24506   cygwin* | mingw* | pw32*)
24507     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24508     # When not using gcc, we currently assume that we are using
24509     # Microsoft Visual C++.
24510     if test "$GCC" != yes; then
24511       with_gnu_ld=no
24512     fi
24513     ;;
24514   interix*)
24515     # we just hope/assume this is gcc and not c89 (= MSVC++)
24516     with_gnu_ld=yes
24517     ;;
24518   openbsd*)
24519     with_gnu_ld=no
24520     ;;
24521   esac
24522
24523   ld_shlibs_GCJ=yes
24524   if test "$with_gnu_ld" = yes; then
24525     # If archive_cmds runs LD, not CC, wlarc should be empty
24526     wlarc='${wl}'
24527
24528     # Set some defaults for GNU ld with shared library support. These
24529     # are reset later if shared libraries are not supported. Putting them
24530     # here allows them to be overridden if necessary.
24531     runpath_var=LD_RUN_PATH
24532     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24533     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24534     # ancient GNU ld didn't support --whole-archive et. al.
24535     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24536         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24537       else
24538         whole_archive_flag_spec_GCJ=
24539     fi
24540     supports_anon_versioning=no
24541     case `$LD -v 2>/dev/null` in
24542       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24543       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24544       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24545       *\ 2.11.*) ;; # other 2.11 versions
24546       *) supports_anon_versioning=yes ;;
24547     esac
24548
24549     # See if GNU ld supports shared libraries.
24550     case $host_os in
24551     aix3* | aix4* | aix5*)
24552       # On AIX/PPC, the GNU linker is very broken
24553       if test "$host_cpu" != ia64; then
24554         ld_shlibs_GCJ=no
24555         cat <<EOF 1>&2
24556
24557 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24558 *** to be unable to reliably create shared libraries on AIX.
24559 *** Therefore, libtool is disabling shared libraries support.  If you
24560 *** really care for shared libraries, you may want to modify your PATH
24561 *** so that a non-GNU linker is found, and then restart.
24562
24563 EOF
24564       fi
24565       ;;
24566
24567     amigaos*)
24568       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)'
24569       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24570       hardcode_minus_L_GCJ=yes
24571
24572       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24573       # that the semantics of dynamic libraries on AmigaOS, at least up
24574       # to version 4, is to share data among multiple programs linked
24575       # with the same dynamic library.  Since this doesn't match the
24576       # behavior of shared libraries on other platforms, we can't use
24577       # them.
24578       ld_shlibs_GCJ=no
24579       ;;
24580
24581     beos*)
24582       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24583         allow_undefined_flag_GCJ=unsupported
24584         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24585         # support --undefined.  This deserves some investigation.  FIXME
24586         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24587       else
24588         ld_shlibs_GCJ=no
24589       fi
24590       ;;
24591
24592     cygwin* | mingw* | pw32*)
24593       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24594       # as there is no search path for DLLs.
24595       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24596       allow_undefined_flag_GCJ=unsupported
24597       always_export_symbols_GCJ=no
24598       enable_shared_with_static_runtimes_GCJ=yes
24599       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24600
24601       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24602         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24603         # If the export-symbols file already is a .def file (1st line
24604         # is EXPORTS), use it as is; otherwise, prepend...
24605         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24606           cp $export_symbols $output_objdir/$soname.def;
24607         else
24608           echo EXPORTS > $output_objdir/$soname.def;
24609           cat $export_symbols >> $output_objdir/$soname.def;
24610         fi~
24611         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24612       else
24613         ld_shlibs_GCJ=no
24614       fi
24615       ;;
24616
24617     interix3*)
24618       hardcode_direct_GCJ=no
24619       hardcode_shlibpath_var_GCJ=no
24620       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24621       export_dynamic_flag_spec_GCJ='${wl}-E'
24622       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24623       # Instead, shared libraries are loaded at an image base (0x10000000 by
24624       # default) and relocated if they conflict, which is a slow very memory
24625       # consuming and fragmenting process.  To avoid this, we pick a random,
24626       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24627       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24628       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'
24629       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'
24630       ;;
24631
24632     linux*)
24633       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24634         tmp_addflag=
24635         case $cc_basename,$host_cpu in
24636         pgcc*)                          # Portland Group C compiler
24637           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'
24638           tmp_addflag=' $pic_flag'
24639           ;;
24640         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24641           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'
24642           tmp_addflag=' $pic_flag -Mnomain' ;;
24643         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24644           tmp_addflag=' -i_dynamic' ;;
24645         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24646           tmp_addflag=' -i_dynamic -nofor_main' ;;
24647         ifc* | ifort*)                  # Intel Fortran compiler
24648           tmp_addflag=' -nofor_main' ;;
24649         esac
24650         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24651
24652         if test $supports_anon_versioning = yes; then
24653           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24654   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24655   $echo "local: *; };" >> $output_objdir/$libname.ver~
24656           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24657         fi
24658       else
24659         ld_shlibs_GCJ=no
24660       fi
24661       ;;
24662
24663     netbsd*)
24664       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24665         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24666         wlarc=
24667       else
24668         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24669         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24670       fi
24671       ;;
24672
24673     solaris*)
24674       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24675         ld_shlibs_GCJ=no
24676         cat <<EOF 1>&2
24677
24678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24679 *** create shared libraries on Solaris systems.  Therefore, libtool
24680 *** is disabling shared libraries support.  We urge you to upgrade GNU
24681 *** binutils to release 2.9.1 or newer.  Another option is to modify
24682 *** your PATH or compiler configuration so that the native linker is
24683 *** used, and then restart.
24684
24685 EOF
24686       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24687         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24688         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24689       else
24690         ld_shlibs_GCJ=no
24691       fi
24692       ;;
24693
24694     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24695       case `$LD -v 2>&1` in
24696         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24697         ld_shlibs_GCJ=no
24698         cat <<_LT_EOF 1>&2
24699
24700 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24701 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24702 *** is disabling shared libraries support.  We urge you to upgrade GNU
24703 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24704 *** your PATH or compiler configuration so that the native linker is
24705 *** used, and then restart.
24706
24707 _LT_EOF
24708         ;;
24709         *)
24710           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24711             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24712             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24713             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24714           else
24715             ld_shlibs_GCJ=no
24716           fi
24717         ;;
24718       esac
24719       ;;
24720
24721     sunos4*)
24722       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24723       wlarc=
24724       hardcode_direct_GCJ=yes
24725       hardcode_shlibpath_var_GCJ=no
24726       ;;
24727
24728     *)
24729       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24730         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24731         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24732       else
24733         ld_shlibs_GCJ=no
24734       fi
24735       ;;
24736     esac
24737
24738     if test "$ld_shlibs_GCJ" = no; then
24739       runpath_var=
24740       hardcode_libdir_flag_spec_GCJ=
24741       export_dynamic_flag_spec_GCJ=
24742       whole_archive_flag_spec_GCJ=
24743     fi
24744   else
24745     # PORTME fill in a description of your system's linker (not GNU ld)
24746     case $host_os in
24747     aix3*)
24748       allow_undefined_flag_GCJ=unsupported
24749       always_export_symbols_GCJ=yes
24750       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'
24751       # Note: this linker hardcodes the directories in LIBPATH if there
24752       # are no directories specified by -L.
24753       hardcode_minus_L_GCJ=yes
24754       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24755         # Neither direct hardcoding nor static linking is supported with a
24756         # broken collect2.
24757         hardcode_direct_GCJ=unsupported
24758       fi
24759       ;;
24760
24761     aix4* | aix5*)
24762       if test "$host_cpu" = ia64; then
24763         # On IA64, the linker does run time linking by default, so we don't
24764         # have to do anything special.
24765         aix_use_runtimelinking=no
24766         exp_sym_flag='-Bexport'
24767         no_entry_flag=""
24768       else
24769         # If we're using GNU nm, then we don't want the "-C" option.
24770         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24771         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24772           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'
24773         else
24774           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'
24775         fi
24776         aix_use_runtimelinking=no
24777
24778         # Test if we are trying to use run time linking or normal
24779         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24780         # need to do runtime linking.
24781         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24782           for ld_flag in $LDFLAGS; do
24783           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24784             aix_use_runtimelinking=yes
24785             break
24786           fi
24787           done
24788           ;;
24789         esac
24790
24791         exp_sym_flag='-bexport'
24792         no_entry_flag='-bnoentry'
24793       fi
24794
24795       # When large executables or shared objects are built, AIX ld can
24796       # have problems creating the table of contents.  If linking a library
24797       # or program results in "error TOC overflow" add -mminimal-toc to
24798       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24799       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24800
24801       archive_cmds_GCJ=''
24802       hardcode_direct_GCJ=yes
24803       hardcode_libdir_separator_GCJ=':'
24804       link_all_deplibs_GCJ=yes
24805
24806       if test "$GCC" = yes; then
24807         case $host_os in aix4.[012]|aix4.[012].*)
24808         # We only want to do this on AIX 4.2 and lower, the check
24809         # below for broken collect2 doesn't work under 4.3+
24810           collect2name=`${CC} -print-prog-name=collect2`
24811           if test -f "$collect2name" && \
24812            strings "$collect2name" | grep resolve_lib_name >/dev/null
24813           then
24814           # We have reworked collect2
24815           hardcode_direct_GCJ=yes
24816           else
24817           # We have old collect2
24818           hardcode_direct_GCJ=unsupported
24819           # It fails to find uninstalled libraries when the uninstalled
24820           # path is not listed in the libpath.  Setting hardcode_minus_L
24821           # to unsupported forces relinking
24822           hardcode_minus_L_GCJ=yes
24823           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24824           hardcode_libdir_separator_GCJ=
24825           fi
24826           ;;
24827         esac
24828         shared_flag='-shared'
24829         if test "$aix_use_runtimelinking" = yes; then
24830           shared_flag="$shared_flag "'${wl}-G'
24831         fi
24832       else
24833         # not using gcc
24834         if test "$host_cpu" = ia64; then
24835         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24836         # chokes on -Wl,-G. The following line is correct:
24837           shared_flag='-G'
24838         else
24839           if test "$aix_use_runtimelinking" = yes; then
24840             shared_flag='${wl}-G'
24841           else
24842             shared_flag='${wl}-bM:SRE'
24843           fi
24844         fi
24845       fi
24846
24847       # It seems that -bexpall does not export symbols beginning with
24848       # underscore (_), so it is better to generate a list of symbols to export.
24849       always_export_symbols_GCJ=yes
24850       if test "$aix_use_runtimelinking" = yes; then
24851         # Warning - without using the other runtime loading flags (-brtl),
24852         # -berok will link without error, but may produce a broken library.
24853         allow_undefined_flag_GCJ='-berok'
24854        # Determine the default libpath from the value encoded in an empty executable.
24855        cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h.  */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h.  */
24861
24862 int
24863 main ()
24864 {
24865
24866   ;
24867   return 0;
24868 }
24869 _ACEOF
24870 rm -f conftest.$ac_objext conftest$ac_exeext
24871 if { (ac_try="$ac_link"
24872 case "(($ac_try" in
24873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874   *) ac_try_echo=$ac_try;;
24875 esac
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877   (eval "$ac_link") 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } &&
24884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24885   { (case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_try") 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); }; } &&
24894          { ac_try='test -s conftest$ac_exeext'
24895   { (case "(($ac_try" in
24896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897   *) ac_try_echo=$ac_try;;
24898 esac
24899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900   (eval "$ac_try") 2>&5
24901   ac_status=$?
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); }; }; then
24904
24905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24906 }'`
24907 # Check for a 64-bit object if we didn't find anything.
24908 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; }
24909 }'`; fi
24910 else
24911   echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24913
24914
24915 fi
24916
24917 rm -f core conftest.err conftest.$ac_objext \
24918       conftest$ac_exeext conftest.$ac_ext
24919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24920
24921        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24922         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"
24923        else
24924         if test "$host_cpu" = ia64; then
24925           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24926           allow_undefined_flag_GCJ="-z nodefs"
24927           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"
24928         else
24929          # Determine the default libpath from the value encoded in an empty executable.
24930          cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h.  */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h.  */
24936
24937 int
24938 main ()
24939 {
24940
24941   ;
24942   return 0;
24943 }
24944 _ACEOF
24945 rm -f conftest.$ac_objext conftest$ac_exeext
24946 if { (ac_try="$ac_link"
24947 case "(($ac_try" in
24948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949   *) ac_try_echo=$ac_try;;
24950 esac
24951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952   (eval "$ac_link") 2>conftest.er1
24953   ac_status=$?
24954   grep -v '^ *+' conftest.er1 >conftest.err
24955   rm -f conftest.er1
24956   cat conftest.err >&5
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); } &&
24959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24960   { (case "(($ac_try" in
24961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962   *) ac_try_echo=$ac_try;;
24963 esac
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965   (eval "$ac_try") 2>&5
24966   ac_status=$?
24967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968   (exit $ac_status); }; } &&
24969          { ac_try='test -s conftest$ac_exeext'
24970   { (case "(($ac_try" in
24971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972   *) ac_try_echo=$ac_try;;
24973 esac
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975   (eval "$ac_try") 2>&5
24976   ac_status=$?
24977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); }; }; then
24979
24980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24981 }'`
24982 # Check for a 64-bit object if we didn't find anything.
24983 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; }
24984 }'`; fi
24985 else
24986   echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989
24990 fi
24991
24992 rm -f core conftest.err conftest.$ac_objext \
24993       conftest$ac_exeext conftest.$ac_ext
24994 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24995
24996          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24997           # Warning - without using the other run time loading flags,
24998           # -berok will link without error, but may produce a broken library.
24999           no_undefined_flag_GCJ=' ${wl}-bernotok'
25000           allow_undefined_flag_GCJ=' ${wl}-berok'
25001           # Exported symbols can be pulled into shared objects from archives
25002           whole_archive_flag_spec_GCJ='$convenience'
25003           archive_cmds_need_lc_GCJ=yes
25004           # This is similar to how AIX traditionally builds its shared libraries.
25005           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'
25006         fi
25007       fi
25008       ;;
25009
25010     amigaos*)
25011       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)'
25012       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25013       hardcode_minus_L_GCJ=yes
25014       # see comment about different semantics on the GNU ld section
25015       ld_shlibs_GCJ=no
25016       ;;
25017
25018     bsdi[45]*)
25019       export_dynamic_flag_spec_GCJ=-rdynamic
25020       ;;
25021
25022     cygwin* | mingw* | pw32*)
25023       # When not using gcc, we currently assume that we are using
25024       # Microsoft Visual C++.
25025       # hardcode_libdir_flag_spec is actually meaningless, as there is
25026       # no search path for DLLs.
25027       hardcode_libdir_flag_spec_GCJ=' '
25028       allow_undefined_flag_GCJ=unsupported
25029       # Tell ltmain to make .lib files, not .a files.
25030       libext=lib
25031       # Tell ltmain to make .dll files, not .so files.
25032       shrext_cmds=".dll"
25033       # FIXME: Setting linknames here is a bad hack.
25034       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25035       # The linker will automatically build a .lib file if we build a DLL.
25036       old_archive_From_new_cmds_GCJ='true'
25037       # FIXME: Should let the user specify the lib program.
25038       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25039       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25040       enable_shared_with_static_runtimes_GCJ=yes
25041       ;;
25042
25043     darwin* | rhapsody*)
25044       case $host_os in
25045         rhapsody* | darwin1.[012])
25046          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25047          ;;
25048        *) # Darwin 1.3 on
25049          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25050            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25051          else
25052            case ${MACOSX_DEPLOYMENT_TARGET} in
25053              10.[012])
25054                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25055                ;;
25056              10.*)
25057                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25058                ;;
25059            esac
25060          fi
25061          ;;
25062       esac
25063       archive_cmds_need_lc_GCJ=no
25064       hardcode_direct_GCJ=no
25065       hardcode_automatic_GCJ=yes
25066       hardcode_shlibpath_var_GCJ=unsupported
25067       whole_archive_flag_spec_GCJ=''
25068       link_all_deplibs_GCJ=yes
25069     if test "$GCC" = yes ; then
25070         output_verbose_link_cmd='echo'
25071         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25072       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25073       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25074       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}'
25075       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}'
25076     else
25077       case $cc_basename in
25078         xlc*)
25079          output_verbose_link_cmd='echo'
25080          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25081          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25082           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25083          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}'
25084           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}'
25085           ;;
25086        *)
25087          ld_shlibs_GCJ=no
25088           ;;
25089       esac
25090     fi
25091       ;;
25092
25093     dgux*)
25094       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25095       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25096       hardcode_shlibpath_var_GCJ=no
25097       ;;
25098
25099     freebsd1*)
25100       ld_shlibs_GCJ=no
25101       ;;
25102
25103     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25104     # support.  Future versions do this automatically, but an explicit c++rt0.o
25105     # does not break anything, and helps significantly (at the cost of a little
25106     # extra space).
25107     freebsd2.2*)
25108       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25109       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25110       hardcode_direct_GCJ=yes
25111       hardcode_shlibpath_var_GCJ=no
25112       ;;
25113
25114     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25115     freebsd2*)
25116       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25117       hardcode_direct_GCJ=yes
25118       hardcode_minus_L_GCJ=yes
25119       hardcode_shlibpath_var_GCJ=no
25120       ;;
25121
25122     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25123     freebsd* | kfreebsd*-gnu | dragonfly*)
25124       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25125       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25126       hardcode_direct_GCJ=yes
25127       hardcode_shlibpath_var_GCJ=no
25128       ;;
25129
25130     hpux9*)
25131       if test "$GCC" = yes; then
25132         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'
25133       else
25134         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'
25135       fi
25136       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25137       hardcode_libdir_separator_GCJ=:
25138       hardcode_direct_GCJ=yes
25139
25140       # hardcode_minus_L: Not really in the search PATH,
25141       # but as the default location of the library.
25142       hardcode_minus_L_GCJ=yes
25143       export_dynamic_flag_spec_GCJ='${wl}-E'
25144       ;;
25145
25146     hpux10*)
25147       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25148         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25149       else
25150         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25151       fi
25152       if test "$with_gnu_ld" = no; then
25153         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25154         hardcode_libdir_separator_GCJ=:
25155
25156         hardcode_direct_GCJ=yes
25157         export_dynamic_flag_spec_GCJ='${wl}-E'
25158
25159         # hardcode_minus_L: Not really in the search PATH,
25160         # but as the default location of the library.
25161         hardcode_minus_L_GCJ=yes
25162       fi
25163       ;;
25164
25165     hpux11*)
25166       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25167         case $host_cpu in
25168         hppa*64*)
25169           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25170           ;;
25171         ia64*)
25172           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25173           ;;
25174         *)
25175           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25176           ;;
25177         esac
25178       else
25179         case $host_cpu in
25180         hppa*64*)
25181           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25182           ;;
25183         ia64*)
25184           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25185           ;;
25186         *)
25187           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25188           ;;
25189         esac
25190       fi
25191       if test "$with_gnu_ld" = no; then
25192         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25193         hardcode_libdir_separator_GCJ=:
25194
25195         case $host_cpu in
25196         hppa*64*|ia64*)
25197           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25198           hardcode_direct_GCJ=no
25199           hardcode_shlibpath_var_GCJ=no
25200           ;;
25201         *)
25202           hardcode_direct_GCJ=yes
25203           export_dynamic_flag_spec_GCJ='${wl}-E'
25204
25205           # hardcode_minus_L: Not really in the search PATH,
25206           # but as the default location of the library.
25207           hardcode_minus_L_GCJ=yes
25208           ;;
25209         esac
25210       fi
25211       ;;
25212
25213     irix5* | irix6* | nonstopux*)
25214       if test "$GCC" = yes; then
25215         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'
25216       else
25217         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'
25218         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25219       fi
25220       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25221       hardcode_libdir_separator_GCJ=:
25222       link_all_deplibs_GCJ=yes
25223       ;;
25224
25225     netbsd*)
25226       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25227         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25228       else
25229         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25230       fi
25231       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25232       hardcode_direct_GCJ=yes
25233       hardcode_shlibpath_var_GCJ=no
25234       ;;
25235
25236     newsos6)
25237       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25238       hardcode_direct_GCJ=yes
25239       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25240       hardcode_libdir_separator_GCJ=:
25241       hardcode_shlibpath_var_GCJ=no
25242       ;;
25243
25244     openbsd*)
25245       hardcode_direct_GCJ=yes
25246       hardcode_shlibpath_var_GCJ=no
25247       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25248         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25249         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25250         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25251         export_dynamic_flag_spec_GCJ='${wl}-E'
25252       else
25253        case $host_os in
25254          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25255            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25256            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25257            ;;
25258          *)
25259            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25260            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25261            ;;
25262        esac
25263       fi
25264       ;;
25265
25266     os2*)
25267       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25268       hardcode_minus_L_GCJ=yes
25269       allow_undefined_flag_GCJ=unsupported
25270       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'
25271       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25272       ;;
25273
25274     osf3*)
25275       if test "$GCC" = yes; then
25276         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25277         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'
25278       else
25279         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25280         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'
25281       fi
25282       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25283       hardcode_libdir_separator_GCJ=:
25284       ;;
25285
25286     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25287       if test "$GCC" = yes; then
25288         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25289         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'
25290         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25291       else
25292         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25293         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'
25294         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~
25295         $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'
25296
25297         # Both c and cxx compiler support -rpath directly
25298         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25299       fi
25300       hardcode_libdir_separator_GCJ=:
25301       ;;
25302
25303     solaris*)
25304       no_undefined_flag_GCJ=' -z text'
25305       if test "$GCC" = yes; then
25306         wlarc='${wl}'
25307         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25308         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25309           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25310       else
25311         wlarc=''
25312         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25313         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25314         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25315       fi
25316       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25317       hardcode_shlibpath_var_GCJ=no
25318       case $host_os in
25319       solaris2.[0-5] | solaris2.[0-5].*) ;;
25320       *)
25321         # The compiler driver will combine linker options so we
25322         # cannot just pass the convience library names through
25323         # without $wl, iff we do not link with $LD.
25324         # Luckily, gcc supports the same syntax we need for Sun Studio.
25325         # Supported since Solaris 2.6 (maybe 2.5.1?)
25326         case $wlarc in
25327         '')
25328           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25329         *)
25330           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' ;;
25331         esac ;;
25332       esac
25333       link_all_deplibs_GCJ=yes
25334       ;;
25335
25336     sunos4*)
25337       if test "x$host_vendor" = xsequent; then
25338         # Use $CC to link under sequent, because it throws in some extra .o
25339         # files that make .init and .fini sections work.
25340         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25341       else
25342         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25343       fi
25344       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25345       hardcode_direct_GCJ=yes
25346       hardcode_minus_L_GCJ=yes
25347       hardcode_shlibpath_var_GCJ=no
25348       ;;
25349
25350     sysv4)
25351       case $host_vendor in
25352         sni)
25353           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354           hardcode_direct_GCJ=yes # is this really true???
25355         ;;
25356         siemens)
25357           ## LD is ld it makes a PLAMLIB
25358           ## CC just makes a GrossModule.
25359           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25360           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25361           hardcode_direct_GCJ=no
25362         ;;
25363         motorola)
25364           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25366         ;;
25367       esac
25368       runpath_var='LD_RUN_PATH'
25369       hardcode_shlibpath_var_GCJ=no
25370       ;;
25371
25372     sysv4.3*)
25373       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25374       hardcode_shlibpath_var_GCJ=no
25375       export_dynamic_flag_spec_GCJ='-Bexport'
25376       ;;
25377
25378     sysv4*MP*)
25379       if test -d /usr/nec; then
25380         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25381         hardcode_shlibpath_var_GCJ=no
25382         runpath_var=LD_RUN_PATH
25383         hardcode_runpath_var=yes
25384         ld_shlibs_GCJ=yes
25385       fi
25386       ;;
25387
25388     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25389       no_undefined_flag_GCJ='${wl}-z,text'
25390       archive_cmds_need_lc_GCJ=no
25391       hardcode_shlibpath_var_GCJ=no
25392       runpath_var='LD_RUN_PATH'
25393
25394       if test "$GCC" = yes; then
25395         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25396         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25397       else
25398         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25399         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25400       fi
25401       ;;
25402
25403     sysv5* | sco3.2v5* | sco5v6*)
25404       # Note: We can NOT use -z defs as we might desire, because we do not
25405       # link with -lc, and that would cause any symbols used from libc to
25406       # always be unresolved, which means just about no library would
25407       # ever link correctly.  If we're not using GNU ld we use -z text
25408       # though, which does catch some bad symbols but isn't as heavy-handed
25409       # as -z defs.
25410       no_undefined_flag_GCJ='${wl}-z,text'
25411       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25412       archive_cmds_need_lc_GCJ=no
25413       hardcode_shlibpath_var_GCJ=no
25414       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25415       hardcode_libdir_separator_GCJ=':'
25416       link_all_deplibs_GCJ=yes
25417       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25418       runpath_var='LD_RUN_PATH'
25419
25420       if test "$GCC" = yes; then
25421         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25422         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423       else
25424         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25425         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25426       fi
25427       ;;
25428
25429     uts4*)
25430       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25431       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25432       hardcode_shlibpath_var_GCJ=no
25433       ;;
25434
25435     *)
25436       ld_shlibs_GCJ=no
25437       ;;
25438     esac
25439   fi
25440
25441 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25442 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25443 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25444
25445 #
25446 # Do we need to explicitly link libc?
25447 #
25448 case "x$archive_cmds_need_lc_GCJ" in
25449 x|xyes)
25450   # Assume -lc should be added
25451   archive_cmds_need_lc_GCJ=yes
25452
25453   if test "$enable_shared" = yes && test "$GCC" = yes; then
25454     case $archive_cmds_GCJ in
25455     *'~'*)
25456       # FIXME: we may have to deal with multi-command sequences.
25457       ;;
25458     '$CC '*)
25459       # Test whether the compiler implicitly links with -lc since on some
25460       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25461       # to ld, don't add -lc before -lgcc.
25462       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25464       $rm conftest*
25465       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25466
25467       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25468   (eval $ac_compile) 2>&5
25469   ac_status=$?
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } 2>conftest.err; then
25472         soname=conftest
25473         lib=conftest
25474         libobjs=conftest.$ac_objext
25475         deplibs=
25476         wl=$lt_prog_compiler_wl_GCJ
25477         pic_flag=$lt_prog_compiler_pic_GCJ
25478         compiler_flags=-v
25479         linker_flags=-v
25480         verstring=
25481         output_objdir=.
25482         libname=conftest
25483         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25484         allow_undefined_flag_GCJ=
25485         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25486   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }
25490         then
25491           archive_cmds_need_lc_GCJ=no
25492         else
25493           archive_cmds_need_lc_GCJ=yes
25494         fi
25495         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25496       else
25497         cat conftest.err 1>&5
25498       fi
25499       $rm conftest*
25500       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25501 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25502       ;;
25503     esac
25504   fi
25505   ;;
25506 esac
25507
25508 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25509 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25510 library_names_spec=
25511 libname_spec='lib$name'
25512 soname_spec=
25513 shrext_cmds=".so"
25514 postinstall_cmds=
25515 postuninstall_cmds=
25516 finish_cmds=
25517 finish_eval=
25518 shlibpath_var=
25519 shlibpath_overrides_runpath=unknown
25520 version_type=none
25521 dynamic_linker="$host_os ld.so"
25522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25523 if test "$GCC" = yes; then
25524   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25525   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25526     # if the path contains ";" then we assume it to be the separator
25527     # otherwise default to the standard path separator (i.e. ":") - it is
25528     # assumed that no part of a normal pathname contains ";" but that should
25529     # okay in the real world where ";" in dirpaths is itself problematic.
25530     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25531   else
25532     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25533   fi
25534 else
25535   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25536 fi
25537 need_lib_prefix=unknown
25538 hardcode_into_libs=no
25539
25540 # when you set need_version to no, make sure it does not cause -set_version
25541 # flags to be left without arguments
25542 need_version=unknown
25543
25544 case $host_os in
25545 aix3*)
25546   version_type=linux
25547   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25548   shlibpath_var=LIBPATH
25549
25550   # AIX 3 has no versioning support, so we append a major version to the name.
25551   soname_spec='${libname}${release}${shared_ext}$major'
25552   ;;
25553
25554 aix4* | aix5*)
25555   version_type=linux
25556   need_lib_prefix=no
25557   need_version=no
25558   hardcode_into_libs=yes
25559   if test "$host_cpu" = ia64; then
25560     # AIX 5 supports IA64
25561     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25562     shlibpath_var=LD_LIBRARY_PATH
25563   else
25564     # With GCC up to 2.95.x, collect2 would create an import file
25565     # for dependence libraries.  The import file would start with
25566     # the line `#! .'.  This would cause the generated library to
25567     # depend on `.', always an invalid library.  This was fixed in
25568     # development snapshots of GCC prior to 3.0.
25569     case $host_os in
25570       aix4 | aix4.[01] | aix4.[01].*)
25571       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25572            echo ' yes '
25573            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25574         :
25575       else
25576         can_build_shared=no
25577       fi
25578       ;;
25579     esac
25580     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25581     # soname into executable. Probably we can add versioning support to
25582     # collect2, so additional links can be useful in future.
25583     if test "$aix_use_runtimelinking" = yes; then
25584       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25585       # instead of lib<name>.a to let people know that these are not
25586       # typical AIX shared libraries.
25587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588     else
25589       # We preserve .a as extension for shared libraries through AIX4.2
25590       # and later when we are not doing run time linking.
25591       library_names_spec='${libname}${release}.a $libname.a'
25592       soname_spec='${libname}${release}${shared_ext}$major'
25593     fi
25594     shlibpath_var=LIBPATH
25595   fi
25596   ;;
25597
25598 amigaos*)
25599   library_names_spec='$libname.ixlibrary $libname.a'
25600   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25601   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'
25602   ;;
25603
25604 beos*)
25605   library_names_spec='${libname}${shared_ext}'
25606   dynamic_linker="$host_os ld.so"
25607   shlibpath_var=LIBRARY_PATH
25608   ;;
25609
25610 bsdi[45]*)
25611   version_type=linux
25612   need_version=no
25613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25614   soname_spec='${libname}${release}${shared_ext}$major'
25615   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25616   shlibpath_var=LD_LIBRARY_PATH
25617   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25618   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25619   # the default ld.so.conf also contains /usr/contrib/lib and
25620   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25621   # libtool to hard-code these into programs
25622   ;;
25623
25624 cygwin* | mingw* | pw32*)
25625   version_type=windows
25626   shrext_cmds=".dll"
25627   need_version=no
25628   need_lib_prefix=no
25629
25630   case $GCC,$host_os in
25631   yes,cygwin* | yes,mingw* | yes,pw32*)
25632     library_names_spec='$libname.dll.a'
25633     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25634     postinstall_cmds='base_file=`basename \${file}`~
25635       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25636       dldir=$destdir/`dirname \$dlpath`~
25637       test -d \$dldir || mkdir -p \$dldir~
25638       $install_prog $dir/$dlname \$dldir/$dlname~
25639       chmod a+x \$dldir/$dlname'
25640     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25641       dlpath=$dir/\$dldll~
25642        $rm \$dlpath'
25643     shlibpath_overrides_runpath=yes
25644
25645     case $host_os in
25646     cygwin*)
25647       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25648       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25649       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25650       ;;
25651     mingw*)
25652       # MinGW DLLs use traditional 'lib' prefix
25653       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25654       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25655       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25656         # It is most probably a Windows format PATH printed by
25657         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25658         # path with ; separators, and with drive letters. We can handle the
25659         # drive letters (cygwin fileutils understands them), so leave them,
25660         # especially as we might pass files found there to a mingw objdump,
25661         # which wouldn't understand a cygwinified path. Ahh.
25662         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25663       else
25664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25665       fi
25666       ;;
25667     pw32*)
25668       # pw32 DLLs use 'pw' prefix rather than 'lib'
25669       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25670       ;;
25671     esac
25672     ;;
25673
25674   *)
25675     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25676     ;;
25677   esac
25678   dynamic_linker='Win32 ld.exe'
25679   # FIXME: first we should search . and the directory the executable is in
25680   shlibpath_var=PATH
25681   ;;
25682
25683 darwin* | rhapsody*)
25684   dynamic_linker="$host_os dyld"
25685   version_type=darwin
25686   need_lib_prefix=no
25687   need_version=no
25688   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25689   soname_spec='${libname}${release}${major}$shared_ext'
25690   shlibpath_overrides_runpath=yes
25691   shlibpath_var=DYLD_LIBRARY_PATH
25692   shrext_cmds='.dylib'
25693   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25694   if test "$GCC" = yes; then
25695     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"`
25696   else
25697     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25698   fi
25699   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25700   ;;
25701
25702 dgux*)
25703   version_type=linux
25704   need_lib_prefix=no
25705   need_version=no
25706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25707   soname_spec='${libname}${release}${shared_ext}$major'
25708   shlibpath_var=LD_LIBRARY_PATH
25709   ;;
25710
25711 freebsd1*)
25712   dynamic_linker=no
25713   ;;
25714
25715 kfreebsd*-gnu)
25716   version_type=linux
25717   need_lib_prefix=no
25718   need_version=no
25719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25720   soname_spec='${libname}${release}${shared_ext}$major'
25721   shlibpath_var=LD_LIBRARY_PATH
25722   shlibpath_overrides_runpath=no
25723   hardcode_into_libs=yes
25724   dynamic_linker='GNU ld.so'
25725   ;;
25726
25727 freebsd* | dragonfly*)
25728   # DragonFly does not have aout.  When/if they implement a new
25729   # versioning mechanism, adjust this.
25730   if test -x /usr/bin/objformat; then
25731     objformat=`/usr/bin/objformat`
25732   else
25733     case $host_os in
25734     freebsd[123]*) objformat=aout ;;
25735     *) objformat=elf ;;
25736     esac
25737   fi
25738   version_type=freebsd-$objformat
25739   case $version_type in
25740     freebsd-elf*)
25741       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25742       need_version=no
25743       need_lib_prefix=no
25744       ;;
25745     freebsd-*)
25746       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25747       need_version=yes
25748       ;;
25749   esac
25750   shlibpath_var=LD_LIBRARY_PATH
25751   case $host_os in
25752   freebsd2*)
25753     shlibpath_overrides_runpath=yes
25754     ;;
25755   freebsd3.[01]* | freebsdelf3.[01]*)
25756     shlibpath_overrides_runpath=yes
25757     hardcode_into_libs=yes
25758     ;;
25759   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25760   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25761     shlibpath_overrides_runpath=no
25762     hardcode_into_libs=yes
25763     ;;
25764   freebsd*) # from 4.6 on
25765     shlibpath_overrides_runpath=yes
25766     hardcode_into_libs=yes
25767     ;;
25768   esac
25769   ;;
25770
25771 gnu*)
25772   version_type=linux
25773   need_lib_prefix=no
25774   need_version=no
25775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25776   soname_spec='${libname}${release}${shared_ext}$major'
25777   shlibpath_var=LD_LIBRARY_PATH
25778   hardcode_into_libs=yes
25779   ;;
25780
25781 hpux9* | hpux10* | hpux11*)
25782   # Give a soname corresponding to the major version so that dld.sl refuses to
25783   # link against other versions.
25784   version_type=sunos
25785   need_lib_prefix=no
25786   need_version=no
25787   case $host_cpu in
25788   ia64*)
25789     shrext_cmds='.so'
25790     hardcode_into_libs=yes
25791     dynamic_linker="$host_os dld.so"
25792     shlibpath_var=LD_LIBRARY_PATH
25793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25795     soname_spec='${libname}${release}${shared_ext}$major'
25796     if test "X$HPUX_IA64_MODE" = X32; then
25797       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25798     else
25799       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25800     fi
25801     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25802     ;;
25803    hppa*64*)
25804      shrext_cmds='.sl'
25805      hardcode_into_libs=yes
25806      dynamic_linker="$host_os dld.sl"
25807      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25808      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810      soname_spec='${libname}${release}${shared_ext}$major'
25811      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25812      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25813      ;;
25814    *)
25815     shrext_cmds='.sl'
25816     dynamic_linker="$host_os dld.sl"
25817     shlibpath_var=SHLIB_PATH
25818     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25820     soname_spec='${libname}${release}${shared_ext}$major'
25821     ;;
25822   esac
25823   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25824   postinstall_cmds='chmod 555 $lib'
25825   ;;
25826
25827 interix3*)
25828   version_type=linux
25829   need_lib_prefix=no
25830   need_version=no
25831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25832   soname_spec='${libname}${release}${shared_ext}$major'
25833   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25834   shlibpath_var=LD_LIBRARY_PATH
25835   shlibpath_overrides_runpath=no
25836   hardcode_into_libs=yes
25837   ;;
25838
25839 irix5* | irix6* | nonstopux*)
25840   case $host_os in
25841     nonstopux*) version_type=nonstopux ;;
25842     *)
25843         if test "$lt_cv_prog_gnu_ld" = yes; then
25844                 version_type=linux
25845         else
25846                 version_type=irix
25847         fi ;;
25848   esac
25849   need_lib_prefix=no
25850   need_version=no
25851   soname_spec='${libname}${release}${shared_ext}$major'
25852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25853   case $host_os in
25854   irix5* | nonstopux*)
25855     libsuff= shlibsuff=
25856     ;;
25857   *)
25858     case $LD in # libtool.m4 will add one of these switches to LD
25859     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25860       libsuff= shlibsuff= libmagic=32-bit;;
25861     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25862       libsuff=32 shlibsuff=N32 libmagic=N32;;
25863     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25864       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25865     *) libsuff= shlibsuff= libmagic=never-match;;
25866     esac
25867     ;;
25868   esac
25869   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25870   shlibpath_overrides_runpath=no
25871   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25872   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25873   hardcode_into_libs=yes
25874   ;;
25875
25876 # No shared lib support for Linux oldld, aout, or coff.
25877 linux*oldld* | linux*aout* | linux*coff*)
25878   dynamic_linker=no
25879   ;;
25880
25881 # This must be Linux ELF.
25882 linux*)
25883   version_type=linux
25884   need_lib_prefix=no
25885   need_version=no
25886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25887   soname_spec='${libname}${release}${shared_ext}$major'
25888   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25889   shlibpath_var=LD_LIBRARY_PATH
25890   shlibpath_overrides_runpath=no
25891   # This implies no fast_install, which is unacceptable.
25892   # Some rework will be needed to allow for fast_install
25893   # before this can be enabled.
25894   hardcode_into_libs=yes
25895
25896   # Append ld.so.conf contents to the search path
25897   if test -f /etc/ld.so.conf; then
25898     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' ' '`
25899     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25900   fi
25901
25902   # We used to test for /lib/ld.so.1 and disable shared libraries on
25903   # powerpc, because MkLinux only supported shared libraries with the
25904   # GNU dynamic linker.  Since this was broken with cross compilers,
25905   # most powerpc-linux boxes support dynamic linking these days and
25906   # people can always --disable-shared, the test was removed, and we
25907   # assume the GNU/Linux dynamic linker is in use.
25908   dynamic_linker='GNU/Linux ld.so'
25909   ;;
25910
25911 knetbsd*-gnu)
25912   version_type=linux
25913   need_lib_prefix=no
25914   need_version=no
25915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25916   soname_spec='${libname}${release}${shared_ext}$major'
25917   shlibpath_var=LD_LIBRARY_PATH
25918   shlibpath_overrides_runpath=no
25919   hardcode_into_libs=yes
25920   dynamic_linker='GNU ld.so'
25921   ;;
25922
25923 netbsd*)
25924   version_type=sunos
25925   need_lib_prefix=no
25926   need_version=no
25927   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25929     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25930     dynamic_linker='NetBSD (a.out) ld.so'
25931   else
25932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25933     soname_spec='${libname}${release}${shared_ext}$major'
25934     dynamic_linker='NetBSD ld.elf_so'
25935   fi
25936   shlibpath_var=LD_LIBRARY_PATH
25937   shlibpath_overrides_runpath=yes
25938   hardcode_into_libs=yes
25939   ;;
25940
25941 newsos6)
25942   version_type=linux
25943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25944   shlibpath_var=LD_LIBRARY_PATH
25945   shlibpath_overrides_runpath=yes
25946   ;;
25947
25948 nto-qnx*)
25949   version_type=linux
25950   need_lib_prefix=no
25951   need_version=no
25952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953   soname_spec='${libname}${release}${shared_ext}$major'
25954   shlibpath_var=LD_LIBRARY_PATH
25955   shlibpath_overrides_runpath=yes
25956   ;;
25957
25958 openbsd*)
25959   version_type=sunos
25960   sys_lib_dlsearch_path_spec="/usr/lib"
25961   need_lib_prefix=no
25962   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25963   case $host_os in
25964     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25965     *)                         need_version=no  ;;
25966   esac
25967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25968   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25969   shlibpath_var=LD_LIBRARY_PATH
25970   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25971     case $host_os in
25972       openbsd2.[89] | openbsd2.[89].*)
25973         shlibpath_overrides_runpath=no
25974         ;;
25975       *)
25976         shlibpath_overrides_runpath=yes
25977         ;;
25978       esac
25979   else
25980     shlibpath_overrides_runpath=yes
25981   fi
25982   ;;
25983
25984 os2*)
25985   libname_spec='$name'
25986   shrext_cmds=".dll"
25987   need_lib_prefix=no
25988   library_names_spec='$libname${shared_ext} $libname.a'
25989   dynamic_linker='OS/2 ld.exe'
25990   shlibpath_var=LIBPATH
25991   ;;
25992
25993 osf3* | osf4* | osf5*)
25994   version_type=osf
25995   need_lib_prefix=no
25996   need_version=no
25997   soname_spec='${libname}${release}${shared_ext}$major'
25998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25999   shlibpath_var=LD_LIBRARY_PATH
26000   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26001   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26002   ;;
26003
26004 solaris*)
26005   version_type=linux
26006   need_lib_prefix=no
26007   need_version=no
26008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26009   soname_spec='${libname}${release}${shared_ext}$major'
26010   shlibpath_var=LD_LIBRARY_PATH
26011   shlibpath_overrides_runpath=yes
26012   hardcode_into_libs=yes
26013   # ldd complains unless libraries are executable
26014   postinstall_cmds='chmod +x $lib'
26015   ;;
26016
26017 sunos4*)
26018   version_type=sunos
26019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26020   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26021   shlibpath_var=LD_LIBRARY_PATH
26022   shlibpath_overrides_runpath=yes
26023   if test "$with_gnu_ld" = yes; then
26024     need_lib_prefix=no
26025   fi
26026   need_version=yes
26027   ;;
26028
26029 sysv4 | sysv4.3*)
26030   version_type=linux
26031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032   soname_spec='${libname}${release}${shared_ext}$major'
26033   shlibpath_var=LD_LIBRARY_PATH
26034   case $host_vendor in
26035     sni)
26036       shlibpath_overrides_runpath=no
26037       need_lib_prefix=no
26038       export_dynamic_flag_spec='${wl}-Blargedynsym'
26039       runpath_var=LD_RUN_PATH
26040       ;;
26041     siemens)
26042       need_lib_prefix=no
26043       ;;
26044     motorola)
26045       need_lib_prefix=no
26046       need_version=no
26047       shlibpath_overrides_runpath=no
26048       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26049       ;;
26050   esac
26051   ;;
26052
26053 sysv4*MP*)
26054   if test -d /usr/nec ;then
26055     version_type=linux
26056     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26057     soname_spec='$libname${shared_ext}.$major'
26058     shlibpath_var=LD_LIBRARY_PATH
26059   fi
26060   ;;
26061
26062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26063   version_type=freebsd-elf
26064   need_lib_prefix=no
26065   need_version=no
26066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26067   soname_spec='${libname}${release}${shared_ext}$major'
26068   shlibpath_var=LD_LIBRARY_PATH
26069   hardcode_into_libs=yes
26070   if test "$with_gnu_ld" = yes; then
26071     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26072     shlibpath_overrides_runpath=no
26073   else
26074     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26075     shlibpath_overrides_runpath=yes
26076     case $host_os in
26077       sco3.2v5*)
26078         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26079         ;;
26080     esac
26081   fi
26082   sys_lib_dlsearch_path_spec='/usr/lib'
26083   ;;
26084
26085 uts4*)
26086   version_type=linux
26087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26088   soname_spec='${libname}${release}${shared_ext}$major'
26089   shlibpath_var=LD_LIBRARY_PATH
26090   ;;
26091
26092 *)
26093   dynamic_linker=no
26094   ;;
26095 esac
26096 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26097 echo "${ECHO_T}$dynamic_linker" >&6; }
26098 test "$dynamic_linker" = no && can_build_shared=no
26099
26100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26101 if test "$GCC" = yes; then
26102   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26103 fi
26104
26105 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26106 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26107 hardcode_action_GCJ=
26108 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26109    test -n "$runpath_var_GCJ" || \
26110    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26111
26112   # We can hardcode non-existant directories.
26113   if test "$hardcode_direct_GCJ" != no &&
26114      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26115      # have to relink, otherwise we might link with an installed library
26116      # when we should be linking with a yet-to-be-installed one
26117      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26118      test "$hardcode_minus_L_GCJ" != no; then
26119     # Linking always hardcodes the temporary library directory.
26120     hardcode_action_GCJ=relink
26121   else
26122     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26123     hardcode_action_GCJ=immediate
26124   fi
26125 else
26126   # We cannot hardcode anything, or else we can only hardcode existing
26127   # directories.
26128   hardcode_action_GCJ=unsupported
26129 fi
26130 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26131 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26132
26133 if test "$hardcode_action_GCJ" = relink; then
26134   # Fast installation is not supported
26135   enable_fast_install=no
26136 elif test "$shlibpath_overrides_runpath" = yes ||
26137      test "$enable_shared" = no; then
26138   # Fast installation is not necessary
26139   enable_fast_install=needless
26140 fi
26141
26142
26143 # The else clause should only fire when bootstrapping the
26144 # libtool distribution, otherwise you forgot to ship ltmain.sh
26145 # with your package, and you will get complaints that there are
26146 # no rules to generate ltmain.sh.
26147 if test -f "$ltmain"; then
26148   # See if we are running on zsh, and set the options which allow our commands through
26149   # without removal of \ escapes.
26150   if test -n "${ZSH_VERSION+set}" ; then
26151     setopt NO_GLOB_SUBST
26152   fi
26153   # Now quote all the things that may contain metacharacters while being
26154   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26155   # variables and quote the copies for generation of the libtool script.
26156   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26157     SED SHELL STRIP \
26158     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26159     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26160     deplibs_check_method reload_flag reload_cmds need_locks \
26161     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26162     lt_cv_sys_global_symbol_to_c_name_address \
26163     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26164     old_postinstall_cmds old_postuninstall_cmds \
26165     compiler_GCJ \
26166     CC_GCJ \
26167     LD_GCJ \
26168     lt_prog_compiler_wl_GCJ \
26169     lt_prog_compiler_pic_GCJ \
26170     lt_prog_compiler_static_GCJ \
26171     lt_prog_compiler_no_builtin_flag_GCJ \
26172     export_dynamic_flag_spec_GCJ \
26173     thread_safe_flag_spec_GCJ \
26174     whole_archive_flag_spec_GCJ \
26175     enable_shared_with_static_runtimes_GCJ \
26176     old_archive_cmds_GCJ \
26177     old_archive_from_new_cmds_GCJ \
26178     predep_objects_GCJ \
26179     postdep_objects_GCJ \
26180     predeps_GCJ \
26181     postdeps_GCJ \
26182     compiler_lib_search_path_GCJ \
26183     archive_cmds_GCJ \
26184     archive_expsym_cmds_GCJ \
26185     postinstall_cmds_GCJ \
26186     postuninstall_cmds_GCJ \
26187     old_archive_from_expsyms_cmds_GCJ \
26188     allow_undefined_flag_GCJ \
26189     no_undefined_flag_GCJ \
26190     export_symbols_cmds_GCJ \
26191     hardcode_libdir_flag_spec_GCJ \
26192     hardcode_libdir_flag_spec_ld_GCJ \
26193     hardcode_libdir_separator_GCJ \
26194     hardcode_automatic_GCJ \
26195     module_cmds_GCJ \
26196     module_expsym_cmds_GCJ \
26197     lt_cv_prog_compiler_c_o_GCJ \
26198     exclude_expsyms_GCJ \
26199     include_expsyms_GCJ; do
26200
26201     case $var in
26202     old_archive_cmds_GCJ | \
26203     old_archive_from_new_cmds_GCJ | \
26204     archive_cmds_GCJ | \
26205     archive_expsym_cmds_GCJ | \
26206     module_cmds_GCJ | \
26207     module_expsym_cmds_GCJ | \
26208     old_archive_from_expsyms_cmds_GCJ | \
26209     export_symbols_cmds_GCJ | \
26210     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26211     postinstall_cmds | postuninstall_cmds | \
26212     old_postinstall_cmds | old_postuninstall_cmds | \
26213     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26214       # Double-quote double-evaled strings.
26215       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26216       ;;
26217     *)
26218       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26219       ;;
26220     esac
26221   done
26222
26223   case $lt_echo in
26224   *'\$0 --fallback-echo"')
26225     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26226     ;;
26227   esac
26228
26229 cfgfile="$ofile"
26230
26231   cat <<__EOF__ >> "$cfgfile"
26232 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26233
26234 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26235
26236 # Shell to use when invoking shell scripts.
26237 SHELL=$lt_SHELL
26238
26239 # Whether or not to build shared libraries.
26240 build_libtool_libs=$enable_shared
26241
26242 # Whether or not to build static libraries.
26243 build_old_libs=$enable_static
26244
26245 # Whether or not to add -lc for building shared libraries.
26246 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26247
26248 # Whether or not to disallow shared libs when runtime libs are static
26249 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26250
26251 # Whether or not to optimize for fast installation.
26252 fast_install=$enable_fast_install
26253
26254 # The host system.
26255 host_alias=$host_alias
26256 host=$host
26257 host_os=$host_os
26258
26259 # The build system.
26260 build_alias=$build_alias
26261 build=$build
26262 build_os=$build_os
26263
26264 # An echo program that does not interpret backslashes.
26265 echo=$lt_echo
26266
26267 # The archiver.
26268 AR=$lt_AR
26269 AR_FLAGS=$lt_AR_FLAGS
26270
26271 # A C compiler.
26272 LTCC=$lt_LTCC
26273
26274 # LTCC compiler flags.
26275 LTCFLAGS=$lt_LTCFLAGS
26276
26277 # A language-specific compiler.
26278 CC=$lt_compiler_GCJ
26279
26280 # Is the compiler the GNU C compiler?
26281 with_gcc=$GCC_GCJ
26282
26283 # An ERE matcher.
26284 EGREP=$lt_EGREP
26285
26286 # The linker used to build libraries.
26287 LD=$lt_LD_GCJ
26288
26289 # Whether we need hard or soft links.
26290 LN_S=$lt_LN_S
26291
26292 # A BSD-compatible nm program.
26293 NM=$lt_NM
26294
26295 # A symbol stripping program
26296 STRIP=$lt_STRIP
26297
26298 # Used to examine libraries when file_magic_cmd begins "file"
26299 MAGIC_CMD=$MAGIC_CMD
26300
26301 # Used on cygwin: DLL creation program.
26302 DLLTOOL="$DLLTOOL"
26303
26304 # Used on cygwin: object dumper.
26305 OBJDUMP="$OBJDUMP"
26306
26307 # Used on cygwin: assembler.
26308 AS="$AS"
26309
26310 # The name of the directory that contains temporary libtool files.
26311 objdir=$objdir
26312
26313 # How to create reloadable object files.
26314 reload_flag=$lt_reload_flag
26315 reload_cmds=$lt_reload_cmds
26316
26317 # How to pass a linker flag through the compiler.
26318 wl=$lt_lt_prog_compiler_wl_GCJ
26319
26320 # Object file suffix (normally "o").
26321 objext="$ac_objext"
26322
26323 # Old archive suffix (normally "a").
26324 libext="$libext"
26325
26326 # Shared library suffix (normally ".so").
26327 shrext_cmds='$shrext_cmds'
26328
26329 # Executable file suffix (normally "").
26330 exeext="$exeext"
26331
26332 # Additional compiler flags for building library objects.
26333 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26334 pic_mode=$pic_mode
26335
26336 # What is the maximum length of a command?
26337 max_cmd_len=$lt_cv_sys_max_cmd_len
26338
26339 # Does compiler simultaneously support -c and -o options?
26340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26341
26342 # Must we lock files when doing compilation?
26343 need_locks=$lt_need_locks
26344
26345 # Do we need the lib prefix for modules?
26346 need_lib_prefix=$need_lib_prefix
26347
26348 # Do we need a version for libraries?
26349 need_version=$need_version
26350
26351 # Whether dlopen is supported.
26352 dlopen_support=$enable_dlopen
26353
26354 # Whether dlopen of programs is supported.
26355 dlopen_self=$enable_dlopen_self
26356
26357 # Whether dlopen of statically linked programs is supported.
26358 dlopen_self_static=$enable_dlopen_self_static
26359
26360 # Compiler flag to prevent dynamic linking.
26361 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26362
26363 # Compiler flag to turn off builtin functions.
26364 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26365
26366 # Compiler flag to allow reflexive dlopens.
26367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26368
26369 # Compiler flag to generate shared objects directly from archives.
26370 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26371
26372 # Compiler flag to generate thread-safe objects.
26373 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26374
26375 # Library versioning type.
26376 version_type=$version_type
26377
26378 # Format of library name prefix.
26379 libname_spec=$lt_libname_spec
26380
26381 # List of archive names.  First name is the real one, the rest are links.
26382 # The last name is the one that the linker finds with -lNAME.
26383 library_names_spec=$lt_library_names_spec
26384
26385 # The coded name of the library, if different from the real name.
26386 soname_spec=$lt_soname_spec
26387
26388 # Commands used to build and install an old-style archive.
26389 RANLIB=$lt_RANLIB
26390 old_archive_cmds=$lt_old_archive_cmds_GCJ
26391 old_postinstall_cmds=$lt_old_postinstall_cmds
26392 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26393
26394 # Create an old-style archive from a shared archive.
26395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26396
26397 # Create a temporary old-style archive to link instead of a shared archive.
26398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26399
26400 # Commands used to build and install a shared archive.
26401 archive_cmds=$lt_archive_cmds_GCJ
26402 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26403 postinstall_cmds=$lt_postinstall_cmds
26404 postuninstall_cmds=$lt_postuninstall_cmds
26405
26406 # Commands used to build a loadable module (assumed same as above if empty)
26407 module_cmds=$lt_module_cmds_GCJ
26408 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26409
26410 # Commands to strip libraries.
26411 old_striplib=$lt_old_striplib
26412 striplib=$lt_striplib
26413
26414 # Dependencies to place before the objects being linked to create a
26415 # shared library.
26416 predep_objects=$lt_predep_objects_GCJ
26417
26418 # Dependencies to place after the objects being linked to create a
26419 # shared library.
26420 postdep_objects=$lt_postdep_objects_GCJ
26421
26422 # Dependencies to place before the objects being linked to create a
26423 # shared library.
26424 predeps=$lt_predeps_GCJ
26425
26426 # Dependencies to place after the objects being linked to create a
26427 # shared library.
26428 postdeps=$lt_postdeps_GCJ
26429
26430 # The library search path used internally by the compiler when linking
26431 # a shared library.
26432 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26433
26434 # Method to check whether dependent libraries are shared objects.
26435 deplibs_check_method=$lt_deplibs_check_method
26436
26437 # Command to use when deplibs_check_method == file_magic.
26438 file_magic_cmd=$lt_file_magic_cmd
26439
26440 # Flag that allows shared libraries with undefined symbols to be built.
26441 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26442
26443 # Flag that forces no undefined symbols.
26444 no_undefined_flag=$lt_no_undefined_flag_GCJ
26445
26446 # Commands used to finish a libtool library installation in a directory.
26447 finish_cmds=$lt_finish_cmds
26448
26449 # Same as above, but a single script fragment to be evaled but not shown.
26450 finish_eval=$lt_finish_eval
26451
26452 # Take the output of nm and produce a listing of raw symbols and C names.
26453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26454
26455 # Transform the output of nm in a proper C declaration
26456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26457
26458 # Transform the output of nm in a C name address pair
26459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26460
26461 # This is the shared library runtime path variable.
26462 runpath_var=$runpath_var
26463
26464 # This is the shared library path variable.
26465 shlibpath_var=$shlibpath_var
26466
26467 # Is shlibpath searched before the hard-coded library search path?
26468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26469
26470 # How to hardcode a shared library path into an executable.
26471 hardcode_action=$hardcode_action_GCJ
26472
26473 # Whether we should hardcode library paths into libraries.
26474 hardcode_into_libs=$hardcode_into_libs
26475
26476 # Flag to hardcode \$libdir into a binary during linking.
26477 # This must work even if \$libdir does not exist.
26478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26479
26480 # If ld is used when linking, flag to hardcode \$libdir into
26481 # a binary during linking. This must work even if \$libdir does
26482 # not exist.
26483 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26484
26485 # Whether we need a single -rpath flag with a separated argument.
26486 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26487
26488 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26489 # resulting binary.
26490 hardcode_direct=$hardcode_direct_GCJ
26491
26492 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26493 # resulting binary.
26494 hardcode_minus_L=$hardcode_minus_L_GCJ
26495
26496 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26497 # the resulting binary.
26498 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26499
26500 # Set to yes if building a shared library automatically hardcodes DIR into the library
26501 # and all subsequent libraries and executables linked against it.
26502 hardcode_automatic=$hardcode_automatic_GCJ
26503
26504 # Variables whose values should be saved in libtool wrapper scripts and
26505 # restored at relink time.
26506 variables_saved_for_relink="$variables_saved_for_relink"
26507
26508 # Whether libtool must link a program against all its dependency libraries.
26509 link_all_deplibs=$link_all_deplibs_GCJ
26510
26511 # Compile-time system search path for libraries
26512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26513
26514 # Run-time system search path for libraries
26515 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26516
26517 # Fix the shell variable \$srcfile for the compiler.
26518 fix_srcfile_path="$fix_srcfile_path_GCJ"
26519
26520 # Set to yes if exported symbols are required.
26521 always_export_symbols=$always_export_symbols_GCJ
26522
26523 # The commands to list exported symbols.
26524 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26525
26526 # The commands to extract the exported symbol list from a shared archive.
26527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26528
26529 # Symbols that should not be listed in the preloaded symbols.
26530 exclude_expsyms=$lt_exclude_expsyms_GCJ
26531
26532 # Symbols that must always be exported.
26533 include_expsyms=$lt_include_expsyms_GCJ
26534
26535 # ### END LIBTOOL TAG CONFIG: $tagname
26536
26537 __EOF__
26538
26539
26540 else
26541   # If there is no Makefile yet, we rely on a make rule to execute
26542   # `config.status --recheck' to rerun these tests and create the
26543   # libtool script then.
26544   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26545   if test -f "$ltmain_in"; then
26546     test -f Makefile && make "$ltmain"
26547   fi
26548 fi
26549
26550
26551 ac_ext=c
26552 ac_cpp='$CPP $CPPFLAGS'
26553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26556
26557 CC="$lt_save_CC"
26558
26559         else
26560           tagname=""
26561         fi
26562         ;;
26563
26564       RC)
26565         ac_ext=c
26566 ac_cpp='$CPP $CPPFLAGS'
26567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26570
26571
26572 # Source file extension for RC test sources.
26573 ac_ext=rc
26574
26575 # Object file extension for compiled RC test sources.
26576 objext=o
26577 objext_RC=$objext
26578
26579 # Code to be used in simple compile tests
26580 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26581
26582 # Code to be used in simple link tests
26583 lt_simple_link_test_code="$lt_simple_compile_test_code"
26584
26585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26586
26587 # If no C compiler was specified, use CC.
26588 LTCC=${LTCC-"$CC"}
26589
26590 # If no C compiler flags were specified, use CFLAGS.
26591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26592
26593 # Allow CC to be a program name with arguments.
26594 compiler=$CC
26595
26596
26597 # save warnings/boilerplate of simple test code
26598 ac_outfile=conftest.$ac_objext
26599 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26601 _lt_compiler_boilerplate=`cat conftest.err`
26602 $rm conftest*
26603
26604 ac_outfile=conftest.$ac_objext
26605 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26607 _lt_linker_boilerplate=`cat conftest.err`
26608 $rm conftest*
26609
26610
26611 # Allow CC to be a program name with arguments.
26612 lt_save_CC="$CC"
26613 CC=${RC-"windres"}
26614 compiler=$CC
26615 compiler_RC=$CC
26616 for cc_temp in $compiler""; do
26617   case $cc_temp in
26618     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26619     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26620     \-*) ;;
26621     *) break;;
26622   esac
26623 done
26624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26625
26626 lt_cv_prog_compiler_c_o_RC=yes
26627
26628 # The else clause should only fire when bootstrapping the
26629 # libtool distribution, otherwise you forgot to ship ltmain.sh
26630 # with your package, and you will get complaints that there are
26631 # no rules to generate ltmain.sh.
26632 if test -f "$ltmain"; then
26633   # See if we are running on zsh, and set the options which allow our commands through
26634   # without removal of \ escapes.
26635   if test -n "${ZSH_VERSION+set}" ; then
26636     setopt NO_GLOB_SUBST
26637   fi
26638   # Now quote all the things that may contain metacharacters while being
26639   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26640   # variables and quote the copies for generation of the libtool script.
26641   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26642     SED SHELL STRIP \
26643     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26644     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26645     deplibs_check_method reload_flag reload_cmds need_locks \
26646     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26647     lt_cv_sys_global_symbol_to_c_name_address \
26648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26649     old_postinstall_cmds old_postuninstall_cmds \
26650     compiler_RC \
26651     CC_RC \
26652     LD_RC \
26653     lt_prog_compiler_wl_RC \
26654     lt_prog_compiler_pic_RC \
26655     lt_prog_compiler_static_RC \
26656     lt_prog_compiler_no_builtin_flag_RC \
26657     export_dynamic_flag_spec_RC \
26658     thread_safe_flag_spec_RC \
26659     whole_archive_flag_spec_RC \
26660     enable_shared_with_static_runtimes_RC \
26661     old_archive_cmds_RC \
26662     old_archive_from_new_cmds_RC \
26663     predep_objects_RC \
26664     postdep_objects_RC \
26665     predeps_RC \
26666     postdeps_RC \
26667     compiler_lib_search_path_RC \
26668     archive_cmds_RC \
26669     archive_expsym_cmds_RC \
26670     postinstall_cmds_RC \
26671     postuninstall_cmds_RC \
26672     old_archive_from_expsyms_cmds_RC \
26673     allow_undefined_flag_RC \
26674     no_undefined_flag_RC \
26675     export_symbols_cmds_RC \
26676     hardcode_libdir_flag_spec_RC \
26677     hardcode_libdir_flag_spec_ld_RC \
26678     hardcode_libdir_separator_RC \
26679     hardcode_automatic_RC \
26680     module_cmds_RC \
26681     module_expsym_cmds_RC \
26682     lt_cv_prog_compiler_c_o_RC \
26683     exclude_expsyms_RC \
26684     include_expsyms_RC; do
26685
26686     case $var in
26687     old_archive_cmds_RC | \
26688     old_archive_from_new_cmds_RC | \
26689     archive_cmds_RC | \
26690     archive_expsym_cmds_RC | \
26691     module_cmds_RC | \
26692     module_expsym_cmds_RC | \
26693     old_archive_from_expsyms_cmds_RC | \
26694     export_symbols_cmds_RC | \
26695     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26696     postinstall_cmds | postuninstall_cmds | \
26697     old_postinstall_cmds | old_postuninstall_cmds | \
26698     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26699       # Double-quote double-evaled strings.
26700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26701       ;;
26702     *)
26703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26704       ;;
26705     esac
26706   done
26707
26708   case $lt_echo in
26709   *'\$0 --fallback-echo"')
26710     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26711     ;;
26712   esac
26713
26714 cfgfile="$ofile"
26715
26716   cat <<__EOF__ >> "$cfgfile"
26717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26718
26719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26720
26721 # Shell to use when invoking shell scripts.
26722 SHELL=$lt_SHELL
26723
26724 # Whether or not to build shared libraries.
26725 build_libtool_libs=$enable_shared
26726
26727 # Whether or not to build static libraries.
26728 build_old_libs=$enable_static
26729
26730 # Whether or not to add -lc for building shared libraries.
26731 build_libtool_need_lc=$archive_cmds_need_lc_RC
26732
26733 # Whether or not to disallow shared libs when runtime libs are static
26734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26735
26736 # Whether or not to optimize for fast installation.
26737 fast_install=$enable_fast_install
26738
26739 # The host system.
26740 host_alias=$host_alias
26741 host=$host
26742 host_os=$host_os
26743
26744 # The build system.
26745 build_alias=$build_alias
26746 build=$build
26747 build_os=$build_os
26748
26749 # An echo program that does not interpret backslashes.
26750 echo=$lt_echo
26751
26752 # The archiver.
26753 AR=$lt_AR
26754 AR_FLAGS=$lt_AR_FLAGS
26755
26756 # A C compiler.
26757 LTCC=$lt_LTCC
26758
26759 # LTCC compiler flags.
26760 LTCFLAGS=$lt_LTCFLAGS
26761
26762 # A language-specific compiler.
26763 CC=$lt_compiler_RC
26764
26765 # Is the compiler the GNU C compiler?
26766 with_gcc=$GCC_RC
26767
26768 # An ERE matcher.
26769 EGREP=$lt_EGREP
26770
26771 # The linker used to build libraries.
26772 LD=$lt_LD_RC
26773
26774 # Whether we need hard or soft links.
26775 LN_S=$lt_LN_S
26776
26777 # A BSD-compatible nm program.
26778 NM=$lt_NM
26779
26780 # A symbol stripping program
26781 STRIP=$lt_STRIP
26782
26783 # Used to examine libraries when file_magic_cmd begins "file"
26784 MAGIC_CMD=$MAGIC_CMD
26785
26786 # Used on cygwin: DLL creation program.
26787 DLLTOOL="$DLLTOOL"
26788
26789 # Used on cygwin: object dumper.
26790 OBJDUMP="$OBJDUMP"
26791
26792 # Used on cygwin: assembler.
26793 AS="$AS"
26794
26795 # The name of the directory that contains temporary libtool files.
26796 objdir=$objdir
26797
26798 # How to create reloadable object files.
26799 reload_flag=$lt_reload_flag
26800 reload_cmds=$lt_reload_cmds
26801
26802 # How to pass a linker flag through the compiler.
26803 wl=$lt_lt_prog_compiler_wl_RC
26804
26805 # Object file suffix (normally "o").
26806 objext="$ac_objext"
26807
26808 # Old archive suffix (normally "a").
26809 libext="$libext"
26810
26811 # Shared library suffix (normally ".so").
26812 shrext_cmds='$shrext_cmds'
26813
26814 # Executable file suffix (normally "").
26815 exeext="$exeext"
26816
26817 # Additional compiler flags for building library objects.
26818 pic_flag=$lt_lt_prog_compiler_pic_RC
26819 pic_mode=$pic_mode
26820
26821 # What is the maximum length of a command?
26822 max_cmd_len=$lt_cv_sys_max_cmd_len
26823
26824 # Does compiler simultaneously support -c and -o options?
26825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26826
26827 # Must we lock files when doing compilation?
26828 need_locks=$lt_need_locks
26829
26830 # Do we need the lib prefix for modules?
26831 need_lib_prefix=$need_lib_prefix
26832
26833 # Do we need a version for libraries?
26834 need_version=$need_version
26835
26836 # Whether dlopen is supported.
26837 dlopen_support=$enable_dlopen
26838
26839 # Whether dlopen of programs is supported.
26840 dlopen_self=$enable_dlopen_self
26841
26842 # Whether dlopen of statically linked programs is supported.
26843 dlopen_self_static=$enable_dlopen_self_static
26844
26845 # Compiler flag to prevent dynamic linking.
26846 link_static_flag=$lt_lt_prog_compiler_static_RC
26847
26848 # Compiler flag to turn off builtin functions.
26849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26850
26851 # Compiler flag to allow reflexive dlopens.
26852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26853
26854 # Compiler flag to generate shared objects directly from archives.
26855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26856
26857 # Compiler flag to generate thread-safe objects.
26858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26859
26860 # Library versioning type.
26861 version_type=$version_type
26862
26863 # Format of library name prefix.
26864 libname_spec=$lt_libname_spec
26865
26866 # List of archive names.  First name is the real one, the rest are links.
26867 # The last name is the one that the linker finds with -lNAME.
26868 library_names_spec=$lt_library_names_spec
26869
26870 # The coded name of the library, if different from the real name.
26871 soname_spec=$lt_soname_spec
26872
26873 # Commands used to build and install an old-style archive.
26874 RANLIB=$lt_RANLIB
26875 old_archive_cmds=$lt_old_archive_cmds_RC
26876 old_postinstall_cmds=$lt_old_postinstall_cmds
26877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26878
26879 # Create an old-style archive from a shared archive.
26880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26881
26882 # Create a temporary old-style archive to link instead of a shared archive.
26883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26884
26885 # Commands used to build and install a shared archive.
26886 archive_cmds=$lt_archive_cmds_RC
26887 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26888 postinstall_cmds=$lt_postinstall_cmds
26889 postuninstall_cmds=$lt_postuninstall_cmds
26890
26891 # Commands used to build a loadable module (assumed same as above if empty)
26892 module_cmds=$lt_module_cmds_RC
26893 module_expsym_cmds=$lt_module_expsym_cmds_RC
26894
26895 # Commands to strip libraries.
26896 old_striplib=$lt_old_striplib
26897 striplib=$lt_striplib
26898
26899 # Dependencies to place before the objects being linked to create a
26900 # shared library.
26901 predep_objects=$lt_predep_objects_RC
26902
26903 # Dependencies to place after the objects being linked to create a
26904 # shared library.
26905 postdep_objects=$lt_postdep_objects_RC
26906
26907 # Dependencies to place before the objects being linked to create a
26908 # shared library.
26909 predeps=$lt_predeps_RC
26910
26911 # Dependencies to place after the objects being linked to create a
26912 # shared library.
26913 postdeps=$lt_postdeps_RC
26914
26915 # The library search path used internally by the compiler when linking
26916 # a shared library.
26917 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26918
26919 # Method to check whether dependent libraries are shared objects.
26920 deplibs_check_method=$lt_deplibs_check_method
26921
26922 # Command to use when deplibs_check_method == file_magic.
26923 file_magic_cmd=$lt_file_magic_cmd
26924
26925 # Flag that allows shared libraries with undefined symbols to be built.
26926 allow_undefined_flag=$lt_allow_undefined_flag_RC
26927
26928 # Flag that forces no undefined symbols.
26929 no_undefined_flag=$lt_no_undefined_flag_RC
26930
26931 # Commands used to finish a libtool library installation in a directory.
26932 finish_cmds=$lt_finish_cmds
26933
26934 # Same as above, but a single script fragment to be evaled but not shown.
26935 finish_eval=$lt_finish_eval
26936
26937 # Take the output of nm and produce a listing of raw symbols and C names.
26938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26939
26940 # Transform the output of nm in a proper C declaration
26941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26942
26943 # Transform the output of nm in a C name address pair
26944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26945
26946 # This is the shared library runtime path variable.
26947 runpath_var=$runpath_var
26948
26949 # This is the shared library path variable.
26950 shlibpath_var=$shlibpath_var
26951
26952 # Is shlibpath searched before the hard-coded library search path?
26953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26954
26955 # How to hardcode a shared library path into an executable.
26956 hardcode_action=$hardcode_action_RC
26957
26958 # Whether we should hardcode library paths into libraries.
26959 hardcode_into_libs=$hardcode_into_libs
26960
26961 # Flag to hardcode \$libdir into a binary during linking.
26962 # This must work even if \$libdir does not exist.
26963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26964
26965 # If ld is used when linking, flag to hardcode \$libdir into
26966 # a binary during linking. This must work even if \$libdir does
26967 # not exist.
26968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26969
26970 # Whether we need a single -rpath flag with a separated argument.
26971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26972
26973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26974 # resulting binary.
26975 hardcode_direct=$hardcode_direct_RC
26976
26977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26978 # resulting binary.
26979 hardcode_minus_L=$hardcode_minus_L_RC
26980
26981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26982 # the resulting binary.
26983 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26984
26985 # Set to yes if building a shared library automatically hardcodes DIR into the library
26986 # and all subsequent libraries and executables linked against it.
26987 hardcode_automatic=$hardcode_automatic_RC
26988
26989 # Variables whose values should be saved in libtool wrapper scripts and
26990 # restored at relink time.
26991 variables_saved_for_relink="$variables_saved_for_relink"
26992
26993 # Whether libtool must link a program against all its dependency libraries.
26994 link_all_deplibs=$link_all_deplibs_RC
26995
26996 # Compile-time system search path for libraries
26997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26998
26999 # Run-time system search path for libraries
27000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27001
27002 # Fix the shell variable \$srcfile for the compiler.
27003 fix_srcfile_path="$fix_srcfile_path_RC"
27004
27005 # Set to yes if exported symbols are required.
27006 always_export_symbols=$always_export_symbols_RC
27007
27008 # The commands to list exported symbols.
27009 export_symbols_cmds=$lt_export_symbols_cmds_RC
27010
27011 # The commands to extract the exported symbol list from a shared archive.
27012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27013
27014 # Symbols that should not be listed in the preloaded symbols.
27015 exclude_expsyms=$lt_exclude_expsyms_RC
27016
27017 # Symbols that must always be exported.
27018 include_expsyms=$lt_include_expsyms_RC
27019
27020 # ### END LIBTOOL TAG CONFIG: $tagname
27021
27022 __EOF__
27023
27024
27025 else
27026   # If there is no Makefile yet, we rely on a make rule to execute
27027   # `config.status --recheck' to rerun these tests and create the
27028   # libtool script then.
27029   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27030   if test -f "$ltmain_in"; then
27031     test -f Makefile && make "$ltmain"
27032   fi
27033 fi
27034
27035
27036 ac_ext=c
27037 ac_cpp='$CPP $CPPFLAGS'
27038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27041
27042 CC="$lt_save_CC"
27043
27044         ;;
27045
27046       *)
27047         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27048 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27049    { (exit 1); exit 1; }; }
27050         ;;
27051       esac
27052
27053       # Append the new tag name to the list of available tags.
27054       if test -n "$tagname" ; then
27055       available_tags="$available_tags $tagname"
27056     fi
27057     fi
27058   done
27059   IFS="$lt_save_ifs"
27060
27061   # Now substitute the updated list of available tags.
27062   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27063     mv "${ofile}T" "$ofile"
27064     chmod +x "$ofile"
27065   else
27066     rm -f "${ofile}T"
27067     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27068 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27069    { (exit 1); exit 1; }; }
27070   fi
27071 fi
27072
27073
27074
27075 # This can be used to rebuild libtool when needed
27076 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27077
27078 # Always use our own libtool.
27079 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27080
27081 # Prevent multiple expansion
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103 if test "$lt_cv_dlopen_self" = "yes" ; then
27104
27105 cat >>confdefs.h <<\_ACEOF
27106 #define CAN_DLOPEN_SELF 1
27107 _ACEOF
27108
27109 fi
27110
27111 if test "$WITH_LLVMGCCDIR" = "default" ; then
27112   LLVMGCC="llvm-gcc${EXEEXT}"
27113   LLVMGXX="llvm-g++${EXEEXT}"
27114   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27115 set dummy $LLVMGCC; ac_word=$2
27116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27118 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27119   echo $ECHO_N "(cached) $ECHO_C" >&6
27120 else
27121   case $LLVMGCC in
27122   [\\/]* | ?:[\\/]*)
27123   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27124   ;;
27125   *)
27126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27127 for as_dir in $PATH
27128 do
27129   IFS=$as_save_IFS
27130   test -z "$as_dir" && as_dir=.
27131   for ac_exec_ext in '' $ac_executable_extensions; do
27132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27133     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27135     break 2
27136   fi
27137 done
27138 done
27139 IFS=$as_save_IFS
27140
27141   ;;
27142 esac
27143 fi
27144 LLVMGCC=$ac_cv_path_LLVMGCC
27145 if test -n "$LLVMGCC"; then
27146   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27147 echo "${ECHO_T}$LLVMGCC" >&6; }
27148 else
27149   { echo "$as_me:$LINENO: result: no" >&5
27150 echo "${ECHO_T}no" >&6; }
27151 fi
27152
27153
27154   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27155 set dummy $LLVMGXX; ac_word=$2
27156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27158 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27159   echo $ECHO_N "(cached) $ECHO_C" >&6
27160 else
27161   case $LLVMGXX in
27162   [\\/]* | ?:[\\/]*)
27163   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27164   ;;
27165   *)
27166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27167 for as_dir in $PATH
27168 do
27169   IFS=$as_save_IFS
27170   test -z "$as_dir" && as_dir=.
27171   for ac_exec_ext in '' $ac_executable_extensions; do
27172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27173     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27175     break 2
27176   fi
27177 done
27178 done
27179 IFS=$as_save_IFS
27180
27181   ;;
27182 esac
27183 fi
27184 LLVMGXX=$ac_cv_path_LLVMGXX
27185 if test -n "$LLVMGXX"; then
27186   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27187 echo "${ECHO_T}$LLVMGXX" >&6; }
27188 else
27189   { echo "$as_me:$LINENO: result: no" >&5
27190 echo "${ECHO_T}no" >&6; }
27191 fi
27192
27193
27194 else
27195   if test -z "$LLVMGCC"; then
27196     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27197   fi
27198   if test -z "$LLVMGXX"; then
27199     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27200   fi
27201   LLVMGCC=$LLVMGCC
27202
27203   LLVMGXX=$LLVMGXX
27204
27205 fi
27206
27207 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27208 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27209
27210 ICC=no
27211 IXX=no
27212 case $CC in
27213   icc*|icpc*)
27214     ICC=yes
27215     IXX=yes
27216     ;;
27217    *)
27218     ;;
27219 esac
27220
27221 if test "$GCC" != "yes" && test "$ICC" != "yes"
27222 then
27223   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27224 echo "$as_me: error: gcc|icc required but not found" >&2;}
27225    { (exit 1); exit 1; }; }
27226 fi
27227
27228 if test "$GXX" != "yes" && test "$IXX" != "yes"
27229 then
27230   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27231 echo "$as_me: error: g++|icc required but not found" >&2;}
27232    { (exit 1); exit 1; }; }
27233 fi
27234
27235 if test "$GCC" = "yes"
27236 then
27237   cat >conftest.$ac_ext <<_ACEOF
27238 #if !defined(__GNUC__) || __GNUC__ < 3
27239 #error Unsupported GCC version
27240 #endif
27241
27242 _ACEOF
27243 rm -f conftest.$ac_objext
27244 if { (ac_try="$ac_compile"
27245 case "(($ac_try" in
27246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247   *) ac_try_echo=$ac_try;;
27248 esac
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250   (eval "$ac_compile") 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } &&
27257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258   { (case "(($ac_try" in
27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260   *) ac_try_echo=$ac_try;;
27261 esac
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263   (eval "$ac_try") 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; } &&
27267          { ac_try='test -s conftest.$ac_objext'
27268   { (case "(($ac_try" in
27269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270   *) ac_try_echo=$ac_try;;
27271 esac
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273   (eval "$ac_try") 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; }; then
27277   :
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27283 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27284    { (exit 1); exit 1; }; }
27285 fi
27286
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288 fi
27289
27290 if test -z "$llvm_cv_gnu_make_command"
27291 then
27292   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27293 echo "$as_me: error: GNU Make required but not found" >&2;}
27294    { (exit 1); exit 1; }; }
27295 fi
27296
27297 { echo "$as_me:$LINENO: result: ok" >&5
27298 echo "${ECHO_T}ok" >&6; }
27299
27300
27301
27302 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27303 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27304 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27305   echo $ECHO_N "(cached) $ECHO_C" >&6
27306 else
27307   ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-lelf  $LIBS"
27309 cat >conftest.$ac_ext <<_ACEOF
27310 /* confdefs.h.  */
27311 _ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h.  */
27315
27316 /* Override any GCC internal prototype to avoid an error.
27317    Use char because int might match the return type of a GCC
27318    builtin and then its argument prototype would still apply.  */
27319 #ifdef __cplusplus
27320 extern "C"
27321 #endif
27322 char elf_begin ();
27323 int
27324 main ()
27325 {
27326 return elf_begin ();
27327   ;
27328   return 0;
27329 }
27330 _ACEOF
27331 rm -f conftest.$ac_objext conftest$ac_exeext
27332 if { (ac_try="$ac_link"
27333 case "(($ac_try" in
27334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335   *) ac_try_echo=$ac_try;;
27336 esac
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338   (eval "$ac_link") 2>conftest.er1
27339   ac_status=$?
27340   grep -v '^ *+' conftest.er1 >conftest.err
27341   rm -f conftest.er1
27342   cat conftest.err >&5
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); } &&
27345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346   { (case "(($ac_try" in
27347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348   *) ac_try_echo=$ac_try;;
27349 esac
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351   (eval "$ac_try") 2>&5
27352   ac_status=$?
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); }; } &&
27355          { ac_try='test -s conftest$ac_exeext'
27356   { (case "(($ac_try" in
27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358   *) ac_try_echo=$ac_try;;
27359 esac
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361   (eval "$ac_try") 2>&5
27362   ac_status=$?
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); }; }; then
27365   ac_cv_lib_elf_elf_begin=yes
27366 else
27367   echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370         ac_cv_lib_elf_elf_begin=no
27371 fi
27372
27373 rm -f core conftest.err conftest.$ac_objext \
27374       conftest$ac_exeext conftest.$ac_ext
27375 LIBS=$ac_check_lib_save_LIBS
27376 fi
27377 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27378 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27379 if test $ac_cv_lib_elf_elf_begin = yes; then
27380   cat >>confdefs.h <<_ACEOF
27381 #define HAVE_LIBELF 1
27382 _ACEOF
27383
27384   LIBS="-lelf $LIBS"
27385
27386 fi
27387
27388
27389 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27390 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27391 if test "${ac_cv_lib_m_sin+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   ac_check_lib_save_LIBS=$LIBS
27395 LIBS="-lm  $LIBS"
27396 cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402
27403 /* Override any GCC internal prototype to avoid an error.
27404    Use char because int might match the return type of a GCC
27405    builtin and then its argument prototype would still apply.  */
27406 #ifdef __cplusplus
27407 extern "C"
27408 #endif
27409 char sin ();
27410 int
27411 main ()
27412 {
27413 return sin ();
27414   ;
27415   return 0;
27416 }
27417 _ACEOF
27418 rm -f conftest.$ac_objext conftest$ac_exeext
27419 if { (ac_try="$ac_link"
27420 case "(($ac_try" in
27421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422   *) ac_try_echo=$ac_try;;
27423 esac
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425   (eval "$ac_link") 2>conftest.er1
27426   ac_status=$?
27427   grep -v '^ *+' conftest.er1 >conftest.err
27428   rm -f conftest.er1
27429   cat conftest.err >&5
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); } &&
27432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27433   { (case "(($ac_try" in
27434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435   *) ac_try_echo=$ac_try;;
27436 esac
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438   (eval "$ac_try") 2>&5
27439   ac_status=$?
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); }; } &&
27442          { ac_try='test -s conftest$ac_exeext'
27443   { (case "(($ac_try" in
27444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445   *) ac_try_echo=$ac_try;;
27446 esac
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448   (eval "$ac_try") 2>&5
27449   ac_status=$?
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); }; }; then
27452   ac_cv_lib_m_sin=yes
27453 else
27454   echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27456
27457         ac_cv_lib_m_sin=no
27458 fi
27459
27460 rm -f core conftest.err conftest.$ac_objext \
27461       conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27463 fi
27464 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27465 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27466 if test $ac_cv_lib_m_sin = yes; then
27467   cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBM 1
27469 _ACEOF
27470
27471   LIBS="-lm $LIBS"
27472
27473 fi
27474
27475 if test "$llvm_cv_os_type" = "MingW" ; then
27476
27477 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27478 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27479 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27480   echo $ECHO_N "(cached) $ECHO_C" >&6
27481 else
27482   ac_check_lib_save_LIBS=$LIBS
27483 LIBS="-limagehlp  $LIBS"
27484 cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490
27491
27492 int
27493 main ()
27494 {
27495 return main ();
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_link") 2>conftest.er1
27508   ac_status=$?
27509   grep -v '^ *+' conftest.er1 >conftest.err
27510   rm -f conftest.er1
27511   cat conftest.err >&5
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); } &&
27514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27515   { (case "(($ac_try" in
27516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517   *) ac_try_echo=$ac_try;;
27518 esac
27519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520   (eval "$ac_try") 2>&5
27521   ac_status=$?
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); }; } &&
27524          { ac_try='test -s conftest$ac_exeext'
27525   { (case "(($ac_try" in
27526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527   *) ac_try_echo=$ac_try;;
27528 esac
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530   (eval "$ac_try") 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; }; then
27534   ac_cv_lib_imagehlp_main=yes
27535 else
27536   echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27538
27539         ac_cv_lib_imagehlp_main=no
27540 fi
27541
27542 rm -f core conftest.err conftest.$ac_objext \
27543       conftest$ac_exeext conftest.$ac_ext
27544 LIBS=$ac_check_lib_save_LIBS
27545 fi
27546 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27547 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27548 if test $ac_cv_lib_imagehlp_main = yes; then
27549   cat >>confdefs.h <<_ACEOF
27550 #define HAVE_LIBIMAGEHLP 1
27551 _ACEOF
27552
27553   LIBS="-limagehlp $LIBS"
27554
27555 fi
27556
27557
27558 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27559 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27560 if test "${ac_cv_lib_psapi_main+set}" = set; then
27561   echo $ECHO_N "(cached) $ECHO_C" >&6
27562 else
27563   ac_check_lib_save_LIBS=$LIBS
27564 LIBS="-lpsapi  $LIBS"
27565 cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571
27572
27573 int
27574 main ()
27575 {
27576 return main ();
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (ac_try="$ac_link"
27583 case "(($ac_try" in
27584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585   *) ac_try_echo=$ac_try;;
27586 esac
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588   (eval "$ac_link") 2>conftest.er1
27589   ac_status=$?
27590   grep -v '^ *+' conftest.er1 >conftest.err
27591   rm -f conftest.er1
27592   cat conftest.err >&5
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); } &&
27595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27596   { (case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_try") 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; } &&
27605          { ac_try='test -s conftest$ac_exeext'
27606   { (case "(($ac_try" in
27607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608   *) ac_try_echo=$ac_try;;
27609 esac
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611   (eval "$ac_try") 2>&5
27612   ac_status=$?
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); }; }; then
27615   ac_cv_lib_psapi_main=yes
27616 else
27617   echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27619
27620         ac_cv_lib_psapi_main=no
27621 fi
27622
27623 rm -f core conftest.err conftest.$ac_objext \
27624       conftest$ac_exeext conftest.$ac_ext
27625 LIBS=$ac_check_lib_save_LIBS
27626 fi
27627 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27628 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27629 if test $ac_cv_lib_psapi_main = yes; then
27630   cat >>confdefs.h <<_ACEOF
27631 #define HAVE_LIBPSAPI 1
27632 _ACEOF
27633
27634   LIBS="-lpsapi $LIBS"
27635
27636 fi
27637
27638 fi
27639
27640 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27641 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27642 if test "${ac_cv_search_dlopen+set}" = set; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645   ac_func_search_save_LIBS=$LIBS
27646 cat >conftest.$ac_ext <<_ACEOF
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652
27653 /* Override any GCC internal prototype to avoid an error.
27654    Use char because int might match the return type of a GCC
27655    builtin and then its argument prototype would still apply.  */
27656 #ifdef __cplusplus
27657 extern "C"
27658 #endif
27659 char dlopen ();
27660 int
27661 main ()
27662 {
27663 return dlopen ();
27664   ;
27665   return 0;
27666 }
27667 _ACEOF
27668 for ac_lib in '' dl; do
27669   if test -z "$ac_lib"; then
27670     ac_res="none required"
27671   else
27672     ac_res=-l$ac_lib
27673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27674   fi
27675   rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679   *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682   (eval "$ac_link") 2>conftest.er1
27683   ac_status=$?
27684   grep -v '^ *+' conftest.er1 >conftest.err
27685   rm -f conftest.er1
27686   cat conftest.err >&5
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); } &&
27689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27690   { (case "(($ac_try" in
27691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692   *) ac_try_echo=$ac_try;;
27693 esac
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695   (eval "$ac_try") 2>&5
27696   ac_status=$?
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); }; } &&
27699          { ac_try='test -s conftest$ac_exeext'
27700   { (case "(($ac_try" in
27701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702   *) ac_try_echo=$ac_try;;
27703 esac
27704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705   (eval "$ac_try") 2>&5
27706   ac_status=$?
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); }; }; then
27709   ac_cv_search_dlopen=$ac_res
27710 else
27711   echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714
27715 fi
27716
27717 rm -f core conftest.err conftest.$ac_objext \
27718       conftest$ac_exeext
27719   if test "${ac_cv_search_dlopen+set}" = set; then
27720   break
27721 fi
27722 done
27723 if test "${ac_cv_search_dlopen+set}" = set; then
27724   :
27725 else
27726   ac_cv_search_dlopen=no
27727 fi
27728 rm conftest.$ac_ext
27729 LIBS=$ac_func_search_save_LIBS
27730 fi
27731 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27732 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27733 ac_res=$ac_cv_search_dlopen
27734 if test "$ac_res" != no; then
27735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27736
27737 cat >>confdefs.h <<\_ACEOF
27738 #define HAVE_DLOPEN 1
27739 _ACEOF
27740
27741 else
27742   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27743 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27744 fi
27745
27746
27747 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27748 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27749 if test "${ac_cv_search_mallinfo+set}" = set; then
27750   echo $ECHO_N "(cached) $ECHO_C" >&6
27751 else
27752   ac_func_search_save_LIBS=$LIBS
27753 cat >conftest.$ac_ext <<_ACEOF
27754 /* confdefs.h.  */
27755 _ACEOF
27756 cat confdefs.h >>conftest.$ac_ext
27757 cat >>conftest.$ac_ext <<_ACEOF
27758 /* end confdefs.h.  */
27759
27760 /* Override any GCC internal prototype to avoid an error.
27761    Use char because int might match the return type of a GCC
27762    builtin and then its argument prototype would still apply.  */
27763 #ifdef __cplusplus
27764 extern "C"
27765 #endif
27766 char mallinfo ();
27767 int
27768 main ()
27769 {
27770 return mallinfo ();
27771   ;
27772   return 0;
27773 }
27774 _ACEOF
27775 for ac_lib in '' malloc; do
27776   if test -z "$ac_lib"; then
27777     ac_res="none required"
27778   else
27779     ac_res=-l$ac_lib
27780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27781   fi
27782   rm -f conftest.$ac_objext conftest$ac_exeext
27783 if { (ac_try="$ac_link"
27784 case "(($ac_try" in
27785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786   *) ac_try_echo=$ac_try;;
27787 esac
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789   (eval "$ac_link") 2>conftest.er1
27790   ac_status=$?
27791   grep -v '^ *+' conftest.er1 >conftest.err
27792   rm -f conftest.er1
27793   cat conftest.err >&5
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); } &&
27796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27797   { (case "(($ac_try" in
27798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799   *) ac_try_echo=$ac_try;;
27800 esac
27801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802   (eval "$ac_try") 2>&5
27803   ac_status=$?
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); }; } &&
27806          { ac_try='test -s conftest$ac_exeext'
27807   { (case "(($ac_try" in
27808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809   *) ac_try_echo=$ac_try;;
27810 esac
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812   (eval "$ac_try") 2>&5
27813   ac_status=$?
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); }; }; then
27816   ac_cv_search_mallinfo=$ac_res
27817 else
27818   echo "$as_me: failed program was:" >&5
27819 sed 's/^/| /' conftest.$ac_ext >&5
27820
27821
27822 fi
27823
27824 rm -f core conftest.err conftest.$ac_objext \
27825       conftest$ac_exeext
27826   if test "${ac_cv_search_mallinfo+set}" = set; then
27827   break
27828 fi
27829 done
27830 if test "${ac_cv_search_mallinfo+set}" = set; then
27831   :
27832 else
27833   ac_cv_search_mallinfo=no
27834 fi
27835 rm conftest.$ac_ext
27836 LIBS=$ac_func_search_save_LIBS
27837 fi
27838 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27839 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27840 ac_res=$ac_cv_search_mallinfo
27841 if test "$ac_res" != no; then
27842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27843
27844 cat >>confdefs.h <<\_ACEOF
27845 #define HAVE_MALLINFO 1
27846 _ACEOF
27847
27848 fi
27849
27850
27851 if test "$ENABLE_THREADS" -eq 1 ; then
27852
27853 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27854 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27855 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27856   echo $ECHO_N "(cached) $ECHO_C" >&6
27857 else
27858   ac_check_lib_save_LIBS=$LIBS
27859 LIBS="-lpthread  $LIBS"
27860 cat >conftest.$ac_ext <<_ACEOF
27861 /* confdefs.h.  */
27862 _ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h.  */
27866
27867 /* Override any GCC internal prototype to avoid an error.
27868    Use char because int might match the return type of a GCC
27869    builtin and then its argument prototype would still apply.  */
27870 #ifdef __cplusplus
27871 extern "C"
27872 #endif
27873 char pthread_mutex_init ();
27874 int
27875 main ()
27876 {
27877 return pthread_mutex_init ();
27878   ;
27879   return 0;
27880 }
27881 _ACEOF
27882 rm -f conftest.$ac_objext conftest$ac_exeext
27883 if { (ac_try="$ac_link"
27884 case "(($ac_try" in
27885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886   *) ac_try_echo=$ac_try;;
27887 esac
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889   (eval "$ac_link") 2>conftest.er1
27890   ac_status=$?
27891   grep -v '^ *+' conftest.er1 >conftest.err
27892   rm -f conftest.er1
27893   cat conftest.err >&5
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); } &&
27896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27897   { (case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_try") 2>&5
27903   ac_status=$?
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); }; } &&
27906          { ac_try='test -s conftest$ac_exeext'
27907   { (case "(($ac_try" in
27908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909   *) ac_try_echo=$ac_try;;
27910 esac
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912   (eval "$ac_try") 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; }; then
27916   ac_cv_lib_pthread_pthread_mutex_init=yes
27917 else
27918   echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27920
27921         ac_cv_lib_pthread_pthread_mutex_init=no
27922 fi
27923
27924 rm -f core conftest.err conftest.$ac_objext \
27925       conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27927 fi
27928 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27929 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27930 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27931   cat >>confdefs.h <<_ACEOF
27932 #define HAVE_LIBPTHREAD 1
27933 _ACEOF
27934
27935   LIBS="-lpthread $LIBS"
27936
27937 fi
27938
27939   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27940 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27941 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27942   echo $ECHO_N "(cached) $ECHO_C" >&6
27943 else
27944   ac_func_search_save_LIBS=$LIBS
27945 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951
27952 /* Override any GCC internal prototype to avoid an error.
27953    Use char because int might match the return type of a GCC
27954    builtin and then its argument prototype would still apply.  */
27955 #ifdef __cplusplus
27956 extern "C"
27957 #endif
27958 char pthread_mutex_lock ();
27959 int
27960 main ()
27961 {
27962 return pthread_mutex_lock ();
27963   ;
27964   return 0;
27965 }
27966 _ACEOF
27967 for ac_lib in '' pthread; do
27968   if test -z "$ac_lib"; then
27969     ac_res="none required"
27970   else
27971     ac_res=-l$ac_lib
27972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27973   fi
27974   rm -f conftest.$ac_objext conftest$ac_exeext
27975 if { (ac_try="$ac_link"
27976 case "(($ac_try" in
27977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978   *) ac_try_echo=$ac_try;;
27979 esac
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981   (eval "$ac_link") 2>conftest.er1
27982   ac_status=$?
27983   grep -v '^ *+' conftest.er1 >conftest.err
27984   rm -f conftest.er1
27985   cat conftest.err >&5
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); } &&
27988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27989   { (case "(($ac_try" in
27990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991   *) ac_try_echo=$ac_try;;
27992 esac
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994   (eval "$ac_try") 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; } &&
27998          { ac_try='test -s conftest$ac_exeext'
27999   { (case "(($ac_try" in
28000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001   *) ac_try_echo=$ac_try;;
28002 esac
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004   (eval "$ac_try") 2>&5
28005   ac_status=$?
28006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007   (exit $ac_status); }; }; then
28008   ac_cv_search_pthread_mutex_lock=$ac_res
28009 else
28010   echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28012
28013
28014 fi
28015
28016 rm -f core conftest.err conftest.$ac_objext \
28017       conftest$ac_exeext
28018   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28019   break
28020 fi
28021 done
28022 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28023   :
28024 else
28025   ac_cv_search_pthread_mutex_lock=no
28026 fi
28027 rm conftest.$ac_ext
28028 LIBS=$ac_func_search_save_LIBS
28029 fi
28030 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28031 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28032 ac_res=$ac_cv_search_pthread_mutex_lock
28033 if test "$ac_res" != no; then
28034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28035
28036 cat >>confdefs.h <<\_ACEOF
28037 #define HAVE_PTHREAD_MUTEX_LOCK 1
28038 _ACEOF
28039
28040 fi
28041
28042 fi
28043
28044
28045 # Check whether --with-udis86 was given.
28046 if test "${with_udis86+set}" = set; then
28047   withval=$with_udis86;
28048       USE_UDIS86=1
28049
28050       case "$withval" in
28051         /usr/lib|yes) ;;
28052         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28053       esac
28054
28055 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28056 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28057 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28058   echo $ECHO_N "(cached) $ECHO_C" >&6
28059 else
28060   ac_check_lib_save_LIBS=$LIBS
28061 LIBS="-ludis86  $LIBS"
28062 cat >conftest.$ac_ext <<_ACEOF
28063 /* confdefs.h.  */
28064 _ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h.  */
28068
28069 /* Override any GCC internal prototype to avoid an error.
28070    Use char because int might match the return type of a GCC
28071    builtin and then its argument prototype would still apply.  */
28072 #ifdef __cplusplus
28073 extern "C"
28074 #endif
28075 char ud_init ();
28076 int
28077 main ()
28078 {
28079 return ud_init ();
28080   ;
28081   return 0;
28082 }
28083 _ACEOF
28084 rm -f conftest.$ac_objext conftest$ac_exeext
28085 if { (ac_try="$ac_link"
28086 case "(($ac_try" in
28087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088   *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091   (eval "$ac_link") 2>conftest.er1
28092   ac_status=$?
28093   grep -v '^ *+' conftest.er1 >conftest.err
28094   rm -f conftest.er1
28095   cat conftest.err >&5
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); } &&
28098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28099   { (case "(($ac_try" in
28100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101   *) ac_try_echo=$ac_try;;
28102 esac
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104   (eval "$ac_try") 2>&5
28105   ac_status=$?
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); }; } &&
28108          { ac_try='test -s conftest$ac_exeext'
28109   { (case "(($ac_try" in
28110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28111   *) ac_try_echo=$ac_try;;
28112 esac
28113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28114   (eval "$ac_try") 2>&5
28115   ac_status=$?
28116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); }; }; then
28118   ac_cv_lib_udis86_ud_init=yes
28119 else
28120   echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28122
28123         ac_cv_lib_udis86_ud_init=no
28124 fi
28125
28126 rm -f core conftest.err conftest.$ac_objext \
28127       conftest$ac_exeext conftest.$ac_ext
28128 LIBS=$ac_check_lib_save_LIBS
28129 fi
28130 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28131 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28132 if test $ac_cv_lib_udis86_ud_init = yes; then
28133   cat >>confdefs.h <<_ACEOF
28134 #define HAVE_LIBUDIS86 1
28135 _ACEOF
28136
28137   LIBS="-ludis86 $LIBS"
28138
28139 else
28140
28141         echo "Error! You need to have libudis86 around."
28142         exit -1
28143
28144 fi
28145
28146
28147 else
28148   USE_UDIS86=0
28149
28150 fi
28151
28152
28153 cat >>confdefs.h <<_ACEOF
28154 #define USE_UDIS86 $USE_UDIS86
28155 _ACEOF
28156
28157
28158
28159
28160
28161
28162
28163
28164 ac_header_dirent=no
28165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28166   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28167 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172   cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28178 #include <sys/types.h>
28179 #include <$ac_hdr>
28180
28181 int
28182 main ()
28183 {
28184 if ((DIR *) 0)
28185 return 0;
28186   ;
28187   return 0;
28188 }
28189 _ACEOF
28190 rm -f conftest.$ac_objext
28191 if { (ac_try="$ac_compile"
28192 case "(($ac_try" in
28193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194   *) ac_try_echo=$ac_try;;
28195 esac
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197   (eval "$ac_compile") 2>conftest.er1
28198   ac_status=$?
28199   grep -v '^ *+' conftest.er1 >conftest.err
28200   rm -f conftest.er1
28201   cat conftest.err >&5
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); } &&
28204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28211   ac_status=$?
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); }; } &&
28214          { ac_try='test -s conftest.$ac_objext'
28215   { (case "(($ac_try" in
28216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217   *) ac_try_echo=$ac_try;;
28218 esac
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220   (eval "$ac_try") 2>&5
28221   ac_status=$?
28222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223   (exit $ac_status); }; }; then
28224   eval "$as_ac_Header=yes"
28225 else
28226   echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28228
28229         eval "$as_ac_Header=no"
28230 fi
28231
28232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28233 fi
28234 ac_res=`eval echo '${'$as_ac_Header'}'`
28235                { echo "$as_me:$LINENO: result: $ac_res" >&5
28236 echo "${ECHO_T}$ac_res" >&6; }
28237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28238   cat >>confdefs.h <<_ACEOF
28239 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28240 _ACEOF
28241
28242 ac_header_dirent=$ac_hdr; break
28243 fi
28244
28245 done
28246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28247 if test $ac_header_dirent = dirent.h; then
28248   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28250 if test "${ac_cv_search_opendir+set}" = set; then
28251   echo $ECHO_N "(cached) $ECHO_C" >&6
28252 else
28253   ac_func_search_save_LIBS=$LIBS
28254 cat >conftest.$ac_ext <<_ACEOF
28255 /* confdefs.h.  */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h.  */
28260
28261 /* Override any GCC internal prototype to avoid an error.
28262    Use char because int might match the return type of a GCC
28263    builtin and then its argument prototype would still apply.  */
28264 #ifdef __cplusplus
28265 extern "C"
28266 #endif
28267 char opendir ();
28268 int
28269 main ()
28270 {
28271 return opendir ();
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 for ac_lib in '' dir; do
28277   if test -z "$ac_lib"; then
28278     ac_res="none required"
28279   else
28280     ac_res=-l$ac_lib
28281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28282   fi
28283   rm -f conftest.$ac_objext conftest$ac_exeext
28284 if { (ac_try="$ac_link"
28285 case "(($ac_try" in
28286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287   *) ac_try_echo=$ac_try;;
28288 esac
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290   (eval "$ac_link") 2>conftest.er1
28291   ac_status=$?
28292   grep -v '^ *+' conftest.er1 >conftest.err
28293   rm -f conftest.er1
28294   cat conftest.err >&5
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); } &&
28297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28298   { (case "(($ac_try" in
28299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300   *) ac_try_echo=$ac_try;;
28301 esac
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303   (eval "$ac_try") 2>&5
28304   ac_status=$?
28305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306   (exit $ac_status); }; } &&
28307          { ac_try='test -s conftest$ac_exeext'
28308   { (case "(($ac_try" in
28309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310   *) ac_try_echo=$ac_try;;
28311 esac
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313   (eval "$ac_try") 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; }; then
28317   ac_cv_search_opendir=$ac_res
28318 else
28319   echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28321
28322
28323 fi
28324
28325 rm -f core conftest.err conftest.$ac_objext \
28326       conftest$ac_exeext
28327   if test "${ac_cv_search_opendir+set}" = set; then
28328   break
28329 fi
28330 done
28331 if test "${ac_cv_search_opendir+set}" = set; then
28332   :
28333 else
28334   ac_cv_search_opendir=no
28335 fi
28336 rm conftest.$ac_ext
28337 LIBS=$ac_func_search_save_LIBS
28338 fi
28339 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28340 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28341 ac_res=$ac_cv_search_opendir
28342 if test "$ac_res" != no; then
28343   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28344
28345 fi
28346
28347 else
28348   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28350 if test "${ac_cv_search_opendir+set}" = set; then
28351   echo $ECHO_N "(cached) $ECHO_C" >&6
28352 else
28353   ac_func_search_save_LIBS=$LIBS
28354 cat >conftest.$ac_ext <<_ACEOF
28355 /* confdefs.h.  */
28356 _ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h.  */
28360
28361 /* Override any GCC internal prototype to avoid an error.
28362    Use char because int might match the return type of a GCC
28363    builtin and then its argument prototype would still apply.  */
28364 #ifdef __cplusplus
28365 extern "C"
28366 #endif
28367 char opendir ();
28368 int
28369 main ()
28370 {
28371 return opendir ();
28372   ;
28373   return 0;
28374 }
28375 _ACEOF
28376 for ac_lib in '' x; do
28377   if test -z "$ac_lib"; then
28378     ac_res="none required"
28379   else
28380     ac_res=-l$ac_lib
28381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28382   fi
28383   rm -f conftest.$ac_objext conftest$ac_exeext
28384 if { (ac_try="$ac_link"
28385 case "(($ac_try" in
28386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387   *) ac_try_echo=$ac_try;;
28388 esac
28389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390   (eval "$ac_link") 2>conftest.er1
28391   ac_status=$?
28392   grep -v '^ *+' conftest.er1 >conftest.err
28393   rm -f conftest.er1
28394   cat conftest.err >&5
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); } &&
28397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28398   { (case "(($ac_try" in
28399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400   *) ac_try_echo=$ac_try;;
28401 esac
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403   (eval "$ac_try") 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; } &&
28407          { ac_try='test -s conftest$ac_exeext'
28408   { (case "(($ac_try" in
28409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410   *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413   (eval "$ac_try") 2>&5
28414   ac_status=$?
28415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416   (exit $ac_status); }; }; then
28417   ac_cv_search_opendir=$ac_res
28418 else
28419   echo "$as_me: failed program was:" >&5
28420 sed 's/^/| /' conftest.$ac_ext >&5
28421
28422
28423 fi
28424
28425 rm -f core conftest.err conftest.$ac_objext \
28426       conftest$ac_exeext
28427   if test "${ac_cv_search_opendir+set}" = set; then
28428   break
28429 fi
28430 done
28431 if test "${ac_cv_search_opendir+set}" = set; then
28432   :
28433 else
28434   ac_cv_search_opendir=no
28435 fi
28436 rm conftest.$ac_ext
28437 LIBS=$ac_func_search_save_LIBS
28438 fi
28439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28441 ac_res=$ac_cv_search_opendir
28442 if test "$ac_res" != no; then
28443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28444
28445 fi
28446
28447 fi
28448
28449 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28450 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28451 if test "${ac_cv_header_mmap_anon+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454    ac_ext=c
28455 ac_cpp='$CPP $CPPFLAGS'
28456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28459
28460   cat >conftest.$ac_ext <<_ACEOF
28461 /* confdefs.h.  */
28462 _ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h.  */
28466 #include <sys/mman.h>
28467 #include <unistd.h>
28468 #include <fcntl.h>
28469 int
28470 main ()
28471 {
28472 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28473   ;
28474   return 0;
28475 }
28476 _ACEOF
28477 rm -f conftest.$ac_objext
28478 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28485   ac_status=$?
28486   grep -v '^ *+' conftest.er1 >conftest.err
28487   rm -f conftest.er1
28488   cat conftest.err >&5
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); } &&
28491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492   { (case "(($ac_try" in
28493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494   *) ac_try_echo=$ac_try;;
28495 esac
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497   (eval "$ac_try") 2>&5
28498   ac_status=$?
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); }; } &&
28501          { ac_try='test -s conftest.$ac_objext'
28502   { (case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_try") 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; }; then
28511   ac_cv_header_mmap_anon=yes
28512 else
28513   echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28515
28516         ac_cv_header_mmap_anon=no
28517 fi
28518
28519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28520   ac_ext=c
28521 ac_cpp='$CPP $CPPFLAGS'
28522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28525
28526
28527 fi
28528 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28529 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28530 if test "$ac_cv_header_mmap_anon" = yes; then
28531
28532 cat >>confdefs.h <<\_ACEOF
28533 #define HAVE_MMAP_ANONYMOUS 1
28534 _ACEOF
28535
28536 fi
28537
28538 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28540 if test "${ac_cv_header_stat_broken+set}" = set; then
28541   echo $ECHO_N "(cached) $ECHO_C" >&6
28542 else
28543   cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549 #include <sys/types.h>
28550 #include <sys/stat.h>
28551
28552 #if defined S_ISBLK && defined S_IFDIR
28553 # if S_ISBLK (S_IFDIR)
28554 You lose.
28555 # endif
28556 #endif
28557
28558 #if defined S_ISBLK && defined S_IFCHR
28559 # if S_ISBLK (S_IFCHR)
28560 You lose.
28561 # endif
28562 #endif
28563
28564 #if defined S_ISLNK && defined S_IFREG
28565 # if S_ISLNK (S_IFREG)
28566 You lose.
28567 # endif
28568 #endif
28569
28570 #if defined S_ISSOCK && defined S_IFREG
28571 # if S_ISSOCK (S_IFREG)
28572 You lose.
28573 # endif
28574 #endif
28575
28576 _ACEOF
28577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28578   $EGREP "You lose" >/dev/null 2>&1; then
28579   ac_cv_header_stat_broken=yes
28580 else
28581   ac_cv_header_stat_broken=no
28582 fi
28583 rm -f conftest*
28584
28585 fi
28586 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28587 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28588 if test $ac_cv_header_stat_broken = yes; then
28589
28590 cat >>confdefs.h <<\_ACEOF
28591 #define STAT_MACROS_BROKEN 1
28592 _ACEOF
28593
28594 fi
28595
28596 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28598 if test "${ac_cv_header_stdc+set}" = set; then
28599   echo $ECHO_N "(cached) $ECHO_C" >&6
28600 else
28601   cat >conftest.$ac_ext <<_ACEOF
28602 /* confdefs.h.  */
28603 _ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h.  */
28607 #include <stdlib.h>
28608 #include <stdarg.h>
28609 #include <string.h>
28610 #include <float.h>
28611
28612 int
28613 main ()
28614 {
28615
28616   ;
28617   return 0;
28618 }
28619 _ACEOF
28620 rm -f conftest.$ac_objext
28621 if { (ac_try="$ac_compile"
28622 case "(($ac_try" in
28623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624   *) ac_try_echo=$ac_try;;
28625 esac
28626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627   (eval "$ac_compile") 2>conftest.er1
28628   ac_status=$?
28629   grep -v '^ *+' conftest.er1 >conftest.err
28630   rm -f conftest.er1
28631   cat conftest.err >&5
28632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633   (exit $ac_status); } &&
28634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28635   { (case "(($ac_try" in
28636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637   *) ac_try_echo=$ac_try;;
28638 esac
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640   (eval "$ac_try") 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; } &&
28644          { ac_try='test -s conftest.$ac_objext'
28645   { (case "(($ac_try" in
28646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647   *) ac_try_echo=$ac_try;;
28648 esac
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650   (eval "$ac_try") 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; }; then
28654   ac_cv_header_stdc=yes
28655 else
28656   echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28658
28659         ac_cv_header_stdc=no
28660 fi
28661
28662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28663
28664 if test $ac_cv_header_stdc = yes; then
28665   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28666   cat >conftest.$ac_ext <<_ACEOF
28667 /* confdefs.h.  */
28668 _ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h.  */
28672 #include <string.h>
28673
28674 _ACEOF
28675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28676   $EGREP "memchr" >/dev/null 2>&1; then
28677   :
28678 else
28679   ac_cv_header_stdc=no
28680 fi
28681 rm -f conftest*
28682
28683 fi
28684
28685 if test $ac_cv_header_stdc = yes; then
28686   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28687   cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693 #include <stdlib.h>
28694
28695 _ACEOF
28696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28697   $EGREP "free" >/dev/null 2>&1; then
28698   :
28699 else
28700   ac_cv_header_stdc=no
28701 fi
28702 rm -f conftest*
28703
28704 fi
28705
28706 if test $ac_cv_header_stdc = yes; then
28707   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28708   if test "$cross_compiling" = yes; then
28709   :
28710 else
28711   cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h.  */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h.  */
28717 #include <ctype.h>
28718 #include <stdlib.h>
28719 #if ((' ' & 0x0FF) == 0x020)
28720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28722 #else
28723 # define ISLOWER(c) \
28724                    (('a' <= (c) && (c) <= 'i') \
28725                      || ('j' <= (c) && (c) <= 'r') \
28726                      || ('s' <= (c) && (c) <= 'z'))
28727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28728 #endif
28729
28730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28731 int
28732 main ()
28733 {
28734   int i;
28735   for (i = 0; i < 256; i++)
28736     if (XOR (islower (i), ISLOWER (i))
28737         || toupper (i) != TOUPPER (i))
28738       return 2;
28739   return 0;
28740 }
28741 _ACEOF
28742 rm -f conftest$ac_exeext
28743 if { (ac_try="$ac_link"
28744 case "(($ac_try" in
28745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28746   *) ac_try_echo=$ac_try;;
28747 esac
28748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28749   (eval "$ac_link") 2>&5
28750   ac_status=$?
28751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28753   { (case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758   (eval "$ac_try") 2>&5
28759   ac_status=$?
28760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761   (exit $ac_status); }; }; then
28762   :
28763 else
28764   echo "$as_me: program exited with status $ac_status" >&5
28765 echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28767
28768 ( exit $ac_status )
28769 ac_cv_header_stdc=no
28770 fi
28771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28772 fi
28773
28774
28775 fi
28776 fi
28777 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28778 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28779 if test $ac_cv_header_stdc = yes; then
28780
28781 cat >>confdefs.h <<\_ACEOF
28782 #define STDC_HEADERS 1
28783 _ACEOF
28784
28785 fi
28786
28787 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28788 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28789 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28790   echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792   cat >conftest.$ac_ext <<_ACEOF
28793 /* confdefs.h.  */
28794 _ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h.  */
28798 #include <sys/types.h>
28799 #include <sys/wait.h>
28800 #ifndef WEXITSTATUS
28801 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28802 #endif
28803 #ifndef WIFEXITED
28804 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28805 #endif
28806
28807 int
28808 main ()
28809 {
28810   int s;
28811   wait (&s);
28812   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28813   ;
28814   return 0;
28815 }
28816 _ACEOF
28817 rm -f conftest.$ac_objext
28818 if { (ac_try="$ac_compile"
28819 case "(($ac_try" in
28820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821   *) ac_try_echo=$ac_try;;
28822 esac
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824   (eval "$ac_compile") 2>conftest.er1
28825   ac_status=$?
28826   grep -v '^ *+' conftest.er1 >conftest.err
28827   rm -f conftest.er1
28828   cat conftest.err >&5
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } &&
28831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832   { (case "(($ac_try" in
28833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834   *) ac_try_echo=$ac_try;;
28835 esac
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837   (eval "$ac_try") 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; } &&
28841          { ac_try='test -s conftest.$ac_objext'
28842   { (case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847   (eval "$ac_try") 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); }; }; then
28851   ac_cv_header_sys_wait_h=yes
28852 else
28853   echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28855
28856         ac_cv_header_sys_wait_h=no
28857 fi
28858
28859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28860 fi
28861 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28862 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28863 if test $ac_cv_header_sys_wait_h = yes; then
28864
28865 cat >>confdefs.h <<\_ACEOF
28866 #define HAVE_SYS_WAIT_H 1
28867 _ACEOF
28868
28869 fi
28870
28871 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28872 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28873 if test "${ac_cv_header_time+set}" = set; then
28874   echo $ECHO_N "(cached) $ECHO_C" >&6
28875 else
28876   cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882 #include <sys/types.h>
28883 #include <sys/time.h>
28884 #include <time.h>
28885
28886 int
28887 main ()
28888 {
28889 if ((struct tm *) 0)
28890 return 0;
28891   ;
28892   return 0;
28893 }
28894 _ACEOF
28895 rm -f conftest.$ac_objext
28896 if { (ac_try="$ac_compile"
28897 case "(($ac_try" in
28898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28899   *) ac_try_echo=$ac_try;;
28900 esac
28901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28902   (eval "$ac_compile") 2>conftest.er1
28903   ac_status=$?
28904   grep -v '^ *+' conftest.er1 >conftest.err
28905   rm -f conftest.er1
28906   cat conftest.err >&5
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); } &&
28909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28910   { (case "(($ac_try" in
28911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28912   *) ac_try_echo=$ac_try;;
28913 esac
28914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28915   (eval "$ac_try") 2>&5
28916   ac_status=$?
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); }; } &&
28919          { ac_try='test -s conftest.$ac_objext'
28920   { (case "(($ac_try" in
28921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922   *) ac_try_echo=$ac_try;;
28923 esac
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925   (eval "$ac_try") 2>&5
28926   ac_status=$?
28927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); }; }; then
28929   ac_cv_header_time=yes
28930 else
28931   echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28933
28934         ac_cv_header_time=no
28935 fi
28936
28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28938 fi
28939 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28940 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28941 if test $ac_cv_header_time = yes; then
28942
28943 cat >>confdefs.h <<\_ACEOF
28944 #define TIME_WITH_SYS_TIME 1
28945 _ACEOF
28946
28947 fi
28948
28949
28950
28951
28952
28953
28954
28955
28956 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28957 do
28958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28960   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28963   echo $ECHO_N "(cached) $ECHO_C" >&6
28964 fi
28965 ac_res=`eval echo '${'$as_ac_Header'}'`
28966                { echo "$as_me:$LINENO: result: $ac_res" >&5
28967 echo "${ECHO_T}$ac_res" >&6; }
28968 else
28969   # Is the header compilable?
28970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28972 cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h.  */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h.  */
28978 $ac_includes_default
28979 #include <$ac_header>
28980 _ACEOF
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_compile") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } &&
28995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28996   { (case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_try") 2>&5
29002   ac_status=$?
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); }; } &&
29005          { ac_try='test -s conftest.$ac_objext'
29006   { (case "(($ac_try" in
29007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008   *) ac_try_echo=$ac_try;;
29009 esac
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011   (eval "$ac_try") 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; }; then
29015   ac_header_compiler=yes
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020         ac_header_compiler=no
29021 fi
29022
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29025 echo "${ECHO_T}$ac_header_compiler" >&6; }
29026
29027 # Is the header present?
29028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29030 cat >conftest.$ac_ext <<_ACEOF
29031 /* confdefs.h.  */
29032 _ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h.  */
29036 #include <$ac_header>
29037 _ACEOF
29038 if { (ac_try="$ac_cpp conftest.$ac_ext"
29039 case "(($ac_try" in
29040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041   *) ac_try_echo=$ac_try;;
29042 esac
29043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29045   ac_status=$?
29046   grep -v '^ *+' conftest.er1 >conftest.err
29047   rm -f conftest.er1
29048   cat conftest.err >&5
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); } >/dev/null; then
29051   if test -s conftest.err; then
29052     ac_cpp_err=$ac_c_preproc_warn_flag
29053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29054   else
29055     ac_cpp_err=
29056   fi
29057 else
29058   ac_cpp_err=yes
29059 fi
29060 if test -z "$ac_cpp_err"; then
29061   ac_header_preproc=yes
29062 else
29063   echo "$as_me: failed program was:" >&5
29064 sed 's/^/| /' conftest.$ac_ext >&5
29065
29066   ac_header_preproc=no
29067 fi
29068
29069 rm -f conftest.err conftest.$ac_ext
29070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29071 echo "${ECHO_T}$ac_header_preproc" >&6; }
29072
29073 # So?  What about this header?
29074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29075   yes:no: )
29076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29080     ac_header_preproc=yes
29081     ;;
29082   no:yes:* )
29083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29095     ( cat <<\_ASBOX
29096 ## ----------------------------------- ##
29097 ## Report this to llvmbugs@cs.uiuc.edu ##
29098 ## ----------------------------------- ##
29099 _ASBOX
29100      ) | sed "s/^/$as_me: WARNING:     /" >&2
29101     ;;
29102 esac
29103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29106   echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108   eval "$as_ac_Header=\$ac_header_preproc"
29109 fi
29110 ac_res=`eval echo '${'$as_ac_Header'}'`
29111                { echo "$as_me:$LINENO: result: $ac_res" >&5
29112 echo "${ECHO_T}$ac_res" >&6; }
29113
29114 fi
29115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29116   cat >>confdefs.h <<_ACEOF
29117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29118 _ACEOF
29119
29120 fi
29121
29122 done
29123
29124
29125
29126
29127
29128
29129
29130 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29131 do
29132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29134   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29137   echo $ECHO_N "(cached) $ECHO_C" >&6
29138 fi
29139 ac_res=`eval echo '${'$as_ac_Header'}'`
29140                { echo "$as_me:$LINENO: result: $ac_res" >&5
29141 echo "${ECHO_T}$ac_res" >&6; }
29142 else
29143   # Is the header compilable?
29144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29146 cat >conftest.$ac_ext <<_ACEOF
29147 /* confdefs.h.  */
29148 _ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h.  */
29152 $ac_includes_default
29153 #include <$ac_header>
29154 _ACEOF
29155 rm -f conftest.$ac_objext
29156 if { (ac_try="$ac_compile"
29157 case "(($ac_try" in
29158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159   *) ac_try_echo=$ac_try;;
29160 esac
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162   (eval "$ac_compile") 2>conftest.er1
29163   ac_status=$?
29164   grep -v '^ *+' conftest.er1 >conftest.err
29165   rm -f conftest.er1
29166   cat conftest.err >&5
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } &&
29169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29170   { (case "(($ac_try" in
29171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172   *) ac_try_echo=$ac_try;;
29173 esac
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175   (eval "$ac_try") 2>&5
29176   ac_status=$?
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); }; } &&
29179          { ac_try='test -s conftest.$ac_objext'
29180   { (case "(($ac_try" in
29181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29182   *) ac_try_echo=$ac_try;;
29183 esac
29184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29185   (eval "$ac_try") 2>&5
29186   ac_status=$?
29187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188   (exit $ac_status); }; }; then
29189   ac_header_compiler=yes
29190 else
29191   echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194         ac_header_compiler=no
29195 fi
29196
29197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29199 echo "${ECHO_T}$ac_header_compiler" >&6; }
29200
29201 # Is the header present?
29202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29204 cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210 #include <$ac_header>
29211 _ACEOF
29212 if { (ac_try="$ac_cpp conftest.$ac_ext"
29213 case "(($ac_try" in
29214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29215   *) ac_try_echo=$ac_try;;
29216 esac
29217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29219   ac_status=$?
29220   grep -v '^ *+' conftest.er1 >conftest.err
29221   rm -f conftest.er1
29222   cat conftest.err >&5
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); } >/dev/null; then
29225   if test -s conftest.err; then
29226     ac_cpp_err=$ac_c_preproc_warn_flag
29227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29228   else
29229     ac_cpp_err=
29230   fi
29231 else
29232   ac_cpp_err=yes
29233 fi
29234 if test -z "$ac_cpp_err"; then
29235   ac_header_preproc=yes
29236 else
29237   echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240   ac_header_preproc=no
29241 fi
29242
29243 rm -f conftest.err conftest.$ac_ext
29244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29245 echo "${ECHO_T}$ac_header_preproc" >&6; }
29246
29247 # So?  What about this header?
29248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29249   yes:no: )
29250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29254     ac_header_preproc=yes
29255     ;;
29256   no:yes:* )
29257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29269     ( cat <<\_ASBOX
29270 ## ----------------------------------- ##
29271 ## Report this to llvmbugs@cs.uiuc.edu ##
29272 ## ----------------------------------- ##
29273 _ASBOX
29274      ) | sed "s/^/$as_me: WARNING:     /" >&2
29275     ;;
29276 esac
29277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29280   echo $ECHO_N "(cached) $ECHO_C" >&6
29281 else
29282   eval "$as_ac_Header=\$ac_header_preproc"
29283 fi
29284 ac_res=`eval echo '${'$as_ac_Header'}'`
29285                { echo "$as_me:$LINENO: result: $ac_res" >&5
29286 echo "${ECHO_T}$ac_res" >&6; }
29287
29288 fi
29289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29290   cat >>confdefs.h <<_ACEOF
29291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29292 _ACEOF
29293
29294 fi
29295
29296 done
29297
29298
29299 for ac_header in windows.h
29300 do
29301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29303   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306   echo $ECHO_N "(cached) $ECHO_C" >&6
29307 fi
29308 ac_res=`eval echo '${'$as_ac_Header'}'`
29309                { echo "$as_me:$LINENO: result: $ac_res" >&5
29310 echo "${ECHO_T}$ac_res" >&6; }
29311 else
29312   # Is the header compilable?
29313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29315 cat >conftest.$ac_ext <<_ACEOF
29316 /* confdefs.h.  */
29317 _ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h.  */
29321 $ac_includes_default
29322 #include <$ac_header>
29323 _ACEOF
29324 rm -f conftest.$ac_objext
29325 if { (ac_try="$ac_compile"
29326 case "(($ac_try" in
29327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328   *) ac_try_echo=$ac_try;;
29329 esac
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331   (eval "$ac_compile") 2>conftest.er1
29332   ac_status=$?
29333   grep -v '^ *+' conftest.er1 >conftest.err
29334   rm -f conftest.er1
29335   cat conftest.err >&5
29336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337   (exit $ac_status); } &&
29338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29339   { (case "(($ac_try" in
29340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341   *) ac_try_echo=$ac_try;;
29342 esac
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344   (eval "$ac_try") 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); }; } &&
29348          { ac_try='test -s conftest.$ac_objext'
29349   { (case "(($ac_try" in
29350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351   *) ac_try_echo=$ac_try;;
29352 esac
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354   (eval "$ac_try") 2>&5
29355   ac_status=$?
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); }; }; then
29358   ac_header_compiler=yes
29359 else
29360   echo "$as_me: failed program was:" >&5
29361 sed 's/^/| /' conftest.$ac_ext >&5
29362
29363         ac_header_compiler=no
29364 fi
29365
29366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29368 echo "${ECHO_T}$ac_header_compiler" >&6; }
29369
29370 # Is the header present?
29371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29373 cat >conftest.$ac_ext <<_ACEOF
29374 /* confdefs.h.  */
29375 _ACEOF
29376 cat confdefs.h >>conftest.$ac_ext
29377 cat >>conftest.$ac_ext <<_ACEOF
29378 /* end confdefs.h.  */
29379 #include <$ac_header>
29380 _ACEOF
29381 if { (ac_try="$ac_cpp conftest.$ac_ext"
29382 case "(($ac_try" in
29383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384   *) ac_try_echo=$ac_try;;
29385 esac
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29388   ac_status=$?
29389   grep -v '^ *+' conftest.er1 >conftest.err
29390   rm -f conftest.er1
29391   cat conftest.err >&5
29392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393   (exit $ac_status); } >/dev/null; then
29394   if test -s conftest.err; then
29395     ac_cpp_err=$ac_c_preproc_warn_flag
29396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29397   else
29398     ac_cpp_err=
29399   fi
29400 else
29401   ac_cpp_err=yes
29402 fi
29403 if test -z "$ac_cpp_err"; then
29404   ac_header_preproc=yes
29405 else
29406   echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29408
29409   ac_header_preproc=no
29410 fi
29411
29412 rm -f conftest.err conftest.$ac_ext
29413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29414 echo "${ECHO_T}$ac_header_preproc" >&6; }
29415
29416 # So?  What about this header?
29417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29418   yes:no: )
29419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29423     ac_header_preproc=yes
29424     ;;
29425   no:yes:* )
29426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29438     ( cat <<\_ASBOX
29439 ## ----------------------------------- ##
29440 ## Report this to llvmbugs@cs.uiuc.edu ##
29441 ## ----------------------------------- ##
29442 _ASBOX
29443      ) | sed "s/^/$as_me: WARNING:     /" >&2
29444     ;;
29445 esac
29446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29449   echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451   eval "$as_ac_Header=\$ac_header_preproc"
29452 fi
29453 ac_res=`eval echo '${'$as_ac_Header'}'`
29454                { echo "$as_me:$LINENO: result: $ac_res" >&5
29455 echo "${ECHO_T}$ac_res" >&6; }
29456
29457 fi
29458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29459   cat >>confdefs.h <<_ACEOF
29460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29461 _ACEOF
29462
29463 fi
29464
29465 done
29466
29467
29468
29469
29470
29471 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29472 do
29473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29475   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29478   echo $ECHO_N "(cached) $ECHO_C" >&6
29479 fi
29480 ac_res=`eval echo '${'$as_ac_Header'}'`
29481                { echo "$as_me:$LINENO: result: $ac_res" >&5
29482 echo "${ECHO_T}$ac_res" >&6; }
29483 else
29484   # Is the header compilable?
29485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29487 cat >conftest.$ac_ext <<_ACEOF
29488 /* confdefs.h.  */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h.  */
29493 $ac_includes_default
29494 #include <$ac_header>
29495 _ACEOF
29496 rm -f conftest.$ac_objext
29497 if { (ac_try="$ac_compile"
29498 case "(($ac_try" in
29499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500   *) ac_try_echo=$ac_try;;
29501 esac
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503   (eval "$ac_compile") 2>conftest.er1
29504   ac_status=$?
29505   grep -v '^ *+' conftest.er1 >conftest.err
29506   rm -f conftest.er1
29507   cat conftest.err >&5
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); } &&
29510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29511   { (case "(($ac_try" in
29512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513   *) ac_try_echo=$ac_try;;
29514 esac
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516   (eval "$ac_try") 2>&5
29517   ac_status=$?
29518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519   (exit $ac_status); }; } &&
29520          { ac_try='test -s conftest.$ac_objext'
29521   { (case "(($ac_try" in
29522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29523   *) ac_try_echo=$ac_try;;
29524 esac
29525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29526   (eval "$ac_try") 2>&5
29527   ac_status=$?
29528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529   (exit $ac_status); }; }; then
29530   ac_header_compiler=yes
29531 else
29532   echo "$as_me: failed program was:" >&5
29533 sed 's/^/| /' conftest.$ac_ext >&5
29534
29535         ac_header_compiler=no
29536 fi
29537
29538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29540 echo "${ECHO_T}$ac_header_compiler" >&6; }
29541
29542 # Is the header present?
29543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29545 cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551 #include <$ac_header>
29552 _ACEOF
29553 if { (ac_try="$ac_cpp conftest.$ac_ext"
29554 case "(($ac_try" in
29555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556   *) ac_try_echo=$ac_try;;
29557 esac
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29560   ac_status=$?
29561   grep -v '^ *+' conftest.er1 >conftest.err
29562   rm -f conftest.er1
29563   cat conftest.err >&5
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); } >/dev/null; then
29566   if test -s conftest.err; then
29567     ac_cpp_err=$ac_c_preproc_warn_flag
29568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29569   else
29570     ac_cpp_err=
29571   fi
29572 else
29573   ac_cpp_err=yes
29574 fi
29575 if test -z "$ac_cpp_err"; then
29576   ac_header_preproc=yes
29577 else
29578   echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29580
29581   ac_header_preproc=no
29582 fi
29583
29584 rm -f conftest.err conftest.$ac_ext
29585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29586 echo "${ECHO_T}$ac_header_preproc" >&6; }
29587
29588 # So?  What about this header?
29589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29590   yes:no: )
29591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29595     ac_header_preproc=yes
29596     ;;
29597   no:yes:* )
29598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29610     ( cat <<\_ASBOX
29611 ## ----------------------------------- ##
29612 ## Report this to llvmbugs@cs.uiuc.edu ##
29613 ## ----------------------------------- ##
29614 _ASBOX
29615      ) | sed "s/^/$as_me: WARNING:     /" >&2
29616     ;;
29617 esac
29618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29621   echo $ECHO_N "(cached) $ECHO_C" >&6
29622 else
29623   eval "$as_ac_Header=\$ac_header_preproc"
29624 fi
29625 ac_res=`eval echo '${'$as_ac_Header'}'`
29626                { echo "$as_me:$LINENO: result: $ac_res" >&5
29627 echo "${ECHO_T}$ac_res" >&6; }
29628
29629 fi
29630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29631   cat >>confdefs.h <<_ACEOF
29632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29633 _ACEOF
29634
29635 fi
29636
29637 done
29638
29639
29640
29641
29642 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29643 do
29644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649   echo $ECHO_N "(cached) $ECHO_C" >&6
29650 fi
29651 ac_res=`eval echo '${'$as_ac_Header'}'`
29652                { echo "$as_me:$LINENO: result: $ac_res" >&5
29653 echo "${ECHO_T}$ac_res" >&6; }
29654 else
29655   # Is the header compilable?
29656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29658 cat >conftest.$ac_ext <<_ACEOF
29659 /* confdefs.h.  */
29660 _ACEOF
29661 cat confdefs.h >>conftest.$ac_ext
29662 cat >>conftest.$ac_ext <<_ACEOF
29663 /* end confdefs.h.  */
29664 $ac_includes_default
29665 #include <$ac_header>
29666 _ACEOF
29667 rm -f conftest.$ac_objext
29668 if { (ac_try="$ac_compile"
29669 case "(($ac_try" in
29670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671   *) ac_try_echo=$ac_try;;
29672 esac
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674   (eval "$ac_compile") 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } &&
29681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29682   { (case "(($ac_try" in
29683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684   *) ac_try_echo=$ac_try;;
29685 esac
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687   (eval "$ac_try") 2>&5
29688   ac_status=$?
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); }; } &&
29691          { ac_try='test -s conftest.$ac_objext'
29692   { (case "(($ac_try" in
29693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694   *) ac_try_echo=$ac_try;;
29695 esac
29696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697   (eval "$ac_try") 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; }; then
29701   ac_header_compiler=yes
29702 else
29703   echo "$as_me: failed program was:" >&5
29704 sed 's/^/| /' conftest.$ac_ext >&5
29705
29706         ac_header_compiler=no
29707 fi
29708
29709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29711 echo "${ECHO_T}$ac_header_compiler" >&6; }
29712
29713 # Is the header present?
29714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29716 cat >conftest.$ac_ext <<_ACEOF
29717 /* confdefs.h.  */
29718 _ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h.  */
29722 #include <$ac_header>
29723 _ACEOF
29724 if { (ac_try="$ac_cpp conftest.$ac_ext"
29725 case "(($ac_try" in
29726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727   *) ac_try_echo=$ac_try;;
29728 esac
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29731   ac_status=$?
29732   grep -v '^ *+' conftest.er1 >conftest.err
29733   rm -f conftest.er1
29734   cat conftest.err >&5
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); } >/dev/null; then
29737   if test -s conftest.err; then
29738     ac_cpp_err=$ac_c_preproc_warn_flag
29739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29740   else
29741     ac_cpp_err=
29742   fi
29743 else
29744   ac_cpp_err=yes
29745 fi
29746 if test -z "$ac_cpp_err"; then
29747   ac_header_preproc=yes
29748 else
29749   echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29751
29752   ac_header_preproc=no
29753 fi
29754
29755 rm -f conftest.err conftest.$ac_ext
29756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29757 echo "${ECHO_T}$ac_header_preproc" >&6; }
29758
29759 # So?  What about this header?
29760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29761   yes:no: )
29762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29766     ac_header_preproc=yes
29767     ;;
29768   no:yes:* )
29769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29781     ( cat <<\_ASBOX
29782 ## ----------------------------------- ##
29783 ## Report this to llvmbugs@cs.uiuc.edu ##
29784 ## ----------------------------------- ##
29785 _ASBOX
29786      ) | sed "s/^/$as_me: WARNING:     /" >&2
29787     ;;
29788 esac
29789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29792   echo $ECHO_N "(cached) $ECHO_C" >&6
29793 else
29794   eval "$as_ac_Header=\$ac_header_preproc"
29795 fi
29796 ac_res=`eval echo '${'$as_ac_Header'}'`
29797                { echo "$as_me:$LINENO: result: $ac_res" >&5
29798 echo "${ECHO_T}$ac_res" >&6; }
29799
29800 fi
29801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29802   cat >>confdefs.h <<_ACEOF
29803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29804 _ACEOF
29805
29806 fi
29807
29808 done
29809
29810 if test "$ENABLE_THREADS" -eq 1 ; then
29811
29812 for ac_header in pthread.h
29813 do
29814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29819   echo $ECHO_N "(cached) $ECHO_C" >&6
29820 fi
29821 ac_res=`eval echo '${'$as_ac_Header'}'`
29822                { echo "$as_me:$LINENO: result: $ac_res" >&5
29823 echo "${ECHO_T}$ac_res" >&6; }
29824 else
29825   # Is the header compilable?
29826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29828 cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834 $ac_includes_default
29835 #include <$ac_header>
29836 _ACEOF
29837 rm -f conftest.$ac_objext
29838 if { (ac_try="$ac_compile"
29839 case "(($ac_try" in
29840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841   *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844   (eval "$ac_compile") 2>conftest.er1
29845   ac_status=$?
29846   grep -v '^ *+' conftest.er1 >conftest.err
29847   rm -f conftest.er1
29848   cat conftest.err >&5
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); } &&
29851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29852   { (case "(($ac_try" in
29853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854   *) ac_try_echo=$ac_try;;
29855 esac
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857   (eval "$ac_try") 2>&5
29858   ac_status=$?
29859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860   (exit $ac_status); }; } &&
29861          { ac_try='test -s conftest.$ac_objext'
29862   { (case "(($ac_try" in
29863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864   *) ac_try_echo=$ac_try;;
29865 esac
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867   (eval "$ac_try") 2>&5
29868   ac_status=$?
29869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870   (exit $ac_status); }; }; then
29871   ac_header_compiler=yes
29872 else
29873   echo "$as_me: failed program was:" >&5
29874 sed 's/^/| /' conftest.$ac_ext >&5
29875
29876         ac_header_compiler=no
29877 fi
29878
29879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29881 echo "${ECHO_T}$ac_header_compiler" >&6; }
29882
29883 # Is the header present?
29884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29886 cat >conftest.$ac_ext <<_ACEOF
29887 /* confdefs.h.  */
29888 _ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h.  */
29892 #include <$ac_header>
29893 _ACEOF
29894 if { (ac_try="$ac_cpp conftest.$ac_ext"
29895 case "(($ac_try" in
29896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897   *) ac_try_echo=$ac_try;;
29898 esac
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29901   ac_status=$?
29902   grep -v '^ *+' conftest.er1 >conftest.err
29903   rm -f conftest.er1
29904   cat conftest.err >&5
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); } >/dev/null; then
29907   if test -s conftest.err; then
29908     ac_cpp_err=$ac_c_preproc_warn_flag
29909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29910   else
29911     ac_cpp_err=
29912   fi
29913 else
29914   ac_cpp_err=yes
29915 fi
29916 if test -z "$ac_cpp_err"; then
29917   ac_header_preproc=yes
29918 else
29919   echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29921
29922   ac_header_preproc=no
29923 fi
29924
29925 rm -f conftest.err conftest.$ac_ext
29926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29927 echo "${ECHO_T}$ac_header_preproc" >&6; }
29928
29929 # So?  What about this header?
29930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29931   yes:no: )
29932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29936     ac_header_preproc=yes
29937     ;;
29938   no:yes:* )
29939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29951     ( cat <<\_ASBOX
29952 ## ----------------------------------- ##
29953 ## Report this to llvmbugs@cs.uiuc.edu ##
29954 ## ----------------------------------- ##
29955 _ASBOX
29956      ) | sed "s/^/$as_me: WARNING:     /" >&2
29957     ;;
29958 esac
29959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29962   echo $ECHO_N "(cached) $ECHO_C" >&6
29963 else
29964   eval "$as_ac_Header=\$ac_header_preproc"
29965 fi
29966 ac_res=`eval echo '${'$as_ac_Header'}'`
29967                { echo "$as_me:$LINENO: result: $ac_res" >&5
29968 echo "${ECHO_T}$ac_res" >&6; }
29969
29970 fi
29971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29972   cat >>confdefs.h <<_ACEOF
29973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29974 _ACEOF
29975  HAVE_PTHREAD=1
29976
29977 else
29978   HAVE_PTHREAD=0
29979
29980 fi
29981
29982 done
29983
29984 else
29985   HAVE_PTHREAD=0
29986
29987 fi
29988
29989
29990
29991   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29992 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29993 if test "${ac_cv_huge_val_sanity+set}" = set; then
29994   echo $ECHO_N "(cached) $ECHO_C" >&6
29995 else
29996
29997     ac_ext=cpp
29998 ac_cpp='$CXXCPP $CPPFLAGS'
29999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30002
30003     CXXFLAGS=-pedantic
30004     if test "$cross_compiling" = yes; then
30005   ac_cv_huge_val_sanity=yes
30006 else
30007   cat >conftest.$ac_ext <<_ACEOF
30008 /* confdefs.h.  */
30009 _ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h.  */
30013 #include <math.h>
30014 int
30015 main ()
30016 {
30017 double x = HUGE_VAL; return x != x;
30018   ;
30019   return 0;
30020 }
30021 _ACEOF
30022 rm -f conftest$ac_exeext
30023 if { (ac_try="$ac_link"
30024 case "(($ac_try" in
30025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026   *) ac_try_echo=$ac_try;;
30027 esac
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029   (eval "$ac_link") 2>&5
30030   ac_status=$?
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30033   { (case "(($ac_try" in
30034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035   *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038   (eval "$ac_try") 2>&5
30039   ac_status=$?
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); }; }; then
30042   ac_cv_huge_val_sanity=yes
30043 else
30044   echo "$as_me: program exited with status $ac_status" >&5
30045 echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30047
30048 ( exit $ac_status )
30049 ac_cv_huge_val_sanity=no
30050 fi
30051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30052 fi
30053
30054
30055     ac_ext=c
30056 ac_cpp='$CPP $CPPFLAGS'
30057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30060
30061
30062 fi
30063 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30064 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30065   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30066
30067
30068 { echo "$as_me:$LINENO: checking for pid_t" >&5
30069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30070 if test "${ac_cv_type_pid_t+set}" = set; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073   cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 $ac_includes_default
30080 typedef pid_t ac__type_new_;
30081 int
30082 main ()
30083 {
30084 if ((ac__type_new_ *) 0)
30085   return 0;
30086 if (sizeof (ac__type_new_))
30087   return 0;
30088   ;
30089   return 0;
30090 }
30091 _ACEOF
30092 rm -f conftest.$ac_objext
30093 if { (ac_try="$ac_compile"
30094 case "(($ac_try" in
30095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096   *) ac_try_echo=$ac_try;;
30097 esac
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099   (eval "$ac_compile") 2>conftest.er1
30100   ac_status=$?
30101   grep -v '^ *+' conftest.er1 >conftest.err
30102   rm -f conftest.er1
30103   cat conftest.err >&5
30104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105   (exit $ac_status); } &&
30106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30107   { (case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_try") 2>&5
30113   ac_status=$?
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); }; } &&
30116          { ac_try='test -s conftest.$ac_objext'
30117   { (case "(($ac_try" in
30118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119   *) ac_try_echo=$ac_try;;
30120 esac
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122   (eval "$ac_try") 2>&5
30123   ac_status=$?
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); }; }; then
30126   ac_cv_type_pid_t=yes
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131         ac_cv_type_pid_t=no
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135 fi
30136 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30138 if test $ac_cv_type_pid_t = yes; then
30139   :
30140 else
30141
30142 cat >>confdefs.h <<_ACEOF
30143 #define pid_t int
30144 _ACEOF
30145
30146 fi
30147
30148 { echo "$as_me:$LINENO: checking for size_t" >&5
30149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30150 if test "${ac_cv_type_size_t+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   cat >conftest.$ac_ext <<_ACEOF
30154 /* confdefs.h.  */
30155 _ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h.  */
30159 $ac_includes_default
30160 typedef size_t ac__type_new_;
30161 int
30162 main ()
30163 {
30164 if ((ac__type_new_ *) 0)
30165   return 0;
30166 if (sizeof (ac__type_new_))
30167   return 0;
30168   ;
30169   return 0;
30170 }
30171 _ACEOF
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_compile") 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } &&
30186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187   { (case "(($ac_try" in
30188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189   *) ac_try_echo=$ac_try;;
30190 esac
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192   (eval "$ac_try") 2>&5
30193   ac_status=$?
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); }; } &&
30196          { ac_try='test -s conftest.$ac_objext'
30197   { (case "(($ac_try" in
30198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199   *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202   (eval "$ac_try") 2>&5
30203   ac_status=$?
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); }; }; then
30206   ac_cv_type_size_t=yes
30207 else
30208   echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30210
30211         ac_cv_type_size_t=no
30212 fi
30213
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30215 fi
30216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30218 if test $ac_cv_type_size_t = yes; then
30219   :
30220 else
30221
30222 cat >>confdefs.h <<_ACEOF
30223 #define size_t unsigned int
30224 _ACEOF
30225
30226 fi
30227
30228 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30229 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30230 if test "${ac_cv_type_signal+set}" = set; then
30231   echo $ECHO_N "(cached) $ECHO_C" >&6
30232 else
30233   cat >conftest.$ac_ext <<_ACEOF
30234 /* confdefs.h.  */
30235 _ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h.  */
30239 #include <sys/types.h>
30240 #include <signal.h>
30241
30242 int
30243 main ()
30244 {
30245 return *(signal (0, 0)) (0) == 1;
30246   ;
30247   return 0;
30248 }
30249 _ACEOF
30250 rm -f conftest.$ac_objext
30251 if { (ac_try="$ac_compile"
30252 case "(($ac_try" in
30253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254   *) ac_try_echo=$ac_try;;
30255 esac
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257   (eval "$ac_compile") 2>conftest.er1
30258   ac_status=$?
30259   grep -v '^ *+' conftest.er1 >conftest.err
30260   rm -f conftest.er1
30261   cat conftest.err >&5
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); } &&
30264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30265   { (case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_try") 2>&5
30271   ac_status=$?
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); }; } &&
30274          { ac_try='test -s conftest.$ac_objext'
30275   { (case "(($ac_try" in
30276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277   *) ac_try_echo=$ac_try;;
30278 esac
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280   (eval "$ac_try") 2>&5
30281   ac_status=$?
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); }; }; then
30284   ac_cv_type_signal=int
30285 else
30286   echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30288
30289         ac_cv_type_signal=void
30290 fi
30291
30292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30293 fi
30294 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30295 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30296
30297 cat >>confdefs.h <<_ACEOF
30298 #define RETSIGTYPE $ac_cv_type_signal
30299 _ACEOF
30300
30301
30302 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30303 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30304 if test "${ac_cv_struct_tm+set}" = set; then
30305   echo $ECHO_N "(cached) $ECHO_C" >&6
30306 else
30307   cat >conftest.$ac_ext <<_ACEOF
30308 /* confdefs.h.  */
30309 _ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h.  */
30313 #include <sys/types.h>
30314 #include <time.h>
30315
30316 int
30317 main ()
30318 {
30319 struct tm *tp; tp->tm_sec;
30320   ;
30321   return 0;
30322 }
30323 _ACEOF
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328   *) ac_try_echo=$ac_try;;
30329 esac
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331   (eval "$ac_compile") 2>conftest.er1
30332   ac_status=$?
30333   grep -v '^ *+' conftest.er1 >conftest.err
30334   rm -f conftest.er1
30335   cat conftest.err >&5
30336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337   (exit $ac_status); } &&
30338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30339   { (case "(($ac_try" in
30340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30341   *) ac_try_echo=$ac_try;;
30342 esac
30343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30344   (eval "$ac_try") 2>&5
30345   ac_status=$?
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); }; } &&
30348          { ac_try='test -s conftest.$ac_objext'
30349   { (case "(($ac_try" in
30350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351   *) ac_try_echo=$ac_try;;
30352 esac
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354   (eval "$ac_try") 2>&5
30355   ac_status=$?
30356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357   (exit $ac_status); }; }; then
30358   ac_cv_struct_tm=time.h
30359 else
30360   echo "$as_me: failed program was:" >&5
30361 sed 's/^/| /' conftest.$ac_ext >&5
30362
30363         ac_cv_struct_tm=sys/time.h
30364 fi
30365
30366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30367 fi
30368 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30369 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30370 if test $ac_cv_struct_tm = sys/time.h; then
30371
30372 cat >>confdefs.h <<\_ACEOF
30373 #define TM_IN_SYS_TIME 1
30374 _ACEOF
30375
30376 fi
30377
30378 { echo "$as_me:$LINENO: checking for int64_t" >&5
30379 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30380 if test "${ac_cv_type_int64_t+set}" = set; then
30381   echo $ECHO_N "(cached) $ECHO_C" >&6
30382 else
30383   cat >conftest.$ac_ext <<_ACEOF
30384 /* confdefs.h.  */
30385 _ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h.  */
30389 $ac_includes_default
30390 typedef int64_t ac__type_new_;
30391 int
30392 main ()
30393 {
30394 if ((ac__type_new_ *) 0)
30395   return 0;
30396 if (sizeof (ac__type_new_))
30397   return 0;
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 rm -f conftest.$ac_objext
30403 if { (ac_try="$ac_compile"
30404 case "(($ac_try" in
30405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406   *) ac_try_echo=$ac_try;;
30407 esac
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409   (eval "$ac_compile") 2>conftest.er1
30410   ac_status=$?
30411   grep -v '^ *+' conftest.er1 >conftest.err
30412   rm -f conftest.er1
30413   cat conftest.err >&5
30414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415   (exit $ac_status); } &&
30416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30417   { (case "(($ac_try" in
30418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419   *) ac_try_echo=$ac_try;;
30420 esac
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422   (eval "$ac_try") 2>&5
30423   ac_status=$?
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); }; } &&
30426          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30436   ac_cv_type_int64_t=yes
30437 else
30438   echo "$as_me: failed program was:" >&5
30439 sed 's/^/| /' conftest.$ac_ext >&5
30440
30441         ac_cv_type_int64_t=no
30442 fi
30443
30444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30445 fi
30446 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30447 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30448 if test $ac_cv_type_int64_t = yes; then
30449
30450 cat >>confdefs.h <<_ACEOF
30451 #define HAVE_INT64_T 1
30452 _ACEOF
30453
30454
30455 else
30456   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30457 echo "$as_me: error: Type int64_t required but not found" >&2;}
30458    { (exit 1); exit 1; }; }
30459 fi
30460
30461 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30462 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30463 if test "${ac_cv_type_uint64_t+set}" = set; then
30464   echo $ECHO_N "(cached) $ECHO_C" >&6
30465 else
30466   cat >conftest.$ac_ext <<_ACEOF
30467 /* confdefs.h.  */
30468 _ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h.  */
30472 $ac_includes_default
30473 typedef uint64_t ac__type_new_;
30474 int
30475 main ()
30476 {
30477 if ((ac__type_new_ *) 0)
30478   return 0;
30479 if (sizeof (ac__type_new_))
30480   return 0;
30481   ;
30482   return 0;
30483 }
30484 _ACEOF
30485 rm -f conftest.$ac_objext
30486 if { (ac_try="$ac_compile"
30487 case "(($ac_try" in
30488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489   *) ac_try_echo=$ac_try;;
30490 esac
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492   (eval "$ac_compile") 2>conftest.er1
30493   ac_status=$?
30494   grep -v '^ *+' conftest.er1 >conftest.err
30495   rm -f conftest.er1
30496   cat conftest.err >&5
30497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498   (exit $ac_status); } &&
30499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30500   { (case "(($ac_try" in
30501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30502   *) ac_try_echo=$ac_try;;
30503 esac
30504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505   (eval "$ac_try") 2>&5
30506   ac_status=$?
30507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508   (exit $ac_status); }; } &&
30509          { ac_try='test -s conftest.$ac_objext'
30510   { (case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_try") 2>&5
30516   ac_status=$?
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); }; }; then
30519   ac_cv_type_uint64_t=yes
30520 else
30521   echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30523
30524         ac_cv_type_uint64_t=no
30525 fi
30526
30527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30528 fi
30529 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30530 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30531 if test $ac_cv_type_uint64_t = yes; then
30532
30533 cat >>confdefs.h <<_ACEOF
30534 #define HAVE_UINT64_T 1
30535 _ACEOF
30536
30537
30538 else
30539   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30540 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30541 if test "${ac_cv_type_u_int64_t+set}" = set; then
30542   echo $ECHO_N "(cached) $ECHO_C" >&6
30543 else
30544   cat >conftest.$ac_ext <<_ACEOF
30545 /* confdefs.h.  */
30546 _ACEOF
30547 cat confdefs.h >>conftest.$ac_ext
30548 cat >>conftest.$ac_ext <<_ACEOF
30549 /* end confdefs.h.  */
30550 $ac_includes_default
30551 typedef u_int64_t ac__type_new_;
30552 int
30553 main ()
30554 {
30555 if ((ac__type_new_ *) 0)
30556   return 0;
30557 if (sizeof (ac__type_new_))
30558   return 0;
30559   ;
30560   return 0;
30561 }
30562 _ACEOF
30563 rm -f conftest.$ac_objext
30564 if { (ac_try="$ac_compile"
30565 case "(($ac_try" in
30566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567   *) ac_try_echo=$ac_try;;
30568 esac
30569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30570   (eval "$ac_compile") 2>conftest.er1
30571   ac_status=$?
30572   grep -v '^ *+' conftest.er1 >conftest.err
30573   rm -f conftest.er1
30574   cat conftest.err >&5
30575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576   (exit $ac_status); } &&
30577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30578   { (case "(($ac_try" in
30579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580   *) ac_try_echo=$ac_try;;
30581 esac
30582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583   (eval "$ac_try") 2>&5
30584   ac_status=$?
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); }; } &&
30587          { ac_try='test -s conftest.$ac_objext'
30588   { (case "(($ac_try" in
30589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590   *) ac_try_echo=$ac_try;;
30591 esac
30592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593   (eval "$ac_try") 2>&5
30594   ac_status=$?
30595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596   (exit $ac_status); }; }; then
30597   ac_cv_type_u_int64_t=yes
30598 else
30599   echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.$ac_ext >&5
30601
30602         ac_cv_type_u_int64_t=no
30603 fi
30604
30605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30606 fi
30607 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30608 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30609 if test $ac_cv_type_u_int64_t = yes; then
30610
30611 cat >>confdefs.h <<_ACEOF
30612 #define HAVE_U_INT64_T 1
30613 _ACEOF
30614
30615
30616 else
30617   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30618 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30619    { (exit 1); exit 1; }; }
30620 fi
30621
30622 fi
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30634 do
30635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30639   echo $ECHO_N "(cached) $ECHO_C" >&6
30640 else
30641   cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h.  */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h.  */
30647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30649 #define $ac_func innocuous_$ac_func
30650
30651 /* System header to define __stub macros and hopefully few prototypes,
30652     which can conflict with char $ac_func (); below.
30653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30654     <limits.h> exists even on freestanding compilers.  */
30655
30656 #ifdef __STDC__
30657 # include <limits.h>
30658 #else
30659 # include <assert.h>
30660 #endif
30661
30662 #undef $ac_func
30663
30664 /* Override any GCC internal prototype to avoid an error.
30665    Use char because int might match the return type of a GCC
30666    builtin and then its argument prototype would still apply.  */
30667 #ifdef __cplusplus
30668 extern "C"
30669 #endif
30670 char $ac_func ();
30671 /* The GNU C library defines this for functions which it implements
30672     to always fail with ENOSYS.  Some functions are actually named
30673     something starting with __ and the normal name is an alias.  */
30674 #if defined __stub_$ac_func || defined __stub___$ac_func
30675 choke me
30676 #endif
30677
30678 int
30679 main ()
30680 {
30681 return $ac_func ();
30682   ;
30683   return 0;
30684 }
30685 _ACEOF
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690   *) ac_try_echo=$ac_try;;
30691 esac
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693   (eval "$ac_link") 2>conftest.er1
30694   ac_status=$?
30695   grep -v '^ *+' conftest.er1 >conftest.err
30696   rm -f conftest.er1
30697   cat conftest.err >&5
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); } &&
30700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701   { (case "(($ac_try" in
30702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703   *) ac_try_echo=$ac_try;;
30704 esac
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706   (eval "$ac_try") 2>&5
30707   ac_status=$?
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); }; } &&
30710          { ac_try='test -s conftest$ac_exeext'
30711   { (case "(($ac_try" in
30712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713   *) ac_try_echo=$ac_try;;
30714 esac
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716   (eval "$ac_try") 2>&5
30717   ac_status=$?
30718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719   (exit $ac_status); }; }; then
30720   eval "$as_ac_var=yes"
30721 else
30722   echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30724
30725         eval "$as_ac_var=no"
30726 fi
30727
30728 rm -f core conftest.err conftest.$ac_objext \
30729       conftest$ac_exeext conftest.$ac_ext
30730 fi
30731 ac_res=`eval echo '${'$as_ac_var'}'`
30732                { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30734 if test `eval echo '${'$as_ac_var'}'` = yes; then
30735   cat >>confdefs.h <<_ACEOF
30736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30737 _ACEOF
30738
30739 fi
30740 done
30741
30742
30743
30744
30745
30746 for ac_func in powf fmodf strtof round
30747 do
30748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30752   echo $ECHO_N "(cached) $ECHO_C" >&6
30753 else
30754   cat >conftest.$ac_ext <<_ACEOF
30755 /* confdefs.h.  */
30756 _ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h.  */
30760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30762 #define $ac_func innocuous_$ac_func
30763
30764 /* System header to define __stub macros and hopefully few prototypes,
30765     which can conflict with char $ac_func (); below.
30766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30767     <limits.h> exists even on freestanding compilers.  */
30768
30769 #ifdef __STDC__
30770 # include <limits.h>
30771 #else
30772 # include <assert.h>
30773 #endif
30774
30775 #undef $ac_func
30776
30777 /* Override any GCC internal prototype to avoid an error.
30778    Use char because int might match the return type of a GCC
30779    builtin and then its argument prototype would still apply.  */
30780 #ifdef __cplusplus
30781 extern "C"
30782 #endif
30783 char $ac_func ();
30784 /* The GNU C library defines this for functions which it implements
30785     to always fail with ENOSYS.  Some functions are actually named
30786     something starting with __ and the normal name is an alias.  */
30787 #if defined __stub_$ac_func || defined __stub___$ac_func
30788 choke me
30789 #endif
30790
30791 int
30792 main ()
30793 {
30794 return $ac_func ();
30795   ;
30796   return 0;
30797 }
30798 _ACEOF
30799 rm -f conftest.$ac_objext conftest$ac_exeext
30800 if { (ac_try="$ac_link"
30801 case "(($ac_try" in
30802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803   *) ac_try_echo=$ac_try;;
30804 esac
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806   (eval "$ac_link") 2>conftest.er1
30807   ac_status=$?
30808   grep -v '^ *+' conftest.er1 >conftest.err
30809   rm -f conftest.er1
30810   cat conftest.err >&5
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); } &&
30813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30814   { (case "(($ac_try" in
30815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816   *) ac_try_echo=$ac_try;;
30817 esac
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819   (eval "$ac_try") 2>&5
30820   ac_status=$?
30821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822   (exit $ac_status); }; } &&
30823          { ac_try='test -s conftest$ac_exeext'
30824   { (case "(($ac_try" in
30825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826   *) ac_try_echo=$ac_try;;
30827 esac
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829   (eval "$ac_try") 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); }; }; then
30833   eval "$as_ac_var=yes"
30834 else
30835   echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838         eval "$as_ac_var=no"
30839 fi
30840
30841 rm -f core conftest.err conftest.$ac_objext \
30842       conftest$ac_exeext conftest.$ac_ext
30843 fi
30844 ac_res=`eval echo '${'$as_ac_var'}'`
30845                { echo "$as_me:$LINENO: result: $ac_res" >&5
30846 echo "${ECHO_T}$ac_res" >&6; }
30847 if test `eval echo '${'$as_ac_var'}'` = yes; then
30848   cat >>confdefs.h <<_ACEOF
30849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30850 _ACEOF
30851
30852 fi
30853 done
30854
30855
30856
30857
30858
30859
30860 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30861 do
30862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30866   echo $ECHO_N "(cached) $ECHO_C" >&6
30867 else
30868   cat >conftest.$ac_ext <<_ACEOF
30869 /* confdefs.h.  */
30870 _ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h.  */
30874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30876 #define $ac_func innocuous_$ac_func
30877
30878 /* System header to define __stub macros and hopefully few prototypes,
30879     which can conflict with char $ac_func (); below.
30880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30881     <limits.h> exists even on freestanding compilers.  */
30882
30883 #ifdef __STDC__
30884 # include <limits.h>
30885 #else
30886 # include <assert.h>
30887 #endif
30888
30889 #undef $ac_func
30890
30891 /* Override any GCC internal prototype to avoid an error.
30892    Use char because int might match the return type of a GCC
30893    builtin and then its argument prototype would still apply.  */
30894 #ifdef __cplusplus
30895 extern "C"
30896 #endif
30897 char $ac_func ();
30898 /* The GNU C library defines this for functions which it implements
30899     to always fail with ENOSYS.  Some functions are actually named
30900     something starting with __ and the normal name is an alias.  */
30901 #if defined __stub_$ac_func || defined __stub___$ac_func
30902 choke me
30903 #endif
30904
30905 int
30906 main ()
30907 {
30908 return $ac_func ();
30909   ;
30910   return 0;
30911 }
30912 _ACEOF
30913 rm -f conftest.$ac_objext conftest$ac_exeext
30914 if { (ac_try="$ac_link"
30915 case "(($ac_try" in
30916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917   *) ac_try_echo=$ac_try;;
30918 esac
30919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920   (eval "$ac_link") 2>conftest.er1
30921   ac_status=$?
30922   grep -v '^ *+' conftest.er1 >conftest.err
30923   rm -f conftest.er1
30924   cat conftest.err >&5
30925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926   (exit $ac_status); } &&
30927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30928   { (case "(($ac_try" in
30929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930   *) ac_try_echo=$ac_try;;
30931 esac
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933   (eval "$ac_try") 2>&5
30934   ac_status=$?
30935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936   (exit $ac_status); }; } &&
30937          { ac_try='test -s conftest$ac_exeext'
30938   { (case "(($ac_try" in
30939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940   *) ac_try_echo=$ac_try;;
30941 esac
30942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943   (eval "$ac_try") 2>&5
30944   ac_status=$?
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); }; }; then
30947   eval "$as_ac_var=yes"
30948 else
30949   echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30951
30952         eval "$as_ac_var=no"
30953 fi
30954
30955 rm -f core conftest.err conftest.$ac_objext \
30956       conftest$ac_exeext conftest.$ac_ext
30957 fi
30958 ac_res=`eval echo '${'$as_ac_var'}'`
30959                { echo "$as_me:$LINENO: result: $ac_res" >&5
30960 echo "${ECHO_T}$ac_res" >&6; }
30961 if test `eval echo '${'$as_ac_var'}'` = yes; then
30962   cat >>confdefs.h <<_ACEOF
30963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30964 _ACEOF
30965
30966 fi
30967 done
30968
30969
30970
30971
30972 for ac_func in isatty mkdtemp mkstemp
30973 do
30974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30978   echo $ECHO_N "(cached) $ECHO_C" >&6
30979 else
30980   cat >conftest.$ac_ext <<_ACEOF
30981 /* confdefs.h.  */
30982 _ACEOF
30983 cat confdefs.h >>conftest.$ac_ext
30984 cat >>conftest.$ac_ext <<_ACEOF
30985 /* end confdefs.h.  */
30986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30988 #define $ac_func innocuous_$ac_func
30989
30990 /* System header to define __stub macros and hopefully few prototypes,
30991     which can conflict with char $ac_func (); below.
30992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30993     <limits.h> exists even on freestanding compilers.  */
30994
30995 #ifdef __STDC__
30996 # include <limits.h>
30997 #else
30998 # include <assert.h>
30999 #endif
31000
31001 #undef $ac_func
31002
31003 /* Override any GCC internal prototype to avoid an error.
31004    Use char because int might match the return type of a GCC
31005    builtin and then its argument prototype would still apply.  */
31006 #ifdef __cplusplus
31007 extern "C"
31008 #endif
31009 char $ac_func ();
31010 /* The GNU C library defines this for functions which it implements
31011     to always fail with ENOSYS.  Some functions are actually named
31012     something starting with __ and the normal name is an alias.  */
31013 #if defined __stub_$ac_func || defined __stub___$ac_func
31014 choke me
31015 #endif
31016
31017 int
31018 main ()
31019 {
31020 return $ac_func ();
31021   ;
31022   return 0;
31023 }
31024 _ACEOF
31025 rm -f conftest.$ac_objext conftest$ac_exeext
31026 if { (ac_try="$ac_link"
31027 case "(($ac_try" in
31028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029   *) ac_try_echo=$ac_try;;
31030 esac
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032   (eval "$ac_link") 2>conftest.er1
31033   ac_status=$?
31034   grep -v '^ *+' conftest.er1 >conftest.err
31035   rm -f conftest.er1
31036   cat conftest.err >&5
31037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038   (exit $ac_status); } &&
31039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31040   { (case "(($ac_try" in
31041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042   *) ac_try_echo=$ac_try;;
31043 esac
31044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045   (eval "$ac_try") 2>&5
31046   ac_status=$?
31047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048   (exit $ac_status); }; } &&
31049          { ac_try='test -s conftest$ac_exeext'
31050   { (case "(($ac_try" in
31051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052   *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055   (eval "$ac_try") 2>&5
31056   ac_status=$?
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); }; }; then
31059   eval "$as_ac_var=yes"
31060 else
31061   echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.$ac_ext >&5
31063
31064         eval "$as_ac_var=no"
31065 fi
31066
31067 rm -f core conftest.err conftest.$ac_objext \
31068       conftest$ac_exeext conftest.$ac_ext
31069 fi
31070 ac_res=`eval echo '${'$as_ac_var'}'`
31071                { echo "$as_me:$LINENO: result: $ac_res" >&5
31072 echo "${ECHO_T}$ac_res" >&6; }
31073 if test `eval echo '${'$as_ac_var'}'` = yes; then
31074   cat >>confdefs.h <<_ACEOF
31075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31076 _ACEOF
31077
31078 fi
31079 done
31080
31081
31082
31083
31084
31085
31086
31087
31088 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31089 do
31090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31094   echo $ECHO_N "(cached) $ECHO_C" >&6
31095 else
31096   cat >conftest.$ac_ext <<_ACEOF
31097 /* confdefs.h.  */
31098 _ACEOF
31099 cat confdefs.h >>conftest.$ac_ext
31100 cat >>conftest.$ac_ext <<_ACEOF
31101 /* end confdefs.h.  */
31102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31104 #define $ac_func innocuous_$ac_func
31105
31106 /* System header to define __stub macros and hopefully few prototypes,
31107     which can conflict with char $ac_func (); below.
31108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31109     <limits.h> exists even on freestanding compilers.  */
31110
31111 #ifdef __STDC__
31112 # include <limits.h>
31113 #else
31114 # include <assert.h>
31115 #endif
31116
31117 #undef $ac_func
31118
31119 /* Override any GCC internal prototype to avoid an error.
31120    Use char because int might match the return type of a GCC
31121    builtin and then its argument prototype would still apply.  */
31122 #ifdef __cplusplus
31123 extern "C"
31124 #endif
31125 char $ac_func ();
31126 /* The GNU C library defines this for functions which it implements
31127     to always fail with ENOSYS.  Some functions are actually named
31128     something starting with __ and the normal name is an alias.  */
31129 #if defined __stub_$ac_func || defined __stub___$ac_func
31130 choke me
31131 #endif
31132
31133 int
31134 main ()
31135 {
31136 return $ac_func ();
31137   ;
31138   return 0;
31139 }
31140 _ACEOF
31141 rm -f conftest.$ac_objext conftest$ac_exeext
31142 if { (ac_try="$ac_link"
31143 case "(($ac_try" in
31144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145   *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148   (eval "$ac_link") 2>conftest.er1
31149   ac_status=$?
31150   grep -v '^ *+' conftest.er1 >conftest.err
31151   rm -f conftest.er1
31152   cat conftest.err >&5
31153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154   (exit $ac_status); } &&
31155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156   { (case "(($ac_try" in
31157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158   *) ac_try_echo=$ac_try;;
31159 esac
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161   (eval "$ac_try") 2>&5
31162   ac_status=$?
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); }; } &&
31165          { ac_try='test -s conftest$ac_exeext'
31166   { (case "(($ac_try" in
31167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168   *) ac_try_echo=$ac_try;;
31169 esac
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171   (eval "$ac_try") 2>&5
31172   ac_status=$?
31173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174   (exit $ac_status); }; }; then
31175   eval "$as_ac_var=yes"
31176 else
31177   echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31179
31180         eval "$as_ac_var=no"
31181 fi
31182
31183 rm -f core conftest.err conftest.$ac_objext \
31184       conftest$ac_exeext conftest.$ac_ext
31185 fi
31186 ac_res=`eval echo '${'$as_ac_var'}'`
31187                { echo "$as_me:$LINENO: result: $ac_res" >&5
31188 echo "${ECHO_T}$ac_res" >&6; }
31189 if test `eval echo '${'$as_ac_var'}'` = yes; then
31190   cat >>confdefs.h <<_ACEOF
31191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31192 _ACEOF
31193
31194 fi
31195 done
31196
31197
31198
31199
31200
31201 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31202 do
31203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31207   echo $ECHO_N "(cached) $ECHO_C" >&6
31208 else
31209   cat >conftest.$ac_ext <<_ACEOF
31210 /* confdefs.h.  */
31211 _ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h.  */
31215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31217 #define $ac_func innocuous_$ac_func
31218
31219 /* System header to define __stub macros and hopefully few prototypes,
31220     which can conflict with char $ac_func (); below.
31221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31222     <limits.h> exists even on freestanding compilers.  */
31223
31224 #ifdef __STDC__
31225 # include <limits.h>
31226 #else
31227 # include <assert.h>
31228 #endif
31229
31230 #undef $ac_func
31231
31232 /* Override any GCC internal prototype to avoid an error.
31233    Use char because int might match the return type of a GCC
31234    builtin and then its argument prototype would still apply.  */
31235 #ifdef __cplusplus
31236 extern "C"
31237 #endif
31238 char $ac_func ();
31239 /* The GNU C library defines this for functions which it implements
31240     to always fail with ENOSYS.  Some functions are actually named
31241     something starting with __ and the normal name is an alias.  */
31242 #if defined __stub_$ac_func || defined __stub___$ac_func
31243 choke me
31244 #endif
31245
31246 int
31247 main ()
31248 {
31249 return $ac_func ();
31250   ;
31251   return 0;
31252 }
31253 _ACEOF
31254 rm -f conftest.$ac_objext conftest$ac_exeext
31255 if { (ac_try="$ac_link"
31256 case "(($ac_try" in
31257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258   *) ac_try_echo=$ac_try;;
31259 esac
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261   (eval "$ac_link") 2>conftest.er1
31262   ac_status=$?
31263   grep -v '^ *+' conftest.er1 >conftest.err
31264   rm -f conftest.er1
31265   cat conftest.err >&5
31266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267   (exit $ac_status); } &&
31268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31269   { (case "(($ac_try" in
31270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31271   *) ac_try_echo=$ac_try;;
31272 esac
31273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31274   (eval "$ac_try") 2>&5
31275   ac_status=$?
31276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277   (exit $ac_status); }; } &&
31278          { ac_try='test -s conftest$ac_exeext'
31279   { (case "(($ac_try" in
31280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281   *) ac_try_echo=$ac_try;;
31282 esac
31283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284   (eval "$ac_try") 2>&5
31285   ac_status=$?
31286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287   (exit $ac_status); }; }; then
31288   eval "$as_ac_var=yes"
31289 else
31290   echo "$as_me: failed program was:" >&5
31291 sed 's/^/| /' conftest.$ac_ext >&5
31292
31293         eval "$as_ac_var=no"
31294 fi
31295
31296 rm -f core conftest.err conftest.$ac_objext \
31297       conftest$ac_exeext conftest.$ac_ext
31298 fi
31299 ac_res=`eval echo '${'$as_ac_var'}'`
31300                { echo "$as_me:$LINENO: result: $ac_res" >&5
31301 echo "${ECHO_T}$ac_res" >&6; }
31302 if test `eval echo '${'$as_ac_var'}'` = yes; then
31303   cat >>confdefs.h <<_ACEOF
31304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31305 _ACEOF
31306
31307 fi
31308 done
31309
31310
31311
31312
31313
31314 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31315 do
31316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31320   echo $ECHO_N "(cached) $ECHO_C" >&6
31321 else
31322   cat >conftest.$ac_ext <<_ACEOF
31323 /* confdefs.h.  */
31324 _ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h.  */
31328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31330 #define $ac_func innocuous_$ac_func
31331
31332 /* System header to define __stub macros and hopefully few prototypes,
31333     which can conflict with char $ac_func (); below.
31334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31335     <limits.h> exists even on freestanding compilers.  */
31336
31337 #ifdef __STDC__
31338 # include <limits.h>
31339 #else
31340 # include <assert.h>
31341 #endif
31342
31343 #undef $ac_func
31344
31345 /* Override any GCC internal prototype to avoid an error.
31346    Use char because int might match the return type of a GCC
31347    builtin and then its argument prototype would still apply.  */
31348 #ifdef __cplusplus
31349 extern "C"
31350 #endif
31351 char $ac_func ();
31352 /* The GNU C library defines this for functions which it implements
31353     to always fail with ENOSYS.  Some functions are actually named
31354     something starting with __ and the normal name is an alias.  */
31355 #if defined __stub_$ac_func || defined __stub___$ac_func
31356 choke me
31357 #endif
31358
31359 int
31360 main ()
31361 {
31362 return $ac_func ();
31363   ;
31364   return 0;
31365 }
31366 _ACEOF
31367 rm -f conftest.$ac_objext conftest$ac_exeext
31368 if { (ac_try="$ac_link"
31369 case "(($ac_try" in
31370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371   *) ac_try_echo=$ac_try;;
31372 esac
31373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374   (eval "$ac_link") 2>conftest.er1
31375   ac_status=$?
31376   grep -v '^ *+' conftest.er1 >conftest.err
31377   rm -f conftest.er1
31378   cat conftest.err >&5
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); } &&
31381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31382   { (case "(($ac_try" in
31383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384   *) ac_try_echo=$ac_try;;
31385 esac
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387   (eval "$ac_try") 2>&5
31388   ac_status=$?
31389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390   (exit $ac_status); }; } &&
31391          { ac_try='test -s conftest$ac_exeext'
31392   { (case "(($ac_try" in
31393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31394   *) ac_try_echo=$ac_try;;
31395 esac
31396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31397   (eval "$ac_try") 2>&5
31398   ac_status=$?
31399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400   (exit $ac_status); }; }; then
31401   eval "$as_ac_var=yes"
31402 else
31403   echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31405
31406         eval "$as_ac_var=no"
31407 fi
31408
31409 rm -f core conftest.err conftest.$ac_objext \
31410       conftest$ac_exeext conftest.$ac_ext
31411 fi
31412 ac_res=`eval echo '${'$as_ac_var'}'`
31413                { echo "$as_me:$LINENO: result: $ac_res" >&5
31414 echo "${ECHO_T}$ac_res" >&6; }
31415 if test `eval echo '${'$as_ac_var'}'` = yes; then
31416   cat >>confdefs.h <<_ACEOF
31417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31418 _ACEOF
31419
31420 fi
31421 done
31422
31423 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31424 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31425 if test "${llvm_cv_c_printf_a+set}" = set; then
31426   echo $ECHO_N "(cached) $ECHO_C" >&6
31427 else
31428   ac_ext=c
31429 ac_cpp='$CPP $CPPFLAGS'
31430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31433
31434  if test "$cross_compiling" = yes; then
31435   llvmac_cv_c_printf_a=no
31436 else
31437   cat >conftest.$ac_ext <<_ACEOF
31438
31439   /* confdefs.h.  */
31440 _ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h.  */
31444
31445 #include <stdio.h>
31446 #include <stdlib.h>
31447
31448 int
31449 main ()
31450 {
31451
31452 volatile double A, B;
31453 char Buffer[100];
31454 A = 1;
31455 A /= 10.0;
31456 sprintf(Buffer, "%a", A);
31457 B = atof(Buffer);
31458 if (A != B)
31459   return (1);
31460 if (A != 0x1.999999999999ap-4)
31461   return (1);
31462 return (0);
31463   ;
31464   return 0;
31465 }
31466 _ACEOF
31467 rm -f conftest$ac_exeext
31468 if { (ac_try="$ac_link"
31469 case "(($ac_try" in
31470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471   *) ac_try_echo=$ac_try;;
31472 esac
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474   (eval "$ac_link") 2>&5
31475   ac_status=$?
31476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31478   { (case "(($ac_try" in
31479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480   *) ac_try_echo=$ac_try;;
31481 esac
31482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483   (eval "$ac_try") 2>&5
31484   ac_status=$?
31485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486   (exit $ac_status); }; }; then
31487   llvm_cv_c_printf_a=yes
31488 else
31489   echo "$as_me: program exited with status $ac_status" >&5
31490 echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31492
31493 ( exit $ac_status )
31494 llvmac_cv_c_printf_a=no
31495 fi
31496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31497 fi
31498
31499
31500  ac_ext=c
31501 ac_cpp='$CPP $CPPFLAGS'
31502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31505
31506 fi
31507 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31508 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31509  if test "$llvm_cv_c_printf_a" = "yes"; then
31510
31511 cat >>confdefs.h <<\_ACEOF
31512 #define HAVE_PRINTF_A 1
31513 _ACEOF
31514
31515  fi
31516
31517 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31518 # for constant arguments.  Useless!
31519 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31520 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31521 if test "${ac_cv_working_alloca_h+set}" = set; then
31522   echo $ECHO_N "(cached) $ECHO_C" >&6
31523 else
31524   cat >conftest.$ac_ext <<_ACEOF
31525 /* confdefs.h.  */
31526 _ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h.  */
31530 #include <alloca.h>
31531 int
31532 main ()
31533 {
31534 char *p = (char *) alloca (2 * sizeof (int));
31535                           if (p) return 0;
31536   ;
31537   return 0;
31538 }
31539 _ACEOF
31540 rm -f conftest.$ac_objext conftest$ac_exeext
31541 if { (ac_try="$ac_link"
31542 case "(($ac_try" in
31543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544   *) ac_try_echo=$ac_try;;
31545 esac
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547   (eval "$ac_link") 2>conftest.er1
31548   ac_status=$?
31549   grep -v '^ *+' conftest.er1 >conftest.err
31550   rm -f conftest.er1
31551   cat conftest.err >&5
31552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553   (exit $ac_status); } &&
31554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31555   { (case "(($ac_try" in
31556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557   *) ac_try_echo=$ac_try;;
31558 esac
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560   (eval "$ac_try") 2>&5
31561   ac_status=$?
31562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563   (exit $ac_status); }; } &&
31564          { ac_try='test -s conftest$ac_exeext'
31565   { (case "(($ac_try" in
31566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567   *) ac_try_echo=$ac_try;;
31568 esac
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570   (eval "$ac_try") 2>&5
31571   ac_status=$?
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); }; }; then
31574   ac_cv_working_alloca_h=yes
31575 else
31576   echo "$as_me: failed program was:" >&5
31577 sed 's/^/| /' conftest.$ac_ext >&5
31578
31579         ac_cv_working_alloca_h=no
31580 fi
31581
31582 rm -f core conftest.err conftest.$ac_objext \
31583       conftest$ac_exeext conftest.$ac_ext
31584 fi
31585 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31586 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31587 if test $ac_cv_working_alloca_h = yes; then
31588
31589 cat >>confdefs.h <<\_ACEOF
31590 #define HAVE_ALLOCA_H 1
31591 _ACEOF
31592
31593 fi
31594
31595 { echo "$as_me:$LINENO: checking for alloca" >&5
31596 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31597 if test "${ac_cv_func_alloca_works+set}" = set; then
31598   echo $ECHO_N "(cached) $ECHO_C" >&6
31599 else
31600   cat >conftest.$ac_ext <<_ACEOF
31601 /* confdefs.h.  */
31602 _ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h.  */
31606 #ifdef __GNUC__
31607 # define alloca __builtin_alloca
31608 #else
31609 # ifdef _MSC_VER
31610 #  include <malloc.h>
31611 #  define alloca _alloca
31612 # else
31613 #  if HAVE_ALLOCA_H
31614 #   include <alloca.h>
31615 #  else
31616 #   ifdef _AIX
31617  #pragma alloca
31618 #   else
31619 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31620 char *alloca ();
31621 #    endif
31622 #   endif
31623 #  endif
31624 # endif
31625 #endif
31626
31627 int
31628 main ()
31629 {
31630 char *p = (char *) alloca (1);
31631                                     if (p) return 0;
31632   ;
31633   return 0;
31634 }
31635 _ACEOF
31636 rm -f conftest.$ac_objext conftest$ac_exeext
31637 if { (ac_try="$ac_link"
31638 case "(($ac_try" in
31639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640   *) ac_try_echo=$ac_try;;
31641 esac
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643   (eval "$ac_link") 2>conftest.er1
31644   ac_status=$?
31645   grep -v '^ *+' conftest.er1 >conftest.err
31646   rm -f conftest.er1
31647   cat conftest.err >&5
31648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649   (exit $ac_status); } &&
31650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31651   { (case "(($ac_try" in
31652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653   *) ac_try_echo=$ac_try;;
31654 esac
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656   (eval "$ac_try") 2>&5
31657   ac_status=$?
31658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659   (exit $ac_status); }; } &&
31660          { ac_try='test -s conftest$ac_exeext'
31661   { (case "(($ac_try" in
31662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663   *) ac_try_echo=$ac_try;;
31664 esac
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666   (eval "$ac_try") 2>&5
31667   ac_status=$?
31668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669   (exit $ac_status); }; }; then
31670   ac_cv_func_alloca_works=yes
31671 else
31672   echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31674
31675         ac_cv_func_alloca_works=no
31676 fi
31677
31678 rm -f core conftest.err conftest.$ac_objext \
31679       conftest$ac_exeext conftest.$ac_ext
31680 fi
31681 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31682 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31683
31684 if test $ac_cv_func_alloca_works = yes; then
31685
31686 cat >>confdefs.h <<\_ACEOF
31687 #define HAVE_ALLOCA 1
31688 _ACEOF
31689
31690 else
31691   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31692 # that cause trouble.  Some versions do not even contain alloca or
31693 # contain a buggy version.  If you still want to use their alloca,
31694 # use ar to extract alloca.o from them instead of compiling alloca.c.
31695
31696 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31697
31698 cat >>confdefs.h <<\_ACEOF
31699 #define C_ALLOCA 1
31700 _ACEOF
31701
31702
31703 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31704 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31705 if test "${ac_cv_os_cray+set}" = set; then
31706   echo $ECHO_N "(cached) $ECHO_C" >&6
31707 else
31708   cat >conftest.$ac_ext <<_ACEOF
31709 /* confdefs.h.  */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h.  */
31714 #if defined CRAY && ! defined CRAY2
31715 webecray
31716 #else
31717 wenotbecray
31718 #endif
31719
31720 _ACEOF
31721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31722   $EGREP "webecray" >/dev/null 2>&1; then
31723   ac_cv_os_cray=yes
31724 else
31725   ac_cv_os_cray=no
31726 fi
31727 rm -f conftest*
31728
31729 fi
31730 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31731 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31732 if test $ac_cv_os_cray = yes; then
31733   for ac_func in _getb67 GETB67 getb67; do
31734     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31738   echo $ECHO_N "(cached) $ECHO_C" >&6
31739 else
31740   cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h.  */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h.  */
31746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31748 #define $ac_func innocuous_$ac_func
31749
31750 /* System header to define __stub macros and hopefully few prototypes,
31751     which can conflict with char $ac_func (); below.
31752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31753     <limits.h> exists even on freestanding compilers.  */
31754
31755 #ifdef __STDC__
31756 # include <limits.h>
31757 #else
31758 # include <assert.h>
31759 #endif
31760
31761 #undef $ac_func
31762
31763 /* Override any GCC internal prototype to avoid an error.
31764    Use char because int might match the return type of a GCC
31765    builtin and then its argument prototype would still apply.  */
31766 #ifdef __cplusplus
31767 extern "C"
31768 #endif
31769 char $ac_func ();
31770 /* The GNU C library defines this for functions which it implements
31771     to always fail with ENOSYS.  Some functions are actually named
31772     something starting with __ and the normal name is an alias.  */
31773 #if defined __stub_$ac_func || defined __stub___$ac_func
31774 choke me
31775 #endif
31776
31777 int
31778 main ()
31779 {
31780 return $ac_func ();
31781   ;
31782   return 0;
31783 }
31784 _ACEOF
31785 rm -f conftest.$ac_objext conftest$ac_exeext
31786 if { (ac_try="$ac_link"
31787 case "(($ac_try" in
31788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789   *) ac_try_echo=$ac_try;;
31790 esac
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792   (eval "$ac_link") 2>conftest.er1
31793   ac_status=$?
31794   grep -v '^ *+' conftest.er1 >conftest.err
31795   rm -f conftest.er1
31796   cat conftest.err >&5
31797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798   (exit $ac_status); } &&
31799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31800   { (case "(($ac_try" in
31801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31802   *) ac_try_echo=$ac_try;;
31803 esac
31804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31805   (eval "$ac_try") 2>&5
31806   ac_status=$?
31807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808   (exit $ac_status); }; } &&
31809          { ac_try='test -s conftest$ac_exeext'
31810   { (case "(($ac_try" in
31811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812   *) ac_try_echo=$ac_try;;
31813 esac
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815   (eval "$ac_try") 2>&5
31816   ac_status=$?
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); }; }; then
31819   eval "$as_ac_var=yes"
31820 else
31821   echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31823
31824         eval "$as_ac_var=no"
31825 fi
31826
31827 rm -f core conftest.err conftest.$ac_objext \
31828       conftest$ac_exeext conftest.$ac_ext
31829 fi
31830 ac_res=`eval echo '${'$as_ac_var'}'`
31831                { echo "$as_me:$LINENO: result: $ac_res" >&5
31832 echo "${ECHO_T}$ac_res" >&6; }
31833 if test `eval echo '${'$as_ac_var'}'` = yes; then
31834
31835 cat >>confdefs.h <<_ACEOF
31836 #define CRAY_STACKSEG_END $ac_func
31837 _ACEOF
31838
31839     break
31840 fi
31841
31842   done
31843 fi
31844
31845 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31846 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31847 if test "${ac_cv_c_stack_direction+set}" = set; then
31848   echo $ECHO_N "(cached) $ECHO_C" >&6
31849 else
31850   if test "$cross_compiling" = yes; then
31851   ac_cv_c_stack_direction=0
31852 else
31853   cat >conftest.$ac_ext <<_ACEOF
31854 /* confdefs.h.  */
31855 _ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h.  */
31859 $ac_includes_default
31860 int
31861 find_stack_direction ()
31862 {
31863   static char *addr = 0;
31864   auto char dummy;
31865   if (addr == 0)
31866     {
31867       addr = &dummy;
31868       return find_stack_direction ();
31869     }
31870   else
31871     return (&dummy > addr) ? 1 : -1;
31872 }
31873
31874 int
31875 main ()
31876 {
31877   return find_stack_direction () < 0;
31878 }
31879 _ACEOF
31880 rm -f conftest$ac_exeext
31881 if { (ac_try="$ac_link"
31882 case "(($ac_try" in
31883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884   *) ac_try_echo=$ac_try;;
31885 esac
31886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887   (eval "$ac_link") 2>&5
31888   ac_status=$?
31889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31891   { (case "(($ac_try" in
31892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893   *) ac_try_echo=$ac_try;;
31894 esac
31895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896   (eval "$ac_try") 2>&5
31897   ac_status=$?
31898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899   (exit $ac_status); }; }; then
31900   ac_cv_c_stack_direction=1
31901 else
31902   echo "$as_me: program exited with status $ac_status" >&5
31903 echo "$as_me: failed program was:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31905
31906 ( exit $ac_status )
31907 ac_cv_c_stack_direction=-1
31908 fi
31909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31910 fi
31911
31912
31913 fi
31914 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31915 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31916
31917 cat >>confdefs.h <<_ACEOF
31918 #define STACK_DIRECTION $ac_cv_c_stack_direction
31919 _ACEOF
31920
31921
31922 fi
31923
31924
31925 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31926 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31927 if test "${ac_cv_func_rand48+set}" = set; then
31928   echo $ECHO_N "(cached) $ECHO_C" >&6
31929 else
31930   ac_ext=cpp
31931 ac_cpp='$CXXCPP $CPPFLAGS'
31932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31935
31936    cat >conftest.$ac_ext <<_ACEOF
31937 /* confdefs.h.  */
31938 _ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h.  */
31942 #include <stdlib.h>
31943 int
31944 main ()
31945 {
31946 srand48(0);lrand48();drand48();
31947   ;
31948   return 0;
31949 }
31950 _ACEOF
31951 rm -f conftest.$ac_objext
31952 if { (ac_try="$ac_compile"
31953 case "(($ac_try" in
31954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955   *) ac_try_echo=$ac_try;;
31956 esac
31957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958   (eval "$ac_compile") 2>conftest.er1
31959   ac_status=$?
31960   grep -v '^ *+' conftest.er1 >conftest.err
31961   rm -f conftest.er1
31962   cat conftest.err >&5
31963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964   (exit $ac_status); } &&
31965          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31966   { (case "(($ac_try" in
31967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968   *) ac_try_echo=$ac_try;;
31969 esac
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971   (eval "$ac_try") 2>&5
31972   ac_status=$?
31973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974   (exit $ac_status); }; } &&
31975          { ac_try='test -s conftest.$ac_objext'
31976   { (case "(($ac_try" in
31977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978   *) ac_try_echo=$ac_try;;
31979 esac
31980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981   (eval "$ac_try") 2>&5
31982   ac_status=$?
31983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984   (exit $ac_status); }; }; then
31985   ac_cv_func_rand48=yes
31986 else
31987   echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31989
31990         ac_cv_func_rand48=no
31991 fi
31992
31993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31994   ac_ext=c
31995 ac_cpp='$CPP $CPPFLAGS'
31996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31999
32000 fi
32001 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32002 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32003
32004 if test "$ac_cv_func_rand48" = "yes" ; then
32005
32006 cat >>confdefs.h <<\_ACEOF
32007 #define HAVE_RAND48 1
32008 _ACEOF
32009
32010 fi
32011
32012
32013 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32014 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32015 if test "${ac_cv_cxx_namespaces+set}" = set; then
32016   echo $ECHO_N "(cached) $ECHO_C" >&6
32017 else
32018   ac_ext=cpp
32019 ac_cpp='$CXXCPP $CPPFLAGS'
32020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32023
32024  cat >conftest.$ac_ext <<_ACEOF
32025 /* confdefs.h.  */
32026 _ACEOF
32027 cat confdefs.h >>conftest.$ac_ext
32028 cat >>conftest.$ac_ext <<_ACEOF
32029 /* end confdefs.h.  */
32030 namespace Outer { namespace Inner { int i = 0; }}
32031 int
32032 main ()
32033 {
32034 using namespace Outer::Inner; return i;
32035   ;
32036   return 0;
32037 }
32038 _ACEOF
32039 rm -f conftest.$ac_objext
32040 if { (ac_try="$ac_compile"
32041 case "(($ac_try" in
32042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043   *) ac_try_echo=$ac_try;;
32044 esac
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046   (eval "$ac_compile") 2>conftest.er1
32047   ac_status=$?
32048   grep -v '^ *+' conftest.er1 >conftest.err
32049   rm -f conftest.er1
32050   cat conftest.err >&5
32051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052   (exit $ac_status); } &&
32053          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32054   { (case "(($ac_try" in
32055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056   *) ac_try_echo=$ac_try;;
32057 esac
32058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059   (eval "$ac_try") 2>&5
32060   ac_status=$?
32061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062   (exit $ac_status); }; } &&
32063          { ac_try='test -s conftest.$ac_objext'
32064   { (case "(($ac_try" in
32065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066   *) ac_try_echo=$ac_try;;
32067 esac
32068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069   (eval "$ac_try") 2>&5
32070   ac_status=$?
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); }; }; then
32073   ac_cv_cxx_namespaces=yes
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078         ac_cv_cxx_namespaces=no
32079 fi
32080
32081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32082  ac_ext=c
32083 ac_cpp='$CPP $CPPFLAGS'
32084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32087
32088
32089 fi
32090 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32091 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32092 if test "$ac_cv_cxx_namespaces" = yes; then
32093
32094 cat >>confdefs.h <<\_ACEOF
32095 #define HAVE_NAMESPACES
32096 _ACEOF
32097
32098 fi
32099
32100 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32101 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32102 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32103   echo $ECHO_N "(cached) $ECHO_C" >&6
32104 else
32105
32106   ac_ext=cpp
32107 ac_cpp='$CXXCPP $CPPFLAGS'
32108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32111
32112   cat >conftest.$ac_ext <<_ACEOF
32113 /* confdefs.h.  */
32114 _ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h.  */
32118 #include <ext/hash_map>
32119 #ifdef HAVE_NAMESPACES
32120 using namespace std;
32121 #endif
32122 int
32123 main ()
32124 {
32125 hash_map<int, int> t;
32126   ;
32127   return 0;
32128 }
32129 _ACEOF
32130 rm -f conftest.$ac_objext
32131 if { (ac_try="$ac_compile"
32132 case "(($ac_try" in
32133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134   *) ac_try_echo=$ac_try;;
32135 esac
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137   (eval "$ac_compile") 2>conftest.er1
32138   ac_status=$?
32139   grep -v '^ *+' conftest.er1 >conftest.err
32140   rm -f conftest.er1
32141   cat conftest.err >&5
32142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143   (exit $ac_status); } &&
32144          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32145   { (case "(($ac_try" in
32146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147   *) ac_try_echo=$ac_try;;
32148 esac
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150   (eval "$ac_try") 2>&5
32151   ac_status=$?
32152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153   (exit $ac_status); }; } &&
32154          { ac_try='test -s conftest.$ac_objext'
32155   { (case "(($ac_try" in
32156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32157   *) ac_try_echo=$ac_try;;
32158 esac
32159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32160   (eval "$ac_try") 2>&5
32161   ac_status=$?
32162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163   (exit $ac_status); }; }; then
32164   ac_cv_cxx_have_std_ext_hash_map=yes
32165 else
32166   echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32168
32169         ac_cv_cxx_have_std_ext_hash_map=no
32170 fi
32171
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173   ac_ext=c
32174 ac_cpp='$CPP $CPPFLAGS'
32175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32178
32179 fi
32180 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32181 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32182  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32183  then
32184
32185 cat >>confdefs.h <<\_ACEOF
32186 #define HAVE_STD_EXT_HASH_MAP 1
32187 _ACEOF
32188
32189  else
32190
32191 cat >>confdefs.h <<\_ACEOF
32192 #define HAVE_STD_EXT_HASH_MAP 0
32193 _ACEOF
32194
32195  fi
32196
32197  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32198 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32199 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32200   echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202
32203   ac_ext=cpp
32204 ac_cpp='$CXXCPP $CPPFLAGS'
32205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32208
32209   cat >conftest.$ac_ext <<_ACEOF
32210 /* confdefs.h.  */
32211 _ACEOF
32212 cat confdefs.h >>conftest.$ac_ext
32213 cat >>conftest.$ac_ext <<_ACEOF
32214 /* end confdefs.h.  */
32215 #include <ext/hash_map>
32216 #ifdef HAVE_NAMESPACES
32217 using namespace __gnu_cxx;
32218 #endif
32219 int
32220 main ()
32221 {
32222 hash_map<int,int> t;
32223   ;
32224   return 0;
32225 }
32226 _ACEOF
32227 rm -f conftest.$ac_objext
32228 if { (ac_try="$ac_compile"
32229 case "(($ac_try" in
32230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231   *) ac_try_echo=$ac_try;;
32232 esac
32233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234   (eval "$ac_compile") 2>conftest.er1
32235   ac_status=$?
32236   grep -v '^ *+' conftest.er1 >conftest.err
32237   rm -f conftest.er1
32238   cat conftest.err >&5
32239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240   (exit $ac_status); } &&
32241          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32242   { (case "(($ac_try" in
32243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244   *) ac_try_echo=$ac_try;;
32245 esac
32246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247   (eval "$ac_try") 2>&5
32248   ac_status=$?
32249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250   (exit $ac_status); }; } &&
32251          { ac_try='test -s conftest.$ac_objext'
32252   { (case "(($ac_try" in
32253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254   *) ac_try_echo=$ac_try;;
32255 esac
32256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257   (eval "$ac_try") 2>&5
32258   ac_status=$?
32259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260   (exit $ac_status); }; }; then
32261   ac_cv_cxx_have_gnu_ext_hash_map=yes
32262 else
32263   echo "$as_me: failed program was:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32265
32266         ac_cv_cxx_have_gnu_ext_hash_map=no
32267 fi
32268
32269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32270   ac_ext=c
32271 ac_cpp='$CPP $CPPFLAGS'
32272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32275
32276 fi
32277 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32278 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32279  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32280  then
32281
32282 cat >>confdefs.h <<\_ACEOF
32283 #define HAVE_GNU_EXT_HASH_MAP 1
32284 _ACEOF
32285
32286  else
32287
32288 cat >>confdefs.h <<\_ACEOF
32289 #define HAVE_GNU_EXT_HASH_MAP 0
32290 _ACEOF
32291
32292  fi
32293
32294  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32295 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32296 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32297   echo $ECHO_N "(cached) $ECHO_C" >&6
32298 else
32299
32300   ac_ext=cpp
32301 ac_cpp='$CXXCPP $CPPFLAGS'
32302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32305
32306   cat >conftest.$ac_ext <<_ACEOF
32307 /* confdefs.h.  */
32308 _ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h.  */
32312 #include <hash_map>
32313 int
32314 main ()
32315 {
32316 hash_map<int,int> t;
32317   ;
32318   return 0;
32319 }
32320 _ACEOF
32321 rm -f conftest.$ac_objext
32322 if { (ac_try="$ac_compile"
32323 case "(($ac_try" in
32324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325   *) ac_try_echo=$ac_try;;
32326 esac
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328   (eval "$ac_compile") 2>conftest.er1
32329   ac_status=$?
32330   grep -v '^ *+' conftest.er1 >conftest.err
32331   rm -f conftest.er1
32332   cat conftest.err >&5
32333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334   (exit $ac_status); } &&
32335          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32336   { (case "(($ac_try" in
32337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338   *) ac_try_echo=$ac_try;;
32339 esac
32340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341   (eval "$ac_try") 2>&5
32342   ac_status=$?
32343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344   (exit $ac_status); }; } &&
32345          { ac_try='test -s conftest.$ac_objext'
32346   { (case "(($ac_try" in
32347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348   *) ac_try_echo=$ac_try;;
32349 esac
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351   (eval "$ac_try") 2>&5
32352   ac_status=$?
32353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354   (exit $ac_status); }; }; then
32355   ac_cv_cxx_have_global_hash_map=yes
32356 else
32357   echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32359
32360         ac_cv_cxx_have_global_hash_map=no
32361 fi
32362
32363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32364   ac_ext=c
32365 ac_cpp='$CPP $CPPFLAGS'
32366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32369
32370 fi
32371 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32372 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32373  if test "$ac_cv_cxx_have_global_hash_map" = yes
32374  then
32375
32376 cat >>confdefs.h <<\_ACEOF
32377 #define HAVE_GLOBAL_HASH_MAP 1
32378 _ACEOF
32379
32380  else
32381
32382 cat >>confdefs.h <<\_ACEOF
32383 #define HAVE_GLOBAL_HASH_MAP 0
32384 _ACEOF
32385
32386  fi
32387
32388 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32389 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32390 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32391   echo $ECHO_N "(cached) $ECHO_C" >&6
32392 else
32393
32394   ac_ext=cpp
32395 ac_cpp='$CXXCPP $CPPFLAGS'
32396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32399
32400   cat >conftest.$ac_ext <<_ACEOF
32401 /* confdefs.h.  */
32402 _ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h.  */
32406 #include <ext/hash_set>
32407 #ifdef HAVE_NAMESPACES
32408 using namespace std;
32409 #endif
32410 int
32411 main ()
32412 {
32413 hash_set<int> t;
32414   ;
32415   return 0;
32416 }
32417 _ACEOF
32418 rm -f conftest.$ac_objext
32419 if { (ac_try="$ac_compile"
32420 case "(($ac_try" in
32421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422   *) ac_try_echo=$ac_try;;
32423 esac
32424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425   (eval "$ac_compile") 2>conftest.er1
32426   ac_status=$?
32427   grep -v '^ *+' conftest.er1 >conftest.err
32428   rm -f conftest.er1
32429   cat conftest.err >&5
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); } &&
32432          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32433   { (case "(($ac_try" in
32434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435   *) ac_try_echo=$ac_try;;
32436 esac
32437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438   (eval "$ac_try") 2>&5
32439   ac_status=$?
32440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441   (exit $ac_status); }; } &&
32442          { ac_try='test -s conftest.$ac_objext'
32443   { (case "(($ac_try" in
32444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445   *) ac_try_echo=$ac_try;;
32446 esac
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448   (eval "$ac_try") 2>&5
32449   ac_status=$?
32450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451   (exit $ac_status); }; }; then
32452   ac_cv_cxx_have_std_ext_hash_set=yes
32453 else
32454   echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32456
32457         ac_cv_cxx_have_std_ext_hash_set=no
32458 fi
32459
32460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32461   ac_ext=c
32462 ac_cpp='$CPP $CPPFLAGS'
32463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32466
32467 fi
32468 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32469 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32470  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32471  then
32472
32473 cat >>confdefs.h <<\_ACEOF
32474 #define HAVE_STD_EXT_HASH_SET 1
32475 _ACEOF
32476
32477  else
32478
32479 cat >>confdefs.h <<\_ACEOF
32480 #define HAVE_STD_EXT_HASH_SET 0
32481 _ACEOF
32482
32483  fi
32484
32485  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32486 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32487 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32488   echo $ECHO_N "(cached) $ECHO_C" >&6
32489 else
32490
32491   ac_ext=cpp
32492 ac_cpp='$CXXCPP $CPPFLAGS'
32493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32496
32497   cat >conftest.$ac_ext <<_ACEOF
32498 /* confdefs.h.  */
32499 _ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h.  */
32503 #include <ext/hash_set>
32504 #ifdef HAVE_NAMESPACES
32505 using namespace __gnu_cxx;
32506 #endif
32507 int
32508 main ()
32509 {
32510 hash_set<int> t;
32511   ;
32512   return 0;
32513 }
32514 _ACEOF
32515 rm -f conftest.$ac_objext
32516 if { (ac_try="$ac_compile"
32517 case "(($ac_try" in
32518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519   *) ac_try_echo=$ac_try;;
32520 esac
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522   (eval "$ac_compile") 2>conftest.er1
32523   ac_status=$?
32524   grep -v '^ *+' conftest.er1 >conftest.err
32525   rm -f conftest.er1
32526   cat conftest.err >&5
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); } &&
32529          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32530   { (case "(($ac_try" in
32531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532   *) ac_try_echo=$ac_try;;
32533 esac
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535   (eval "$ac_try") 2>&5
32536   ac_status=$?
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); }; } &&
32539          { ac_try='test -s conftest.$ac_objext'
32540   { (case "(($ac_try" in
32541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542   *) ac_try_echo=$ac_try;;
32543 esac
32544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545   (eval "$ac_try") 2>&5
32546   ac_status=$?
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); }; }; then
32549   ac_cv_cxx_have_gnu_ext_hash_set=yes
32550 else
32551   echo "$as_me: failed program was:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32553
32554         ac_cv_cxx_have_gnu_ext_hash_set=no
32555 fi
32556
32557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32558   ac_ext=c
32559 ac_cpp='$CPP $CPPFLAGS'
32560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563
32564 fi
32565 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32566 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32567  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32568  then
32569
32570 cat >>confdefs.h <<\_ACEOF
32571 #define HAVE_GNU_EXT_HASH_SET 1
32572 _ACEOF
32573
32574  else
32575
32576 cat >>confdefs.h <<\_ACEOF
32577 #define HAVE_GNU_EXT_HASH_SET 0
32578 _ACEOF
32579
32580  fi
32581
32582  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32583 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32584 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587
32588   ac_ext=cpp
32589 ac_cpp='$CXXCPP $CPPFLAGS'
32590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32593
32594   cat >conftest.$ac_ext <<_ACEOF
32595 /* confdefs.h.  */
32596 _ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h.  */
32600 #include <hash_set>
32601 int
32602 main ()
32603 {
32604 hash_set<int> t; return 0;
32605   ;
32606   return 0;
32607 }
32608 _ACEOF
32609 rm -f conftest.$ac_objext
32610 if { (ac_try="$ac_compile"
32611 case "(($ac_try" in
32612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613   *) ac_try_echo=$ac_try;;
32614 esac
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616   (eval "$ac_compile") 2>conftest.er1
32617   ac_status=$?
32618   grep -v '^ *+' conftest.er1 >conftest.err
32619   rm -f conftest.er1
32620   cat conftest.err >&5
32621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622   (exit $ac_status); } &&
32623          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32624   { (case "(($ac_try" in
32625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626   *) ac_try_echo=$ac_try;;
32627 esac
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629   (eval "$ac_try") 2>&5
32630   ac_status=$?
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); }; } &&
32633          { ac_try='test -s conftest.$ac_objext'
32634   { (case "(($ac_try" in
32635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636   *) ac_try_echo=$ac_try;;
32637 esac
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639   (eval "$ac_try") 2>&5
32640   ac_status=$?
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); }; }; then
32643   ac_cv_cxx_have_global_hash_set=yes
32644 else
32645   echo "$as_me: failed program was:" >&5
32646 sed 's/^/| /' conftest.$ac_ext >&5
32647
32648         ac_cv_cxx_have_global_hash_set=no
32649 fi
32650
32651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32652   ac_ext=c
32653 ac_cpp='$CPP $CPPFLAGS'
32654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32657
32658 fi
32659 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32660 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32661  if test "$ac_cv_cxx_have_global_hash_set" = yes
32662  then
32663
32664 cat >>confdefs.h <<\_ACEOF
32665 #define HAVE_GLOBAL_HASH_SET 1
32666 _ACEOF
32667
32668  else
32669
32670 cat >>confdefs.h <<\_ACEOF
32671 #define HAVE_GLOBAL_HASH_SET 0
32672 _ACEOF
32673
32674  fi
32675
32676 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32677 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32678 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32679   echo $ECHO_N "(cached) $ECHO_C" >&6
32680 else
32681
32682   ac_ext=cpp
32683 ac_cpp='$CXXCPP $CPPFLAGS'
32684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32687
32688   cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h.  */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h.  */
32694 #include <iterator>
32695 #ifdef HAVE_NAMESPACES
32696 using namespace std;
32697 #endif
32698 int
32699 main ()
32700 {
32701 iterator<int,int,int> t; return 0;
32702   ;
32703   return 0;
32704 }
32705 _ACEOF
32706 rm -f conftest.$ac_objext
32707 if { (ac_try="$ac_compile"
32708 case "(($ac_try" in
32709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710   *) ac_try_echo=$ac_try;;
32711 esac
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713   (eval "$ac_compile") 2>conftest.er1
32714   ac_status=$?
32715   grep -v '^ *+' conftest.er1 >conftest.err
32716   rm -f conftest.er1
32717   cat conftest.err >&5
32718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719   (exit $ac_status); } &&
32720          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32721   { (case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_try") 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); }; } &&
32730          { ac_try='test -s conftest.$ac_objext'
32731   { (case "(($ac_try" in
32732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733   *) ac_try_echo=$ac_try;;
32734 esac
32735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736   (eval "$ac_try") 2>&5
32737   ac_status=$?
32738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739   (exit $ac_status); }; }; then
32740   ac_cv_cxx_have_std_iterator=yes
32741 else
32742   echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32744
32745         ac_cv_cxx_have_std_iterator=no
32746 fi
32747
32748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32749   ac_ext=c
32750 ac_cpp='$CPP $CPPFLAGS'
32751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32754
32755
32756 fi
32757 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32758 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32759 if test "$ac_cv_cxx_have_std_iterator" = yes
32760 then
32761
32762 cat >>confdefs.h <<\_ACEOF
32763 #define HAVE_STD_ITERATOR 1
32764 _ACEOF
32765
32766 else
32767
32768 cat >>confdefs.h <<\_ACEOF
32769 #define HAVE_STD_ITERATOR 0
32770 _ACEOF
32771
32772 fi
32773
32774 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32775 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32776 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32777   echo $ECHO_N "(cached) $ECHO_C" >&6
32778 else
32779
32780   ac_ext=cpp
32781 ac_cpp='$CXXCPP $CPPFLAGS'
32782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32785
32786   cat >conftest.$ac_ext <<_ACEOF
32787 /* confdefs.h.  */
32788 _ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h.  */
32792 #include <iterator>
32793 #ifdef HAVE_NAMESPACES
32794 using namespace std;
32795 #endif
32796 int
32797 main ()
32798 {
32799 bidirectional_iterator<int,int> t; return 0;
32800   ;
32801   return 0;
32802 }
32803 _ACEOF
32804 rm -f conftest.$ac_objext
32805 if { (ac_try="$ac_compile"
32806 case "(($ac_try" in
32807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808   *) ac_try_echo=$ac_try;;
32809 esac
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811   (eval "$ac_compile") 2>conftest.er1
32812   ac_status=$?
32813   grep -v '^ *+' conftest.er1 >conftest.err
32814   rm -f conftest.er1
32815   cat conftest.err >&5
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); } &&
32818          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32819   { (case "(($ac_try" in
32820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821   *) ac_try_echo=$ac_try;;
32822 esac
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824   (eval "$ac_try") 2>&5
32825   ac_status=$?
32826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827   (exit $ac_status); }; } &&
32828          { ac_try='test -s conftest.$ac_objext'
32829   { (case "(($ac_try" in
32830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831   *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834   (eval "$ac_try") 2>&5
32835   ac_status=$?
32836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837   (exit $ac_status); }; }; then
32838   ac_cv_cxx_have_bi_iterator=yes
32839 else
32840   echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32842
32843         ac_cv_cxx_have_bi_iterator=no
32844 fi
32845
32846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32847   ac_ext=c
32848 ac_cpp='$CPP $CPPFLAGS'
32849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32852
32853
32854 fi
32855 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32856 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32857 if test "$ac_cv_cxx_have_bi_iterator" = yes
32858 then
32859
32860 cat >>confdefs.h <<\_ACEOF
32861 #define HAVE_BI_ITERATOR 1
32862 _ACEOF
32863
32864 else
32865
32866 cat >>confdefs.h <<\_ACEOF
32867 #define HAVE_BI_ITERATOR 0
32868 _ACEOF
32869
32870 fi
32871
32872 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32873 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32874 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32875   echo $ECHO_N "(cached) $ECHO_C" >&6
32876 else
32877
32878   ac_ext=cpp
32879 ac_cpp='$CXXCPP $CPPFLAGS'
32880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32883
32884   cat >conftest.$ac_ext <<_ACEOF
32885 /* confdefs.h.  */
32886 _ACEOF
32887 cat confdefs.h >>conftest.$ac_ext
32888 cat >>conftest.$ac_ext <<_ACEOF
32889 /* end confdefs.h.  */
32890 #include <iterator>
32891 #ifdef HAVE_NAMESPACES
32892 using namespace std;
32893 #endif
32894 int
32895 main ()
32896 {
32897 forward_iterator<int,int> t; return 0;
32898   ;
32899   return 0;
32900 }
32901 _ACEOF
32902 rm -f conftest.$ac_objext
32903 if { (ac_try="$ac_compile"
32904 case "(($ac_try" in
32905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906   *) ac_try_echo=$ac_try;;
32907 esac
32908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909   (eval "$ac_compile") 2>conftest.er1
32910   ac_status=$?
32911   grep -v '^ *+' conftest.er1 >conftest.err
32912   rm -f conftest.er1
32913   cat conftest.err >&5
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); } &&
32916          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32917   { (case "(($ac_try" in
32918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919   *) ac_try_echo=$ac_try;;
32920 esac
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922   (eval "$ac_try") 2>&5
32923   ac_status=$?
32924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925   (exit $ac_status); }; } &&
32926          { ac_try='test -s conftest.$ac_objext'
32927   { (case "(($ac_try" in
32928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929   *) ac_try_echo=$ac_try;;
32930 esac
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932   (eval "$ac_try") 2>&5
32933   ac_status=$?
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); }; }; then
32936   ac_cv_cxx_have_fwd_iterator=yes
32937 else
32938   echo "$as_me: failed program was:" >&5
32939 sed 's/^/| /' conftest.$ac_ext >&5
32940
32941         ac_cv_cxx_have_fwd_iterator=no
32942 fi
32943
32944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32945   ac_ext=c
32946 ac_cpp='$CPP $CPPFLAGS'
32947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32950
32951
32952 fi
32953 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32954 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32955 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32956 then
32957
32958 cat >>confdefs.h <<\_ACEOF
32959 #define HAVE_FWD_ITERATOR 1
32960 _ACEOF
32961
32962 else
32963
32964 cat >>confdefs.h <<\_ACEOF
32965 #define HAVE_FWD_ITERATOR 0
32966 _ACEOF
32967
32968 fi
32969
32970
32971 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32972 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32973 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32974   echo $ECHO_N "(cached) $ECHO_C" >&6
32975 else
32976   ac_ext=cpp
32977 ac_cpp='$CXXCPP $CPPFLAGS'
32978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32981
32982    cat >conftest.$ac_ext <<_ACEOF
32983 /* confdefs.h.  */
32984 _ACEOF
32985 cat confdefs.h >>conftest.$ac_ext
32986 cat >>conftest.$ac_ext <<_ACEOF
32987 /* end confdefs.h.  */
32988 #include <math.h>
32989 int
32990 main ()
32991 {
32992 float f; isnan(f);
32993   ;
32994   return 0;
32995 }
32996 _ACEOF
32997 rm -f conftest.$ac_objext
32998 if { (ac_try="$ac_compile"
32999 case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_compile") 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } &&
33011          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33012   { (case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_try") 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); }; } &&
33021          { ac_try='test -s conftest.$ac_objext'
33022   { (case "(($ac_try" in
33023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024   *) ac_try_echo=$ac_try;;
33025 esac
33026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027   (eval "$ac_try") 2>&5
33028   ac_status=$?
33029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030   (exit $ac_status); }; }; then
33031   ac_cv_func_isnan_in_math_h=yes
33032 else
33033   echo "$as_me: failed program was:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33035
33036         ac_cv_func_isnan_in_math_h=no
33037 fi
33038
33039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33040   ac_ext=c
33041 ac_cpp='$CPP $CPPFLAGS'
33042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33045
33046 fi
33047 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33048 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33049
33050
33051 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33052
33053 cat >>confdefs.h <<\_ACEOF
33054 #define HAVE_ISNAN_IN_MATH_H 1
33055 _ACEOF
33056
33057 fi
33058
33059 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33060 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33061 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33062   echo $ECHO_N "(cached) $ECHO_C" >&6
33063 else
33064   ac_ext=cpp
33065 ac_cpp='$CXXCPP $CPPFLAGS'
33066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33069
33070    cat >conftest.$ac_ext <<_ACEOF
33071 /* confdefs.h.  */
33072 _ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h.  */
33076 #include <cmath>
33077 int
33078 main ()
33079 {
33080 float f; isnan(f);
33081   ;
33082   return 0;
33083 }
33084 _ACEOF
33085 rm -f conftest.$ac_objext
33086 if { (ac_try="$ac_compile"
33087 case "(($ac_try" in
33088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089   *) ac_try_echo=$ac_try;;
33090 esac
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092   (eval "$ac_compile") 2>conftest.er1
33093   ac_status=$?
33094   grep -v '^ *+' conftest.er1 >conftest.err
33095   rm -f conftest.er1
33096   cat conftest.err >&5
33097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098   (exit $ac_status); } &&
33099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33100   { (case "(($ac_try" in
33101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102   *) ac_try_echo=$ac_try;;
33103 esac
33104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105   (eval "$ac_try") 2>&5
33106   ac_status=$?
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); }; } &&
33109          { ac_try='test -s conftest.$ac_objext'
33110   { (case "(($ac_try" in
33111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112   *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115   (eval "$ac_try") 2>&5
33116   ac_status=$?
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); }; }; then
33119   ac_cv_func_isnan_in_cmath=yes
33120 else
33121   echo "$as_me: failed program was:" >&5
33122 sed 's/^/| /' conftest.$ac_ext >&5
33123
33124         ac_cv_func_isnan_in_cmath=no
33125 fi
33126
33127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33128   ac_ext=c
33129 ac_cpp='$CPP $CPPFLAGS'
33130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33133
33134 fi
33135 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33136 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33137
33138 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33139
33140 cat >>confdefs.h <<\_ACEOF
33141 #define HAVE_ISNAN_IN_CMATH 1
33142 _ACEOF
33143
33144 fi
33145
33146 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33147 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33148 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33149   echo $ECHO_N "(cached) $ECHO_C" >&6
33150 else
33151   ac_ext=cpp
33152 ac_cpp='$CXXCPP $CPPFLAGS'
33153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33156
33157    cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h.  */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h.  */
33163 #include <cmath>
33164 int
33165 main ()
33166 {
33167 float f; std::isnan(f);
33168   ;
33169   return 0;
33170 }
33171 _ACEOF
33172 rm -f conftest.$ac_objext
33173 if { (ac_try="$ac_compile"
33174 case "(($ac_try" in
33175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33176   *) ac_try_echo=$ac_try;;
33177 esac
33178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33179   (eval "$ac_compile") 2>conftest.er1
33180   ac_status=$?
33181   grep -v '^ *+' conftest.er1 >conftest.err
33182   rm -f conftest.er1
33183   cat conftest.err >&5
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); } &&
33186          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33187   { (case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_try") 2>&5
33193   ac_status=$?
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   (exit $ac_status); }; } &&
33196          { ac_try='test -s conftest.$ac_objext'
33197   { (case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_try") 2>&5
33203   ac_status=$?
33204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205   (exit $ac_status); }; }; then
33206   ac_cv_func_std_isnan_in_cmath=yes
33207 else
33208   echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33210
33211         ac_cv_func_std_isnan_in_cmath=no
33212 fi
33213
33214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33215   ac_ext=c
33216 ac_cpp='$CPP $CPPFLAGS'
33217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33220
33221 fi
33222 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33223 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33224
33225 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33226
33227 cat >>confdefs.h <<\_ACEOF
33228 #define HAVE_STD_ISNAN_IN_CMATH 1
33229 _ACEOF
33230
33231 fi
33232
33233
33234 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33235 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33236 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33237   echo $ECHO_N "(cached) $ECHO_C" >&6
33238 else
33239   ac_ext=cpp
33240 ac_cpp='$CXXCPP $CPPFLAGS'
33241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33244
33245    cat >conftest.$ac_ext <<_ACEOF
33246 /* confdefs.h.  */
33247 _ACEOF
33248 cat confdefs.h >>conftest.$ac_ext
33249 cat >>conftest.$ac_ext <<_ACEOF
33250 /* end confdefs.h.  */
33251 #include <math.h>
33252 int
33253 main ()
33254 {
33255 float f; isinf(f);
33256   ;
33257   return 0;
33258 }
33259 _ACEOF
33260 rm -f conftest.$ac_objext
33261 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
33268   ac_status=$?
33269   grep -v '^ *+' conftest.er1 >conftest.err
33270   rm -f conftest.er1
33271   cat conftest.err >&5
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); } &&
33274          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33275   { (case "(($ac_try" in
33276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277   *) ac_try_echo=$ac_try;;
33278 esac
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280   (eval "$ac_try") 2>&5
33281   ac_status=$?
33282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283   (exit $ac_status); }; } &&
33284          { ac_try='test -s conftest.$ac_objext'
33285   { (case "(($ac_try" in
33286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287   *) ac_try_echo=$ac_try;;
33288 esac
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290   (eval "$ac_try") 2>&5
33291   ac_status=$?
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); }; }; then
33294   ac_cv_func_isinf_in_math_h=yes
33295 else
33296   echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33298
33299         ac_cv_func_isinf_in_math_h=no
33300 fi
33301
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303   ac_ext=c
33304 ac_cpp='$CPP $CPPFLAGS'
33305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308
33309 fi
33310 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33311 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33312
33313 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33314
33315 cat >>confdefs.h <<\_ACEOF
33316 #define HAVE_ISINF_IN_MATH_H 1
33317 _ACEOF
33318
33319 fi
33320
33321 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33322 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33323 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33324   echo $ECHO_N "(cached) $ECHO_C" >&6
33325 else
33326   ac_ext=cpp
33327 ac_cpp='$CXXCPP $CPPFLAGS'
33328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33331
33332    cat >conftest.$ac_ext <<_ACEOF
33333 /* confdefs.h.  */
33334 _ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h.  */
33338 #include <cmath>
33339 int
33340 main ()
33341 {
33342 float f; isinf(f);
33343   ;
33344   return 0;
33345 }
33346 _ACEOF
33347 rm -f conftest.$ac_objext
33348 if { (ac_try="$ac_compile"
33349 case "(($ac_try" in
33350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351   *) ac_try_echo=$ac_try;;
33352 esac
33353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33354   (eval "$ac_compile") 2>conftest.er1
33355   ac_status=$?
33356   grep -v '^ *+' conftest.er1 >conftest.err
33357   rm -f conftest.er1
33358   cat conftest.err >&5
33359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33360   (exit $ac_status); } &&
33361          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33362   { (case "(($ac_try" in
33363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364   *) ac_try_echo=$ac_try;;
33365 esac
33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367   (eval "$ac_try") 2>&5
33368   ac_status=$?
33369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); }; } &&
33371          { ac_try='test -s conftest.$ac_objext'
33372   { (case "(($ac_try" in
33373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374   *) ac_try_echo=$ac_try;;
33375 esac
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377   (eval "$ac_try") 2>&5
33378   ac_status=$?
33379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); }; }; then
33381   ac_cv_func_isinf_in_cmath=yes
33382 else
33383   echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33385
33386         ac_cv_func_isinf_in_cmath=no
33387 fi
33388
33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33390   ac_ext=c
33391 ac_cpp='$CPP $CPPFLAGS'
33392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33395
33396 fi
33397 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33398 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33399
33400 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33401
33402 cat >>confdefs.h <<\_ACEOF
33403 #define HAVE_ISINF_IN_CMATH 1
33404 _ACEOF
33405
33406 fi
33407
33408 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33409 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33410 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33411   echo $ECHO_N "(cached) $ECHO_C" >&6
33412 else
33413   ac_ext=cpp
33414 ac_cpp='$CXXCPP $CPPFLAGS'
33415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33418
33419    cat >conftest.$ac_ext <<_ACEOF
33420 /* confdefs.h.  */
33421 _ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h.  */
33425 #include <cmath>
33426 int
33427 main ()
33428 {
33429 float f; std::isinf(f)}
33430   ;
33431   return 0;
33432 }
33433 _ACEOF
33434 rm -f conftest.$ac_objext
33435 if { (ac_try="$ac_compile"
33436 case "(($ac_try" in
33437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438   *) ac_try_echo=$ac_try;;
33439 esac
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441   (eval "$ac_compile") 2>conftest.er1
33442   ac_status=$?
33443   grep -v '^ *+' conftest.er1 >conftest.err
33444   rm -f conftest.er1
33445   cat conftest.err >&5
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); } &&
33448          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33449   { (case "(($ac_try" in
33450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451   *) ac_try_echo=$ac_try;;
33452 esac
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454   (eval "$ac_try") 2>&5
33455   ac_status=$?
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; } &&
33458          { ac_try='test -s conftest.$ac_objext'
33459   { (case "(($ac_try" in
33460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461   *) ac_try_echo=$ac_try;;
33462 esac
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464   (eval "$ac_try") 2>&5
33465   ac_status=$?
33466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467   (exit $ac_status); }; }; then
33468   ac_cv_func_std_isinf_in_cmath=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473         ac_cv_func_std_isinf_in_cmath=no
33474 fi
33475
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33477   ac_ext=c
33478 ac_cpp='$CPP $CPPFLAGS'
33479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33482
33483 fi
33484 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33485 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33486
33487 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33488
33489 cat >>confdefs.h <<\_ACEOF
33490 #define HAVE_STD_ISINF_IN_CMATH 1
33491 _ACEOF
33492
33493 fi
33494
33495 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33496 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33497 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33498   echo $ECHO_N "(cached) $ECHO_C" >&6
33499 else
33500   ac_ext=cpp
33501 ac_cpp='$CXXCPP $CPPFLAGS'
33502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33505
33506    cat >conftest.$ac_ext <<_ACEOF
33507 /* confdefs.h.  */
33508 _ACEOF
33509 cat confdefs.h >>conftest.$ac_ext
33510 cat >>conftest.$ac_ext <<_ACEOF
33511 /* end confdefs.h.  */
33512 #include <ieeefp.h>
33513 int
33514 main ()
33515 {
33516 float f; finite(f);
33517   ;
33518   return 0;
33519 }
33520 _ACEOF
33521 rm -f conftest.$ac_objext
33522 if { (ac_try="$ac_compile"
33523 case "(($ac_try" in
33524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525   *) ac_try_echo=$ac_try;;
33526 esac
33527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528   (eval "$ac_compile") 2>conftest.er1
33529   ac_status=$?
33530   grep -v '^ *+' conftest.er1 >conftest.err
33531   rm -f conftest.er1
33532   cat conftest.err >&5
33533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534   (exit $ac_status); } &&
33535          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536   { (case "(($ac_try" in
33537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538   *) ac_try_echo=$ac_try;;
33539 esac
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541   (eval "$ac_try") 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); }; } &&
33545          { ac_try='test -s conftest.$ac_objext'
33546   { (case "(($ac_try" in
33547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548   *) ac_try_echo=$ac_try;;
33549 esac
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551   (eval "$ac_try") 2>&5
33552   ac_status=$?
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); }; }; then
33555   ac_cv_func_finite_in_ieeefp_h=yes
33556 else
33557   echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33559
33560         ac_cv_func_finite_in_ieeefp_h=no
33561 fi
33562
33563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33564   ac_ext=c
33565 ac_cpp='$CPP $CPPFLAGS'
33566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33569
33570 fi
33571 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33572 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33573
33574 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33575
33576 cat >>confdefs.h <<\_ACEOF
33577 #define HAVE_FINITE_IN_IEEEFP_H 1
33578 _ACEOF
33579
33580 fi
33581
33582
33583
33584 if test "$llvm_cv_platform_type" = "Unix" ; then
33585
33586
33587 for ac_header in stdlib.h unistd.h
33588 do
33589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33594   echo $ECHO_N "(cached) $ECHO_C" >&6
33595 fi
33596 ac_res=`eval echo '${'$as_ac_Header'}'`
33597                { echo "$as_me:$LINENO: result: $ac_res" >&5
33598 echo "${ECHO_T}$ac_res" >&6; }
33599 else
33600   # Is the header compilable?
33601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33603 cat >conftest.$ac_ext <<_ACEOF
33604 /* confdefs.h.  */
33605 _ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h.  */
33609 $ac_includes_default
33610 #include <$ac_header>
33611 _ACEOF
33612 rm -f conftest.$ac_objext
33613 if { (ac_try="$ac_compile"
33614 case "(($ac_try" in
33615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616   *) ac_try_echo=$ac_try;;
33617 esac
33618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619   (eval "$ac_compile") 2>conftest.er1
33620   ac_status=$?
33621   grep -v '^ *+' conftest.er1 >conftest.err
33622   rm -f conftest.er1
33623   cat conftest.err >&5
33624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625   (exit $ac_status); } &&
33626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33627   { (case "(($ac_try" in
33628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629   *) ac_try_echo=$ac_try;;
33630 esac
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632   (eval "$ac_try") 2>&5
33633   ac_status=$?
33634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635   (exit $ac_status); }; } &&
33636          { ac_try='test -s conftest.$ac_objext'
33637   { (case "(($ac_try" in
33638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639   *) ac_try_echo=$ac_try;;
33640 esac
33641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642   (eval "$ac_try") 2>&5
33643   ac_status=$?
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); }; }; then
33646   ac_header_compiler=yes
33647 else
33648   echo "$as_me: failed program was:" >&5
33649 sed 's/^/| /' conftest.$ac_ext >&5
33650
33651         ac_header_compiler=no
33652 fi
33653
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33656 echo "${ECHO_T}$ac_header_compiler" >&6; }
33657
33658 # Is the header present?
33659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33661 cat >conftest.$ac_ext <<_ACEOF
33662 /* confdefs.h.  */
33663 _ACEOF
33664 cat confdefs.h >>conftest.$ac_ext
33665 cat >>conftest.$ac_ext <<_ACEOF
33666 /* end confdefs.h.  */
33667 #include <$ac_header>
33668 _ACEOF
33669 if { (ac_try="$ac_cpp conftest.$ac_ext"
33670 case "(($ac_try" in
33671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33672   *) ac_try_echo=$ac_try;;
33673 esac
33674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33676   ac_status=$?
33677   grep -v '^ *+' conftest.er1 >conftest.err
33678   rm -f conftest.er1
33679   cat conftest.err >&5
33680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681   (exit $ac_status); } >/dev/null; then
33682   if test -s conftest.err; then
33683     ac_cpp_err=$ac_c_preproc_warn_flag
33684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33685   else
33686     ac_cpp_err=
33687   fi
33688 else
33689   ac_cpp_err=yes
33690 fi
33691 if test -z "$ac_cpp_err"; then
33692   ac_header_preproc=yes
33693 else
33694   echo "$as_me: failed program was:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33696
33697   ac_header_preproc=no
33698 fi
33699
33700 rm -f conftest.err conftest.$ac_ext
33701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33702 echo "${ECHO_T}$ac_header_preproc" >&6; }
33703
33704 # So?  What about this header?
33705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33706   yes:no: )
33707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33711     ac_header_preproc=yes
33712     ;;
33713   no:yes:* )
33714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33726     ( cat <<\_ASBOX
33727 ## ----------------------------------- ##
33728 ## Report this to llvmbugs@cs.uiuc.edu ##
33729 ## ----------------------------------- ##
33730 _ASBOX
33731      ) | sed "s/^/$as_me: WARNING:     /" >&2
33732     ;;
33733 esac
33734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33737   echo $ECHO_N "(cached) $ECHO_C" >&6
33738 else
33739   eval "$as_ac_Header=\$ac_header_preproc"
33740 fi
33741 ac_res=`eval echo '${'$as_ac_Header'}'`
33742                { echo "$as_me:$LINENO: result: $ac_res" >&5
33743 echo "${ECHO_T}$ac_res" >&6; }
33744
33745 fi
33746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33747   cat >>confdefs.h <<_ACEOF
33748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33749 _ACEOF
33750
33751 fi
33752
33753 done
33754
33755
33756 for ac_func in getpagesize
33757 do
33758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33762   echo $ECHO_N "(cached) $ECHO_C" >&6
33763 else
33764   cat >conftest.$ac_ext <<_ACEOF
33765 /* confdefs.h.  */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h.  */
33770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33772 #define $ac_func innocuous_$ac_func
33773
33774 /* System header to define __stub macros and hopefully few prototypes,
33775     which can conflict with char $ac_func (); below.
33776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33777     <limits.h> exists even on freestanding compilers.  */
33778
33779 #ifdef __STDC__
33780 # include <limits.h>
33781 #else
33782 # include <assert.h>
33783 #endif
33784
33785 #undef $ac_func
33786
33787 /* Override any GCC internal prototype to avoid an error.
33788    Use char because int might match the return type of a GCC
33789    builtin and then its argument prototype would still apply.  */
33790 #ifdef __cplusplus
33791 extern "C"
33792 #endif
33793 char $ac_func ();
33794 /* The GNU C library defines this for functions which it implements
33795     to always fail with ENOSYS.  Some functions are actually named
33796     something starting with __ and the normal name is an alias.  */
33797 #if defined __stub_$ac_func || defined __stub___$ac_func
33798 choke me
33799 #endif
33800
33801 int
33802 main ()
33803 {
33804 return $ac_func ();
33805   ;
33806   return 0;
33807 }
33808 _ACEOF
33809 rm -f conftest.$ac_objext conftest$ac_exeext
33810 if { (ac_try="$ac_link"
33811 case "(($ac_try" in
33812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33813   *) ac_try_echo=$ac_try;;
33814 esac
33815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33816   (eval "$ac_link") 2>conftest.er1
33817   ac_status=$?
33818   grep -v '^ *+' conftest.er1 >conftest.err
33819   rm -f conftest.er1
33820   cat conftest.err >&5
33821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822   (exit $ac_status); } &&
33823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33824   { (case "(($ac_try" in
33825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826   *) ac_try_echo=$ac_try;;
33827 esac
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829   (eval "$ac_try") 2>&5
33830   ac_status=$?
33831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832   (exit $ac_status); }; } &&
33833          { ac_try='test -s conftest$ac_exeext'
33834   { (case "(($ac_try" in
33835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836   *) ac_try_echo=$ac_try;;
33837 esac
33838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839   (eval "$ac_try") 2>&5
33840   ac_status=$?
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); }; }; then
33843   eval "$as_ac_var=yes"
33844 else
33845   echo "$as_me: failed program was:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33847
33848         eval "$as_ac_var=no"
33849 fi
33850
33851 rm -f core conftest.err conftest.$ac_objext \
33852       conftest$ac_exeext conftest.$ac_ext
33853 fi
33854 ac_res=`eval echo '${'$as_ac_var'}'`
33855                { echo "$as_me:$LINENO: result: $ac_res" >&5
33856 echo "${ECHO_T}$ac_res" >&6; }
33857 if test `eval echo '${'$as_ac_var'}'` = yes; then
33858   cat >>confdefs.h <<_ACEOF
33859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33860 _ACEOF
33861
33862 fi
33863 done
33864
33865 { echo "$as_me:$LINENO: checking for working mmap" >&5
33866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33868   echo $ECHO_N "(cached) $ECHO_C" >&6
33869 else
33870   if test "$cross_compiling" = yes; then
33871   ac_cv_func_mmap_fixed_mapped=no
33872 else
33873   cat >conftest.$ac_ext <<_ACEOF
33874 /* confdefs.h.  */
33875 _ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h.  */
33879 $ac_includes_default
33880 /* malloc might have been renamed as rpl_malloc. */
33881 #undef malloc
33882
33883 /* Thanks to Mike Haertel and Jim Avera for this test.
33884    Here is a matrix of mmap possibilities:
33885         mmap private not fixed
33886         mmap private fixed at somewhere currently unmapped
33887         mmap private fixed at somewhere already mapped
33888         mmap shared not fixed
33889         mmap shared fixed at somewhere currently unmapped
33890         mmap shared fixed at somewhere already mapped
33891    For private mappings, we should verify that changes cannot be read()
33892    back from the file, nor mmap's back from the file at a different
33893    address.  (There have been systems where private was not correctly
33894    implemented like the infamous i386 svr4.0, and systems where the
33895    VM page cache was not coherent with the file system buffer cache
33896    like early versions of FreeBSD and possibly contemporary NetBSD.)
33897    For shared mappings, we should conversely verify that changes get
33898    propagated back to all the places they're supposed to be.
33899
33900    Grep wants private fixed already mapped.
33901    The main things grep needs to know about mmap are:
33902    * does it exist and is it safe to write into the mmap'd area
33903    * how to use it (BSD variants)  */
33904
33905 #include <fcntl.h>
33906 #include <sys/mman.h>
33907
33908 #if !STDC_HEADERS && !HAVE_STDLIB_H
33909 char *malloc ();
33910 #endif
33911
33912 /* This mess was copied from the GNU getpagesize.h.  */
33913 #if !HAVE_GETPAGESIZE
33914 /* Assume that all systems that can run configure have sys/param.h.  */
33915 # if !HAVE_SYS_PARAM_H
33916 #  define HAVE_SYS_PARAM_H 1
33917 # endif
33918
33919 # ifdef _SC_PAGESIZE
33920 #  define getpagesize() sysconf(_SC_PAGESIZE)
33921 # else /* no _SC_PAGESIZE */
33922 #  if HAVE_SYS_PARAM_H
33923 #   include <sys/param.h>
33924 #   ifdef EXEC_PAGESIZE
33925 #    define getpagesize() EXEC_PAGESIZE
33926 #   else /* no EXEC_PAGESIZE */
33927 #    ifdef NBPG
33928 #     define getpagesize() NBPG * CLSIZE
33929 #     ifndef CLSIZE
33930 #      define CLSIZE 1
33931 #     endif /* no CLSIZE */
33932 #    else /* no NBPG */
33933 #     ifdef NBPC
33934 #      define getpagesize() NBPC
33935 #     else /* no NBPC */
33936 #      ifdef PAGESIZE
33937 #       define getpagesize() PAGESIZE
33938 #      endif /* PAGESIZE */
33939 #     endif /* no NBPC */
33940 #    endif /* no NBPG */
33941 #   endif /* no EXEC_PAGESIZE */
33942 #  else /* no HAVE_SYS_PARAM_H */
33943 #   define getpagesize() 8192   /* punt totally */
33944 #  endif /* no HAVE_SYS_PARAM_H */
33945 # endif /* no _SC_PAGESIZE */
33946
33947 #endif /* no HAVE_GETPAGESIZE */
33948
33949 int
33950 main ()
33951 {
33952   char *data, *data2, *data3;
33953   int i, pagesize;
33954   int fd;
33955
33956   pagesize = getpagesize ();
33957
33958   /* First, make a file with some known garbage in it. */
33959   data = (char *) malloc (pagesize);
33960   if (!data)
33961     return 1;
33962   for (i = 0; i < pagesize; ++i)
33963     *(data + i) = rand ();
33964   umask (0);
33965   fd = creat ("conftest.mmap", 0600);
33966   if (fd < 0)
33967     return 1;
33968   if (write (fd, data, pagesize) != pagesize)
33969     return 1;
33970   close (fd);
33971
33972   /* Next, try to mmap the file at a fixed address which already has
33973      something else allocated at it.  If we can, also make sure that
33974      we see the same garbage.  */
33975   fd = open ("conftest.mmap", O_RDWR);
33976   if (fd < 0)
33977     return 1;
33978   data2 = (char *) malloc (2 * pagesize);
33979   if (!data2)
33980     return 1;
33981   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33982   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33983                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33984     return 1;
33985   for (i = 0; i < pagesize; ++i)
33986     if (*(data + i) != *(data2 + i))
33987       return 1;
33988
33989   /* Finally, make sure that changes to the mapped area do not
33990      percolate back to the file as seen by read().  (This is a bug on
33991      some variants of i386 svr4.0.)  */
33992   for (i = 0; i < pagesize; ++i)
33993     *(data2 + i) = *(data2 + i) + 1;
33994   data3 = (char *) malloc (pagesize);
33995   if (!data3)
33996     return 1;
33997   if (read (fd, data3, pagesize) != pagesize)
33998     return 1;
33999   for (i = 0; i < pagesize; ++i)
34000     if (*(data + i) != *(data3 + i))
34001       return 1;
34002   close (fd);
34003   return 0;
34004 }
34005 _ACEOF
34006 rm -f conftest$ac_exeext
34007 if { (ac_try="$ac_link"
34008 case "(($ac_try" in
34009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010   *) ac_try_echo=$ac_try;;
34011 esac
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013   (eval "$ac_link") 2>&5
34014   ac_status=$?
34015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34017   { (case "(($ac_try" in
34018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019   *) ac_try_echo=$ac_try;;
34020 esac
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022   (eval "$ac_try") 2>&5
34023   ac_status=$?
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); }; }; then
34026   ac_cv_func_mmap_fixed_mapped=yes
34027 else
34028   echo "$as_me: program exited with status $ac_status" >&5
34029 echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34031
34032 ( exit $ac_status )
34033 ac_cv_func_mmap_fixed_mapped=no
34034 fi
34035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34036 fi
34037
34038
34039 fi
34040 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34041 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34043
34044 cat >>confdefs.h <<\_ACEOF
34045 #define HAVE_MMAP 1
34046 _ACEOF
34047
34048 fi
34049 rm -f conftest.mmap
34050
34051   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34052 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34053 if test "${ac_cv_func_mmap_file+set}" = set; then
34054   echo $ECHO_N "(cached) $ECHO_C" >&6
34055 else
34056    ac_ext=c
34057 ac_cpp='$CPP $CPPFLAGS'
34058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34061
34062   if test "$cross_compiling" = yes; then
34063   ac_cv_func_mmap_file=no
34064 else
34065   cat >conftest.$ac_ext <<_ACEOF
34066
34067     /* confdefs.h.  */
34068 _ACEOF
34069 cat confdefs.h >>conftest.$ac_ext
34070 cat >>conftest.$ac_ext <<_ACEOF
34071 /* end confdefs.h.  */
34072
34073 #include <sys/types.h>
34074 #include <sys/mman.h>
34075 #include <fcntl.h>
34076
34077 int
34078 main ()
34079 {
34080
34081   int fd;
34082   fd = creat ("foo",0777);
34083   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34084   unlink ("foo");
34085   return (fd != (int) MAP_FAILED);
34086   ;
34087   return 0;
34088 }
34089 _ACEOF
34090 rm -f conftest$ac_exeext
34091 if { (ac_try="$ac_link"
34092 case "(($ac_try" in
34093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094   *) ac_try_echo=$ac_try;;
34095 esac
34096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097   (eval "$ac_link") 2>&5
34098   ac_status=$?
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34101   { (case "(($ac_try" in
34102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34103   *) ac_try_echo=$ac_try;;
34104 esac
34105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34106   (eval "$ac_try") 2>&5
34107   ac_status=$?
34108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109   (exit $ac_status); }; }; then
34110   ac_cv_func_mmap_file=yes
34111 else
34112   echo "$as_me: program exited with status $ac_status" >&5
34113 echo "$as_me: failed program was:" >&5
34114 sed 's/^/| /' conftest.$ac_ext >&5
34115
34116 ( exit $ac_status )
34117 ac_cv_func_mmap_file=no
34118 fi
34119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34120 fi
34121
34122
34123   ac_ext=c
34124 ac_cpp='$CPP $CPPFLAGS'
34125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34128
34129
34130 fi
34131 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34132 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34133 if test "$ac_cv_func_mmap_file" = yes; then
34134
34135 cat >>confdefs.h <<\_ACEOF
34136 #define HAVE_MMAP_FILE
34137 _ACEOF
34138
34139    MMAP_FILE=yes
34140
34141 fi
34142
34143   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34144 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34145 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34146   echo $ECHO_N "(cached) $ECHO_C" >&6
34147 else
34148   if test "$llvm_cv_os_type" = "Interix" ; then
34149    ac_cv_need_dev_zero_for_mmap=yes
34150  else
34151    ac_cv_need_dev_zero_for_mmap=no
34152  fi
34153
34154 fi
34155 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34156 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34157 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34158
34159 cat >>confdefs.h <<\_ACEOF
34160 #define NEED_DEV_ZERO_FOR_MMAP 1
34161 _ACEOF
34162
34163 fi
34164
34165   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34166   then
34167     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34168 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34169   fi
34170   if test "$ac_cv_func_mmap_file" = "no"
34171   then
34172     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34173 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34174   fi
34175 fi
34176
34177
34178
34179 for ac_func in __dso_handle
34180 do
34181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34185   echo $ECHO_N "(cached) $ECHO_C" >&6
34186 else
34187   cat >conftest.$ac_ext <<_ACEOF
34188 /* confdefs.h.  */
34189 _ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h.  */
34193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34195 #define $ac_func innocuous_$ac_func
34196
34197 /* System header to define __stub macros and hopefully few prototypes,
34198     which can conflict with char $ac_func (); below.
34199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34200     <limits.h> exists even on freestanding compilers.  */
34201
34202 #ifdef __STDC__
34203 # include <limits.h>
34204 #else
34205 # include <assert.h>
34206 #endif
34207
34208 #undef $ac_func
34209
34210 /* Override any GCC internal prototype to avoid an error.
34211    Use char because int might match the return type of a GCC
34212    builtin and then its argument prototype would still apply.  */
34213 #ifdef __cplusplus
34214 extern "C"
34215 #endif
34216 char $ac_func ();
34217 /* The GNU C library defines this for functions which it implements
34218     to always fail with ENOSYS.  Some functions are actually named
34219     something starting with __ and the normal name is an alias.  */
34220 #if defined __stub_$ac_func || defined __stub___$ac_func
34221 choke me
34222 #endif
34223
34224 int
34225 main ()
34226 {
34227 return $ac_func ();
34228   ;
34229   return 0;
34230 }
34231 _ACEOF
34232 rm -f conftest.$ac_objext conftest$ac_exeext
34233 if { (ac_try="$ac_link"
34234 case "(($ac_try" in
34235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236   *) ac_try_echo=$ac_try;;
34237 esac
34238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34239   (eval "$ac_link") 2>conftest.er1
34240   ac_status=$?
34241   grep -v '^ *+' conftest.er1 >conftest.err
34242   rm -f conftest.er1
34243   cat conftest.err >&5
34244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245   (exit $ac_status); } &&
34246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34247   { (case "(($ac_try" in
34248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34249   *) ac_try_echo=$ac_try;;
34250 esac
34251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34252   (eval "$ac_try") 2>&5
34253   ac_status=$?
34254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255   (exit $ac_status); }; } &&
34256          { ac_try='test -s conftest$ac_exeext'
34257   { (case "(($ac_try" in
34258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259   *) ac_try_echo=$ac_try;;
34260 esac
34261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262   (eval "$ac_try") 2>&5
34263   ac_status=$?
34264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265   (exit $ac_status); }; }; then
34266   eval "$as_ac_var=yes"
34267 else
34268   echo "$as_me: failed program was:" >&5
34269 sed 's/^/| /' conftest.$ac_ext >&5
34270
34271         eval "$as_ac_var=no"
34272 fi
34273
34274 rm -f core conftest.err conftest.$ac_objext \
34275       conftest$ac_exeext conftest.$ac_ext
34276 fi
34277 ac_res=`eval echo '${'$as_ac_var'}'`
34278                { echo "$as_me:$LINENO: result: $ac_res" >&5
34279 echo "${ECHO_T}$ac_res" >&6; }
34280 if test `eval echo '${'$as_ac_var'}'` = yes; then
34281   cat >>confdefs.h <<_ACEOF
34282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34283 _ACEOF
34284
34285 fi
34286 done
34287
34288
34289 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34290 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34291 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34292   echo $ECHO_N "(cached) $ECHO_C" >&6
34293 else
34294   llvm_cv_llvmgcc_sanity="no"
34295 if test -x "$LLVMGCC" ; then
34296   cp /dev/null conftest.c
34297   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34298       grep 'target datalayout =' > /dev/null 2>&1
34299   if test $? -eq 0 ; then
34300     llvm_cv_llvmgcc_sanity="yes"
34301   fi
34302   rm conftest.c
34303 fi
34304 fi
34305 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34306 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34307
34308 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34309   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34310 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34311   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34312   LLVMCC1=$llvmcc1path
34313
34314   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34315   LLVMCC1PLUS=$llvmcc1pluspath
34316
34317   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34318   LLVMGCCDIR=$llvmgccdir
34319
34320   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34321   LLVMGCCLIBEXEC=$llvmgcclibexec
34322
34323   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34324   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34325   LLVMGCC_VERSION=$llvmgccversion
34326
34327   LLVMGCC_MAJVERS=$llvmgccmajvers
34328
34329   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34330   LLVMGCC_LANGS=$llvmgcclangs
34331
34332   { echo "$as_me:$LINENO: result: ok" >&5
34333 echo "${ECHO_T}ok" >&6; }
34334 fi
34335
34336 SHLIBEXT=$libltdl_cv_shlibext
34337
34338
34339 # Translate the various configuration directories and other basic
34340 # information into substitutions that will end up in Makefile.config.in
34341 # that these configured values can be used by the makefiles
34342 if test "${prefix}" = "NONE" ; then
34343   prefix="/usr/local"
34344 fi
34345 eval LLVM_PREFIX="${prefix}";
34346 eval LLVM_BINDIR="${prefix}/bin";
34347 eval LLVM_LIBDIR="${prefix}/lib";
34348 eval LLVM_DATADIR="${prefix}/share/llvm";
34349 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34350 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34351 eval LLVM_INCLUDEDIR="${prefix}/include";
34352 eval LLVM_INFODIR="${prefix}/info";
34353 eval LLVM_MANDIR="${prefix}/man";
34354 LLVM_CONFIGTIME=`date`
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366 # Place the various directores into the config.h file as #defines so that we
34367 # can know about the installation paths within LLVM.
34368
34369 cat >>confdefs.h <<_ACEOF
34370 #define LLVM_PREFIX "$LLVM_PREFIX"
34371 _ACEOF
34372
34373
34374 cat >>confdefs.h <<_ACEOF
34375 #define LLVM_BINDIR "$LLVM_BINDIR"
34376 _ACEOF
34377
34378
34379 cat >>confdefs.h <<_ACEOF
34380 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34381 _ACEOF
34382
34383
34384 cat >>confdefs.h <<_ACEOF
34385 #define LLVM_DATADIR "$LLVM_DATADIR"
34386 _ACEOF
34387
34388
34389 cat >>confdefs.h <<_ACEOF
34390 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34391 _ACEOF
34392
34393
34394 cat >>confdefs.h <<_ACEOF
34395 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34396 _ACEOF
34397
34398
34399 cat >>confdefs.h <<_ACEOF
34400 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34401 _ACEOF
34402
34403
34404 cat >>confdefs.h <<_ACEOF
34405 #define LLVM_INFODIR "$LLVM_INFODIR"
34406 _ACEOF
34407
34408
34409 cat >>confdefs.h <<_ACEOF
34410 #define LLVM_MANDIR "$LLVM_MANDIR"
34411 _ACEOF
34412
34413
34414 cat >>confdefs.h <<_ACEOF
34415 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34416 _ACEOF
34417
34418
34419 cat >>confdefs.h <<_ACEOF
34420 #define LLVM_HOSTTRIPLE "$host"
34421 _ACEOF
34422
34423
34424 # Determine which bindings to build.
34425 if test "$BINDINGS_TO_BUILD" = auto ; then
34426   BINDINGS_TO_BUILD=""
34427   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34428     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34429   fi
34430 fi
34431 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34432
34433
34434 # This isn't really configurey, but it avoids having to repeat the list in
34435 # other files.
34436 ALL_BINDINGS=ocaml
34437
34438
34439 # Do any work necessary to ensure that bindings have what they need.
34440 binding_prereqs_failed=0
34441 for a_binding in $BINDINGS_TO_BUILD ; do
34442   case "$a_binding" in
34443   ocaml)
34444     if test "x$OCAMLC" = x ; then
34445       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34447       binding_prereqs_failed=1
34448     fi
34449     if test "x$OCAMLDEP" = x ; then
34450       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34452       binding_prereqs_failed=1
34453     fi
34454     if test "x$OCAMLOPT" = x ; then
34455       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34457           fi
34458     if test "x$with_ocaml_libdir" != xauto ; then
34459       OCAML_LIBDIR=$with_ocaml_libdir
34460
34461     else
34462       ocaml_stdlib="`"$OCAMLC" -where`"
34463       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34464       then
34465         # ocaml stdlib is beneath our prefix; use stdlib
34466         OCAML_LIBDIR=$ocaml_stdlib
34467
34468       else
34469         # ocaml stdlib is outside our prefix; use libdir/ocaml
34470         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34471
34472       fi
34473     fi
34474     ;;
34475   esac
34476 done
34477 if test "$binding_prereqs_failed" = 1 ; then
34478   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34479 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34480    { (exit 1); exit 1; }; }
34481 fi
34482
34483 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34484 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34485 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34486   echo $ECHO_N "(cached) $ECHO_C" >&6
34487 else
34488    ac_ext=cpp
34489 ac_cpp='$CXXCPP $CPPFLAGS'
34490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34493
34494   oldcxxflags="$CXXFLAGS"
34495   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34496   cat >conftest.$ac_ext <<_ACEOF
34497 /* confdefs.h.  */
34498 _ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h.  */
34502
34503 int
34504 main ()
34505 {
34506
34507   ;
34508   return 0;
34509 }
34510 _ACEOF
34511 rm -f conftest.$ac_objext
34512 if { (ac_try="$ac_compile"
34513 case "(($ac_try" in
34514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34515   *) ac_try_echo=$ac_try;;
34516 esac
34517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34518   (eval "$ac_compile") 2>conftest.er1
34519   ac_status=$?
34520   grep -v '^ *+' conftest.er1 >conftest.err
34521   rm -f conftest.er1
34522   cat conftest.err >&5
34523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524   (exit $ac_status); } &&
34525          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34526   { (case "(($ac_try" in
34527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528   *) ac_try_echo=$ac_try;;
34529 esac
34530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531   (eval "$ac_try") 2>&5
34532   ac_status=$?
34533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534   (exit $ac_status); }; } &&
34535          { ac_try='test -s conftest.$ac_objext'
34536   { (case "(($ac_try" in
34537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34538   *) ac_try_echo=$ac_try;;
34539 esac
34540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34541   (eval "$ac_try") 2>&5
34542   ac_status=$?
34543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544   (exit $ac_status); }; }; then
34545   llvm_cv_cxx_visibility_inlines_hidden=yes
34546 else
34547   echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34549
34550         llvm_cv_cxx_visibility_inlines_hidden=no
34551 fi
34552
34553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34554   CXXFLAGS="$oldcxxflags"
34555   ac_ext=c
34556 ac_cpp='$CPP $CPPFLAGS'
34557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34560
34561
34562 fi
34563 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34564 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34565 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34566   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34567
34568 else
34569   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34570
34571 fi
34572
34573
34574
34575 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34576
34577 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34578
34579 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34580
34581 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34582
34583 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34584
34585
34586 ac_config_files="$ac_config_files Makefile.config"
34587
34588
34589 ac_config_files="$ac_config_files llvm.spec"
34590
34591
34592 ac_config_files="$ac_config_files docs/doxygen.cfg"
34593
34594
34595 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34596
34597
34598 ac_config_commands="$ac_config_commands setup"
34599
34600 ac_config_commands="$ac_config_commands Makefile"
34601
34602
34603 ac_config_commands="$ac_config_commands Makefile.common"
34604
34605
34606 ac_config_commands="$ac_config_commands examples/Makefile"
34607
34608
34609 ac_config_commands="$ac_config_commands lib/Makefile"
34610
34611
34612 ac_config_commands="$ac_config_commands runtime/Makefile"
34613
34614
34615 ac_config_commands="$ac_config_commands test/Makefile"
34616
34617
34618 ac_config_commands="$ac_config_commands test/Makefile.tests"
34619
34620
34621 ac_config_commands="$ac_config_commands unittests/Makefile"
34622
34623
34624 ac_config_commands="$ac_config_commands tools/Makefile"
34625
34626
34627 ac_config_commands="$ac_config_commands utils/Makefile"
34628
34629
34630 ac_config_commands="$ac_config_commands projects/Makefile"
34631
34632
34633 ac_config_commands="$ac_config_commands bindings/Makefile"
34634
34635
34636 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34637
34638
34639
34640 cat >confcache <<\_ACEOF
34641 # This file is a shell script that caches the results of configure
34642 # tests run on this system so they can be shared between configure
34643 # scripts and configure runs, see configure's option --config-cache.
34644 # It is not useful on other systems.  If it contains results you don't
34645 # want to keep, you may remove or edit it.
34646 #
34647 # config.status only pays attention to the cache file if you give it
34648 # the --recheck option to rerun configure.
34649 #
34650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34652 # following values.
34653
34654 _ACEOF
34655
34656 # The following way of writing the cache mishandles newlines in values,
34657 # but we know of no workaround that is simple, portable, and efficient.
34658 # So, we kill variables containing newlines.
34659 # Ultrix sh set writes to stderr and can't be redirected directly,
34660 # and sets the high bit in the cache file unless we assign to the vars.
34661 (
34662   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34663     eval ac_val=\$$ac_var
34664     case $ac_val in #(
34665     *${as_nl}*)
34666       case $ac_var in #(
34667       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34669       esac
34670       case $ac_var in #(
34671       _ | IFS | as_nl) ;; #(
34672       *) $as_unset $ac_var ;;
34673       esac ;;
34674     esac
34675   done
34676
34677   (set) 2>&1 |
34678     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34679     *${as_nl}ac_space=\ *)
34680       # `set' does not quote correctly, so add quotes (double-quote
34681       # substitution turns \\\\ into \\, and sed turns \\ into \).
34682       sed -n \
34683         "s/'/'\\\\''/g;
34684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34685       ;; #(
34686     *)
34687       # `set' quotes correctly as required by POSIX, so do not add quotes.
34688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34689       ;;
34690     esac |
34691     sort
34692 ) |
34693   sed '
34694      /^ac_cv_env_/b end
34695      t clear
34696      :clear
34697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34698      t end
34699      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34700      :end' >>confcache
34701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34702   if test -w "$cache_file"; then
34703     test "x$cache_file" != "x/dev/null" &&
34704       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34705 echo "$as_me: updating cache $cache_file" >&6;}
34706     cat confcache >$cache_file
34707   else
34708     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34709 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34710   fi
34711 fi
34712 rm -f confcache
34713
34714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34715 # Let make expand exec_prefix.
34716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34717
34718 DEFS=-DHAVE_CONFIG_H
34719
34720 ac_libobjs=
34721 ac_ltlibobjs=
34722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34723   # 1. Remove the extension, and $U if already installed.
34724   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34725   ac_i=`echo "$ac_i" | sed "$ac_script"`
34726   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34727   #    will be set to the directory where LIBOBJS objects are built.
34728   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34729   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34730 done
34731 LIBOBJS=$ac_libobjs
34732
34733 LTLIBOBJS=$ac_ltlibobjs
34734
34735
34736 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34737   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34738 Usually this means the macro was only invoked conditionally." >&5
34739 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34740 Usually this means the macro was only invoked conditionally." >&2;}
34741    { (exit 1); exit 1; }; }
34742 fi
34743 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34744   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34745 Usually this means the macro was only invoked conditionally." >&5
34746 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34747 Usually this means the macro was only invoked conditionally." >&2;}
34748    { (exit 1); exit 1; }; }
34749 fi
34750
34751 : ${CONFIG_STATUS=./config.status}
34752 ac_clean_files_save=$ac_clean_files
34753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34756 cat >$CONFIG_STATUS <<_ACEOF
34757 #! $SHELL
34758 # Generated by $as_me.
34759 # Run this file to recreate the current configuration.
34760 # Compiler output produced by configure, useful for debugging
34761 # configure, is in config.log if it exists.
34762
34763 debug=false
34764 ac_cs_recheck=false
34765 ac_cs_silent=false
34766 SHELL=\${CONFIG_SHELL-$SHELL}
34767 _ACEOF
34768
34769 cat >>$CONFIG_STATUS <<\_ACEOF
34770 ## --------------------- ##
34771 ## M4sh Initialization.  ##
34772 ## --------------------- ##
34773
34774 # Be Bourne compatible
34775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34776   emulate sh
34777   NULLCMD=:
34778   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34779   # is contrary to our usage.  Disable this feature.
34780   alias -g '${1+"$@"}'='"$@"'
34781   setopt NO_GLOB_SUBST
34782 else
34783   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34784 fi
34785 BIN_SH=xpg4; export BIN_SH # for Tru64
34786 DUALCASE=1; export DUALCASE # for MKS sh
34787
34788
34789 # PATH needs CR
34790 # Avoid depending upon Character Ranges.
34791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34794 as_cr_digits='0123456789'
34795 as_cr_alnum=$as_cr_Letters$as_cr_digits
34796
34797 # The user is always right.
34798 if test "${PATH_SEPARATOR+set}" != set; then
34799   echo "#! /bin/sh" >conf$$.sh
34800   echo  "exit 0"   >>conf$$.sh
34801   chmod +x conf$$.sh
34802   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34803     PATH_SEPARATOR=';'
34804   else
34805     PATH_SEPARATOR=:
34806   fi
34807   rm -f conf$$.sh
34808 fi
34809
34810 # Support unset when possible.
34811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34812   as_unset=unset
34813 else
34814   as_unset=false
34815 fi
34816
34817
34818 # IFS
34819 # We need space, tab and new line, in precisely that order.  Quoting is
34820 # there to prevent editors from complaining about space-tab.
34821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34822 # splitting by setting IFS to empty value.)
34823 as_nl='
34824 '
34825 IFS=" ""        $as_nl"
34826
34827 # Find who we are.  Look in the path if we contain no directory separator.
34828 case $0 in
34829   *[\\/]* ) as_myself=$0 ;;
34830   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34831 for as_dir in $PATH
34832 do
34833   IFS=$as_save_IFS
34834   test -z "$as_dir" && as_dir=.
34835   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34836 done
34837 IFS=$as_save_IFS
34838
34839      ;;
34840 esac
34841 # We did not find ourselves, most probably we were run as `sh COMMAND'
34842 # in which case we are not to be found in the path.
34843 if test "x$as_myself" = x; then
34844   as_myself=$0
34845 fi
34846 if test ! -f "$as_myself"; then
34847   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34848   { (exit 1); exit 1; }
34849 fi
34850
34851 # Work around bugs in pre-3.0 UWIN ksh.
34852 for as_var in ENV MAIL MAILPATH
34853 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34854 done
34855 PS1='$ '
34856 PS2='> '
34857 PS4='+ '
34858
34859 # NLS nuisances.
34860 for as_var in \
34861   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34862   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34863   LC_TELEPHONE LC_TIME
34864 do
34865   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34866     eval $as_var=C; export $as_var
34867   else
34868     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34869   fi
34870 done
34871
34872 # Required to use basename.
34873 if expr a : '\(a\)' >/dev/null 2>&1 &&
34874    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34875   as_expr=expr
34876 else
34877   as_expr=false
34878 fi
34879
34880 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34881   as_basename=basename
34882 else
34883   as_basename=false
34884 fi
34885
34886
34887 # Name of the executable.
34888 as_me=`$as_basename -- "$0" ||
34889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34890          X"$0" : 'X\(//\)$' \| \
34891          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34892 echo X/"$0" |
34893     sed '/^.*\/\([^/][^/]*\)\/*$/{
34894             s//\1/
34895             q
34896           }
34897           /^X\/\(\/\/\)$/{
34898             s//\1/
34899             q
34900           }
34901           /^X\/\(\/\).*/{
34902             s//\1/
34903             q
34904           }
34905           s/.*/./; q'`
34906
34907 # CDPATH.
34908 $as_unset CDPATH
34909
34910
34911
34912   as_lineno_1=$LINENO
34913   as_lineno_2=$LINENO
34914   test "x$as_lineno_1" != "x$as_lineno_2" &&
34915   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34916
34917   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34918   # uniformly replaced by the line number.  The first 'sed' inserts a
34919   # line-number line after each line using $LINENO; the second 'sed'
34920   # does the real work.  The second script uses 'N' to pair each
34921   # line-number line with the line containing $LINENO, and appends
34922   # trailing '-' during substitution so that $LINENO is not a special
34923   # case at line end.
34924   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34925   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34926   # E. McMahon (1931-1989) for sed's syntax.  :-)
34927   sed -n '
34928     p
34929     /[$]LINENO/=
34930   ' <$as_myself |
34931     sed '
34932       s/[$]LINENO.*/&-/
34933       t lineno
34934       b
34935       :lineno
34936       N
34937       :loop
34938       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34939       t loop
34940       s/-\n.*//
34941     ' >$as_me.lineno &&
34942   chmod +x "$as_me.lineno" ||
34943     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34944    { (exit 1); exit 1; }; }
34945
34946   # Don't try to exec as it changes $[0], causing all sort of problems
34947   # (the dirname of $[0] is not the place where we might find the
34948   # original and so on.  Autoconf is especially sensitive to this).
34949   . "./$as_me.lineno"
34950   # Exit status is that of the last command.
34951   exit
34952 }
34953
34954
34955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34956   as_dirname=dirname
34957 else
34958   as_dirname=false
34959 fi
34960
34961 ECHO_C= ECHO_N= ECHO_T=
34962 case `echo -n x` in
34963 -n*)
34964   case `echo 'x\c'` in
34965   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34966   *)   ECHO_C='\c';;
34967   esac;;
34968 *)
34969   ECHO_N='-n';;
34970 esac
34971
34972 if expr a : '\(a\)' >/dev/null 2>&1 &&
34973    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34974   as_expr=expr
34975 else
34976   as_expr=false
34977 fi
34978
34979 rm -f conf$$ conf$$.exe conf$$.file
34980 if test -d conf$$.dir; then
34981   rm -f conf$$.dir/conf$$.file
34982 else
34983   rm -f conf$$.dir
34984   mkdir conf$$.dir
34985 fi
34986 echo >conf$$.file
34987 if ln -s conf$$.file conf$$ 2>/dev/null; then
34988   as_ln_s='ln -s'
34989   # ... but there are two gotchas:
34990   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34991   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34992   # In both cases, we have to default to `cp -p'.
34993   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34994     as_ln_s='cp -p'
34995 elif ln conf$$.file conf$$ 2>/dev/null; then
34996   as_ln_s=ln
34997 else
34998   as_ln_s='cp -p'
34999 fi
35000 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35001 rmdir conf$$.dir 2>/dev/null
35002
35003 if mkdir -p . 2>/dev/null; then
35004   as_mkdir_p=:
35005 else
35006   test -d ./-p && rmdir ./-p
35007   as_mkdir_p=false
35008 fi
35009
35010 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35011 # systems may use methods other than mode bits to determine executability.
35012 cat >conf$$.file <<_ASEOF
35013 #! /bin/sh
35014 exit 0
35015 _ASEOF
35016 chmod +x conf$$.file
35017 if test -x conf$$.file >/dev/null 2>&1; then
35018   as_executable_p="test -x"
35019 else
35020   as_executable_p=:
35021 fi
35022 rm -f conf$$.file
35023
35024 # Sed expression to map a string onto a valid CPP name.
35025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35026
35027 # Sed expression to map a string onto a valid variable name.
35028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35029
35030
35031 exec 6>&1
35032
35033 # Save the log message, to keep $[0] and so on meaningful, and to
35034 # report actual input values of CONFIG_FILES etc. instead of their
35035 # values after options handling.
35036 ac_log="
35037 This file was extended by llvm $as_me 2.6svn, which was
35038 generated by GNU Autoconf 2.60.  Invocation command line was
35039
35040   CONFIG_FILES    = $CONFIG_FILES
35041   CONFIG_HEADERS  = $CONFIG_HEADERS
35042   CONFIG_LINKS    = $CONFIG_LINKS
35043   CONFIG_COMMANDS = $CONFIG_COMMANDS
35044   $ $0 $@
35045
35046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35047 "
35048
35049 _ACEOF
35050
35051 cat >>$CONFIG_STATUS <<_ACEOF
35052 # Files that config.status was made for.
35053 config_files="$ac_config_files"
35054 config_headers="$ac_config_headers"
35055 config_commands="$ac_config_commands"
35056
35057 _ACEOF
35058
35059 cat >>$CONFIG_STATUS <<\_ACEOF
35060 ac_cs_usage="\
35061 \`$as_me' instantiates files from templates according to the
35062 current configuration.
35063
35064 Usage: $0 [OPTIONS] [FILE]...
35065
35066   -h, --help       print this help, then exit
35067   -V, --version    print version number, then exit
35068   -q, --quiet      do not print progress messages
35069   -d, --debug      don't remove temporary files
35070       --recheck    update $as_me by reconfiguring in the same conditions
35071   --file=FILE[:TEMPLATE]
35072                    instantiate the configuration file FILE
35073   --header=FILE[:TEMPLATE]
35074                    instantiate the configuration header FILE
35075
35076 Configuration files:
35077 $config_files
35078
35079 Configuration headers:
35080 $config_headers
35081
35082 Configuration commands:
35083 $config_commands
35084
35085 Report bugs to <bug-autoconf@gnu.org>."
35086
35087 _ACEOF
35088 cat >>$CONFIG_STATUS <<_ACEOF
35089 ac_cs_version="\\
35090 llvm config.status 2.6svn
35091 configured by $0, generated by GNU Autoconf 2.60,
35092   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35093
35094 Copyright (C) 2006 Free Software Foundation, Inc.
35095 This config.status script is free software; the Free Software Foundation
35096 gives unlimited permission to copy, distribute and modify it."
35097
35098 ac_pwd='$ac_pwd'
35099 srcdir='$srcdir'
35100 INSTALL='$INSTALL'
35101 _ACEOF
35102
35103 cat >>$CONFIG_STATUS <<\_ACEOF
35104 # If no file are specified by the user, then we need to provide default
35105 # value.  By we need to know if files were specified by the user.
35106 ac_need_defaults=:
35107 while test $# != 0
35108 do
35109   case $1 in
35110   --*=*)
35111     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35112     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35113     ac_shift=:
35114     ;;
35115   *)
35116     ac_option=$1
35117     ac_optarg=$2
35118     ac_shift=shift
35119     ;;
35120   esac
35121
35122   case $ac_option in
35123   # Handling of the options.
35124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35125     ac_cs_recheck=: ;;
35126   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35127     echo "$ac_cs_version"; exit ;;
35128   --debug | --debu | --deb | --de | --d | -d )
35129     debug=: ;;
35130   --file | --fil | --fi | --f )
35131     $ac_shift
35132     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35133     ac_need_defaults=false;;
35134   --header | --heade | --head | --hea )
35135     $ac_shift
35136     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35137     ac_need_defaults=false;;
35138   --he | --h)
35139     # Conflict between --help and --header
35140     { echo "$as_me: error: ambiguous option: $1
35141 Try \`$0 --help' for more information." >&2
35142    { (exit 1); exit 1; }; };;
35143   --help | --hel | -h )
35144     echo "$ac_cs_usage"; exit ;;
35145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35146   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35147     ac_cs_silent=: ;;
35148
35149   # This is an error.
35150   -*) { echo "$as_me: error: unrecognized option: $1
35151 Try \`$0 --help' for more information." >&2
35152    { (exit 1); exit 1; }; } ;;
35153
35154   *) ac_config_targets="$ac_config_targets $1"
35155      ac_need_defaults=false ;;
35156
35157   esac
35158   shift
35159 done
35160
35161 ac_configure_extra_args=
35162
35163 if $ac_cs_silent; then
35164   exec 6>/dev/null
35165   ac_configure_extra_args="$ac_configure_extra_args --silent"
35166 fi
35167
35168 _ACEOF
35169 cat >>$CONFIG_STATUS <<_ACEOF
35170 if \$ac_cs_recheck; then
35171   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35172   CONFIG_SHELL=$SHELL
35173   export CONFIG_SHELL
35174   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35175 fi
35176
35177 _ACEOF
35178 cat >>$CONFIG_STATUS <<\_ACEOF
35179 exec 5>>config.log
35180 {
35181   echo
35182   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35183 ## Running $as_me. ##
35184 _ASBOX
35185   echo "$ac_log"
35186 } >&5
35187
35188 _ACEOF
35189 cat >>$CONFIG_STATUS <<_ACEOF
35190 #
35191 # INIT-COMMANDS
35192 #
35193 llvm_src="${srcdir}"
35194
35195 _ACEOF
35196
35197 cat >>$CONFIG_STATUS <<\_ACEOF
35198
35199 # Handling of arguments.
35200 for ac_config_target in $ac_config_targets
35201 do
35202   case $ac_config_target in
35203     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35204     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35205     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35206     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35207     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35208     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35209     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35210     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35211     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35212     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35213     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35214     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35215     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35216     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35217     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35218     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35219     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35220     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35221     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35222     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35223     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35224     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35225     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35226
35227   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35229    { (exit 1); exit 1; }; };;
35230   esac
35231 done
35232
35233
35234 # If the user did not use the arguments to specify the items to instantiate,
35235 # then the envvar interface is used.  Set only those that are not.
35236 # We use the long form for the default assignment because of an extremely
35237 # bizarre bug on SunOS 4.1.3.
35238 if $ac_need_defaults; then
35239   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35240   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35241   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35242 fi
35243
35244 # Have a temporary directory for convenience.  Make it in the build tree
35245 # simply because there is no reason against having it here, and in addition,
35246 # creating and moving files from /tmp can sometimes cause problems.
35247 # Hook for its removal unless debugging.
35248 # Note that there is a small window in which the directory will not be cleaned:
35249 # after its creation but before its name has been assigned to `$tmp'.
35250 $debug ||
35251 {
35252   tmp=
35253   trap 'exit_status=$?
35254   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35255 ' 0
35256   trap '{ (exit 1); exit 1; }' 1 2 13 15
35257 }
35258 # Create a (secure) tmp directory for tmp files.
35259
35260 {
35261   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35262   test -n "$tmp" && test -d "$tmp"
35263 }  ||
35264 {
35265   tmp=./conf$$-$RANDOM
35266   (umask 077 && mkdir "$tmp")
35267 } ||
35268 {
35269    echo "$me: cannot create a temporary directory in ." >&2
35270    { (exit 1); exit 1; }
35271 }
35272
35273 #
35274 # Set up the sed scripts for CONFIG_FILES section.
35275 #
35276
35277 # No need to generate the scripts if there are no CONFIG_FILES.
35278 # This happens for instance when ./config.status config.h
35279 if test -n "$CONFIG_FILES"; then
35280
35281 _ACEOF
35282
35283
35284
35285 ac_delim='%!_!# '
35286 for ac_last_try in false false false false false :; do
35287   cat >conf$$subs.sed <<_ACEOF
35288 SHELL!$SHELL$ac_delim
35289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35295 exec_prefix!$exec_prefix$ac_delim
35296 prefix!$prefix$ac_delim
35297 program_transform_name!$program_transform_name$ac_delim
35298 bindir!$bindir$ac_delim
35299 sbindir!$sbindir$ac_delim
35300 libexecdir!$libexecdir$ac_delim
35301 datarootdir!$datarootdir$ac_delim
35302 datadir!$datadir$ac_delim
35303 sysconfdir!$sysconfdir$ac_delim
35304 sharedstatedir!$sharedstatedir$ac_delim
35305 localstatedir!$localstatedir$ac_delim
35306 includedir!$includedir$ac_delim
35307 oldincludedir!$oldincludedir$ac_delim
35308 docdir!$docdir$ac_delim
35309 infodir!$infodir$ac_delim
35310 htmldir!$htmldir$ac_delim
35311 dvidir!$dvidir$ac_delim
35312 pdfdir!$pdfdir$ac_delim
35313 psdir!$psdir$ac_delim
35314 libdir!$libdir$ac_delim
35315 localedir!$localedir$ac_delim
35316 mandir!$mandir$ac_delim
35317 DEFS!$DEFS$ac_delim
35318 ECHO_C!$ECHO_C$ac_delim
35319 ECHO_N!$ECHO_N$ac_delim
35320 ECHO_T!$ECHO_T$ac_delim
35321 LIBS!$LIBS$ac_delim
35322 build_alias!$build_alias$ac_delim
35323 host_alias!$host_alias$ac_delim
35324 target_alias!$target_alias$ac_delim
35325 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35326 subdirs!$subdirs$ac_delim
35327 build!$build$ac_delim
35328 build_cpu!$build_cpu$ac_delim
35329 build_vendor!$build_vendor$ac_delim
35330 build_os!$build_os$ac_delim
35331 host!$host$ac_delim
35332 host_cpu!$host_cpu$ac_delim
35333 host_vendor!$host_vendor$ac_delim
35334 host_os!$host_os$ac_delim
35335 target!$target$ac_delim
35336 target_cpu!$target_cpu$ac_delim
35337 target_vendor!$target_vendor$ac_delim
35338 target_os!$target_os$ac_delim
35339 OS!$OS$ac_delim
35340 LINKALL!$LINKALL$ac_delim
35341 NOLINKALL!$NOLINKALL$ac_delim
35342 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35343 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35344 ARCH!$ARCH$ac_delim
35345 ENDIAN!$ENDIAN$ac_delim
35346 CC!$CC$ac_delim
35347 CFLAGS!$CFLAGS$ac_delim
35348 LDFLAGS!$LDFLAGS$ac_delim
35349 CPPFLAGS!$CPPFLAGS$ac_delim
35350 ac_ct_CC!$ac_ct_CC$ac_delim
35351 EXEEXT!$EXEEXT$ac_delim
35352 OBJEXT!$OBJEXT$ac_delim
35353 CPP!$CPP$ac_delim
35354 GREP!$GREP$ac_delim
35355 EGREP!$EGREP$ac_delim
35356 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35357 BUILD_CC!$BUILD_CC$ac_delim
35358 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35359 BUILD_CXX!$BUILD_CXX$ac_delim
35360 CVSBUILD!$CVSBUILD$ac_delim
35361 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35362 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35363 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35364 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35365 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35366 JIT!$JIT$ac_delim
35367 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35368 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35369 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35370 ENABLE_PIC!$ENABLE_PIC$ac_delim
35371 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35372 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35373 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35374 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35375 CXX!$CXX$ac_delim
35376 CXXFLAGS!$CXXFLAGS$ac_delim
35377 ac_ct_CXX!$ac_ct_CXX$ac_delim
35378 LEX!$LEX$ac_delim
35379 LEXLIB!$LEXLIB$ac_delim
35380 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35381 FLEX!$FLEX$ac_delim
35382 YACC!$YACC$ac_delim
35383 YFLAGS!$YFLAGS$ac_delim
35384 BISON!$BISON$ac_delim
35385 _ACEOF
35386
35387   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35388     break
35389   elif $ac_last_try; then
35390     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35392    { (exit 1); exit 1; }; }
35393   else
35394     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35395   fi
35396 done
35397
35398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35399 if test -n "$ac_eof"; then
35400   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35401   ac_eof=`expr $ac_eof + 1`
35402 fi
35403
35404 cat >>$CONFIG_STATUS <<_ACEOF
35405 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35407 _ACEOF
35408 sed '
35409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35410 s/^/s,@/; s/!/@,|#_!!_#|/
35411 :n
35412 t n
35413 s/'"$ac_delim"'$/,g/; t
35414 s/$/\\/; p
35415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35416 ' >>$CONFIG_STATUS <conf$$subs.sed
35417 rm -f conf$$subs.sed
35418 cat >>$CONFIG_STATUS <<_ACEOF
35419 CEOF$ac_eof
35420 _ACEOF
35421
35422
35423 ac_delim='%!_!# '
35424 for ac_last_try in false false false false false :; do
35425   cat >conf$$subs.sed <<_ACEOF
35426 NM!$NM$ac_delim
35427 ifGNUmake!$ifGNUmake$ac_delim
35428 LN_S!$LN_S$ac_delim
35429 CMP!$CMP$ac_delim
35430 CP!$CP$ac_delim
35431 DATE!$DATE$ac_delim
35432 FIND!$FIND$ac_delim
35433 MKDIR!$MKDIR$ac_delim
35434 MV!$MV$ac_delim
35435 RANLIB!$RANLIB$ac_delim
35436 RM!$RM$ac_delim
35437 SED!$SED$ac_delim
35438 TAR!$TAR$ac_delim
35439 BINPWD!$BINPWD$ac_delim
35440 GRAPHVIZ!$GRAPHVIZ$ac_delim
35441 DOT!$DOT$ac_delim
35442 GV!$GV$ac_delim
35443 DOTTY!$DOTTY$ac_delim
35444 PERL!$PERL$ac_delim
35445 HAVE_PERL!$HAVE_PERL$ac_delim
35446 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35447 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35448 INSTALL_DATA!$INSTALL_DATA$ac_delim
35449 BZIP2!$BZIP2$ac_delim
35450 DOXYGEN!$DOXYGEN$ac_delim
35451 GROFF!$GROFF$ac_delim
35452 GZIP!$GZIP$ac_delim
35453 POD2HTML!$POD2HTML$ac_delim
35454 POD2MAN!$POD2MAN$ac_delim
35455 RUNTEST!$RUNTEST$ac_delim
35456 TCLSH!$TCLSH$ac_delim
35457 ZIP!$ZIP$ac_delim
35458 OCAMLC!$OCAMLC$ac_delim
35459 OCAMLOPT!$OCAMLOPT$ac_delim
35460 OCAMLDEP!$OCAMLDEP$ac_delim
35461 OCAMLDOC!$OCAMLDOC$ac_delim
35462 GAS!$GAS$ac_delim
35463 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35464 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35465 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35466 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35467 LIBADD_DL!$LIBADD_DL$ac_delim
35468 ECHO!$ECHO$ac_delim
35469 AR!$AR$ac_delim
35470 STRIP!$STRIP$ac_delim
35471 CXXCPP!$CXXCPP$ac_delim
35472 F77!$F77$ac_delim
35473 FFLAGS!$FFLAGS$ac_delim
35474 ac_ct_F77!$ac_ct_F77$ac_delim
35475 LIBTOOL!$LIBTOOL$ac_delim
35476 LLVMGCC!$LLVMGCC$ac_delim
35477 LLVMGXX!$LLVMGXX$ac_delim
35478 USE_UDIS86!$USE_UDIS86$ac_delim
35479 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35480 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35481 ALLOCA!$ALLOCA$ac_delim
35482 MMAP_FILE!$MMAP_FILE$ac_delim
35483 LLVMCC1!$LLVMCC1$ac_delim
35484 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35485 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35486 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35487 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35488 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35489 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35490 SHLIBEXT!$SHLIBEXT$ac_delim
35491 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35492 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35493 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35494 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35495 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35496 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35497 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35498 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35499 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35500 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35501 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35502 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35503 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35504 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35505 LIBOBJS!$LIBOBJS$ac_delim
35506 LTLIBOBJS!$LTLIBOBJS$ac_delim
35507 _ACEOF
35508
35509   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35510     break
35511   elif $ac_last_try; then
35512     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35514    { (exit 1); exit 1; }; }
35515   else
35516     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35517   fi
35518 done
35519
35520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35521 if test -n "$ac_eof"; then
35522   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35523   ac_eof=`expr $ac_eof + 1`
35524 fi
35525
35526 cat >>$CONFIG_STATUS <<_ACEOF
35527 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35529 _ACEOF
35530 sed '
35531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35532 s/^/s,@/; s/!/@,|#_!!_#|/
35533 :n
35534 t n
35535 s/'"$ac_delim"'$/,g/; t
35536 s/$/\\/; p
35537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35538 ' >>$CONFIG_STATUS <conf$$subs.sed
35539 rm -f conf$$subs.sed
35540 cat >>$CONFIG_STATUS <<_ACEOF
35541 :end
35542 s/|#_!!_#|//g
35543 CEOF$ac_eof
35544 _ACEOF
35545
35546
35547 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35548 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35549 # trailing colons and then remove the whole line if VPATH becomes empty
35550 # (actually we leave an empty line to preserve line numbers).
35551 if test "x$srcdir" = x.; then
35552   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35553 s/:*\$(srcdir):*/:/
35554 s/:*\${srcdir}:*/:/
35555 s/:*@srcdir@:*/:/
35556 s/^\([^=]*=[     ]*\):*/\1/
35557 s/:*$//
35558 s/^[^=]*=[       ]*$//
35559 }'
35560 fi
35561
35562 cat >>$CONFIG_STATUS <<\_ACEOF
35563 fi # test -n "$CONFIG_FILES"
35564
35565
35566 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35567 do
35568   case $ac_tag in
35569   :[FHLC]) ac_mode=$ac_tag; continue;;
35570   esac
35571   case $ac_mode$ac_tag in
35572   :[FHL]*:*);;
35573   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35574 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35575    { (exit 1); exit 1; }; };;
35576   :[FH]-) ac_tag=-:-;;
35577   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35578   esac
35579   ac_save_IFS=$IFS
35580   IFS=:
35581   set x $ac_tag
35582   IFS=$ac_save_IFS
35583   shift
35584   ac_file=$1
35585   shift
35586
35587   case $ac_mode in
35588   :L) ac_source=$1;;
35589   :[FH])
35590     ac_file_inputs=
35591     for ac_f
35592     do
35593       case $ac_f in
35594       -) ac_f="$tmp/stdin";;
35595       *) # Look for the file first in the build tree, then in the source tree
35596          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35597          # because $ac_f cannot contain `:'.
35598          test -f "$ac_f" ||
35599            case $ac_f in
35600            [\\/$]*) false;;
35601            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35602            esac ||
35603            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35604 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35605    { (exit 1); exit 1; }; };;
35606       esac
35607       ac_file_inputs="$ac_file_inputs $ac_f"
35608     done
35609
35610     # Let's still pretend it is `configure' which instantiates (i.e., don't
35611     # use $as_me), people would be surprised to read:
35612     #    /* config.h.  Generated by config.status.  */
35613     configure_input="Generated from "`IFS=:
35614           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35615     if test x"$ac_file" != x-; then
35616       configure_input="$ac_file.  $configure_input"
35617       { echo "$as_me:$LINENO: creating $ac_file" >&5
35618 echo "$as_me: creating $ac_file" >&6;}
35619     fi
35620
35621     case $ac_tag in
35622     *:-:* | *:-) cat >"$tmp/stdin";;
35623     esac
35624     ;;
35625   esac
35626
35627   ac_dir=`$as_dirname -- "$ac_file" ||
35628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35629          X"$ac_file" : 'X\(//\)[^/]' \| \
35630          X"$ac_file" : 'X\(//\)$' \| \
35631          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35632 echo X"$ac_file" |
35633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35634             s//\1/
35635             q
35636           }
35637           /^X\(\/\/\)[^/].*/{
35638             s//\1/
35639             q
35640           }
35641           /^X\(\/\/\)$/{
35642             s//\1/
35643             q
35644           }
35645           /^X\(\/\).*/{
35646             s//\1/
35647             q
35648           }
35649           s/.*/./; q'`
35650   { as_dir="$ac_dir"
35651   case $as_dir in #(
35652   -*) as_dir=./$as_dir;;
35653   esac
35654   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35655     as_dirs=
35656     while :; do
35657       case $as_dir in #(
35658       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35659       *) as_qdir=$as_dir;;
35660       esac
35661       as_dirs="'$as_qdir' $as_dirs"
35662       as_dir=`$as_dirname -- "$as_dir" ||
35663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35664          X"$as_dir" : 'X\(//\)[^/]' \| \
35665          X"$as_dir" : 'X\(//\)$' \| \
35666          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35667 echo X"$as_dir" |
35668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35669             s//\1/
35670             q
35671           }
35672           /^X\(\/\/\)[^/].*/{
35673             s//\1/
35674             q
35675           }
35676           /^X\(\/\/\)$/{
35677             s//\1/
35678             q
35679           }
35680           /^X\(\/\).*/{
35681             s//\1/
35682             q
35683           }
35684           s/.*/./; q'`
35685       test -d "$as_dir" && break
35686     done
35687     test -z "$as_dirs" || eval "mkdir $as_dirs"
35688   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35690    { (exit 1); exit 1; }; }; }
35691   ac_builddir=.
35692
35693 case "$ac_dir" in
35694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35695 *)
35696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35697   # A ".." for each directory in $ac_dir_suffix.
35698   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35699   case $ac_top_builddir_sub in
35700   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35701   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35702   esac ;;
35703 esac
35704 ac_abs_top_builddir=$ac_pwd
35705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35706 # for backward compatibility:
35707 ac_top_builddir=$ac_top_build_prefix
35708
35709 case $srcdir in
35710   .)  # We are building in place.
35711     ac_srcdir=.
35712     ac_top_srcdir=$ac_top_builddir_sub
35713     ac_abs_top_srcdir=$ac_pwd ;;
35714   [\\/]* | ?:[\\/]* )  # Absolute name.
35715     ac_srcdir=$srcdir$ac_dir_suffix;
35716     ac_top_srcdir=$srcdir
35717     ac_abs_top_srcdir=$srcdir ;;
35718   *) # Relative name.
35719     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35720     ac_top_srcdir=$ac_top_build_prefix$srcdir
35721     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35722 esac
35723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35724
35725
35726   case $ac_mode in
35727   :F)
35728   #
35729   # CONFIG_FILE
35730   #
35731
35732   case $INSTALL in
35733   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35734   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35735   esac
35736 _ACEOF
35737
35738 cat >>$CONFIG_STATUS <<\_ACEOF
35739 # If the template does not know about datarootdir, expand it.
35740 # FIXME: This hack should be removed a few years after 2.60.
35741 ac_datarootdir_hack=; ac_datarootdir_seen=
35742
35743 case `sed -n '/datarootdir/ {
35744   p
35745   q
35746 }
35747 /@datadir@/p
35748 /@docdir@/p
35749 /@infodir@/p
35750 /@localedir@/p
35751 /@mandir@/p
35752 ' $ac_file_inputs` in
35753 *datarootdir*) ac_datarootdir_seen=yes;;
35754 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35755   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35756 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35757 _ACEOF
35758 cat >>$CONFIG_STATUS <<_ACEOF
35759   ac_datarootdir_hack='
35760   s&@datadir@&$datadir&g
35761   s&@docdir@&$docdir&g
35762   s&@infodir@&$infodir&g
35763   s&@localedir@&$localedir&g
35764   s&@mandir@&$mandir&g
35765     s&\\\${datarootdir}&$datarootdir&g' ;;
35766 esac
35767 _ACEOF
35768
35769 # Neutralize VPATH when `$srcdir' = `.'.
35770 # Shell code in configure.ac might set extrasub.
35771 # FIXME: do we really want to maintain this feature?
35772 cat >>$CONFIG_STATUS <<_ACEOF
35773   sed "$ac_vpsub
35774 $extrasub
35775 _ACEOF
35776 cat >>$CONFIG_STATUS <<\_ACEOF
35777 :t
35778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35779 s&@configure_input@&$configure_input&;t t
35780 s&@top_builddir@&$ac_top_builddir_sub&;t t
35781 s&@srcdir@&$ac_srcdir&;t t
35782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35783 s&@top_srcdir@&$ac_top_srcdir&;t t
35784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35785 s&@builddir@&$ac_builddir&;t t
35786 s&@abs_builddir@&$ac_abs_builddir&;t t
35787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35788 s&@INSTALL@&$ac_INSTALL&;t t
35789 $ac_datarootdir_hack
35790 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35791
35792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35793   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35794   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35795   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35796 which seems to be undefined.  Please make sure it is defined." >&5
35797 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35798 which seems to be undefined.  Please make sure it is defined." >&2;}
35799
35800   rm -f "$tmp/stdin"
35801   case $ac_file in
35802   -) cat "$tmp/out"; rm -f "$tmp/out";;
35803   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35804   esac
35805  ;;
35806   :H)
35807   #
35808   # CONFIG_HEADER
35809   #
35810 _ACEOF
35811
35812 # Transform confdefs.h into a sed script `conftest.defines', that
35813 # substitutes the proper values into config.h.in to produce config.h.
35814 rm -f conftest.defines conftest.tail
35815 # First, append a space to every undef/define line, to ease matching.
35816 echo 's/$/ /' >conftest.defines
35817 # Then, protect against being on the right side of a sed subst, or in
35818 # an unquoted here document, in config.status.  If some macros were
35819 # called several times there might be several #defines for the same
35820 # symbol, which is useless.  But do not sort them, since the last
35821 # AC_DEFINE must be honored.
35822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35823 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35824 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35825 # PARAMS is the parameter list in the macro definition--in most cases, it's
35826 # just an empty string.
35827 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35828 ac_dB='\\)[      (].*,\\1define\\2'
35829 ac_dC=' '
35830 ac_dD=' ,'
35831
35832 uniq confdefs.h |
35833   sed -n '
35834         t rset
35835         :rset
35836         s/^[     ]*#[    ]*define[       ][      ]*//
35837         t ok
35838         d
35839         :ok
35840         s/[\\&,]/\\&/g
35841         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35842         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35843   ' >>conftest.defines
35844
35845 # Remove the space that was appended to ease matching.
35846 # Then replace #undef with comments.  This is necessary, for
35847 # example, in the case of _POSIX_SOURCE, which is predefined and required
35848 # on some systems where configure will not decide to define it.
35849 # (The regexp can be short, since the line contains either #define or #undef.)
35850 echo 's/ $//
35851 s,^[     #]*u.*,/* & */,' >>conftest.defines
35852
35853 # Break up conftest.defines:
35854 ac_max_sed_lines=50
35855
35856 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35857 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35858 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35859 # et cetera.
35860 ac_in='$ac_file_inputs'
35861 ac_out='"$tmp/out1"'
35862 ac_nxt='"$tmp/out2"'
35863
35864 while :
35865 do
35866   # Write a here document:
35867     cat >>$CONFIG_STATUS <<_ACEOF
35868     # First, check the format of the line:
35869     cat >"\$tmp/defines.sed" <<\\CEOF
35870 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35871 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35872 b
35873 :def
35874 _ACEOF
35875   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35876   echo 'CEOF
35877     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35878   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35879   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35880   grep . conftest.tail >/dev/null || break
35881   rm -f conftest.defines
35882   mv conftest.tail conftest.defines
35883 done
35884 rm -f conftest.defines conftest.tail
35885
35886 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35887 cat >>$CONFIG_STATUS <<\_ACEOF
35888   if test x"$ac_file" != x-; then
35889     echo "/* $configure_input  */" >"$tmp/config.h"
35890     cat "$ac_result" >>"$tmp/config.h"
35891     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35892       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35893 echo "$as_me: $ac_file is unchanged" >&6;}
35894     else
35895       rm -f $ac_file
35896       mv "$tmp/config.h" $ac_file
35897     fi
35898   else
35899     echo "/* $configure_input  */"
35900     cat "$ac_result"
35901   fi
35902   rm -f "$tmp/out12"
35903  ;;
35904
35905   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35906 echo "$as_me: executing $ac_file commands" >&6;}
35907  ;;
35908   esac
35909
35910
35911   case $ac_file$ac_mode in
35912     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35913    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35914     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35915    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35916     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35917    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35918     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35919    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35920     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35921    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35922     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35923    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35924     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35925    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35926     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35927    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35928     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35929    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35930     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35931    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35932     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35933    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35934     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35935    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35936     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35937    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35938
35939   esac
35940 done # for ac_tag
35941
35942
35943 { (exit 0); exit 0; }
35944 _ACEOF
35945 chmod +x $CONFIG_STATUS
35946 ac_clean_files=$ac_clean_files_save
35947
35948
35949 # configure is writing to config.log, and then calls config.status.
35950 # config.status does its own redirection, appending to config.log.
35951 # Unfortunately, on DOS this fails, as config.log is still kept open
35952 # by configure, so config.status won't be able to write to it; its
35953 # output is simply discarded.  So we exec the FD to /dev/null,
35954 # effectively closing config.log, so it can be properly (re)opened and
35955 # appended to by config.status.  When coming back to configure, we
35956 # need to make the FD available again.
35957 if test "$no_create" != yes; then
35958   ac_cs_success=:
35959   ac_config_status_args=
35960   test "$silent" = yes &&
35961     ac_config_status_args="$ac_config_status_args --quiet"
35962   exec 5>/dev/null
35963   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35964   exec 5>>config.log
35965   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35966   # would make configure fail if this is the last instruction.
35967   $ac_cs_success || { (exit 1); exit 1; }
35968 fi
35969
35970 #
35971 # CONFIG_SUBDIRS section.
35972 #
35973 if test "$no_recursion" != yes; then
35974
35975   # Remove --cache-file and --srcdir arguments so they do not pile up.
35976   ac_sub_configure_args=
35977   ac_prev=
35978   eval "set x $ac_configure_args"
35979   shift
35980   for ac_arg
35981   do
35982     if test -n "$ac_prev"; then
35983       ac_prev=
35984       continue
35985     fi
35986     case $ac_arg in
35987     -cache-file | --cache-file | --cache-fil | --cache-fi \
35988     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35989       ac_prev=cache_file ;;
35990     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35991     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35992     | --c=*)
35993       ;;
35994     --config-cache | -C)
35995       ;;
35996     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35997       ac_prev=srcdir ;;
35998     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35999       ;;
36000     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36001       ac_prev=prefix ;;
36002     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36003       ;;
36004     *)
36005       case $ac_arg in
36006       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36007       esac
36008       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36009     esac
36010   done
36011
36012   # Always prepend --prefix to ensure using the same prefix
36013   # in subdir configurations.
36014   ac_arg="--prefix=$prefix"
36015   case $ac_arg in
36016   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36017   esac
36018   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36019
36020   ac_popdir=`pwd`
36021   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36022
36023     # Do not complain, so a configure script can configure whichever
36024     # parts of a large source tree are present.
36025     test -d "$srcdir/$ac_dir" || continue
36026
36027     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36028     echo "$as_me:$LINENO: $ac_msg" >&5
36029     echo "$ac_msg" >&6
36030     { as_dir="$ac_dir"
36031   case $as_dir in #(
36032   -*) as_dir=./$as_dir;;
36033   esac
36034   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36035     as_dirs=
36036     while :; do
36037       case $as_dir in #(
36038       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36039       *) as_qdir=$as_dir;;
36040       esac
36041       as_dirs="'$as_qdir' $as_dirs"
36042       as_dir=`$as_dirname -- "$as_dir" ||
36043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36044          X"$as_dir" : 'X\(//\)[^/]' \| \
36045          X"$as_dir" : 'X\(//\)$' \| \
36046          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36047 echo X"$as_dir" |
36048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36049             s//\1/
36050             q
36051           }
36052           /^X\(\/\/\)[^/].*/{
36053             s//\1/
36054             q
36055           }
36056           /^X\(\/\/\)$/{
36057             s//\1/
36058             q
36059           }
36060           /^X\(\/\).*/{
36061             s//\1/
36062             q
36063           }
36064           s/.*/./; q'`
36065       test -d "$as_dir" && break
36066     done
36067     test -z "$as_dirs" || eval "mkdir $as_dirs"
36068   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36069 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36070    { (exit 1); exit 1; }; }; }
36071     ac_builddir=.
36072
36073 case "$ac_dir" in
36074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36075 *)
36076   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36077   # A ".." for each directory in $ac_dir_suffix.
36078   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36079   case $ac_top_builddir_sub in
36080   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36081   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36082   esac ;;
36083 esac
36084 ac_abs_top_builddir=$ac_pwd
36085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36086 # for backward compatibility:
36087 ac_top_builddir=$ac_top_build_prefix
36088
36089 case $srcdir in
36090   .)  # We are building in place.
36091     ac_srcdir=.
36092     ac_top_srcdir=$ac_top_builddir_sub
36093     ac_abs_top_srcdir=$ac_pwd ;;
36094   [\\/]* | ?:[\\/]* )  # Absolute name.
36095     ac_srcdir=$srcdir$ac_dir_suffix;
36096     ac_top_srcdir=$srcdir
36097     ac_abs_top_srcdir=$srcdir ;;
36098   *) # Relative name.
36099     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36100     ac_top_srcdir=$ac_top_build_prefix$srcdir
36101     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36102 esac
36103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36104
36105
36106     cd "$ac_dir"
36107
36108     # Check for guested configure; otherwise get Cygnus style configure.
36109     if test -f "$ac_srcdir/configure.gnu"; then
36110       ac_sub_configure=$ac_srcdir/configure.gnu
36111     elif test -f "$ac_srcdir/configure"; then
36112       ac_sub_configure=$ac_srcdir/configure
36113     elif test -f "$ac_srcdir/configure.in"; then
36114       # This should be Cygnus configure.
36115       ac_sub_configure=$ac_aux_dir/configure
36116     else
36117       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36119       ac_sub_configure=
36120     fi
36121
36122     # The recursion is here.
36123     if test -n "$ac_sub_configure"; then
36124       # Make the cache file name correct relative to the subdirectory.
36125       case $cache_file in
36126       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36127       *) # Relative name.
36128         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36129       esac
36130
36131       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36132 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36133       # The eval makes quoting arguments work.
36134       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36135            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36136         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36137 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36138    { (exit 1); exit 1; }; }
36139     fi
36140
36141     cd "$ac_popdir"
36142   done
36143 fi
36144