3f7f65b0dbd05e1d0fa63e06fbecc72fc53fff7d
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_subdirs_all="$ac_subdirs_all projects/${i}"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_unique_file=""Makefile.config.in""
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014   --target=TARGET   configure for building compilers for TARGET [HOST]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019   case $ac_init_help in
1020      short | recursive ) echo "Configuration of LLVM 1.4:";;
1021    esac
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --enable-optimized      Compile with optimizations enabled (default is NO)
1035   --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1036   --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1037   --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
1054
1055 Some influential environment variables:
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   CPP         C preprocessor
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 LLVM configure 1.4
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by LLVM $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 ac_aux_dir=
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521   if test -f $ac_dir/install-sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install-sh -c"
1524     break
1525   elif test -f $ac_dir/install.sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install.sh -c"
1528     break
1529   elif test -f $ac_dir/shtool; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/shtool install -c"
1532     break
1533   fi
1534 done
1535 if test -z "$ac_aux_dir"; then
1536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538    { (exit 1); exit 1; }; }
1539 fi
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544
1545 if test ${srcdir} != "."
1546 then
1547         if test -f ${srcdir}/include/llvm/Config/config.h
1548         then
1549                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551    { (exit 1); exit 1; }; }
1552         fi
1553 fi
1554
1555 for i in `ls ${srcdir}/projects`
1556 do
1557   if test ${i} != "CVS"
1558   then
1559     if test -f ${srcdir}/projects/${i}/configure
1560     then
1561
1562
1563 subdirs="$subdirs projects/${i}"
1564
1565     fi
1566   fi
1567 done
1568
1569           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1570
1571
1572                                                             ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1573
1574
1575           ac_config_commands="$ac_config_commands Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands Makefile.common"
1579
1580
1581           ac_config_commands="$ac_config_commands examples/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands runtime/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands test/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands test/Makefile.tests"
1594
1595
1596           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1597
1598
1599           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1600
1601
1602           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1606
1607
1608           ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1609
1610
1611           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1615
1616
1617           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1618
1619
1620           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1633
1634
1635           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1639
1640
1641           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1645
1646
1647           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1657
1658
1659           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1660
1661
1662           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1663
1664
1665           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands tools/Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands utils/Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands projects/Makefile"
1726
1727
1728
1729 # Find a good install program.  We prefer a C program (faster),
1730 # so one script is as good as another.  But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1735 # AIX /bin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   # Account for people who put trailing slashes in PATH elements.
1754 case $as_dir/ in
1755   ./ | .// | /cC/* | \
1756   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1758   /usr/ucb/* ) ;;
1759   *)
1760     # OSF1 and SCO ODT 3.0 have their own names for install.
1761     # Don't use installbsd from OSF since it installs stuff as root
1762     # by default.
1763     for ac_prog in ginstall scoinst install; do
1764       for ac_exec_ext in '' $ac_executable_extensions; do
1765         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766           if test $ac_prog = install &&
1767             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768             # AIX install.  It has an incompatible calling convention.
1769             :
1770           elif test $ac_prog = install &&
1771             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772             # program-specific install script used by HP pwplus--don't use.
1773             :
1774           else
1775             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776             break 3
1777           fi
1778         fi
1779       done
1780     done
1781     ;;
1782 esac
1783 done
1784
1785
1786 fi
1787   if test "${ac_cv_path_install+set}" = set; then
1788     INSTALL=$ac_cv_path_install
1789   else
1790     # As a last resort, use the slow shell script.  We don't cache a
1791     # path for INSTALL within a source directory, because that will
1792     # break other packages using the cache if that directory is
1793     # removed, or if the path is relative.
1794     INSTALL=$ac_install_sh
1795   fi
1796 fi
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1799
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808
1809 # Make sure we can run config.sub.
1810 $ac_config_sub sun4 >/dev/null 2>&1 ||
1811   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813    { (exit 1); exit 1; }; }
1814
1815 echo "$as_me:$LINENO: checking build system type" >&5
1816 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817 if test "${ac_cv_build+set}" = set; then
1818   echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820   ac_cv_build_alias=$build_alias
1821 test -z "$ac_cv_build_alias" &&
1822   ac_cv_build_alias=`$ac_config_guess`
1823 test -z "$ac_cv_build_alias" &&
1824   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826    { (exit 1); exit 1; }; }
1827 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830    { (exit 1); exit 1; }; }
1831
1832 fi
1833 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834 echo "${ECHO_T}$ac_cv_build" >&6
1835 build=$ac_cv_build
1836 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1839
1840
1841 echo "$as_me:$LINENO: checking host system type" >&5
1842 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843 if test "${ac_cv_host+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   ac_cv_host_alias=$host_alias
1847 test -z "$ac_cv_host_alias" &&
1848   ac_cv_host_alias=$ac_cv_build_alias
1849 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852    { (exit 1); exit 1; }; }
1853
1854 fi
1855 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856 echo "${ECHO_T}$ac_cv_host" >&6
1857 host=$ac_cv_host
1858 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861
1862
1863 echo "$as_me:$LINENO: checking target system type" >&5
1864 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865 if test "${ac_cv_target+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   ac_cv_target_alias=$target_alias
1869 test "x$ac_cv_target_alias" = "x" &&
1870   ac_cv_target_alias=$ac_cv_host_alias
1871 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874    { (exit 1); exit 1; }; }
1875
1876 fi
1877 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878 echo "${ECHO_T}$ac_cv_target" >&6
1879 target=$ac_cv_target
1880 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883
1884
1885 # The aliases save the names the user supplied, while $host etc.
1886 # will get canonicalized.
1887 test -n "$target_alias" &&
1888   test "$program_prefix$program_suffix$program_transform_name" = \
1889     NONENONEs,x,x, &&
1890   program_prefix=${target_alias}-
1891
1892
1893 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1894 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1895 case $build in
1896         *-*-aix*)
1897              OS=AIX
1898
1899              platform_type="AIX"
1900              ;;
1901         *-*-cygwin*)
1902              OS=Cygwin
1903
1904              platform_type="Cygwin"
1905              ;;
1906         *-*-darwin*)
1907              OS=Darwin
1908
1909              platform_type="Darwin"
1910              ;;
1911         *-*-freebsd*)
1912              OS=Linux
1913
1914              platform_type="FreeBSD"
1915              ;;
1916         *-*-interix*)
1917              OS=SunOS
1918
1919              platform_type="Interix"
1920              ;;
1921         *-*-linux*)
1922              OS=Linux
1923
1924              platform_type="Linux"
1925              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1926              then
1927                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1928
1929              fi
1930              ;;
1931         *-*-solaris*)
1932              OS=SunOS
1933
1934              platform_type="SunOS"
1935              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1936              then
1937                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1938
1939              fi
1940              ;;
1941         *-*-win32*)
1942              OS=Win32
1943
1944              platform_type="Win32"
1945              ;;
1946         *)
1947              OS=Unknown
1948
1949              platform_type="Unknown"
1950              ;;
1951 esac
1952
1953 if test "$platform_type" = "Unknown" ; then
1954   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1955 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1960
1961
1962 echo "$as_me:$LINENO: result: $platform_type" >&5
1963 echo "${ECHO_T}$platform_type" >&6
1964
1965 echo "$as_me:$LINENO: checking target architecture" >&5
1966 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1967 case $target in
1968         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1969
1970                             ;;
1971 esac
1972
1973 case $target in
1974         i*86-*)
1975           ARCH="x86"
1976           ARCH=x86
1977
1978           ;;
1979         sparc*-*)
1980           ARCH="Sparc"
1981           ARCH=Sparc
1982
1983           ;;
1984         powerpc*-*)
1985           ARCH="PowerPC"
1986           ARCH=PowerPC
1987
1988           ;;
1989         *)
1990           ARCH="Unknown"
1991           ARCH=Unknown
1992
1993           ;;
1994 esac
1995
1996 echo "$as_me:$LINENO: result: $ARCH" >&5
1997 echo "${ECHO_T}$ARCH" >&6
1998
1999 ac_ext=cc
2000 ac_cpp='$CXXCPP $CPPFLAGS'
2001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2004 if test -n "$ac_tool_prefix"; then
2005   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2006   do
2007     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CXX+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$CXX"; then
2015   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031 fi
2032 fi
2033 CXX=$ac_cv_prog_CXX
2034 if test -n "$CXX"; then
2035   echo "$as_me:$LINENO: result: $CXX" >&5
2036 echo "${ECHO_T}$CXX" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042     test -n "$CXX" && break
2043   done
2044 fi
2045 if test -z "$CXX"; then
2046   ac_ct_CXX=$CXX
2047   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2048 do
2049   # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$ac_ct_CXX"; then
2057   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066     ac_cv_prog_ac_ct_CXX="$ac_prog"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072
2073 fi
2074 fi
2075 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2076 if test -n "$ac_ct_CXX"; then
2077   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2078 echo "${ECHO_T}$ac_ct_CXX" >&6
2079 else
2080   echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084   test -n "$ac_ct_CXX" && break
2085 done
2086 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2087
2088   CXX=$ac_ct_CXX
2089 fi
2090
2091
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO:" \
2094      "checking for C++ compiler version" >&5
2095 ac_compiler=`set X $ac_compile; echo $2`
2096 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2097   (eval $ac_compiler --version </dev/null >&5) 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }
2101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2102   (eval $ac_compiler -v </dev/null >&5) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }
2106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2107   (eval $ac_compiler -V </dev/null >&5) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }
2111
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2131 # of exeext.
2132 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2133 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2136   (eval $ac_link_default) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }; then
2140   # Find the output, starting from the most likely.  This scheme is
2141 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2142 # resort.
2143
2144 # Be careful to initialize this variable, since it used to be cached.
2145 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2146 ac_cv_exeext=
2147 # b.out is created by i960 compilers.
2148 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2149 do
2150   test -f "$ac_file" || continue
2151   case $ac_file in
2152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2153         ;;
2154     conftest.$ac_ext )
2155         # This is the source file.
2156         ;;
2157     [ab].out )
2158         # We found the default executable, but exeext='' is most
2159         # certainly right.
2160         break;;
2161     *.* )
2162         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163         # FIXME: I believe we export ac_cv_exeext for Libtool,
2164         # but it would be cool to find out if it's true.  Does anybody
2165         # maintain Libtool? --akim.
2166         export ac_cv_exeext
2167         break;;
2168     * )
2169         break;;
2170   esac
2171 done
2172 else
2173   echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: C++ compiler cannot create executables
2179 See \`config.log' for more details." >&2;}
2180    { (exit 77); exit 77; }; }
2181 fi
2182
2183 ac_exeext=$ac_cv_exeext
2184 echo "$as_me:$LINENO: result: $ac_file" >&5
2185 echo "${ECHO_T}$ac_file" >&6
2186
2187 # Check the compiler produces executables we can run.  If not, either
2188 # the compiler is broken, or we cross compile.
2189 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2190 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2191 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2192 # If not cross compiling, check that we can run a simple program.
2193 if test "$cross_compiling" != yes; then
2194   if { ac_try='./$ac_file'
2195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196   (eval $ac_try) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }; }; then
2200     cross_compiling=no
2201   else
2202     if test "$cross_compiling" = maybe; then
2203         cross_compiling=yes
2204     else
2205         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2206 If you meant to cross compile, use \`--host'.
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot run C++ compiled programs.
2209 If you meant to cross compile, use \`--host'.
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212     fi
2213   fi
2214 fi
2215 echo "$as_me:$LINENO: result: yes" >&5
2216 echo "${ECHO_T}yes" >&6
2217
2218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2219 ac_clean_files=$ac_clean_files_save
2220 # Check the compiler produces executables we can run.  If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2224 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2225 echo "${ECHO_T}$cross_compiling" >&6
2226
2227 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2230   (eval $ac_link) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; then
2234   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2235 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2236 # work properly (i.e., refer to `conftest.exe'), while it won't with
2237 # `rm'.
2238 for ac_file in conftest.exe conftest conftest.*; do
2239   test -f "$ac_file" || continue
2240   case $ac_file in
2241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2242     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243           export ac_cv_exeext
2244           break;;
2245     * ) break;;
2246   esac
2247 done
2248 else
2249   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254 fi
2255
2256 rm -f conftest$ac_cv_exeext
2257 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2258 echo "${ECHO_T}$ac_cv_exeext" >&6
2259
2260 rm -f conftest.$ac_ext
2261 EXEEXT=$ac_cv_exeext
2262 ac_exeext=$EXEEXT
2263 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2265 if test "${ac_cv_objext+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h.  */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h.  */
2274
2275 int
2276 main ()
2277 {
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.o conftest.obj
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; then
2289   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2290   case $ac_file in
2291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2292     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2293        break;;
2294   esac
2295 done
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2303 See \`config.log' for more details." >&2;}
2304    { (exit 1); exit 1; }; }
2305 fi
2306
2307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2308 fi
2309 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2310 echo "${ECHO_T}$ac_cv_objext" >&6
2311 OBJEXT=$ac_cv_objext
2312 ac_objext=$OBJEXT
2313 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2314 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   cat >conftest.$ac_ext <<_ACEOF
2319 /* confdefs.h.  */
2320 _ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h.  */
2324
2325 int
2326 main ()
2327 {
2328 #ifndef __GNUC__
2329        choke me
2330 #endif
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338   (eval $ac_compile) 2>conftest.er1
2339   ac_status=$?
2340   grep -v '^ *+' conftest.er1 >conftest.err
2341   rm -f conftest.er1
2342   cat conftest.err >&5
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); } &&
2345          { ac_try='test -z "$ac_cxx_werror_flag"
2346                          || test ! -s conftest.err'
2347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348   (eval $ac_try) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }; } &&
2352          { ac_try='test -s conftest.$ac_objext'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; }; then
2358   ac_compiler_gnu=yes
2359 else
2360   echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 ac_compiler_gnu=no
2364 fi
2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2367
2368 fi
2369 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2370 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2371 GXX=`test $ac_compiler_gnu = yes && echo yes`
2372 ac_test_CXXFLAGS=${CXXFLAGS+set}
2373 ac_save_CXXFLAGS=$CXXFLAGS
2374 CXXFLAGS="-g"
2375 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2376 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2377 if test "${ac_cv_prog_cxx_g+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -z "$ac_cxx_werror_flag"
2405                          || test ! -s conftest.err'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; } &&
2411          { ac_try='test -s conftest.$ac_objext'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417   ac_cv_prog_cxx_g=yes
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_cv_prog_cxx_g=no
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 fi
2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2427 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2428 if test "$ac_test_CXXFLAGS" = set; then
2429   CXXFLAGS=$ac_save_CXXFLAGS
2430 elif test $ac_cv_prog_cxx_g = yes; then
2431   if test "$GXX" = yes; then
2432     CXXFLAGS="-g -O2"
2433   else
2434     CXXFLAGS="-g"
2435   fi
2436 else
2437   if test "$GXX" = yes; then
2438     CXXFLAGS="-O2"
2439   else
2440     CXXFLAGS=
2441   fi
2442 fi
2443 for ac_declaration in \
2444    '' \
2445    'extern "C" void std::exit (int) throw (); using std::exit;' \
2446    'extern "C" void std::exit (int); using std::exit;' \
2447    'extern "C" void exit (int) throw ();' \
2448    'extern "C" void exit (int);' \
2449    'void exit (int);'
2450 do
2451   cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h.  */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h.  */
2457 $ac_declaration
2458 #include <stdlib.h>
2459 int
2460 main ()
2461 {
2462 exit (42);
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>conftest.er1
2470   ac_status=$?
2471   grep -v '^ *+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -z "$ac_cxx_werror_flag"
2477                          || test ! -s conftest.err'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   :
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 continue
2495 fi
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497   cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503 $ac_declaration
2504 int
2505 main ()
2506 {
2507 exit (42);
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514   (eval $ac_compile) 2>conftest.er1
2515   ac_status=$?
2516   grep -v '^ *+' conftest.er1 >conftest.err
2517   rm -f conftest.er1
2518   cat conftest.err >&5
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); } &&
2521          { ac_try='test -z "$ac_cxx_werror_flag"
2522                          || test ! -s conftest.err'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   break
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 fi
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 done
2542 rm -f conftest*
2543 if test -n "$ac_declaration"; then
2544   echo '#ifdef __cplusplus' >>confdefs.h
2545   echo $ac_declaration      >>confdefs.h
2546   echo '#endif'             >>confdefs.h
2547 fi
2548
2549 ac_ext=c
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 if test -n "$ac_tool_prefix"; then
2561   for ac_prog in gcc
2562   do
2563     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2565 echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$CC"; then
2571   ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591   echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6
2593 else
2594   echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6
2596 fi
2597
2598     test -n "$CC" && break
2599   done
2600 fi
2601 if test -z "$CC"; then
2602   ac_ct_CC=$CC
2603   for ac_prog in gcc
2604 do
2605   # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$ac_ct_CC"; then
2613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622     ac_cv_prog_ac_ct_CC="$ac_prog"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628
2629 fi
2630 fi
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 echo "${ECHO_T}$ac_ct_CC" >&6
2635 else
2636   echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639
2640   test -n "$ac_ct_CC" && break
2641 done
2642
2643   CC=$ac_ct_CC
2644 fi
2645
2646
2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&2;}
2651    { (exit 1); exit 1; }; }
2652
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO:" \
2655      "checking for C compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2658   (eval $ac_compiler --version </dev/null >&5) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2663   (eval $ac_compiler -v </dev/null >&5) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2668   (eval $ac_compiler -V </dev/null >&5) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672
2673 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688 #ifndef __GNUC__
2689        choke me
2690 #endif
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -z "$ac_c_werror_flag"
2706                          || test ! -s conftest.err'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   ac_compiler_gnu=yes
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 ac_compiler_gnu=no
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727
2728 fi
2729 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2731 GCC=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CFLAGS=${CFLAGS+set}
2733 ac_save_CFLAGS=$CFLAGS
2734 CFLAGS="-g"
2735 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cc_g+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746
2747 int
2748 main ()
2749 {
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -z "$ac_c_werror_flag"
2765                          || test ! -s conftest.err'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   ac_cv_prog_cc_g=yes
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 ac_cv_prog_cc_g=no
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2788 if test "$ac_test_CFLAGS" = set; then
2789   CFLAGS=$ac_save_CFLAGS
2790 elif test $ac_cv_prog_cc_g = yes; then
2791   if test "$GCC" = yes; then
2792     CFLAGS="-g -O2"
2793   else
2794     CFLAGS="-g"
2795   fi
2796 else
2797   if test "$GCC" = yes; then
2798     CFLAGS="-O2"
2799   else
2800     CFLAGS=
2801   fi
2802 fi
2803 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2804 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   ac_cv_prog_cc_stdc=no
2809 ac_save_CC=$CC
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816 #include <stdarg.h>
2817 #include <stdio.h>
2818 #include <sys/types.h>
2819 #include <sys/stat.h>
2820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2821 struct buf { int x; };
2822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823 static char *e (p, i)
2824      char **p;
2825      int i;
2826 {
2827   return p[i];
2828 }
2829 static char *f (char * (*g) (char **, int), char **p, ...)
2830 {
2831   char *s;
2832   va_list v;
2833   va_start (v,p);
2834   s = g (p, va_arg (v,int));
2835   va_end (v);
2836   return s;
2837 }
2838
2839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2840    function prototypes and stuff, but not '\xHH' hex character constants.
2841    These don't provoke an error unfortunately, instead are silently treated
2842    as 'x'.  The following induces an error, until -std1 is added to get
2843    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2844    array size at least.  It's necessary to write '\x00'==0 to get something
2845    that's true only with -std1.  */
2846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2847
2848 int test (int i, double x);
2849 struct s1 {int (*f) (int a);};
2850 struct s2 {int (*f) (double a);};
2851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2852 int argc;
2853 char **argv;
2854 int
2855 main ()
2856 {
2857 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 # Don't try gcc -ansi; that turns off useful extensions and
2863 # breaks some systems' header files.
2864 # AIX                   -qlanglvl=ansi
2865 # Ultrix and OSF/1      -std1
2866 # HP-UX 10.20 and later -Ae
2867 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2868 # SVR4                  -Xc -D__EXTENSIONS__
2869 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2870 do
2871   CC="$ac_save_CC $ac_arg"
2872   rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   ac_cv_prog_cc_stdc=$ac_arg
2895 break
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 fi
2901 rm -f conftest.err conftest.$ac_objext
2902 done
2903 rm -f conftest.$ac_ext conftest.$ac_objext
2904 CC=$ac_save_CC
2905
2906 fi
2907
2908 case "x$ac_cv_prog_cc_stdc" in
2909   x|xno)
2910     echo "$as_me:$LINENO: result: none needed" >&5
2911 echo "${ECHO_T}none needed" >&6 ;;
2912   *)
2913     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2915     CC="$CC $ac_cv_prog_cc_stdc" ;;
2916 esac
2917
2918 # Some people use a C++ compiler to compile C.  Since we use `exit',
2919 # in C++ we need to declare it.  In case someone uses the same compiler
2920 # for both compiling C and C++ we need to have the C++ compiler decide
2921 # the declaration of exit, since it's the most demanding environment.
2922 cat >conftest.$ac_ext <<_ACEOF
2923 #ifndef __cplusplus
2924   choke me
2925 #endif
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   (eval $ac_compile) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } &&
2936          { ac_try='test -z "$ac_c_werror_flag"
2937                          || test ! -s conftest.err'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; } &&
2943          { ac_try='test -s conftest.$ac_objext'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949   for ac_declaration in \
2950    '' \
2951    'extern "C" void std::exit (int) throw (); using std::exit;' \
2952    'extern "C" void std::exit (int); using std::exit;' \
2953    'extern "C" void exit (int) throw ();' \
2954    'extern "C" void exit (int);' \
2955    'void exit (int);'
2956 do
2957   cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963 $ac_declaration
2964 #include <stdlib.h>
2965 int
2966 main ()
2967 {
2968 exit (42);
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975   (eval $ac_compile) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_c_werror_flag"
2983                          || test ! -s conftest.err'
2984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; } &&
2989          { ac_try='test -s conftest.$ac_objext'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   :
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 continue
3001 fi
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 $ac_declaration
3010 int
3011 main ()
3012 {
3013 exit (42);
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020   (eval $ac_compile) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag"
3028                          || test ! -s conftest.err'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036   (eval $ac_try) 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   break
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 fi
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047 done
3048 rm -f conftest*
3049 if test -n "$ac_declaration"; then
3050   echo '#ifdef __cplusplus' >>confdefs.h
3051   echo $ac_declaration      >>confdefs.h
3052   echo '#endif'             >>confdefs.h
3053 fi
3054
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 fi
3060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_ext=c
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066
3067 ac_ext=c
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3074 # On Suns, sometimes $CPP names a directory.
3075 if test -n "$CPP" && test -d "$CPP"; then
3076   CPP=
3077 fi
3078 if test -z "$CPP"; then
3079   if test "${ac_cv_prog_CPP+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082       # Double quotes because CPP needs to be expanded
3083     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3084     do
3085       ac_preproc_ok=false
3086 for ac_c_preproc_warn_flag in '' yes
3087 do
3088   # Use a header file that comes with gcc, so configuring glibc
3089   # with a fresh cross-compiler works.
3090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091   # <limits.h> exists even on freestanding compilers.
3092   # On the NeXT, cc -E runs the code through the compiler's parser,
3093   # not just through cpp. "Syntax error" is here to catch this case.
3094   cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100 #ifdef __STDC__
3101 # include <limits.h>
3102 #else
3103 # include <assert.h>
3104 #endif
3105                      Syntax error
3106 _ACEOF
3107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } >/dev/null; then
3115   if test -s conftest.err; then
3116     ac_cpp_err=$ac_c_preproc_warn_flag
3117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118   else
3119     ac_cpp_err=
3120   fi
3121 else
3122   ac_cpp_err=yes
3123 fi
3124 if test -z "$ac_cpp_err"; then
3125   :
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130   # Broken: fails on valid input.
3131 continue
3132 fi
3133 rm -f conftest.err conftest.$ac_ext
3134
3135   # OK, works on sane cases.  Now check whether non-existent headers
3136   # can be detected and how.
3137   cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #include <ac_nonexistent.h>
3144 _ACEOF
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } >/dev/null; then
3153   if test -s conftest.err; then
3154     ac_cpp_err=$ac_c_preproc_warn_flag
3155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156   else
3157     ac_cpp_err=
3158   fi
3159 else
3160   ac_cpp_err=yes
3161 fi
3162 if test -z "$ac_cpp_err"; then
3163   # Broken: success on invalid input.
3164 continue
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169   # Passes both tests.
3170 ac_preproc_ok=:
3171 break
3172 fi
3173 rm -f conftest.err conftest.$ac_ext
3174
3175 done
3176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177 rm -f conftest.err conftest.$ac_ext
3178 if $ac_preproc_ok; then
3179   break
3180 fi
3181
3182     done
3183     ac_cv_prog_CPP=$CPP
3184
3185 fi
3186   CPP=$ac_cv_prog_CPP
3187 else
3188   ac_cv_prog_CPP=$CPP
3189 fi
3190 echo "$as_me:$LINENO: result: $CPP" >&5
3191 echo "${ECHO_T}$CPP" >&6
3192 ac_preproc_ok=false
3193 for ac_c_preproc_warn_flag in '' yes
3194 do
3195   # Use a header file that comes with gcc, so configuring glibc
3196   # with a fresh cross-compiler works.
3197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198   # <limits.h> exists even on freestanding compilers.
3199   # On the NeXT, cc -E runs the code through the compiler's parser,
3200   # not just through cpp. "Syntax error" is here to catch this case.
3201   cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #ifdef __STDC__
3208 # include <limits.h>
3209 #else
3210 # include <assert.h>
3211 #endif
3212                      Syntax error
3213 _ACEOF
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216   ac_status=$?
3217   grep -v '^ *+' conftest.er1 >conftest.err
3218   rm -f conftest.er1
3219   cat conftest.err >&5
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); } >/dev/null; then
3222   if test -s conftest.err; then
3223     ac_cpp_err=$ac_c_preproc_warn_flag
3224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3225   else
3226     ac_cpp_err=
3227   fi
3228 else
3229   ac_cpp_err=yes
3230 fi
3231 if test -z "$ac_cpp_err"; then
3232   :
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237   # Broken: fails on valid input.
3238 continue
3239 fi
3240 rm -f conftest.err conftest.$ac_ext
3241
3242   # OK, works on sane cases.  Now check whether non-existent headers
3243   # can be detected and how.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #include <ac_nonexistent.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   # Broken: success on invalid input.
3271 continue
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   # Passes both tests.
3277 ac_preproc_ok=:
3278 break
3279 fi
3280 rm -f conftest.err conftest.$ac_ext
3281
3282 done
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then
3286   :
3287 else
3288   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3289 See \`config.log' for more details." >&5
3290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3291 See \`config.log' for more details." >&2;}
3292    { (exit 1); exit 1; }; }
3293 fi
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301
3302 if test "$GCC" != "yes"
3303 then
3304         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3305 echo "$as_me: error: gcc required but not found" >&2;}
3306    { (exit 1); exit 1; }; }
3307 fi
3308 if test "$GXX" != "yes"
3309 then
3310         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3311 echo "$as_me: error: g++ required but not found" >&2;}
3312    { (exit 1); exit 1; }; }
3313 fi
3314
3315 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3316 if test "$gccmajor" -lt "3"
3317 then
3318         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3319 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3320    { (exit 1); exit 1; }; }
3321 fi
3322
3323  echo "$as_me:$LINENO: checking for GNU make" >&5
3324 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3325 if test "${_cv_gnu_make_command+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   _cv_gnu_make_command='' ;
3329                 for a in "$MAKE" make gmake gnumake ; do
3330                         if test -z "$a" ; then continue ; fi ;
3331                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3332                                 _cv_gnu_make_command=$a ;
3333                                 break;
3334                         fi
3335                 done ;
3336
3337 fi
3338 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3339 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3340         if test  "x$_cv_gnu_make_command" != "x"  ; then
3341                 ifGNUmake='' ;
3342         else
3343                 ifGNUmake='#' ;
3344                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3345 echo "${ECHO_T}\"Not found\"" >&6;
3346         fi
3347
3348
3349 if test -z "$_cv_gnu_make_command"
3350 then
3351         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3352 echo "$as_me: error: GNU Make required but not found" >&2;}
3353    { (exit 1); exit 1; }; }
3354 fi
3355
3356
3357 echo "$as_me:$LINENO: checking " >&5
3358 echo $ECHO_N "checking ... $ECHO_C" >&6
3359 if test "${ac_cv_has_flex+set}" = set; then
3360   echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362   for ac_prog in flex lex
3363 do
3364   # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_LEX+set}" = set; then
3369   echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371   if test -n "$LEX"; then
3372   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   test -z "$as_dir" && as_dir=.
3379   for ac_exec_ext in '' $ac_executable_extensions; do
3380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381     ac_cv_prog_LEX="$ac_prog"
3382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384   fi
3385 done
3386 done
3387
3388 fi
3389 fi
3390 LEX=$ac_cv_prog_LEX
3391 if test -n "$LEX"; then
3392   echo "$as_me:$LINENO: result: $LEX" >&5
3393 echo "${ECHO_T}$LEX" >&6
3394 else
3395   echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3397 fi
3398
3399   test -n "$LEX" && break
3400 done
3401 test -n "$LEX" || LEX=":"
3402
3403 if test -z "$LEXLIB"
3404 then
3405   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3406 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3407 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   ac_check_lib_save_LIBS=$LIBS
3411 LIBS="-lfl  $LIBS"
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418
3419 /* Override any gcc2 internal prototype to avoid an error.  */
3420 #ifdef __cplusplus
3421 extern "C"
3422 #endif
3423 /* We use char because int might match the return type of a gcc2
3424    builtin and then its argument prototype would still apply.  */
3425 char yywrap ();
3426 int
3427 main ()
3428 {
3429 yywrap ();
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext conftest$ac_exeext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3436   (eval $ac_link) 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } &&
3443          { ac_try='test -z "$ac_c_werror_flag"
3444                          || test ! -s conftest.err'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; } &&
3450          { ac_try='test -s conftest$ac_exeext'
3451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452   (eval $ac_try) 2>&5
3453   ac_status=$?
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); }; }; then
3456   ac_cv_lib_fl_yywrap=yes
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 ac_cv_lib_fl_yywrap=no
3462 fi
3463 rm -f conftest.err conftest.$ac_objext \
3464       conftest$ac_exeext conftest.$ac_ext
3465 LIBS=$ac_check_lib_save_LIBS
3466 fi
3467 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3468 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3469 if test $ac_cv_lib_fl_yywrap = yes; then
3470   LEXLIB="-lfl"
3471 else
3472   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3473 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3474 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   ac_check_lib_save_LIBS=$LIBS
3478 LIBS="-ll  $LIBS"
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485
3486 /* Override any gcc2 internal prototype to avoid an error.  */
3487 #ifdef __cplusplus
3488 extern "C"
3489 #endif
3490 /* We use char because int might match the return type of a gcc2
3491    builtin and then its argument prototype would still apply.  */
3492 char yywrap ();
3493 int
3494 main ()
3495 {
3496 yywrap ();
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext conftest$ac_exeext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503   (eval $ac_link) 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } &&
3510          { ac_try='test -z "$ac_c_werror_flag"
3511                          || test ! -s conftest.err'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; } &&
3517          { ac_try='test -s conftest$ac_exeext'
3518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }; }; then
3523   ac_cv_lib_l_yywrap=yes
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 ac_cv_lib_l_yywrap=no
3529 fi
3530 rm -f conftest.err conftest.$ac_objext \
3531       conftest$ac_exeext conftest.$ac_ext
3532 LIBS=$ac_check_lib_save_LIBS
3533 fi
3534 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3535 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3536 if test $ac_cv_lib_l_yywrap = yes; then
3537   LEXLIB="-ll"
3538 fi
3539
3540 fi
3541
3542 fi
3543
3544 if test "x$LEX" != "x:"; then
3545   echo "$as_me:$LINENO: checking lex output file root" >&5
3546 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3547 if test "${ac_cv_prog_lex_root+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   # The minimal lex program is just a single line: %%.  But some broken lexes
3551 # (Solaris, I think it was) want two %% lines, so accommodate them.
3552 cat >conftest.l <<_ACEOF
3553 %%
3554 %%
3555 _ACEOF
3556 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3557   (eval $LEX conftest.l) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }
3561 if test -f lex.yy.c; then
3562   ac_cv_prog_lex_root=lex.yy
3563 elif test -f lexyy.c; then
3564   ac_cv_prog_lex_root=lexyy
3565 else
3566   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3567 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3568    { (exit 1); exit 1; }; }
3569 fi
3570 fi
3571 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3572 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3573 rm -f conftest.l
3574 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3575
3576 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3577 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3578 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   # POSIX says lex can declare yytext either as a pointer or an array; the
3582 # default is implementation-dependent. Figure out which it is, since
3583 # not all implementations provide the %pointer and %array declarations.
3584 ac_cv_prog_lex_yytext_pointer=no
3585 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3586 ac_save_LIBS=$LIBS
3587 LIBS="$LIBS $LEXLIB"
3588 cat >conftest.$ac_ext <<_ACEOF
3589 `cat $LEX_OUTPUT_ROOT.c`
3590 _ACEOF
3591 rm -f conftest.$ac_objext conftest$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593   (eval $ac_link) 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_c_werror_flag"
3601                          || test ! -s conftest.err'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; } &&
3607          { ac_try='test -s conftest$ac_exeext'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; }; then
3613   ac_cv_prog_lex_yytext_pointer=yes
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 fi
3619 rm -f conftest.err conftest.$ac_objext \
3620       conftest$ac_exeext conftest.$ac_ext
3621 LIBS=$ac_save_LIBS
3622 rm -f "${LEX_OUTPUT_ROOT}.c"
3623
3624 fi
3625 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3626 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3627 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3628
3629 cat >>confdefs.h <<\_ACEOF
3630 #define YYTEXT_POINTER 1
3631 _ACEOF
3632
3633 fi
3634
3635 fi
3636
3637 fi
3638 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3639 echo "${ECHO_T}$ac_cv_has_flex" >&6
3640 if test "$LEX" != "flex"; then
3641   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3642 echo "$as_me: error: flex not found but required" >&2;}
3643    { (exit 1); exit 1; }; }
3644 fi
3645
3646 echo "$as_me:$LINENO: checking " >&5
3647 echo $ECHO_N "checking ... $ECHO_C" >&6
3648 if test "${ac_cv_has_bison+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   for ac_prog in 'bison -y' byacc
3652 do
3653   # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_YACC+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -n "$YACC"; then
3661   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670     ac_cv_prog_YACC="$ac_prog"
3671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675 done
3676
3677 fi
3678 fi
3679 YACC=$ac_cv_prog_YACC
3680 if test -n "$YACC"; then
3681   echo "$as_me:$LINENO: result: $YACC" >&5
3682 echo "${ECHO_T}$YACC" >&6
3683 else
3684   echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688   test -n "$YACC" && break
3689 done
3690 test -n "$YACC" || YACC="yacc"
3691
3692
3693 fi
3694 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3695 echo "${ECHO_T}$ac_cv_has_bison" >&6
3696 if test "$YACC" != "bison -y"; then
3697   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3698 echo "$as_me: error: bison not found but required" >&2;}
3699    { (exit 1); exit 1; }; }
3700 else
3701   BISON=bison
3702
3703 fi
3704
3705 # Check whether --enable-shared or --disable-shared was given.
3706 if test "${enable_shared+set}" = set; then
3707   enableval="$enable_shared"
3708   p=${PACKAGE-default}
3709     case $enableval in
3710     yes) enable_shared=yes ;;
3711     no) enable_shared=no ;;
3712     *)
3713       enable_shared=no
3714       # Look at the argument we got.  We use all the common list separators.
3715       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716       for pkg in $enableval; do
3717         IFS="$lt_save_ifs"
3718         if test "X$pkg" = "X$p"; then
3719           enable_shared=yes
3720         fi
3721       done
3722       IFS="$lt_save_ifs"
3723       ;;
3724     esac
3725 else
3726   enable_shared=yes
3727 fi;
3728
3729 # Check whether --enable-static or --disable-static was given.
3730 if test "${enable_static+set}" = set; then
3731   enableval="$enable_static"
3732   p=${PACKAGE-default}
3733     case $enableval in
3734     yes) enable_static=yes ;;
3735     no) enable_static=no ;;
3736     *)
3737      enable_static=no
3738       # Look at the argument we got.  We use all the common list separators.
3739       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3740       for pkg in $enableval; do
3741         IFS="$lt_save_ifs"
3742         if test "X$pkg" = "X$p"; then
3743           enable_static=yes
3744         fi
3745       done
3746       IFS="$lt_save_ifs"
3747       ;;
3748     esac
3749 else
3750   enable_static=yes
3751 fi;
3752
3753 # Check whether --enable-fast-install or --disable-fast-install was given.
3754 if test "${enable_fast_install+set}" = set; then
3755   enableval="$enable_fast_install"
3756   p=${PACKAGE-default}
3757     case $enableval in
3758     yes) enable_fast_install=yes ;;
3759     no) enable_fast_install=no ;;
3760     *)
3761       enable_fast_install=no
3762       # Look at the argument we got.  We use all the common list separators.
3763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764       for pkg in $enableval; do
3765         IFS="$lt_save_ifs"
3766         if test "X$pkg" = "X$p"; then
3767           enable_fast_install=yes
3768         fi
3769       done
3770       IFS="$lt_save_ifs"
3771       ;;
3772     esac
3773 else
3774   enable_fast_install=yes
3775 fi;
3776
3777 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3778 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3779 if test "${lt_cv_path_SED+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   # Loop through the user's path and test for sed and gsed.
3783 # Then use that list of sed's as ones to test for truncation.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for lt_ac_prog in sed gsed; do
3790     for ac_exec_ext in '' $ac_executable_extensions; do
3791       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3792         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3793       fi
3794     done
3795   done
3796 done
3797 lt_ac_max=0
3798 lt_ac_count=0
3799 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3800 # along with /bin/sed that truncates output.
3801 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3802   test ! -f $lt_ac_sed && break
3803   cat /dev/null > conftest.in
3804   lt_ac_count=0
3805   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3806   # Check for GNU sed and select it if it is found.
3807   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3808     lt_cv_path_SED=$lt_ac_sed
3809     break
3810   fi
3811   while true; do
3812     cat conftest.in conftest.in >conftest.tmp
3813     mv conftest.tmp conftest.in
3814     cp conftest.in conftest.nl
3815     echo >>conftest.nl
3816     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3817     cmp -s conftest.out conftest.nl || break
3818     # 10000 chars as input seems more than enough
3819     test $lt_ac_count -gt 10 && break
3820     lt_ac_count=`expr $lt_ac_count + 1`
3821     if test $lt_ac_count -gt $lt_ac_max; then
3822       lt_ac_max=$lt_ac_count
3823       lt_cv_path_SED=$lt_ac_sed
3824     fi
3825   done
3826 done
3827 SED=$lt_cv_path_SED
3828
3829 fi
3830
3831 echo "$as_me:$LINENO: result: $SED" >&5
3832 echo "${ECHO_T}$SED" >&6
3833
3834 echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3836 if test "${ac_cv_prog_egrep+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3840     then ac_cv_prog_egrep='grep -E'
3841     else ac_cv_prog_egrep='egrep'
3842     fi
3843 fi
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3845 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3846  EGREP=$ac_cv_prog_egrep
3847
3848
3849
3850 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3851 if test "${with_gnu_ld+set}" = set; then
3852   withval="$with_gnu_ld"
3853   test "$withval" = no || with_gnu_ld=yes
3854 else
3855   with_gnu_ld=no
3856 fi;
3857 ac_prog=ld
3858 if test "$GCC" = yes; then
3859   # Check if gcc -print-prog-name=ld gives a path.
3860   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3861 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3862   case $host in
3863   *-*-mingw*)
3864     # gcc leaves a trailing carriage return which upsets mingw
3865     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3866   *)
3867     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3868   esac
3869   case $ac_prog in
3870     # Accept absolute paths.
3871     [\\/]* | ?:[\\/]*)
3872       re_direlt='/[^/][^/]*/\.\./'
3873       # Canonicalize the path of ld
3874       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3875       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3876         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3877       done
3878       test -z "$LD" && LD="$ac_prog"
3879       ;;
3880   "")
3881     # If it fails, then pretend we aren't using GCC.
3882     ac_prog=ld
3883     ;;
3884   *)
3885     # If it is relative, then search for the first ld in PATH.
3886     with_gnu_ld=unknown
3887     ;;
3888   esac
3889 elif test "$with_gnu_ld" = yes; then
3890   echo "$as_me:$LINENO: checking for GNU ld" >&5
3891 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3892 else
3893   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3894 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3895 fi
3896 if test "${lt_cv_path_LD+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   if test -z "$LD"; then
3900   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3901   for ac_dir in $PATH; do
3902     IFS="$lt_save_ifs"
3903     test -z "$ac_dir" && ac_dir=.
3904     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3905       lt_cv_path_LD="$ac_dir/$ac_prog"
3906       # Check to see if the program is GNU ld.  I'd rather use --version,
3907       # but apparently some GNU ld's only accept -v.
3908       # Break only if it was the GNU/non-GNU ld that we prefer.
3909       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3910       *GNU* | *'with BFD'*)
3911         test "$with_gnu_ld" != no && break
3912         ;;
3913       *)
3914         test "$with_gnu_ld" != yes && break
3915         ;;
3916       esac
3917     fi
3918   done
3919   IFS="$lt_save_ifs"
3920 else
3921   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3922 fi
3923 fi
3924
3925 LD="$lt_cv_path_LD"
3926 if test -n "$LD"; then
3927   echo "$as_me:$LINENO: result: $LD" >&5
3928 echo "${ECHO_T}$LD" >&6
3929 else
3930   echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3932 fi
3933 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3934 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3935    { (exit 1); exit 1; }; }
3936 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3937 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3938 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3942 case `"$LD" -v 2>&1 </dev/null` in
3943 *GNU* | *'with BFD'*)
3944   lt_cv_prog_gnu_ld=yes
3945   ;;
3946 *)
3947   lt_cv_prog_gnu_ld=no
3948   ;;
3949 esac
3950 fi
3951 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3952 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3953 with_gnu_ld=$lt_cv_prog_gnu_ld
3954
3955
3956 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3957 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3958 if test "${lt_cv_ld_reload_flag+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   lt_cv_ld_reload_flag='-r'
3962 fi
3963 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3964 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3965 reload_flag=$lt_cv_ld_reload_flag
3966 case $reload_flag in
3967 "" | " "*) ;;
3968 *) reload_flag=" $reload_flag" ;;
3969 esac
3970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3971
3972 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3974 if test "${lt_cv_path_NM+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   if test -n "$NM"; then
3978   # Let the user override the test.
3979   lt_cv_path_NM="$NM"
3980 else
3981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3982   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3983     IFS="$lt_save_ifs"
3984     test -z "$ac_dir" && ac_dir=.
3985     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3986     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3987       # Check to see if the nm accepts a BSD-compat flag.
3988       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3989       #   nm: unknown option "B" ignored
3990       # Tru64's nm complains that /dev/null is an invalid object file
3991       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3992       */dev/null* | *'Invalid file or object type'*)
3993         lt_cv_path_NM="$tmp_nm -B"
3994         break
3995         ;;
3996       *)
3997         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3998         */dev/null*)
3999           lt_cv_path_NM="$tmp_nm -p"
4000           break
4001           ;;
4002         *)
4003           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4004           continue # so that we can try to find one that supports BSD flags
4005           ;;
4006         esac
4007       esac
4008     fi
4009   done
4010   IFS="$lt_save_ifs"
4011   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4012 fi
4013 fi
4014 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4015 echo "${ECHO_T}$lt_cv_path_NM" >&6
4016 NM="$lt_cv_path_NM"
4017
4018 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4019 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4020 LN_S=$as_ln_s
4021 if test "$LN_S" = "ln -s"; then
4022   echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6
4024 else
4025   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4026 echo "${ECHO_T}no, using $LN_S" >&6
4027 fi
4028
4029 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4030 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4031 if test "${lt_cv_deplibs_check_method+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   lt_cv_file_magic_cmd='$MAGIC_CMD'
4035 lt_cv_file_magic_test_file=
4036 lt_cv_deplibs_check_method='unknown'
4037 # Need to set the preceding variable on all platforms that support
4038 # interlibrary dependencies.
4039 # 'none' -- dependencies not supported.
4040 # `unknown' -- same as none, but documents that we really don't know.
4041 # 'pass_all' -- all dependencies passed with no checks.
4042 # 'test_compile' -- check by making test program.
4043 # 'file_magic [[regex]]' -- check by looking for files in library path
4044 # which responds to the $file_magic_cmd with a given extended regex.
4045 # If you have `file' or equivalent on your system and you're not sure
4046 # whether `pass_all' will *always* work, you probably want this one.
4047
4048 case $host_os in
4049 aix4* | aix5*)
4050   lt_cv_deplibs_check_method=pass_all
4051   ;;
4052
4053 beos*)
4054   lt_cv_deplibs_check_method=pass_all
4055   ;;
4056
4057 bsdi4*)
4058   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4059   lt_cv_file_magic_cmd='/usr/bin/file -L'
4060   lt_cv_file_magic_test_file=/shlib/libc.so
4061   ;;
4062
4063 cygwin* | mingw* | pw32*)
4064   # win32_libid is a shell function defined in ltmain.sh
4065   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4066   lt_cv_file_magic_cmd='win32_libid'
4067   ;;
4068
4069 darwin* | rhapsody*)
4070   # this will be overwritten by pass_all, but leave it in just in case
4071   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4072   lt_cv_file_magic_cmd='/usr/bin/file -L'
4073   case "$host_os" in
4074   rhapsody* | darwin1.[012])
4075     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4076     ;;
4077   *) # Darwin 1.3 on
4078     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4079     ;;
4080   esac
4081   lt_cv_deplibs_check_method=pass_all
4082   ;;
4083
4084 freebsd*)
4085   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4086     case $host_cpu in
4087     i*86 )
4088       # Not sure whether the presence of OpenBSD here was a mistake.
4089       # Let's accept both of them until this is cleared up.
4090       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4091       lt_cv_file_magic_cmd=/usr/bin/file
4092       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4093       ;;
4094     esac
4095   else
4096     lt_cv_deplibs_check_method=pass_all
4097   fi
4098   ;;
4099
4100 gnu*)
4101   lt_cv_deplibs_check_method=pass_all
4102   ;;
4103
4104 hpux10.20* | hpux11*)
4105   lt_cv_file_magic_cmd=/usr/bin/file
4106   case "$host_cpu" in
4107   ia64*)
4108     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4109     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4110     ;;
4111   hppa*64*)
4112     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]'
4113     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4114     ;;
4115   *)
4116     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4117     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4118     ;;
4119   esac
4120   ;;
4121
4122 irix5* | irix6* | nonstopux*)
4123   case $host_os in
4124   irix5* | nonstopux*)
4125     # this will be overridden with pass_all, but let us keep it just in case
4126     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4127     ;;
4128   *)
4129     case $LD in
4130     *-32|*"-32 ") libmagic=32-bit;;
4131     *-n32|*"-n32 ") libmagic=N32;;
4132     *-64|*"-64 ") libmagic=64-bit;;
4133     *) libmagic=never-match;;
4134     esac
4135     # this will be overridden with pass_all, but let us keep it just in case
4136     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4137     ;;
4138   esac
4139   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4140   lt_cv_deplibs_check_method=pass_all
4141   ;;
4142
4143 # This must be Linux ELF.
4144 linux*)
4145   case $host_cpu in
4146   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4147     lt_cv_deplibs_check_method=pass_all ;;
4148   *)
4149     # glibc up to 2.1.1 does not perform some relocations on ARM
4150     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4151   esac
4152   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4153   ;;
4154
4155 netbsd*)
4156   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4157     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4158   else
4159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4160   fi
4161   ;;
4162
4163 newos6*)
4164   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4165   lt_cv_file_magic_cmd=/usr/bin/file
4166   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4167   ;;
4168
4169 nto-qnx)
4170   lt_cv_deplibs_check_method=unknown
4171   ;;
4172
4173 openbsd*)
4174   lt_cv_file_magic_cmd=/usr/bin/file
4175   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4176   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4177     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4178   else
4179     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4180   fi
4181   ;;
4182
4183 osf3* | osf4* | osf5*)
4184   # this will be overridden with pass_all, but let us keep it just in case
4185   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4186   lt_cv_file_magic_test_file=/shlib/libc.so
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 sco3.2v5*)
4191   lt_cv_deplibs_check_method=pass_all
4192   ;;
4193
4194 solaris*)
4195   lt_cv_deplibs_check_method=pass_all
4196   lt_cv_file_magic_test_file=/lib/libc.so
4197   ;;
4198
4199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4200   case $host_vendor in
4201   motorola)
4202     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]'
4203     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4204     ;;
4205   ncr)
4206     lt_cv_deplibs_check_method=pass_all
4207     ;;
4208   sequent)
4209     lt_cv_file_magic_cmd='/bin/file'
4210     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4211     ;;
4212   sni)
4213     lt_cv_file_magic_cmd='/bin/file'
4214     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4215     lt_cv_file_magic_test_file=/lib/libc.so
4216     ;;
4217   siemens)
4218     lt_cv_deplibs_check_method=pass_all
4219     ;;
4220   esac
4221   ;;
4222
4223 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4224   lt_cv_deplibs_check_method=pass_all
4225   ;;
4226 esac
4227
4228 fi
4229 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4230 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4231 file_magic_cmd=$lt_cv_file_magic_cmd
4232 deplibs_check_method=$lt_cv_deplibs_check_method
4233 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4234
4235
4236
4237
4238 # If no C compiler was specified, use CC.
4239 LTCC=${LTCC-"$CC"}
4240
4241 # Allow CC to be a program name with arguments.
4242 compiler=$CC
4243
4244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4245 if test "${enable_libtool_lock+set}" = set; then
4246   enableval="$enable_libtool_lock"
4247
4248 fi;
4249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4250
4251 # Some flags need to be propagated to the compiler or linker for good
4252 # libtool support.
4253 case $host in
4254 ia64-*-hpux*)
4255   # Find out which ABI we are using.
4256   echo 'int i;' > conftest.$ac_ext
4257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258   (eval $ac_compile) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; then
4262     case `/usr/bin/file conftest.$ac_objext` in
4263     *ELF-32*)
4264       HPUX_IA64_MODE="32"
4265       ;;
4266     *ELF-64*)
4267       HPUX_IA64_MODE="64"
4268       ;;
4269     esac
4270   fi
4271   rm -rf conftest*
4272   ;;
4273 *-*-irix6*)
4274   # Find out which ABI we are using.
4275   echo '#line 4275 "configure"' > conftest.$ac_ext
4276   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277   (eval $ac_compile) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; then
4281    if test "$lt_cv_prog_gnu_ld" = yes; then
4282     case `/usr/bin/file conftest.$ac_objext` in
4283     *32-bit*)
4284       LD="${LD-ld} -melf32bsmip"
4285       ;;
4286     *N32*)
4287       LD="${LD-ld} -melf32bmipn32"
4288       ;;
4289     *64-bit*)
4290       LD="${LD-ld} -melf64bmip"
4291       ;;
4292     esac
4293    else
4294     case `/usr/bin/file conftest.$ac_objext` in
4295     *32-bit*)
4296       LD="${LD-ld} -32"
4297       ;;
4298     *N32*)
4299       LD="${LD-ld} -n32"
4300       ;;
4301     *64-bit*)
4302       LD="${LD-ld} -64"
4303       ;;
4304     esac
4305    fi
4306   fi
4307   rm -rf conftest*
4308   ;;
4309
4310 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4311   # Find out which ABI we are using.
4312   echo 'int i;' > conftest.$ac_ext
4313   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314   (eval $ac_compile) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; then
4318     case "`/usr/bin/file conftest.o`" in
4319     *32-bit*)
4320       case $host in
4321         x86_64-*linux*)
4322           LD="${LD-ld} -m elf_i386"
4323           ;;
4324         ppc64-*linux*)
4325           LD="${LD-ld} -m elf32ppclinux"
4326           ;;
4327         s390x-*linux*)
4328           LD="${LD-ld} -m elf_s390"
4329           ;;
4330         sparc64-*linux*)
4331           LD="${LD-ld} -m elf32_sparc"
4332           ;;
4333       esac
4334       ;;
4335     *64-bit*)
4336       case $host in
4337         x86_64-*linux*)
4338           LD="${LD-ld} -m elf_x86_64"
4339           ;;
4340         ppc*-*linux*|powerpc*-*linux*)
4341           LD="${LD-ld} -m elf64ppc"
4342           ;;
4343         s390*-*linux*)
4344           LD="${LD-ld} -m elf64_s390"
4345           ;;
4346         sparc*-*linux*)
4347           LD="${LD-ld} -m elf64_sparc"
4348           ;;
4349       esac
4350       ;;
4351     esac
4352   fi
4353   rm -rf conftest*
4354   ;;
4355
4356 *-*-sco3.2v5*)
4357   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4358   SAVE_CFLAGS="$CFLAGS"
4359   CFLAGS="$CFLAGS -belf"
4360   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4361 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4362 if test "${lt_cv_cc_needs_belf+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371      cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388   (eval $ac_link) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -z "$ac_c_werror_flag"
4396                          || test ! -s conftest.err'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; } &&
4402          { ac_try='test -s conftest$ac_exeext'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; }; then
4408   lt_cv_cc_needs_belf=yes
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 lt_cv_cc_needs_belf=no
4414 fi
4415 rm -f conftest.err conftest.$ac_objext \
4416       conftest$ac_exeext conftest.$ac_ext
4417      ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
4423 fi
4424 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4425 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4426   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4427     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4428     CFLAGS="$SAVE_CFLAGS"
4429   fi
4430   ;;
4431
4432 esac
4433
4434 need_locks="$enable_libtool_lock"
4435
4436
4437
4438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4440 if test "${ac_cv_header_stdc+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h.  */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h.  */
4449 #include <stdlib.h>
4450 #include <stdarg.h>
4451 #include <string.h>
4452 #include <float.h>
4453
4454 int
4455 main ()
4456 {
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } &&
4471          { ac_try='test -z "$ac_c_werror_flag"
4472                          || test ! -s conftest.err'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   ac_cv_header_stdc=yes
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492
4493 if test $ac_cv_header_stdc = yes; then
4494   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4495   cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h.  */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h.  */
4501 #include <string.h>
4502
4503 _ACEOF
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505   $EGREP "memchr" >/dev/null 2>&1; then
4506   :
4507 else
4508   ac_cv_header_stdc=no
4509 fi
4510 rm -f conftest*
4511
4512 fi
4513
4514 if test $ac_cv_header_stdc = yes; then
4515   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516   cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522 #include <stdlib.h>
4523
4524 _ACEOF
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526   $EGREP "free" >/dev/null 2>&1; then
4527   :
4528 else
4529   ac_cv_header_stdc=no
4530 fi
4531 rm -f conftest*
4532
4533 fi
4534
4535 if test $ac_cv_header_stdc = yes; then
4536   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537   if test "$cross_compiling" = yes; then
4538   :
4539 else
4540   cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546 #include <ctype.h>
4547 #if ((' ' & 0x0FF) == 0x020)
4548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4550 #else
4551 # define ISLOWER(c) \
4552                    (('a' <= (c) && (c) <= 'i') \
4553                      || ('j' <= (c) && (c) <= 'r') \
4554                      || ('s' <= (c) && (c) <= 'z'))
4555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4556 #endif
4557
4558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4559 int
4560 main ()
4561 {
4562   int i;
4563   for (i = 0; i < 256; i++)
4564     if (XOR (islower (i), ISLOWER (i))
4565         || toupper (i) != TOUPPER (i))
4566       exit(2);
4567   exit (0);
4568 }
4569 _ACEOF
4570 rm -f conftest$ac_exeext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572   (eval $ac_link) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; }; then
4581   :
4582 else
4583   echo "$as_me: program exited with status $ac_status" >&5
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 ( exit $ac_status )
4588 ac_cv_header_stdc=no
4589 fi
4590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4591 fi
4592 fi
4593 fi
4594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4596 if test $ac_cv_header_stdc = yes; then
4597
4598 cat >>confdefs.h <<\_ACEOF
4599 #define STDC_HEADERS 1
4600 _ACEOF
4601
4602 fi
4603
4604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4615                   inttypes.h stdint.h unistd.h
4616 do
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 echo "$as_me:$LINENO: checking for $ac_header" >&5
4619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629 $ac_includes_default
4630
4631 #include <$ac_header>
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635   (eval $ac_compile) 2>conftest.er1
4636   ac_status=$?
4637   grep -v '^ *+' conftest.er1 >conftest.err
4638   rm -f conftest.er1
4639   cat conftest.err >&5
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } &&
4642          { ac_try='test -z "$ac_c_werror_flag"
4643                          || test ! -s conftest.err'
4644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645   (eval $ac_try) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; } &&
4649          { ac_try='test -s conftest.$ac_objext'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; }; then
4655   eval "$as_ac_Header=yes"
4656 else
4657   echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 eval "$as_ac_Header=no"
4661 fi
4662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4667   cat >>confdefs.h <<_ACEOF
4668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4669 _ACEOF
4670
4671 fi
4672
4673 done
4674
4675
4676
4677 for ac_header in dlfcn.h
4678 do
4679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4681   echo "$as_me:$LINENO: checking for $ac_header" >&5
4682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 fi
4686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4688 else
4689   # Is the header compilable?
4690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 $ac_includes_default
4699 #include <$ac_header>
4700 _ACEOF
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703   (eval $ac_compile) 2>conftest.er1
4704   ac_status=$?
4705   grep -v '^ *+' conftest.er1 >conftest.err
4706   rm -f conftest.er1
4707   cat conftest.err >&5
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); } &&
4710          { ac_try='test -z "$ac_c_werror_flag"
4711                          || test ! -s conftest.err'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; } &&
4717          { ac_try='test -s conftest.$ac_objext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   ac_header_compiler=yes
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ac_header_compiler=no
4729 fi
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732 echo "${ECHO_T}$ac_header_compiler" >&6
4733
4734 # Is the header present?
4735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #include <$ac_header>
4744 _ACEOF
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } >/dev/null; then
4753   if test -s conftest.err; then
4754     ac_cpp_err=$ac_c_preproc_warn_flag
4755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4756   else
4757     ac_cpp_err=
4758   fi
4759 else
4760   ac_cpp_err=yes
4761 fi
4762 if test -z "$ac_cpp_err"; then
4763   ac_header_preproc=yes
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768   ac_header_preproc=no
4769 fi
4770 rm -f conftest.err conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772 echo "${ECHO_T}$ac_header_preproc" >&6
4773
4774 # So?  What about this header?
4775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4776   yes:no: )
4777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4781     ac_header_preproc=yes
4782     ;;
4783   no:yes:* )
4784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4796     (
4797       cat <<\_ASBOX
4798 ## ----------------------------------- ##
4799 ## Report this to llvmbugs@cs.uiuc.edu ##
4800 ## ----------------------------------- ##
4801 _ASBOX
4802     ) |
4803       sed "s/^/$as_me: WARNING:     /" >&2
4804     ;;
4805 esac
4806 echo "$as_me:$LINENO: checking for $ac_header" >&5
4807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   eval "$as_ac_Header=\$ac_header_preproc"
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815
4816 fi
4817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818   cat >>confdefs.h <<_ACEOF
4819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820 _ACEOF
4821
4822 fi
4823
4824 done
4825
4826 ac_ext=cc
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4832 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4833 if test -z "$CXXCPP"; then
4834   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837       # Double quotes because CXXCPP needs to be expanded
4838     for CXXCPP in "$CXX -E" "/lib/cpp"
4839     do
4840       ac_preproc_ok=false
4841 for ac_cxx_preproc_warn_flag in '' yes
4842 do
4843   # Use a header file that comes with gcc, so configuring glibc
4844   # with a fresh cross-compiler works.
4845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846   # <limits.h> exists even on freestanding compilers.
4847   # On the NeXT, cc -E runs the code through the compiler's parser,
4848   # not just through cpp. "Syntax error" is here to catch this case.
4849   cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860                      Syntax error
4861 _ACEOF
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } >/dev/null; then
4870   if test -s conftest.err; then
4871     ac_cpp_err=$ac_cxx_preproc_warn_flag
4872     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4873   else
4874     ac_cpp_err=
4875   fi
4876 else
4877   ac_cpp_err=yes
4878 fi
4879 if test -z "$ac_cpp_err"; then
4880   :
4881 else
4882   echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4884
4885   # Broken: fails on valid input.
4886 continue
4887 fi
4888 rm -f conftest.err conftest.$ac_ext
4889
4890   # OK, works on sane cases.  Now check whether non-existent headers
4891   # can be detected and how.
4892   cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 #include <ac_nonexistent.h>
4899 _ACEOF
4900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } >/dev/null; then
4908   if test -s conftest.err; then
4909     ac_cpp_err=$ac_cxx_preproc_warn_flag
4910     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4911   else
4912     ac_cpp_err=
4913   fi
4914 else
4915   ac_cpp_err=yes
4916 fi
4917 if test -z "$ac_cpp_err"; then
4918   # Broken: success on invalid input.
4919 continue
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924   # Passes both tests.
4925 ac_preproc_ok=:
4926 break
4927 fi
4928 rm -f conftest.err conftest.$ac_ext
4929
4930 done
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then
4934   break
4935 fi
4936
4937     done
4938     ac_cv_prog_CXXCPP=$CXXCPP
4939
4940 fi
4941   CXXCPP=$ac_cv_prog_CXXCPP
4942 else
4943   ac_cv_prog_CXXCPP=$CXXCPP
4944 fi
4945 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4946 echo "${ECHO_T}$CXXCPP" >&6
4947 ac_preproc_ok=false
4948 for ac_cxx_preproc_warn_flag in '' yes
4949 do
4950   # Use a header file that comes with gcc, so configuring glibc
4951   # with a fresh cross-compiler works.
4952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953   # <limits.h> exists even on freestanding compilers.
4954   # On the NeXT, cc -E runs the code through the compiler's parser,
4955   # not just through cpp. "Syntax error" is here to catch this case.
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #ifdef __STDC__
4963 # include <limits.h>
4964 #else
4965 # include <assert.h>
4966 #endif
4967                      Syntax error
4968 _ACEOF
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null; then
4977   if test -s conftest.err; then
4978     ac_cpp_err=$ac_cxx_preproc_warn_flag
4979     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4980   else
4981     ac_cpp_err=
4982   fi
4983 else
4984   ac_cpp_err=yes
4985 fi
4986 if test -z "$ac_cpp_err"; then
4987   :
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992   # Broken: fails on valid input.
4993 continue
4994 fi
4995 rm -f conftest.err conftest.$ac_ext
4996
4997   # OK, works on sane cases.  Now check whether non-existent headers
4998   # can be detected and how.
4999   cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } >/dev/null; then
5015   if test -s conftest.err; then
5016     ac_cpp_err=$ac_cxx_preproc_warn_flag
5017     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018   else
5019     ac_cpp_err=
5020   fi
5021 else
5022   ac_cpp_err=yes
5023 fi
5024 if test -z "$ac_cpp_err"; then
5025   # Broken: success on invalid input.
5026 continue
5027 else
5028   echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031   # Passes both tests.
5032 ac_preproc_ok=:
5033 break
5034 fi
5035 rm -f conftest.err conftest.$ac_ext
5036
5037 done
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then
5041   :
5042 else
5043   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5044 See \`config.log' for more details." >&5
5045 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5046 See \`config.log' for more details." >&2;}
5047    { (exit 1); exit 1; }; }
5048 fi
5049
5050 ac_ext=cc
5051 ac_cpp='$CXXCPP $CPPFLAGS'
5052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5055
5056
5057 ac_ext=f
5058 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5059 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5061 if test -n "$ac_tool_prefix"; then
5062   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5063   do
5064     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5066 echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068 if test "${ac_cv_prog_F77+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   if test -n "$F77"; then
5072   ac_cv_prog_F77="$F77" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087
5088 fi
5089 fi
5090 F77=$ac_cv_prog_F77
5091 if test -n "$F77"; then
5092   echo "$as_me:$LINENO: result: $F77" >&5
5093 echo "${ECHO_T}$F77" >&6
5094 else
5095   echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099     test -n "$F77" && break
5100   done
5101 fi
5102 if test -z "$F77"; then
5103   ac_ct_F77=$F77
5104   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5105 do
5106   # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113   if test -n "$ac_ct_F77"; then
5114   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121   for ac_exec_ext in '' $ac_executable_extensions; do
5122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_ac_ct_F77="$ac_prog"
5124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128 done
5129
5130 fi
5131 fi
5132 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5133 if test -n "$ac_ct_F77"; then
5134   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5135 echo "${ECHO_T}$ac_ct_F77" >&6
5136 else
5137   echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5139 fi
5140
5141   test -n "$ac_ct_F77" && break
5142 done
5143
5144   F77=$ac_ct_F77
5145 fi
5146
5147
5148 # Provide some information about the compiler.
5149 echo "$as_me:5149:" \
5150      "checking for Fortran 77 compiler version" >&5
5151 ac_compiler=`set X $ac_compile; echo $2`
5152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5153   (eval $ac_compiler --version </dev/null >&5) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }
5157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5158   (eval $ac_compiler -v </dev/null >&5) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); }
5162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5163   (eval $ac_compiler -V </dev/null >&5) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }
5167 rm -f a.out
5168
5169 # If we don't use `.F' as extension, the preprocessor is not run on the
5170 # input file.  (Note that this only needs to work for GNU compilers.)
5171 ac_save_ext=$ac_ext
5172 ac_ext=F
5173 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5174 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5175 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   cat >conftest.$ac_ext <<_ACEOF
5179       program main
5180 #ifndef __GNUC__
5181        choke me
5182 #endif
5183
5184       end
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188   (eval $ac_compile) 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } &&
5195          { ac_try='test -z "$ac_f77_werror_flag"
5196                          || test ! -s conftest.err'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; } &&
5202          { ac_try='test -s conftest.$ac_objext'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; }; then
5208   ac_compiler_gnu=yes
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_compiler_gnu=no
5214 fi
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5217
5218 fi
5219 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5220 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5221 ac_ext=$ac_save_ext
5222 ac_test_FFLAGS=${FFLAGS+set}
5223 ac_save_FFLAGS=$FFLAGS
5224 FFLAGS=
5225 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5226 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5227 if test "${ac_cv_prog_f77_g+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   FFLAGS=-g
5231 cat >conftest.$ac_ext <<_ACEOF
5232       program main
5233
5234       end
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238   (eval $ac_compile) 2>conftest.er1
5239   ac_status=$?
5240   grep -v '^ *+' conftest.er1 >conftest.err
5241   rm -f conftest.er1
5242   cat conftest.err >&5
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } &&
5245          { ac_try='test -z "$ac_f77_werror_flag"
5246                          || test ! -s conftest.err'
5247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248   (eval $ac_try) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; } &&
5252          { ac_try='test -s conftest.$ac_objext'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   ac_cv_prog_f77_g=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263 ac_cv_prog_f77_g=no
5264 fi
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266
5267 fi
5268 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5269 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5270 if test "$ac_test_FFLAGS" = set; then
5271   FFLAGS=$ac_save_FFLAGS
5272 elif test $ac_cv_prog_f77_g = yes; then
5273   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5274     FFLAGS="-g -O2"
5275   else
5276     FFLAGS="-g"
5277   fi
5278 else
5279   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5280     FFLAGS="-O2"
5281   else
5282     FFLAGS=
5283   fi
5284 fi
5285
5286 G77=`test $ac_compiler_gnu = yes && echo yes`
5287 ac_ext=c
5288 ac_cpp='$CPP $CPPFLAGS'
5289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292
5293
5294
5295 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5296
5297 # find the maximum length of command line arguments
5298 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5299 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5300 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303     i=0
5304   testring="ABCD"
5305
5306   case $build_os in
5307   msdosdjgpp*)
5308     # On DJGPP, this test can blow up pretty badly due to problems in libc
5309     # (any single argument exceeding 2000 bytes causes a buffer overrun
5310     # during glob expansion).  Even if it were fixed, the result of this
5311     # check would be larger than it should be.
5312     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5313     ;;
5314
5315   gnu*)
5316     # Under GNU Hurd, this test is not required because there is
5317     # no limit to the length of command line arguments.
5318     # Libtool will interpret -1 as no limit whatsoever
5319     lt_cv_sys_max_cmd_len=-1;
5320     ;;
5321
5322   cygwin* | mingw*)
5323     # On Win9x/ME, this test blows up -- it succeeds, but takes
5324     # about 5 minutes as the teststring grows exponentially.
5325     # Worse, since 9x/ME are not pre-emptively multitasking,
5326     # you end up with a "frozen" computer, even though with patience
5327     # the test eventually succeeds (with a max line length of 256k).
5328     # Instead, let's just punt: use the minimum linelength reported by
5329     # all of the supported platforms: 8192 (on NT/2K/XP).
5330     lt_cv_sys_max_cmd_len=8192;
5331     ;;
5332
5333  *)
5334     # If test is not a shell built-in, we'll probably end up computing a
5335     # maximum length that is only half of the actual maximum length, but
5336     # we can't tell.
5337     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5338                = "XX$testring") >/dev/null 2>&1 &&
5339             new_result=`expr "X$testring" : ".*" 2>&1` &&
5340             lt_cv_sys_max_cmd_len=$new_result &&
5341             test $i != 17 # 1/2 MB should be enough
5342     do
5343       i=`expr $i + 1`
5344       testring=$testring$testring
5345     done
5346     testring=
5347     # Add a significant safety factor because C++ compilers can tack on massive
5348     # amounts of additional arguments before passing them to the linker.
5349     # It appears as though 1/2 is a usable value.
5350     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5351     ;;
5352   esac
5353
5354 fi
5355
5356 if test -n $lt_cv_sys_max_cmd_len ; then
5357   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5358 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5359 else
5360   echo "$as_me:$LINENO: result: none" >&5
5361 echo "${ECHO_T}none" >&6
5362 fi
5363
5364
5365
5366
5367 # Check for command to grab the raw symbol name followed by C symbol from nm.
5368 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5369 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5370 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373
5374 # These are sane defaults that work on at least a few old systems.
5375 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5376
5377 # Character class describing NM global symbol codes.
5378 symcode='[BCDEGRST]'
5379
5380 # Regexp to match symbols that can be accessed directly from C.
5381 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5382
5383 # Transform the above into a raw symbol and a C symbol.
5384 symxfrm='\1 \2\3 \3'
5385
5386 # Transform an extracted symbol line into a proper C declaration
5387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5388
5389 # Transform an extracted symbol line into symbol name and symbol address
5390 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'"
5391
5392 # Define system-specific variables.
5393 case $host_os in
5394 aix*)
5395   symcode='[BCDT]'
5396   ;;
5397 cygwin* | mingw* | pw32*)
5398   symcode='[ABCDGISTW]'
5399   ;;
5400 hpux*) # Its linker distinguishes data from code symbols
5401   if test "$host_cpu" = ia64; then
5402     symcode='[ABCDEGRST]'
5403   fi
5404   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5405   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'"
5406   ;;
5407 irix* | nonstopux*)
5408   symcode='[BCDEGRST]'
5409   ;;
5410 osf*)
5411   symcode='[BCDEGQRST]'
5412   ;;
5413 solaris* | sysv5*)
5414   symcode='[BDT]'
5415   ;;
5416 sysv4)
5417   symcode='[DFNSTU]'
5418   ;;
5419 esac
5420
5421 # Handle CRLF in mingw tool chain
5422 opt_cr=
5423 case $build_os in
5424 mingw*)
5425   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5426   ;;
5427 esac
5428
5429 # If we're using GNU nm, then use its standard symbol codes.
5430 case `$NM -V 2>&1` in
5431 *GNU* | *'with BFD'*)
5432   symcode='[ABCDGISTW]' ;;
5433 esac
5434
5435 # Try without a prefix undercore, then with it.
5436 for ac_symprfx in "" "_"; do
5437
5438   # Write the raw and C identifiers.
5439   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5440
5441   # Check to see that the pipe works correctly.
5442   pipe_works=no
5443
5444   rm -f conftest*
5445   cat > conftest.$ac_ext <<EOF
5446 #ifdef __cplusplus
5447 extern "C" {
5448 #endif
5449 char nm_test_var;
5450 void nm_test_func(){}
5451 #ifdef __cplusplus
5452 }
5453 #endif
5454 int main(){nm_test_var='a';nm_test_func();return(0);}
5455 EOF
5456
5457   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458   (eval $ac_compile) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; then
5462     # Now try to grab the symbols.
5463     nlist=conftest.nm
5464     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } && test -s "$nlist"; then
5469       # Try sorting and uniquifying the output.
5470       if sort "$nlist" | uniq > "$nlist"T; then
5471         mv -f "$nlist"T "$nlist"
5472       else
5473         rm -f "$nlist"T
5474       fi
5475
5476       # Make sure that we snagged all the symbols we need.
5477       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5478         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5479           cat <<EOF > conftest.$ac_ext
5480 #ifdef __cplusplus
5481 extern "C" {
5482 #endif
5483
5484 EOF
5485           # Now generate the symbol file.
5486           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5487
5488           cat <<EOF >> conftest.$ac_ext
5489 #if defined (__STDC__) && __STDC__
5490 # define lt_ptr_t void *
5491 #else
5492 # define lt_ptr_t char *
5493 # define const
5494 #endif
5495
5496 /* The mapping between symbol names and symbols. */
5497 const struct {
5498   const char *name;
5499   lt_ptr_t address;
5500 }
5501 lt_preloaded_symbols[] =
5502 {
5503 EOF
5504           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5505           cat <<\EOF >> conftest.$ac_ext
5506   {0, (lt_ptr_t) 0}
5507 };
5508
5509 #ifdef __cplusplus
5510 }
5511 #endif
5512 EOF
5513           # Now try linking the two files.
5514           mv conftest.$ac_objext conftstm.$ac_objext
5515           lt_save_LIBS="$LIBS"
5516           lt_save_CFLAGS="$CFLAGS"
5517           LIBS="conftstm.$ac_objext"
5518           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5519           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520   (eval $ac_link) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5524             pipe_works=yes
5525           fi
5526           LIBS="$lt_save_LIBS"
5527           CFLAGS="$lt_save_CFLAGS"
5528         else
5529           echo "cannot find nm_test_func in $nlist" >&5
5530         fi
5531       else
5532         echo "cannot find nm_test_var in $nlist" >&5
5533       fi
5534     else
5535       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5536     fi
5537   else
5538     echo "$progname: failed program was:" >&5
5539     cat conftest.$ac_ext >&5
5540   fi
5541   rm -f conftest* conftst*
5542
5543   # Do not use the global_symbol_pipe unless it works.
5544   if test "$pipe_works" = yes; then
5545     break
5546   else
5547     lt_cv_sys_global_symbol_pipe=
5548   fi
5549 done
5550
5551 fi
5552
5553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5554   lt_cv_sys_global_symbol_to_cdecl=
5555 fi
5556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5557   echo "$as_me:$LINENO: result: failed" >&5
5558 echo "${ECHO_T}failed" >&6
5559 else
5560   echo "$as_me:$LINENO: result: ok" >&5
5561 echo "${ECHO_T}ok" >&6
5562 fi
5563
5564 echo "$as_me:$LINENO: checking for objdir" >&5
5565 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5566 if test "${lt_cv_objdir+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   rm -f .libs 2>/dev/null
5570 mkdir .libs 2>/dev/null
5571 if test -d .libs; then
5572   lt_cv_objdir=.libs
5573 else
5574   # MS-DOS does not allow filenames that begin with a dot.
5575   lt_cv_objdir=_libs
5576 fi
5577 rmdir .libs 2>/dev/null
5578 fi
5579 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5580 echo "${ECHO_T}$lt_cv_objdir" >&6
5581 objdir=$lt_cv_objdir
5582
5583
5584
5585
5586
5587 case $host_os in
5588 aix3*)
5589   # AIX sometimes has problems with the GCC collect2 program.  For some
5590   # reason, if we set the COLLECT_NAMES environment variable, the problems
5591   # vanish in a puff of smoke.
5592   if test "X${COLLECT_NAMES+set}" != Xset; then
5593     COLLECT_NAMES=
5594     export COLLECT_NAMES
5595   fi
5596   ;;
5597 esac
5598
5599 # Sed substitution that helps us do robust quoting.  It backslashifies
5600 # metacharacters that are still active within double-quoted strings.
5601 Xsed='sed -e s/^X//'
5602 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5603
5604 # Same as above, but do not quote variable references.
5605 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5606
5607 # Sed substitution to delay expansion of an escaped shell variable in a
5608 # double_quote_subst'ed string.
5609 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5610
5611 # Sed substitution to avoid accidental globbing in evaled expressions
5612 no_glob_subst='s/\*/\\\*/g'
5613
5614 # Constants:
5615 rm="rm -f"
5616
5617 # Global variables:
5618 default_ofile=mklib
5619 can_build_shared=yes
5620
5621 # All known linkers require a `.a' archive for static linking (except M$VC,
5622 # which needs '.lib').
5623 libext=a
5624 ltmain="$ac_aux_dir/ltmain.sh"
5625 ofile="$default_ofile"
5626 with_gnu_ld="$lt_cv_prog_gnu_ld"
5627
5628 if test -n "$ac_tool_prefix"; then
5629   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}ar; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_prog_AR+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   if test -n "$AR"; then
5637   ac_cv_prog_AR="$AR" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644   for ac_exec_ext in '' $ac_executable_extensions; do
5645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646     ac_cv_prog_AR="${ac_tool_prefix}ar"
5647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651 done
5652
5653 fi
5654 fi
5655 AR=$ac_cv_prog_AR
5656 if test -n "$AR"; then
5657   echo "$as_me:$LINENO: result: $AR" >&5
5658 echo "${ECHO_T}$AR" >&6
5659 else
5660   echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5662 fi
5663
5664 fi
5665 if test -z "$ac_cv_prog_AR"; then
5666   ac_ct_AR=$AR
5667   # Extract the first word of "ar", so it can be a program name with args.
5668 set dummy ar; ac_word=$2
5669 echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5671 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   if test -n "$ac_ct_AR"; then
5675   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682   for ac_exec_ext in '' $ac_executable_extensions; do
5683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684     ac_cv_prog_ac_ct_AR="ar"
5685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689 done
5690
5691   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5692 fi
5693 fi
5694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5695 if test -n "$ac_ct_AR"; then
5696   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5697 echo "${ECHO_T}$ac_ct_AR" >&6
5698 else
5699   echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5701 fi
5702
5703   AR=$ac_ct_AR
5704 else
5705   AR="$ac_cv_prog_AR"
5706 fi
5707
5708 if test -n "$ac_tool_prefix"; then
5709   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5711 echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_prog_RANLIB+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   if test -n "$RANLIB"; then
5717   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   for ac_exec_ext in '' $ac_executable_extensions; do
5725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731 done
5732
5733 fi
5734 fi
5735 RANLIB=$ac_cv_prog_RANLIB
5736 if test -n "$RANLIB"; then
5737   echo "$as_me:$LINENO: result: $RANLIB" >&5
5738 echo "${ECHO_T}$RANLIB" >&6
5739 else
5740   echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5742 fi
5743
5744 fi
5745 if test -z "$ac_cv_prog_RANLIB"; then
5746   ac_ct_RANLIB=$RANLIB
5747   # Extract the first word of "ranlib", so it can be a program name with args.
5748 set dummy ranlib; ac_word=$2
5749 echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   if test -n "$ac_ct_RANLIB"; then
5755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_exec_ext in '' $ac_executable_extensions; do
5763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764     ac_cv_prog_ac_ct_RANLIB="ranlib"
5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769 done
5770
5771   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5772 fi
5773 fi
5774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5775 if test -n "$ac_ct_RANLIB"; then
5776   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5778 else
5779   echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5781 fi
5782
5783   RANLIB=$ac_ct_RANLIB
5784 else
5785   RANLIB="$ac_cv_prog_RANLIB"
5786 fi
5787
5788 if test -n "$ac_tool_prefix"; then
5789   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}strip; ac_word=$2
5791 echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5793 if test "${ac_cv_prog_STRIP+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$STRIP"; then
5797   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812
5813 fi
5814 fi
5815 STRIP=$ac_cv_prog_STRIP
5816 if test -n "$STRIP"; then
5817   echo "$as_me:$LINENO: result: $STRIP" >&5
5818 echo "${ECHO_T}$STRIP" >&6
5819 else
5820   echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5822 fi
5823
5824 fi
5825 if test -z "$ac_cv_prog_STRIP"; then
5826   ac_ct_STRIP=$STRIP
5827   # Extract the first word of "strip", so it can be a program name with args.
5828 set dummy strip; ac_word=$2
5829 echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   if test -n "$ac_ct_STRIP"; then
5835   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842   for ac_exec_ext in '' $ac_executable_extensions; do
5843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844     ac_cv_prog_ac_ct_STRIP="strip"
5845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849 done
5850
5851   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5852 fi
5853 fi
5854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5855 if test -n "$ac_ct_STRIP"; then
5856   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5857 echo "${ECHO_T}$ac_ct_STRIP" >&6
5858 else
5859   echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861 fi
5862
5863   STRIP=$ac_ct_STRIP
5864 else
5865   STRIP="$ac_cv_prog_STRIP"
5866 fi
5867
5868
5869 old_CC="$CC"
5870 old_CFLAGS="$CFLAGS"
5871
5872 # Set sane defaults for various variables
5873 test -z "$AR" && AR=ar
5874 test -z "$AR_FLAGS" && AR_FLAGS=cru
5875 test -z "$AS" && AS=as
5876 test -z "$CC" && CC=cc
5877 test -z "$LTCC" && LTCC=$CC
5878 test -z "$DLLTOOL" && DLLTOOL=dlltool
5879 test -z "$LD" && LD=ld
5880 test -z "$LN_S" && LN_S="ln -s"
5881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5882 test -z "$NM" && NM=nm
5883 test -z "$SED" && SED=sed
5884 test -z "$OBJDUMP" && OBJDUMP=objdump
5885 test -z "$RANLIB" && RANLIB=:
5886 test -z "$STRIP" && STRIP=:
5887 test -z "$ac_objext" && ac_objext=o
5888
5889 # Determine commands to create old-style static archives.
5890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5891 old_postinstall_cmds='chmod 644 $oldlib'
5892 old_postuninstall_cmds=
5893
5894 if test -n "$RANLIB"; then
5895   case $host_os in
5896   openbsd*)
5897     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5898     ;;
5899   *)
5900     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5901     ;;
5902   esac
5903   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5904 fi
5905
5906 # Only perform the check for file, if the check method requires it
5907 case $deplibs_check_method in
5908 file_magic*)
5909   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5910     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5911 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5912 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   case $MAGIC_CMD in
5916 [\\/*] |  ?:[\\/]*)
5917   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5918   ;;
5919 *)
5920   lt_save_MAGIC_CMD="$MAGIC_CMD"
5921   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5922   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5923   for ac_dir in $ac_dummy; do
5924     IFS="$lt_save_ifs"
5925     test -z "$ac_dir" && ac_dir=.
5926     if test -f $ac_dir/${ac_tool_prefix}file; then
5927       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5928       if test -n "$file_magic_test_file"; then
5929         case $deplibs_check_method in
5930         "file_magic "*)
5931           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5932           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5933           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5934             $EGREP "$file_magic_regex" > /dev/null; then
5935             :
5936           else
5937             cat <<EOF 1>&2
5938
5939 *** Warning: the command libtool uses to detect shared libraries,
5940 *** $file_magic_cmd, produces output that libtool cannot recognize.
5941 *** The result is that libtool may fail to recognize shared libraries
5942 *** as such.  This will affect the creation of libtool libraries that
5943 *** depend on shared libraries, but programs linked with such libtool
5944 *** libraries will work regardless of this problem.  Nevertheless, you
5945 *** may want to report the problem to your system manager and/or to
5946 *** bug-libtool@gnu.org
5947
5948 EOF
5949           fi ;;
5950         esac
5951       fi
5952       break
5953     fi
5954   done
5955   IFS="$lt_save_ifs"
5956   MAGIC_CMD="$lt_save_MAGIC_CMD"
5957   ;;
5958 esac
5959 fi
5960
5961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5962 if test -n "$MAGIC_CMD"; then
5963   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5964 echo "${ECHO_T}$MAGIC_CMD" >&6
5965 else
5966   echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5968 fi
5969
5970 if test -z "$lt_cv_path_MAGIC_CMD"; then
5971   if test -n "$ac_tool_prefix"; then
5972     echo "$as_me:$LINENO: checking for file" >&5
5973 echo $ECHO_N "checking for file... $ECHO_C" >&6
5974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   case $MAGIC_CMD in
5978 [\\/*] |  ?:[\\/]*)
5979   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5980   ;;
5981 *)
5982   lt_save_MAGIC_CMD="$MAGIC_CMD"
5983   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5984   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5985   for ac_dir in $ac_dummy; do
5986     IFS="$lt_save_ifs"
5987     test -z "$ac_dir" && ac_dir=.
5988     if test -f $ac_dir/file; then
5989       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5990       if test -n "$file_magic_test_file"; then
5991         case $deplibs_check_method in
5992         "file_magic "*)
5993           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5994           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5995           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5996             $EGREP "$file_magic_regex" > /dev/null; then
5997             :
5998           else
5999             cat <<EOF 1>&2
6000
6001 *** Warning: the command libtool uses to detect shared libraries,
6002 *** $file_magic_cmd, produces output that libtool cannot recognize.
6003 *** The result is that libtool may fail to recognize shared libraries
6004 *** as such.  This will affect the creation of libtool libraries that
6005 *** depend on shared libraries, but programs linked with such libtool
6006 *** libraries will work regardless of this problem.  Nevertheless, you
6007 *** may want to report the problem to your system manager and/or to
6008 *** bug-libtool@gnu.org
6009
6010 EOF
6011           fi ;;
6012         esac
6013       fi
6014       break
6015     fi
6016   done
6017   IFS="$lt_save_ifs"
6018   MAGIC_CMD="$lt_save_MAGIC_CMD"
6019   ;;
6020 esac
6021 fi
6022
6023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024 if test -n "$MAGIC_CMD"; then
6025   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6026 echo "${ECHO_T}$MAGIC_CMD" >&6
6027 else
6028   echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030 fi
6031
6032   else
6033     MAGIC_CMD=:
6034   fi
6035 fi
6036
6037   fi
6038   ;;
6039 esac
6040
6041 enable_dlopen=no
6042 enable_win32_dll=no
6043
6044 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6045 if test "${enable_libtool_lock+set}" = set; then
6046   enableval="$enable_libtool_lock"
6047
6048 fi;
6049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6050
6051
6052 # Check whether --with-pic or --without-pic was given.
6053 if test "${with_pic+set}" = set; then
6054   withval="$with_pic"
6055   pic_mode="$withval"
6056 else
6057   pic_mode=default
6058 fi;
6059 test -z "$pic_mode" && pic_mode=default
6060
6061 # Use C for the default configuration in the libtool script
6062 tagname=
6063 lt_save_CC="$CC"
6064 ac_ext=c
6065 ac_cpp='$CPP $CPPFLAGS'
6066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069
6070
6071 # Source file extension for C test sources.
6072 ac_ext=c
6073
6074 # Object file extension for compiled C test sources.
6075 objext=o
6076 objext=$objext
6077
6078 # Code to be used in simple compile tests
6079 lt_simple_compile_test_code="int some_variable = 0;\n"
6080
6081 # Code to be used in simple link tests
6082 lt_simple_link_test_code='int main(){return(0);}\n'
6083
6084
6085 # If no C compiler was specified, use CC.
6086 LTCC=${LTCC-"$CC"}
6087
6088 # Allow CC to be a program name with arguments.
6089 compiler=$CC
6090
6091
6092 #
6093 # Check for any special shared library compilation flags.
6094 #
6095 lt_prog_cc_shlib=
6096 if test "$GCC" = no; then
6097   case $host_os in
6098   sco3.2v5*)
6099     lt_prog_cc_shlib='-belf'
6100     ;;
6101   esac
6102 fi
6103 if test -n "$lt_prog_cc_shlib"; then
6104   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6105 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6106   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6107   else
6108     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6109 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6110     lt_cv_prog_cc_can_build_shared=no
6111   fi
6112 fi
6113
6114
6115 #
6116 # Check to make sure the static flag actually works.
6117 #
6118 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6119 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6120 if test "${lt_prog_compiler_static_works+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   lt_prog_compiler_static_works=no
6124    save_LDFLAGS="$LDFLAGS"
6125    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6126    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6127    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6128      # The compiler can only warn and ignore the option if not recognized
6129      # So say no if there are warnings
6130      if test -s conftest.err; then
6131        # Append any errors to the config.log.
6132        cat conftest.err 1>&5
6133      else
6134        lt_prog_compiler_static_works=yes
6135      fi
6136    fi
6137    $rm conftest*
6138    LDFLAGS="$save_LDFLAGS"
6139
6140 fi
6141 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6142 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6143
6144 if test x"$lt_prog_compiler_static_works" = xyes; then
6145     :
6146 else
6147     lt_prog_compiler_static=
6148 fi
6149
6150
6151
6152 ## CAVEAT EMPTOR:
6153 ## There is no encapsulation within the following macros, do not change
6154 ## the running order or otherwise move them around unless you know exactly
6155 ## what you are doing...
6156
6157 lt_prog_compiler_no_builtin_flag=
6158
6159 if test "$GCC" = yes; then
6160   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6161
6162   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6163 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6164 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   lt_cv_prog_compiler_rtti_exceptions=no
6168   ac_outfile=conftest.$ac_objext
6169    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6170    lt_compiler_flag="-fno-rtti -fno-exceptions"
6171    # Insert the option either (1) after the last *FLAGS variable, or
6172    # (2) before a word containing "conftest.", or (3) at the end.
6173    # Note that $ac_compile itself does not contain backslashes and begins
6174    # with a dollar sign (not a hyphen), so the echo should work correctly.
6175    # The option is referenced via a variable to avoid confusing sed.
6176    lt_compile=`echo "$ac_compile" | $SED \
6177    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6178    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6179    -e 's:$: $lt_compiler_flag:'`
6180    (eval echo "\"\$as_me:6180: $lt_compile\"" >&5)
6181    (eval "$lt_compile" 2>conftest.err)
6182    ac_status=$?
6183    cat conftest.err >&5
6184    echo "$as_me:6184: \$? = $ac_status" >&5
6185    if (exit $ac_status) && test -s "$ac_outfile"; then
6186      # The compiler can only warn and ignore the option if not recognized
6187      # So say no if there are warnings
6188      if test ! -s conftest.err; then
6189        lt_cv_prog_compiler_rtti_exceptions=yes
6190      fi
6191    fi
6192    $rm conftest*
6193
6194 fi
6195 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6196 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6197
6198 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6199     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6200 else
6201     :
6202 fi
6203
6204 fi
6205
6206 lt_prog_compiler_wl=
6207 lt_prog_compiler_pic=
6208 lt_prog_compiler_static=
6209
6210 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6212
6213   if test "$GCC" = yes; then
6214     lt_prog_compiler_wl='-Wl,'
6215     lt_prog_compiler_static='-static'
6216
6217     case $host_os in
6218       aix*)
6219       # All AIX code is PIC.
6220       if test "$host_cpu" = ia64; then
6221         # AIX 5 now supports IA64 processor
6222         lt_prog_compiler_static='-Bstatic'
6223       fi
6224       ;;
6225
6226     amigaos*)
6227       # FIXME: we need at least 68020 code to build shared libraries, but
6228       # adding the `-m68020' flag to GCC prevents building anything better,
6229       # like `-m68040'.
6230       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6231       ;;
6232
6233     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6234       # PIC is the default for these OSes.
6235       ;;
6236
6237     mingw* | pw32* | os2*)
6238       # This hack is so that the source file can tell whether it is being
6239       # built for inclusion in a dll (and should export symbols for example).
6240       lt_prog_compiler_pic='-DDLL_EXPORT'
6241       ;;
6242
6243     darwin* | rhapsody*)
6244       # PIC is the default on this platform
6245       # Common symbols not allowed in MH_DYLIB files
6246       lt_prog_compiler_pic='-fno-common'
6247       ;;
6248
6249     msdosdjgpp*)
6250       # Just because we use GCC doesn't mean we suddenly get shared libraries
6251       # on systems that don't support them.
6252       lt_prog_compiler_can_build_shared=no
6253       enable_shared=no
6254       ;;
6255
6256     sysv4*MP*)
6257       if test -d /usr/nec; then
6258         lt_prog_compiler_pic=-Kconform_pic
6259       fi
6260       ;;
6261
6262     hpux*)
6263       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6264       # not for PA HP-UX.
6265       case "$host_cpu" in
6266       hppa*64*|ia64*)
6267         # +Z the default
6268         ;;
6269       *)
6270         lt_prog_compiler_pic='-fPIC'
6271         ;;
6272       esac
6273       ;;
6274
6275     *)
6276       lt_prog_compiler_pic='-fPIC'
6277       ;;
6278     esac
6279   else
6280     # PORTME Check for flag to pass linker flags through the system compiler.
6281     case $host_os in
6282     aix*)
6283       lt_prog_compiler_wl='-Wl,'
6284       if test "$host_cpu" = ia64; then
6285         # AIX 5 now supports IA64 processor
6286         lt_prog_compiler_static='-Bstatic'
6287       else
6288         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6289       fi
6290       ;;
6291
6292     mingw* | pw32* | os2*)
6293       # This hack is so that the source file can tell whether it is being
6294       # built for inclusion in a dll (and should export symbols for example).
6295       lt_prog_compiler_pic='-DDLL_EXPORT'
6296       ;;
6297
6298     hpux9* | hpux10* | hpux11*)
6299       lt_prog_compiler_wl='-Wl,'
6300       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6301       # not for PA HP-UX.
6302       case "$host_cpu" in
6303       hppa*64*|ia64*)
6304         # +Z the default
6305         ;;
6306       *)
6307         lt_prog_compiler_pic='+Z'
6308         ;;
6309       esac
6310       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6311       lt_prog_compiler_static='${wl}-a ${wl}archive'
6312       ;;
6313
6314     irix5* | irix6* | nonstopux*)
6315       lt_prog_compiler_wl='-Wl,'
6316       # PIC (with -KPIC) is the default.
6317       lt_prog_compiler_static='-non_shared'
6318       ;;
6319
6320     newsos6)
6321       lt_prog_compiler_pic='-KPIC'
6322       lt_prog_compiler_static='-Bstatic'
6323       ;;
6324
6325     linux*)
6326       case $CC in
6327       icc|ecc)
6328         lt_prog_compiler_wl='-Wl,'
6329         lt_prog_compiler_pic='-KPIC'
6330         lt_prog_compiler_static='-static'
6331         ;;
6332       ccc)
6333         lt_prog_compiler_wl='-Wl,'
6334         # All Alpha code is PIC.
6335         lt_prog_compiler_static='-non_shared'
6336         ;;
6337       esac
6338       ;;
6339
6340     osf3* | osf4* | osf5*)
6341       lt_prog_compiler_wl='-Wl,'
6342       # All OSF/1 code is PIC.
6343       lt_prog_compiler_static='-non_shared'
6344       ;;
6345
6346     sco3.2v5*)
6347       lt_prog_compiler_pic='-Kpic'
6348       lt_prog_compiler_static='-dn'
6349       ;;
6350
6351     solaris*)
6352       lt_prog_compiler_wl='-Wl,'
6353       lt_prog_compiler_pic='-KPIC'
6354       lt_prog_compiler_static='-Bstatic'
6355       ;;
6356
6357     sunos4*)
6358       lt_prog_compiler_wl='-Qoption ld '
6359       lt_prog_compiler_pic='-PIC'
6360       lt_prog_compiler_static='-Bstatic'
6361       ;;
6362
6363     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6364       lt_prog_compiler_wl='-Wl,'
6365       lt_prog_compiler_pic='-KPIC'
6366       lt_prog_compiler_static='-Bstatic'
6367       ;;
6368
6369     sysv4*MP*)
6370       if test -d /usr/nec ;then
6371         lt_prog_compiler_pic='-Kconform_pic'
6372         lt_prog_compiler_static='-Bstatic'
6373       fi
6374       ;;
6375
6376     uts4*)
6377       lt_prog_compiler_pic='-pic'
6378       lt_prog_compiler_static='-Bstatic'
6379       ;;
6380
6381     *)
6382       lt_prog_compiler_can_build_shared=no
6383       ;;
6384     esac
6385   fi
6386
6387 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6388 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6389
6390 #
6391 # Check to make sure the PIC flag actually works.
6392 #
6393 if test -n "$lt_prog_compiler_pic"; then
6394   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6396 if test "${lt_prog_compiler_pic_works+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   lt_prog_compiler_pic_works=no
6400   ac_outfile=conftest.$ac_objext
6401    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6402    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6403    # Insert the option either (1) after the last *FLAGS variable, or
6404    # (2) before a word containing "conftest.", or (3) at the end.
6405    # Note that $ac_compile itself does not contain backslashes and begins
6406    # with a dollar sign (not a hyphen), so the echo should work correctly.
6407    # The option is referenced via a variable to avoid confusing sed.
6408    lt_compile=`echo "$ac_compile" | $SED \
6409    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6411    -e 's:$: $lt_compiler_flag:'`
6412    (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
6413    (eval "$lt_compile" 2>conftest.err)
6414    ac_status=$?
6415    cat conftest.err >&5
6416    echo "$as_me:6416: \$? = $ac_status" >&5
6417    if (exit $ac_status) && test -s "$ac_outfile"; then
6418      # The compiler can only warn and ignore the option if not recognized
6419      # So say no if there are warnings
6420      if test ! -s conftest.err; then
6421        lt_prog_compiler_pic_works=yes
6422      fi
6423    fi
6424    $rm conftest*
6425
6426 fi
6427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6428 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6429
6430 if test x"$lt_prog_compiler_pic_works" = xyes; then
6431     case $lt_prog_compiler_pic in
6432      "" | " "*) ;;
6433      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6434      esac
6435 else
6436     lt_prog_compiler_pic=
6437      lt_prog_compiler_can_build_shared=no
6438 fi
6439
6440 fi
6441 case "$host_os" in
6442   # For platforms which do not support PIC, -DPIC is meaningless:
6443   *djgpp*)
6444     lt_prog_compiler_pic=
6445     ;;
6446   *)
6447     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6448     ;;
6449 esac
6450
6451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6453 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   lt_cv_prog_compiler_c_o=no
6457    $rm -r conftest 2>/dev/null
6458    mkdir conftest
6459    cd conftest
6460    mkdir out
6461    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6462
6463    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6464    # that will create temporary files in the current directory regardless of
6465    # the output directory.  Thus, making CWD read-only will cause this test
6466    # to fail, enabling locking or at least warning the user not to do parallel
6467    # builds.
6468    chmod -w .
6469
6470    lt_compiler_flag="-o out/conftest2.$ac_objext"
6471    # Insert the option either (1) after the last *FLAGS variable, or
6472    # (2) before a word containing "conftest.", or (3) at the end.
6473    # Note that $ac_compile itself does not contain backslashes and begins
6474    # with a dollar sign (not a hyphen), so the echo should work correctly.
6475    lt_compile=`echo "$ac_compile" | $SED \
6476    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6478    -e 's:$: $lt_compiler_flag:'`
6479    (eval echo "\"\$as_me:6479: $lt_compile\"" >&5)
6480    (eval "$lt_compile" 2>out/conftest.err)
6481    ac_status=$?
6482    cat out/conftest.err >&5
6483    echo "$as_me:6483: \$? = $ac_status" >&5
6484    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6485    then
6486      # The compiler can only warn and ignore the option if not recognized
6487      # So say no if there are warnings
6488      if test ! -s out/conftest.err; then
6489        lt_cv_prog_compiler_c_o=yes
6490      fi
6491    fi
6492    chmod u+w .
6493    $rm conftest* out/*
6494    rmdir out
6495    cd ..
6496    rmdir conftest
6497    $rm conftest*
6498
6499 fi
6500 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6501 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6502
6503
6504 hard_links="nottested"
6505 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6506   # do not overwrite the value of need_locks provided by the user
6507   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6508 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6509   hard_links=yes
6510   $rm conftest*
6511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6512   touch conftest.a
6513   ln conftest.a conftest.b 2>&5 || hard_links=no
6514   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6515   echo "$as_me:$LINENO: result: $hard_links" >&5
6516 echo "${ECHO_T}$hard_links" >&6
6517   if test "$hard_links" = no; then
6518     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6519 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6520     need_locks=warn
6521   fi
6522 else
6523   need_locks=no
6524 fi
6525
6526 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6527 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6528
6529   runpath_var=
6530   allow_undefined_flag=
6531   enable_shared_with_static_runtimes=no
6532   archive_cmds=
6533   archive_expsym_cmds=
6534   old_archive_From_new_cmds=
6535   old_archive_from_expsyms_cmds=
6536   export_dynamic_flag_spec=
6537   whole_archive_flag_spec=
6538   thread_safe_flag_spec=
6539   hardcode_libdir_flag_spec=
6540   hardcode_libdir_flag_spec_ld=
6541   hardcode_libdir_separator=
6542   hardcode_direct=no
6543   hardcode_minus_L=no
6544   hardcode_shlibpath_var=unsupported
6545   link_all_deplibs=unknown
6546   hardcode_automatic=no
6547   module_cmds=
6548   module_expsym_cmds=
6549   always_export_symbols=no
6550   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6551   # include_expsyms should be a list of space-separated symbols to be *always*
6552   # included in the symbol list
6553   include_expsyms=
6554   # exclude_expsyms can be an extended regexp of symbols to exclude
6555   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6556   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6557   # as well as any symbol that contains `d'.
6558   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6559   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6560   # platforms (ab)use it in PIC code, but their linkers get confused if
6561   # the symbol is explicitly referenced.  Since portable code cannot
6562   # rely on this symbol name, it's probably fine to never include it in
6563   # preloaded symbol tables.
6564   extract_expsyms_cmds=
6565
6566   case $host_os in
6567   cygwin* | mingw* | pw32*)
6568     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6569     # When not using gcc, we currently assume that we are using
6570     # Microsoft Visual C++.
6571     if test "$GCC" != yes; then
6572       with_gnu_ld=no
6573     fi
6574     ;;
6575   openbsd*)
6576     with_gnu_ld=no
6577     ;;
6578   esac
6579
6580   ld_shlibs=yes
6581   if test "$with_gnu_ld" = yes; then
6582     # If archive_cmds runs LD, not CC, wlarc should be empty
6583     wlarc='${wl}'
6584
6585     # See if GNU ld supports shared libraries.
6586     case $host_os in
6587     aix3* | aix4* | aix5*)
6588       # On AIX/PPC, the GNU linker is very broken
6589       if test "$host_cpu" != ia64; then
6590         ld_shlibs=no
6591         cat <<EOF 1>&2
6592
6593 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6594 *** to be unable to reliably create shared libraries on AIX.
6595 *** Therefore, libtool is disabling shared libraries support.  If you
6596 *** really care for shared libraries, you may want to modify your PATH
6597 *** so that a non-GNU linker is found, and then restart.
6598
6599 EOF
6600       fi
6601       ;;
6602
6603     amigaos*)
6604       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)'
6605       hardcode_libdir_flag_spec='-L$libdir'
6606       hardcode_minus_L=yes
6607
6608       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6609       # that the semantics of dynamic libraries on AmigaOS, at least up
6610       # to version 4, is to share data among multiple programs linked
6611       # with the same dynamic library.  Since this doesn't match the
6612       # behavior of shared libraries on other platforms, we can't use
6613       # them.
6614       ld_shlibs=no
6615       ;;
6616
6617     beos*)
6618       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6619         allow_undefined_flag=unsupported
6620         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6621         # support --undefined.  This deserves some investigation.  FIXME
6622         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6623       else
6624         ld_shlibs=no
6625       fi
6626       ;;
6627
6628     cygwin* | mingw* | pw32*)
6629       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6630       # as there is no search path for DLLs.
6631       hardcode_libdir_flag_spec='-L$libdir'
6632       allow_undefined_flag=unsupported
6633       always_export_symbols=no
6634       enable_shared_with_static_runtimes=yes
6635       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6636
6637       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6638         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6639         # If the export-symbols file already is a .def file (1st line
6640         # is EXPORTS), use it as is; otherwise, prepend...
6641         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6642           cp $export_symbols $output_objdir/$soname.def;
6643         else
6644           echo EXPORTS > $output_objdir/$soname.def;
6645           cat $export_symbols >> $output_objdir/$soname.def;
6646         fi~
6647         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6648       else
6649         ld_shlibs=no
6650       fi
6651       ;;
6652
6653     netbsd*)
6654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6655         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6656         wlarc=
6657       else
6658         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6660       fi
6661       ;;
6662
6663     solaris* | sysv5*)
6664       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6665         ld_shlibs=no
6666         cat <<EOF 1>&2
6667
6668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6669 *** create shared libraries on Solaris systems.  Therefore, libtool
6670 *** is disabling shared libraries support.  We urge you to upgrade GNU
6671 *** binutils to release 2.9.1 or newer.  Another option is to modify
6672 *** your PATH or compiler configuration so that the native linker is
6673 *** used, and then restart.
6674
6675 EOF
6676       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6677         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6678         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6679       else
6680         ld_shlibs=no
6681       fi
6682       ;;
6683
6684     sunos4*)
6685       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6686       wlarc=
6687       hardcode_direct=yes
6688       hardcode_shlibpath_var=no
6689       ;;
6690
6691     *)
6692       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6693         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6694         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6695       else
6696         ld_shlibs=no
6697       fi
6698       ;;
6699     esac
6700
6701     if test "$ld_shlibs" = yes; then
6702       runpath_var=LD_RUN_PATH
6703       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6704       export_dynamic_flag_spec='${wl}--export-dynamic'
6705       # ancient GNU ld didn't support --whole-archive et. al.
6706       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6707         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6708       else
6709         whole_archive_flag_spec=
6710       fi
6711     fi
6712   else
6713     # PORTME fill in a description of your system's linker (not GNU ld)
6714     case $host_os in
6715     aix3*)
6716       allow_undefined_flag=unsupported
6717       always_export_symbols=yes
6718       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'
6719       # Note: this linker hardcodes the directories in LIBPATH if there
6720       # are no directories specified by -L.
6721       hardcode_minus_L=yes
6722       if test "$GCC" = yes && test -z "$link_static_flag"; then
6723         # Neither direct hardcoding nor static linking is supported with a
6724         # broken collect2.
6725         hardcode_direct=unsupported
6726       fi
6727       ;;
6728
6729     aix4* | aix5*)
6730       if test "$host_cpu" = ia64; then
6731         # On IA64, the linker does run time linking by default, so we don't
6732         # have to do anything special.
6733         aix_use_runtimelinking=no
6734         exp_sym_flag='-Bexport'
6735         no_entry_flag=""
6736       else
6737         # If we're using GNU nm, then we don't want the "-C" option.
6738         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6739         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6740           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'
6741         else
6742           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'
6743         fi
6744         aix_use_runtimelinking=no
6745
6746         # Test if we are trying to use run time linking or normal
6747         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6748         # need to do runtime linking.
6749         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6750           for ld_flag in $LDFLAGS; do
6751           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6752             aix_use_runtimelinking=yes
6753             break
6754           fi
6755           done
6756         esac
6757
6758         exp_sym_flag='-bexport'
6759         no_entry_flag='-bnoentry'
6760       fi
6761
6762       # When large executables or shared objects are built, AIX ld can
6763       # have problems creating the table of contents.  If linking a library
6764       # or program results in "error TOC overflow" add -mminimal-toc to
6765       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6766       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6767
6768       archive_cmds=''
6769       hardcode_direct=yes
6770       hardcode_libdir_separator=':'
6771       link_all_deplibs=yes
6772
6773       if test "$GCC" = yes; then
6774         case $host_os in aix4.012|aix4.012.*)
6775         # We only want to do this on AIX 4.2 and lower, the check
6776         # below for broken collect2 doesn't work under 4.3+
6777           collect2name=`${CC} -print-prog-name=collect2`
6778           if test -f "$collect2name" && \
6779            strings "$collect2name" | grep resolve_lib_name >/dev/null
6780           then
6781           # We have reworked collect2
6782           hardcode_direct=yes
6783           else
6784           # We have old collect2
6785           hardcode_direct=unsupported
6786           # It fails to find uninstalled libraries when the uninstalled
6787           # path is not listed in the libpath.  Setting hardcode_minus_L
6788           # to unsupported forces relinking
6789           hardcode_minus_L=yes
6790           hardcode_libdir_flag_spec='-L$libdir'
6791           hardcode_libdir_separator=
6792           fi
6793         esac
6794         shared_flag='-shared'
6795       else
6796         # not using gcc
6797         if test "$host_cpu" = ia64; then
6798         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6799         # chokes on -Wl,-G. The following line is correct:
6800           shared_flag='-G'
6801         else
6802         if test "$aix_use_runtimelinking" = yes; then
6803             shared_flag='${wl}-G'
6804           else
6805             shared_flag='${wl}-bM:SRE'
6806         fi
6807         fi
6808       fi
6809
6810       # It seems that -bexpall does not export symbols beginning with
6811       # underscore (_), so it is better to generate a list of symbols to export.
6812       always_export_symbols=yes
6813       if test "$aix_use_runtimelinking" = yes; then
6814         # Warning - without using the other runtime loading flags (-brtl),
6815         # -berok will link without error, but may produce a broken library.
6816         allow_undefined_flag='-berok'
6817        # Determine the default libpath from the value encoded in an empty executable.
6818        cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h.  */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h.  */
6824
6825 int
6826 main ()
6827 {
6828
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext conftest$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835   (eval $ac_link) 2>conftest.er1
6836   ac_status=$?
6837   grep -v '^ *+' conftest.er1 >conftest.err
6838   rm -f conftest.er1
6839   cat conftest.err >&5
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } &&
6842          { ac_try='test -z "$ac_c_werror_flag"
6843                          || test ! -s conftest.err'
6844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845   (eval $ac_try) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); }; } &&
6849          { ac_try='test -s conftest$ac_exeext'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; }; then
6855
6856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6857 }'`
6858 # Check for a 64-bit object if we didn't find anything.
6859 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; }
6860 }'`; fi
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 fi
6866 rm -f conftest.err conftest.$ac_objext \
6867       conftest$ac_exeext conftest.$ac_ext
6868 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6869
6870        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6871         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6872        else
6873         if test "$host_cpu" = ia64; then
6874           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6875           allow_undefined_flag="-z nodefs"
6876           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6877         else
6878          # Determine the default libpath from the value encoded in an empty executable.
6879          cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885
6886 int
6887 main ()
6888 {
6889
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896   (eval $ac_link) 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } &&
6903          { ac_try='test -z "$ac_c_werror_flag"
6904                          || test ! -s conftest.err'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; } &&
6910          { ac_try='test -s conftest$ac_exeext'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; }; then
6916
6917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6918 }'`
6919 # Check for a 64-bit object if we didn't find anything.
6920 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; }
6921 }'`; fi
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 fi
6927 rm -f conftest.err conftest.$ac_objext \
6928       conftest$ac_exeext conftest.$ac_ext
6929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6930
6931          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6932           # Warning - without using the other run time loading flags,
6933           # -berok will link without error, but may produce a broken library.
6934           no_undefined_flag=' ${wl}-bernotok'
6935           allow_undefined_flag=' ${wl}-berok'
6936           # -bexpall does not export symbols beginning with underscore (_)
6937           always_export_symbols=yes
6938           # Exported symbols can be pulled into shared objects from archives
6939           whole_archive_flag_spec=' '
6940           archive_cmds_need_lc=yes
6941           # This is similar to how AIX traditionally builds it's shared libraries.
6942           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6943         fi
6944       fi
6945       ;;
6946
6947     amigaos*)
6948       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)'
6949       hardcode_libdir_flag_spec='-L$libdir'
6950       hardcode_minus_L=yes
6951       # see comment about different semantics on the GNU ld section
6952       ld_shlibs=no
6953       ;;
6954
6955     bsdi4*)
6956       export_dynamic_flag_spec=-rdynamic
6957       ;;
6958
6959     cygwin* | mingw* | pw32*)
6960       # When not using gcc, we currently assume that we are using
6961       # Microsoft Visual C++.
6962       # hardcode_libdir_flag_spec is actually meaningless, as there is
6963       # no search path for DLLs.
6964       hardcode_libdir_flag_spec=' '
6965       allow_undefined_flag=unsupported
6966       # Tell ltmain to make .lib files, not .a files.
6967       libext=lib
6968       # Tell ltmain to make .dll files, not .so files.
6969       shrext=".dll"
6970       # FIXME: Setting linknames here is a bad hack.
6971       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6972       # The linker will automatically build a .lib file if we build a DLL.
6973       old_archive_From_new_cmds='true'
6974       # FIXME: Should let the user specify the lib program.
6975       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6976       fix_srcfile_path='`cygpath -w "$srcfile"`'
6977       enable_shared_with_static_runtimes=yes
6978       ;;
6979
6980     darwin* | rhapsody*)
6981     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6982       archive_cmds_need_lc=no
6983       case "$host_os" in
6984       rhapsody* | darwin1.[012])
6985         allow_undefined_flag='-undefined suppress'
6986         ;;
6987       *) # Darwin 1.3 on
6988         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6989         ;;
6990       esac
6991       # FIXME: Relying on posixy $() will cause problems for
6992       #        cross-compilation, but unfortunately the echo tests do not
6993       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6994       #        `"' quotes if we put them in here... so don't!
6995         lt_int_apple_cc_single_mod=no
6996         output_verbose_link_cmd='echo'
6997         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6998           lt_int_apple_cc_single_mod=yes
6999         fi
7000         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7001           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7002         else
7003         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7004       fi
7005       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7006       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7007         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7008           archive_expsym_cmds='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}'
7009         else
7010           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7011         fi
7012           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7013       hardcode_direct=no
7014       hardcode_automatic=yes
7015       hardcode_shlibpath_var=unsupported
7016       whole_archive_flag_spec='-all_load $convenience'
7017       link_all_deplibs=yes
7018     fi
7019       ;;
7020
7021     dgux*)
7022       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023       hardcode_libdir_flag_spec='-L$libdir'
7024       hardcode_shlibpath_var=no
7025       ;;
7026
7027     freebsd1*)
7028       ld_shlibs=no
7029       ;;
7030
7031     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7032     # support.  Future versions do this automatically, but an explicit c++rt0.o
7033     # does not break anything, and helps significantly (at the cost of a little
7034     # extra space).
7035     freebsd2.2*)
7036       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7037       hardcode_libdir_flag_spec='-R$libdir'
7038       hardcode_direct=yes
7039       hardcode_shlibpath_var=no
7040       ;;
7041
7042     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7043     freebsd2*)
7044       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7045       hardcode_direct=yes
7046       hardcode_minus_L=yes
7047       hardcode_shlibpath_var=no
7048       ;;
7049
7050     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7051     freebsd*)
7052       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7053       hardcode_libdir_flag_spec='-R$libdir'
7054       hardcode_direct=yes
7055       hardcode_shlibpath_var=no
7056       ;;
7057
7058     hpux9*)
7059       if test "$GCC" = yes; then
7060         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'
7061       else
7062         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'
7063       fi
7064       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7065       hardcode_libdir_separator=:
7066       hardcode_direct=yes
7067
7068       # hardcode_minus_L: Not really in the search PATH,
7069       # but as the default location of the library.
7070       hardcode_minus_L=yes
7071       export_dynamic_flag_spec='${wl}-E'
7072       ;;
7073
7074     hpux10* | hpux11*)
7075       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7076         case "$host_cpu" in
7077         hppa*64*|ia64*)
7078           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7079           ;;
7080         *)
7081           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7082           ;;
7083         esac
7084       else
7085         case "$host_cpu" in
7086         hppa*64*|ia64*)
7087           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7088           ;;
7089         *)
7090           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7091           ;;
7092         esac
7093       fi
7094       if test "$with_gnu_ld" = no; then
7095         case "$host_cpu" in
7096         hppa*64*)
7097           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7098           hardcode_libdir_flag_spec_ld='+b $libdir'
7099           hardcode_libdir_separator=:
7100           hardcode_direct=no
7101           hardcode_shlibpath_var=no
7102           ;;
7103         ia64*)
7104           hardcode_libdir_flag_spec='-L$libdir'
7105           hardcode_direct=no
7106           hardcode_shlibpath_var=no
7107
7108           # hardcode_minus_L: Not really in the search PATH,
7109           # but as the default location of the library.
7110           hardcode_minus_L=yes
7111           ;;
7112         *)
7113           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7114           hardcode_libdir_separator=:
7115           hardcode_direct=yes
7116           export_dynamic_flag_spec='${wl}-E'
7117
7118           # hardcode_minus_L: Not really in the search PATH,
7119           # but as the default location of the library.
7120           hardcode_minus_L=yes
7121           ;;
7122         esac
7123       fi
7124       ;;
7125
7126     irix5* | irix6* | nonstopux*)
7127       if test "$GCC" = yes; then
7128         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'
7129       else
7130         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'
7131         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7132       fi
7133       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7134       hardcode_libdir_separator=:
7135       link_all_deplibs=yes
7136       ;;
7137
7138     netbsd*)
7139       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7140         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7141       else
7142         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7143       fi
7144       hardcode_libdir_flag_spec='-R$libdir'
7145       hardcode_direct=yes
7146       hardcode_shlibpath_var=no
7147       ;;
7148
7149     newsos6)
7150       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7151       hardcode_direct=yes
7152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7153       hardcode_libdir_separator=:
7154       hardcode_shlibpath_var=no
7155       ;;
7156
7157     openbsd*)
7158       hardcode_direct=yes
7159       hardcode_shlibpath_var=no
7160       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7161         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7162         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7163         export_dynamic_flag_spec='${wl}-E'
7164       else
7165        case $host_os in
7166          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7167            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7168            hardcode_libdir_flag_spec='-R$libdir'
7169            ;;
7170          *)
7171            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7172            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7173            ;;
7174        esac
7175       fi
7176       ;;
7177
7178     os2*)
7179       hardcode_libdir_flag_spec='-L$libdir'
7180       hardcode_minus_L=yes
7181       allow_undefined_flag=unsupported
7182       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'
7183       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7184       ;;
7185
7186     osf3*)
7187       if test "$GCC" = yes; then
7188         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7189         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'
7190       else
7191         allow_undefined_flag=' -expect_unresolved \*'
7192         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'
7193       fi
7194       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7195       hardcode_libdir_separator=:
7196       ;;
7197
7198     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7199       if test "$GCC" = yes; then
7200         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7201         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'
7202         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7203       else
7204         allow_undefined_flag=' -expect_unresolved \*'
7205         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'
7206         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7207         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7208
7209         # Both c and cxx compiler support -rpath directly
7210         hardcode_libdir_flag_spec='-rpath $libdir'
7211       fi
7212       hardcode_libdir_separator=:
7213       ;;
7214
7215     sco3.2v5*)
7216       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217       hardcode_shlibpath_var=no
7218       export_dynamic_flag_spec='${wl}-Bexport'
7219       runpath_var=LD_RUN_PATH
7220       hardcode_runpath_var=yes
7221       ;;
7222
7223     solaris*)
7224       no_undefined_flag=' -z text'
7225       if test "$GCC" = yes; then
7226         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7228           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7229       else
7230         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7231         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7232         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7233       fi
7234       hardcode_libdir_flag_spec='-R$libdir'
7235       hardcode_shlibpath_var=no
7236       case $host_os in
7237       solaris2.[0-5] | solaris2.[0-5].*) ;;
7238       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7239         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7240       esac
7241       link_all_deplibs=yes
7242       ;;
7243
7244     sunos4*)
7245       if test "x$host_vendor" = xsequent; then
7246         # Use $CC to link under sequent, because it throws in some extra .o
7247         # files that make .init and .fini sections work.
7248         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7249       else
7250         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7251       fi
7252       hardcode_libdir_flag_spec='-L$libdir'
7253       hardcode_direct=yes
7254       hardcode_minus_L=yes
7255       hardcode_shlibpath_var=no
7256       ;;
7257
7258     sysv4)
7259       case $host_vendor in
7260         sni)
7261           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262           hardcode_direct=yes # is this really true???
7263         ;;
7264         siemens)
7265           ## LD is ld it makes a PLAMLIB
7266           ## CC just makes a GrossModule.
7267           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7268           reload_cmds='$CC -r -o $output$reload_objs'
7269           hardcode_direct=no
7270         ;;
7271         motorola)
7272           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7274         ;;
7275       esac
7276       runpath_var='LD_RUN_PATH'
7277       hardcode_shlibpath_var=no
7278       ;;
7279
7280     sysv4.3*)
7281       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282       hardcode_shlibpath_var=no
7283       export_dynamic_flag_spec='-Bexport'
7284       ;;
7285
7286     sysv4*MP*)
7287       if test -d /usr/nec; then
7288         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289         hardcode_shlibpath_var=no
7290         runpath_var=LD_RUN_PATH
7291         hardcode_runpath_var=yes
7292         ld_shlibs=yes
7293       fi
7294       ;;
7295
7296     sysv4.2uw2*)
7297       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7298       hardcode_direct=yes
7299       hardcode_minus_L=no
7300       hardcode_shlibpath_var=no
7301       hardcode_runpath_var=yes
7302       runpath_var=LD_RUN_PATH
7303       ;;
7304
7305    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7306       no_undefined_flag='${wl}-z ${wl}text'
7307       if test "$GCC" = yes; then
7308         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7309       else
7310         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7311       fi
7312       runpath_var='LD_RUN_PATH'
7313       hardcode_shlibpath_var=no
7314       ;;
7315
7316     sysv5*)
7317       no_undefined_flag=' -z text'
7318       # $CC -shared without GNU ld will not create a library from C++
7319       # object files and a static libstdc++, better avoid it by now
7320       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7322                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7323       hardcode_libdir_flag_spec=
7324       hardcode_shlibpath_var=no
7325       runpath_var='LD_RUN_PATH'
7326       ;;
7327
7328     uts4*)
7329       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330       hardcode_libdir_flag_spec='-L$libdir'
7331       hardcode_shlibpath_var=no
7332       ;;
7333
7334     *)
7335       ld_shlibs=no
7336       ;;
7337     esac
7338   fi
7339
7340 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7341 echo "${ECHO_T}$ld_shlibs" >&6
7342 test "$ld_shlibs" = no && can_build_shared=no
7343
7344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7345 if test "$GCC" = yes; then
7346   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7347 fi
7348
7349 #
7350 # Do we need to explicitly link libc?
7351 #
7352 case "x$archive_cmds_need_lc" in
7353 x|xyes)
7354   # Assume -lc should be added
7355   archive_cmds_need_lc=yes
7356
7357   if test "$enable_shared" = yes && test "$GCC" = yes; then
7358     case $archive_cmds in
7359     *'~'*)
7360       # FIXME: we may have to deal with multi-command sequences.
7361       ;;
7362     '$CC '*)
7363       # Test whether the compiler implicitly links with -lc since on some
7364       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7365       # to ld, don't add -lc before -lgcc.
7366       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7368       $rm conftest*
7369       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7370
7371       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7372   (eval $ac_compile) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); } 2>conftest.err; then
7376         soname=conftest
7377         lib=conftest
7378         libobjs=conftest.$ac_objext
7379         deplibs=
7380         wl=$lt_prog_compiler_wl
7381         compiler_flags=-v
7382         linker_flags=-v
7383         verstring=
7384         output_objdir=.
7385         libname=conftest
7386         lt_save_allow_undefined_flag=$allow_undefined_flag
7387         allow_undefined_flag=
7388         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7389   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }
7393         then
7394           archive_cmds_need_lc=no
7395         else
7396           archive_cmds_need_lc=yes
7397         fi
7398         allow_undefined_flag=$lt_save_allow_undefined_flag
7399       else
7400         cat conftest.err 1>&5
7401       fi
7402       $rm conftest*
7403       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7404 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7405       ;;
7406     esac
7407   fi
7408   ;;
7409 esac
7410
7411 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7412 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7413 hardcode_action=
7414 if test -n "$hardcode_libdir_flag_spec" || \
7415    test -n "$runpath_var " || \
7416    test "X$hardcode_automatic"="Xyes" ; then
7417
7418   # We can hardcode non-existant directories.
7419   if test "$hardcode_direct" != no &&
7420      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7421      # have to relink, otherwise we might link with an installed library
7422      # when we should be linking with a yet-to-be-installed one
7423      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7424      test "$hardcode_minus_L" != no; then
7425     # Linking always hardcodes the temporary library directory.
7426     hardcode_action=relink
7427   else
7428     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7429     hardcode_action=immediate
7430   fi
7431 else
7432   # We cannot hardcode anything, or else we can only hardcode existing
7433   # directories.
7434   hardcode_action=unsupported
7435 fi
7436 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7437 echo "${ECHO_T}$hardcode_action" >&6
7438
7439 if test "$hardcode_action" = relink; then
7440   # Fast installation is not supported
7441   enable_fast_install=no
7442 elif test "$shlibpath_overrides_runpath" = yes ||
7443      test "$enable_shared" = no; then
7444   # Fast installation is not necessary
7445   enable_fast_install=needless
7446 fi
7447
7448 striplib=
7449 old_striplib=
7450 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7451 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7452 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7453   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7454   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7455   echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6
7457 else
7458 # FIXME - insert some real tests, host_os isn't really good enough
7459   case $host_os in
7460    darwin*)
7461        if test -n "$STRIP" ; then
7462          striplib="$STRIP -x"
7463          echo "$as_me:$LINENO: result: yes" >&5
7464 echo "${ECHO_T}yes" >&6
7465        else
7466   echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7468 fi
7469        ;;
7470    *)
7471   echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7473     ;;
7474   esac
7475 fi
7476
7477 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7478 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7479 library_names_spec=
7480 libname_spec='lib$name'
7481 soname_spec=
7482 shrext=".so"
7483 postinstall_cmds=
7484 postuninstall_cmds=
7485 finish_cmds=
7486 finish_eval=
7487 shlibpath_var=
7488 shlibpath_overrides_runpath=unknown
7489 version_type=none
7490 dynamic_linker="$host_os ld.so"
7491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7492 if test "$GCC" = yes; then
7493   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7494   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7495     # if the path contains ";" then we assume it to be the separator
7496     # otherwise default to the standard path separator (i.e. ":") - it is
7497     # assumed that no part of a normal pathname contains ";" but that should
7498     # okay in the real world where ";" in dirpaths is itself problematic.
7499     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7500   else
7501     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7502   fi
7503 else
7504   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7505 fi
7506 need_lib_prefix=unknown
7507 hardcode_into_libs=no
7508
7509 # when you set need_version to no, make sure it does not cause -set_version
7510 # flags to be left without arguments
7511 need_version=unknown
7512
7513 case $host_os in
7514 aix3*)
7515   version_type=linux
7516   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7517   shlibpath_var=LIBPATH
7518
7519   # AIX 3 has no versioning support, so we append a major version to the name.
7520   soname_spec='${libname}${release}${shared_ext}$major'
7521   ;;
7522
7523 aix4* | aix5*)
7524   version_type=linux
7525   need_lib_prefix=no
7526   need_version=no
7527   hardcode_into_libs=yes
7528   if test "$host_cpu" = ia64; then
7529     # AIX 5 supports IA64
7530     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7531     shlibpath_var=LD_LIBRARY_PATH
7532   else
7533     # With GCC up to 2.95.x, collect2 would create an import file
7534     # for dependence libraries.  The import file would start with
7535     # the line `#! .'.  This would cause the generated library to
7536     # depend on `.', always an invalid library.  This was fixed in
7537     # development snapshots of GCC prior to 3.0.
7538     case $host_os in
7539       aix4 | aix4.[01] | aix4.[01].*)
7540       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7541            echo ' yes '
7542            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7543         :
7544       else
7545         can_build_shared=no
7546       fi
7547       ;;
7548     esac
7549     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7550     # soname into executable. Probably we can add versioning support to
7551     # collect2, so additional links can be useful in future.
7552     if test "$aix_use_runtimelinking" = yes; then
7553       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7554       # instead of lib<name>.a to let people know that these are not
7555       # typical AIX shared libraries.
7556       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7557     else
7558       # We preserve .a as extension for shared libraries through AIX4.2
7559       # and later when we are not doing run time linking.
7560       library_names_spec='${libname}${release}.a $libname.a'
7561       soname_spec='${libname}${release}${shared_ext}$major'
7562     fi
7563     shlibpath_var=LIBPATH
7564   fi
7565   ;;
7566
7567 amigaos*)
7568   library_names_spec='$libname.ixlibrary $libname.a'
7569   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7570   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'
7571   ;;
7572
7573 beos*)
7574   library_names_spec='${libname}${shared_ext}'
7575   dynamic_linker="$host_os ld.so"
7576   shlibpath_var=LIBRARY_PATH
7577   ;;
7578
7579 bsdi4*)
7580   version_type=linux
7581   need_version=no
7582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7583   soname_spec='${libname}${release}${shared_ext}$major'
7584   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7585   shlibpath_var=LD_LIBRARY_PATH
7586   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7587   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7588   # the default ld.so.conf also contains /usr/contrib/lib and
7589   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7590   # libtool to hard-code these into programs
7591   ;;
7592
7593 cygwin* | mingw* | pw32*)
7594   version_type=windows
7595   shrext=".dll"
7596   need_version=no
7597   need_lib_prefix=no
7598
7599   case $GCC,$host_os in
7600   yes,cygwin* | yes,mingw* | yes,pw32*)
7601     library_names_spec='$libname.dll.a'
7602     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7603     postinstall_cmds='base_file=`basename \${file}`~
7604       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7605       dldir=$destdir/`dirname \$dlpath`~
7606       test -d \$dldir || mkdir -p \$dldir~
7607       $install_prog $dir/$dlname \$dldir/$dlname'
7608     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7609       dlpath=$dir/\$dldll~
7610        $rm \$dlpath'
7611     shlibpath_overrides_runpath=yes
7612
7613     case $host_os in
7614     cygwin*)
7615       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7616       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7617       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7618       ;;
7619     mingw*)
7620       # MinGW DLLs use traditional 'lib' prefix
7621       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7622       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7623       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7624         # It is most probably a Windows format PATH printed by
7625         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7626         # path with ; separators, and with drive letters. We can handle the
7627         # drive letters (cygwin fileutils understands them), so leave them,
7628         # especially as we might pass files found there to a mingw objdump,
7629         # which wouldn't understand a cygwinified path. Ahh.
7630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7631       else
7632         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7633       fi
7634       ;;
7635     pw32*)
7636       # pw32 DLLs use 'pw' prefix rather than 'lib'
7637       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7638       ;;
7639     esac
7640     ;;
7641
7642   *)
7643     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7644     ;;
7645   esac
7646   dynamic_linker='Win32 ld.exe'
7647   # FIXME: first we should search . and the directory the executable is in
7648   shlibpath_var=PATH
7649   ;;
7650
7651 darwin* | rhapsody*)
7652   dynamic_linker="$host_os dyld"
7653   version_type=darwin
7654   need_lib_prefix=no
7655   need_version=no
7656   # FIXME: Relying on posixy $() will cause problems for
7657   #        cross-compilation, but unfortunately the echo tests do not
7658   #        yet detect zsh echo's removal of \ escapes.
7659   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7660   soname_spec='${libname}${release}${major}$shared_ext'
7661   shlibpath_overrides_runpath=yes
7662   shlibpath_var=DYLD_LIBRARY_PATH
7663   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7664   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7665   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7666   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"`
7667   fi
7668   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7669   ;;
7670
7671 dgux*)
7672   version_type=linux
7673   need_lib_prefix=no
7674   need_version=no
7675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7676   soname_spec='${libname}${release}${shared_ext}$major'
7677   shlibpath_var=LD_LIBRARY_PATH
7678   ;;
7679
7680 freebsd1*)
7681   dynamic_linker=no
7682   ;;
7683
7684 freebsd*)
7685   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7686   version_type=freebsd-$objformat
7687   case $version_type in
7688     freebsd-elf*)
7689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7690       need_version=no
7691       need_lib_prefix=no
7692       ;;
7693     freebsd-*)
7694       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7695       need_version=yes
7696       ;;
7697   esac
7698   shlibpath_var=LD_LIBRARY_PATH
7699   case $host_os in
7700   freebsd2*)
7701     shlibpath_overrides_runpath=yes
7702     ;;
7703   freebsd3.01* | freebsdelf3.01*)
7704     shlibpath_overrides_runpath=yes
7705     hardcode_into_libs=yes
7706     ;;
7707   *) # from 3.2 on
7708     shlibpath_overrides_runpath=no
7709     hardcode_into_libs=yes
7710     ;;
7711   esac
7712   ;;
7713
7714 gnu*)
7715   version_type=linux
7716   need_lib_prefix=no
7717   need_version=no
7718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7719   soname_spec='${libname}${release}${shared_ext}$major'
7720   shlibpath_var=LD_LIBRARY_PATH
7721   hardcode_into_libs=yes
7722   ;;
7723
7724 hpux9* | hpux10* | hpux11*)
7725   # Give a soname corresponding to the major version so that dld.sl refuses to
7726   # link against other versions.
7727   version_type=sunos
7728   need_lib_prefix=no
7729   need_version=no
7730   case "$host_cpu" in
7731   ia64*)
7732     shrext='.so'
7733     hardcode_into_libs=yes
7734     dynamic_linker="$host_os dld.so"
7735     shlibpath_var=LD_LIBRARY_PATH
7736     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7738     soname_spec='${libname}${release}${shared_ext}$major'
7739     if test "X$HPUX_IA64_MODE" = X32; then
7740       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7741     else
7742       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7743     fi
7744     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7745     ;;
7746    hppa*64*)
7747      shrext='.sl'
7748      hardcode_into_libs=yes
7749      dynamic_linker="$host_os dld.sl"
7750      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7751      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7752      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7753      soname_spec='${libname}${release}${shared_ext}$major'
7754      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7755      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7756      ;;
7757    *)
7758     shrext='.sl'
7759     dynamic_linker="$host_os dld.sl"
7760     shlibpath_var=SHLIB_PATH
7761     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763     soname_spec='${libname}${release}${shared_ext}$major'
7764     ;;
7765   esac
7766   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7767   postinstall_cmds='chmod 555 $lib'
7768   ;;
7769
7770 irix5* | irix6* | nonstopux*)
7771   case $host_os in
7772     nonstopux*) version_type=nonstopux ;;
7773     *)
7774         if test "$lt_cv_prog_gnu_ld" = yes; then
7775                 version_type=linux
7776         else
7777                 version_type=irix
7778         fi ;;
7779   esac
7780   need_lib_prefix=no
7781   need_version=no
7782   soname_spec='${libname}${release}${shared_ext}$major'
7783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7784   case $host_os in
7785   irix5* | nonstopux*)
7786     libsuff= shlibsuff=
7787     ;;
7788   *)
7789     case $LD in # libtool.m4 will add one of these switches to LD
7790     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7791       libsuff= shlibsuff= libmagic=32-bit;;
7792     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7793       libsuff=32 shlibsuff=N32 libmagic=N32;;
7794     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7795       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7796     *) libsuff= shlibsuff= libmagic=never-match;;
7797     esac
7798     ;;
7799   esac
7800   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7801   shlibpath_overrides_runpath=no
7802   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7803   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7804   hardcode_into_libs=yes
7805   ;;
7806
7807 # No shared lib support for Linux oldld, aout, or coff.
7808 linux*oldld* | linux*aout* | linux*coff*)
7809   dynamic_linker=no
7810   ;;
7811
7812 # This must be Linux ELF.
7813 linux*)
7814   version_type=linux
7815   need_lib_prefix=no
7816   need_version=no
7817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818   soname_spec='${libname}${release}${shared_ext}$major'
7819   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7820   shlibpath_var=LD_LIBRARY_PATH
7821   shlibpath_overrides_runpath=no
7822   # This implies no fast_install, which is unacceptable.
7823   # Some rework will be needed to allow for fast_install
7824   # before this can be enabled.
7825   hardcode_into_libs=yes
7826
7827   # We used to test for /lib/ld.so.1 and disable shared libraries on
7828   # powerpc, because MkLinux only supported shared libraries with the
7829   # GNU dynamic linker.  Since this was broken with cross compilers,
7830   # most powerpc-linux boxes support dynamic linking these days and
7831   # people can always --disable-shared, the test was removed, and we
7832   # assume the GNU/Linux dynamic linker is in use.
7833   dynamic_linker='GNU/Linux ld.so'
7834   ;;
7835
7836 netbsd*)
7837   version_type=sunos
7838   need_lib_prefix=no
7839   need_version=no
7840   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7842     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7843     dynamic_linker='NetBSD (a.out) ld.so'
7844   else
7845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7846     soname_spec='${libname}${release}${shared_ext}$major'
7847     dynamic_linker='NetBSD ld.elf_so'
7848   fi
7849   shlibpath_var=LD_LIBRARY_PATH
7850   shlibpath_overrides_runpath=yes
7851   hardcode_into_libs=yes
7852   ;;
7853
7854 newsos6)
7855   version_type=linux
7856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857   shlibpath_var=LD_LIBRARY_PATH
7858   shlibpath_overrides_runpath=yes
7859   ;;
7860
7861 nto-qnx)
7862   version_type=linux
7863   need_lib_prefix=no
7864   need_version=no
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866   soname_spec='${libname}${release}${shared_ext}$major'
7867   shlibpath_var=LD_LIBRARY_PATH
7868   shlibpath_overrides_runpath=yes
7869   ;;
7870
7871 openbsd*)
7872   version_type=sunos
7873   need_lib_prefix=no
7874   need_version=no
7875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7877   shlibpath_var=LD_LIBRARY_PATH
7878   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7879     case $host_os in
7880       openbsd2.[89] | openbsd2.[89].*)
7881         shlibpath_overrides_runpath=no
7882         ;;
7883       *)
7884         shlibpath_overrides_runpath=yes
7885         ;;
7886       esac
7887   else
7888     shlibpath_overrides_runpath=yes
7889   fi
7890   ;;
7891
7892 os2*)
7893   libname_spec='$name'
7894   shrext=".dll"
7895   need_lib_prefix=no
7896   library_names_spec='$libname${shared_ext} $libname.a'
7897   dynamic_linker='OS/2 ld.exe'
7898   shlibpath_var=LIBPATH
7899   ;;
7900
7901 osf3* | osf4* | osf5*)
7902   version_type=osf
7903   need_lib_prefix=no
7904   need_version=no
7905   soname_spec='${libname}${release}${shared_ext}$major'
7906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7907   shlibpath_var=LD_LIBRARY_PATH
7908   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7909   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7910   ;;
7911
7912 sco3.2v5*)
7913   version_type=osf
7914   soname_spec='${libname}${release}${shared_ext}$major'
7915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   ;;
7918
7919 solaris*)
7920   version_type=linux
7921   need_lib_prefix=no
7922   need_version=no
7923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924   soname_spec='${libname}${release}${shared_ext}$major'
7925   shlibpath_var=LD_LIBRARY_PATH
7926   shlibpath_overrides_runpath=yes
7927   hardcode_into_libs=yes
7928   # ldd complains unless libraries are executable
7929   postinstall_cmds='chmod +x $lib'
7930   ;;
7931
7932 sunos4*)
7933   version_type=sunos
7934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7935   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7936   shlibpath_var=LD_LIBRARY_PATH
7937   shlibpath_overrides_runpath=yes
7938   if test "$with_gnu_ld" = yes; then
7939     need_lib_prefix=no
7940   fi
7941   need_version=yes
7942   ;;
7943
7944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7945   version_type=linux
7946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947   soname_spec='${libname}${release}${shared_ext}$major'
7948   shlibpath_var=LD_LIBRARY_PATH
7949   case $host_vendor in
7950     sni)
7951       shlibpath_overrides_runpath=no
7952       need_lib_prefix=no
7953       export_dynamic_flag_spec='${wl}-Blargedynsym'
7954       runpath_var=LD_RUN_PATH
7955       ;;
7956     siemens)
7957       need_lib_prefix=no
7958       ;;
7959     motorola)
7960       need_lib_prefix=no
7961       need_version=no
7962       shlibpath_overrides_runpath=no
7963       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7964       ;;
7965   esac
7966   ;;
7967
7968 sysv4*MP*)
7969   if test -d /usr/nec ;then
7970     version_type=linux
7971     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7972     soname_spec='$libname${shared_ext}.$major'
7973     shlibpath_var=LD_LIBRARY_PATH
7974   fi
7975   ;;
7976
7977 uts4*)
7978   version_type=linux
7979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980   soname_spec='${libname}${release}${shared_ext}$major'
7981   shlibpath_var=LD_LIBRARY_PATH
7982   ;;
7983
7984 *)
7985   dynamic_linker=no
7986   ;;
7987 esac
7988 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7989 echo "${ECHO_T}$dynamic_linker" >&6
7990 test "$dynamic_linker" = no && can_build_shared=no
7991
7992 if test "x$enable_dlopen" != xyes; then
7993   enable_dlopen=unknown
7994   enable_dlopen_self=unknown
7995   enable_dlopen_self_static=unknown
7996 else
7997   lt_cv_dlopen=no
7998   lt_cv_dlopen_libs=
7999
8000   case $host_os in
8001   beos*)
8002     lt_cv_dlopen="load_add_on"
8003     lt_cv_dlopen_libs=
8004     lt_cv_dlopen_self=yes
8005     ;;
8006
8007   mingw* | pw32*)
8008     lt_cv_dlopen="LoadLibrary"
8009     lt_cv_dlopen_libs=
8010    ;;
8011
8012   cygwin*)
8013     lt_cv_dlopen="dlopen"
8014     lt_cv_dlopen_libs=
8015    ;;
8016
8017   darwin*)
8018   # if libdl is installed we need to link against it
8019     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8020 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-ldl  $LIBS"
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032
8033 /* Override any gcc2 internal prototype to avoid an error.  */
8034 #ifdef __cplusplus
8035 extern "C"
8036 #endif
8037 /* We use char because int might match the return type of a gcc2
8038    builtin and then its argument prototype would still apply.  */
8039 char dlopen ();
8040 int
8041 main ()
8042 {
8043 dlopen ();
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050   (eval $ac_link) 2>conftest.er1
8051   ac_status=$?
8052   grep -v '^ *+' conftest.er1 >conftest.err
8053   rm -f conftest.er1
8054   cat conftest.err >&5
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } &&
8057          { ac_try='test -z "$ac_c_werror_flag"
8058                          || test ! -s conftest.err'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; } &&
8064          { ac_try='test -s conftest$ac_exeext'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; }; then
8070   ac_cv_lib_dl_dlopen=yes
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_cv_lib_dl_dlopen=no
8076 fi
8077 rm -f conftest.err conftest.$ac_objext \
8078       conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8080 fi
8081 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8082 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8083 if test $ac_cv_lib_dl_dlopen = yes; then
8084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8085 else
8086
8087     lt_cv_dlopen="dyld"
8088     lt_cv_dlopen_libs=
8089     lt_cv_dlopen_self=yes
8090
8091 fi
8092
8093    ;;
8094
8095   *)
8096     echo "$as_me:$LINENO: checking for shl_load" >&5
8097 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8098 if test "${ac_cv_func_shl_load+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8109 #define shl_load innocuous_shl_load
8110
8111 /* System header to define __stub macros and hopefully few prototypes,
8112     which can conflict with char shl_load (); below.
8113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114     <limits.h> exists even on freestanding compilers.  */
8115
8116 #ifdef __STDC__
8117 # include <limits.h>
8118 #else
8119 # include <assert.h>
8120 #endif
8121
8122 #undef shl_load
8123
8124 /* Override any gcc2 internal prototype to avoid an error.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 {
8128 #endif
8129 /* We use char because int might match the return type of a gcc2
8130    builtin and then its argument prototype would still apply.  */
8131 char shl_load ();
8132 /* The GNU C library defines this for functions which it implements
8133     to always fail with ENOSYS.  Some functions are actually named
8134     something starting with __ and the normal name is an alias.  */
8135 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8136 choke me
8137 #else
8138 char (*f) () = shl_load;
8139 #endif
8140 #ifdef __cplusplus
8141 }
8142 #endif
8143
8144 int
8145 main ()
8146 {
8147 return f != shl_load;
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154   (eval $ac_link) 2>conftest.er1
8155   ac_status=$?
8156   grep -v '^ *+' conftest.er1 >conftest.err
8157   rm -f conftest.er1
8158   cat conftest.err >&5
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } &&
8161          { ac_try='test -z "$ac_c_werror_flag"
8162                          || test ! -s conftest.err'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   ac_cv_func_shl_load=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ac_cv_func_shl_load=no
8180 fi
8181 rm -f conftest.err conftest.$ac_objext \
8182       conftest$ac_exeext conftest.$ac_ext
8183 fi
8184 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8185 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8186 if test $ac_cv_func_shl_load = yes; then
8187   lt_cv_dlopen="shl_load"
8188 else
8189   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8190 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-ldld  $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 /* Override any gcc2 internal prototype to avoid an error.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char shl_load ();
8210 int
8211 main ()
8212 {
8213 shl_load ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220   (eval $ac_link) 2>conftest.er1
8221   ac_status=$?
8222   grep -v '^ *+' conftest.er1 >conftest.err
8223   rm -f conftest.er1
8224   cat conftest.err >&5
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -z "$ac_c_werror_flag"
8228                          || test ! -s conftest.err'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; } &&
8234          { ac_try='test -s conftest$ac_exeext'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_cv_lib_dld_shl_load=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_lib_dld_shl_load=no
8246 fi
8247 rm -f conftest.err conftest.$ac_objext \
8248       conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8250 fi
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8253 if test $ac_cv_lib_dld_shl_load = yes; then
8254   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8255 else
8256   echo "$as_me:$LINENO: checking for dlopen" >&5
8257 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8258 if test "${ac_cv_func_dlopen+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8269 #define dlopen innocuous_dlopen
8270
8271 /* System header to define __stub macros and hopefully few prototypes,
8272     which can conflict with char dlopen (); below.
8273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274     <limits.h> exists even on freestanding compilers.  */
8275
8276 #ifdef __STDC__
8277 # include <limits.h>
8278 #else
8279 # include <assert.h>
8280 #endif
8281
8282 #undef dlopen
8283
8284 /* Override any gcc2 internal prototype to avoid an error.  */
8285 #ifdef __cplusplus
8286 extern "C"
8287 {
8288 #endif
8289 /* We use char because int might match the return type of a gcc2
8290    builtin and then its argument prototype would still apply.  */
8291 char dlopen ();
8292 /* The GNU C library defines this for functions which it implements
8293     to always fail with ENOSYS.  Some functions are actually named
8294     something starting with __ and the normal name is an alias.  */
8295 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8296 choke me
8297 #else
8298 char (*f) () = dlopen;
8299 #endif
8300 #ifdef __cplusplus
8301 }
8302 #endif
8303
8304 int
8305 main ()
8306 {
8307 return f != dlopen;
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314   (eval $ac_link) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } &&
8321          { ac_try='test -z "$ac_c_werror_flag"
8322                          || test ! -s conftest.err'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; } &&
8328          { ac_try='test -s conftest$ac_exeext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_func_dlopen=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_func_dlopen=no
8340 fi
8341 rm -f conftest.err conftest.$ac_objext \
8342       conftest$ac_exeext conftest.$ac_ext
8343 fi
8344 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8345 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8346 if test $ac_cv_func_dlopen = yes; then
8347   lt_cv_dlopen="dlopen"
8348 else
8349   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8350 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   ac_check_lib_save_LIBS=$LIBS
8355 LIBS="-ldl  $LIBS"
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362
8363 /* Override any gcc2 internal prototype to avoid an error.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 /* We use char because int might match the return type of a gcc2
8368    builtin and then its argument prototype would still apply.  */
8369 char dlopen ();
8370 int
8371 main ()
8372 {
8373 dlopen ();
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag"
8388                          || test ! -s conftest.err'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   ac_cv_lib_dl_dlopen=yes
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ac_cv_lib_dl_dlopen=no
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408       conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8412 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8413 if test $ac_cv_lib_dl_dlopen = yes; then
8414   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8415 else
8416   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8417 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8418 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-lsvld  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429
8430 /* Override any gcc2 internal prototype to avoid an error.  */
8431 #ifdef __cplusplus
8432 extern "C"
8433 #endif
8434 /* We use char because int might match the return type of a gcc2
8435    builtin and then its argument prototype would still apply.  */
8436 char dlopen ();
8437 int
8438 main ()
8439 {
8440 dlopen ();
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447   (eval $ac_link) 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag"
8455                          || test ! -s conftest.err'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; } &&
8461          { ac_try='test -s conftest$ac_exeext'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_svld_dlopen=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_svld_dlopen=no
8473 fi
8474 rm -f conftest.err conftest.$ac_objext \
8475       conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8477 fi
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480 if test $ac_cv_lib_svld_dlopen = yes; then
8481   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8482 else
8483   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-ldld  $LIBS"
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496
8497 /* Override any gcc2 internal prototype to avoid an error.  */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 /* We use char because int might match the return type of a gcc2
8502    builtin and then its argument prototype would still apply.  */
8503 char dld_link ();
8504 int
8505 main ()
8506 {
8507 dld_link ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514   (eval $ac_link) 2>conftest.er1
8515   ac_status=$?
8516   grep -v '^ *+' conftest.er1 >conftest.err
8517   rm -f conftest.er1
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } &&
8521          { ac_try='test -z "$ac_c_werror_flag"
8522                          || test ! -s conftest.err'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; } &&
8528          { ac_try='test -s conftest$ac_exeext'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534   ac_cv_lib_dld_dld_link=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539 ac_cv_lib_dld_dld_link=no
8540 fi
8541 rm -f conftest.err conftest.$ac_objext \
8542       conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8544 fi
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8547 if test $ac_cv_lib_dld_dld_link = yes; then
8548   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8549 fi
8550
8551
8552 fi
8553
8554
8555 fi
8556
8557
8558 fi
8559
8560
8561 fi
8562
8563
8564 fi
8565
8566     ;;
8567   esac
8568
8569   if test "x$lt_cv_dlopen" != xno; then
8570     enable_dlopen=yes
8571   else
8572     enable_dlopen=no
8573   fi
8574
8575   case $lt_cv_dlopen in
8576   dlopen)
8577     save_CPPFLAGS="$CPPFLAGS"
8578     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8579
8580     save_LDFLAGS="$LDFLAGS"
8581     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8582
8583     save_LIBS="$LIBS"
8584     LIBS="$lt_cv_dlopen_libs $LIBS"
8585
8586     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8587 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8588 if test "${lt_cv_dlopen_self+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591           if test "$cross_compiling" = yes; then :
8592   lt_cv_dlopen_self=cross
8593 else
8594   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8595   lt_status=$lt_dlunknown
8596   cat > conftest.$ac_ext <<EOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8599
8600 #if HAVE_DLFCN_H
8601 #include <dlfcn.h>
8602 #endif
8603
8604 #include <stdio.h>
8605
8606 #ifdef RTLD_GLOBAL
8607 #  define LT_DLGLOBAL           RTLD_GLOBAL
8608 #else
8609 #  ifdef DL_GLOBAL
8610 #    define LT_DLGLOBAL         DL_GLOBAL
8611 #  else
8612 #    define LT_DLGLOBAL         0
8613 #  endif
8614 #endif
8615
8616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8617    find out it does not work in some platform. */
8618 #ifndef LT_DLLAZY_OR_NOW
8619 #  ifdef RTLD_LAZY
8620 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8621 #  else
8622 #    ifdef DL_LAZY
8623 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8624 #    else
8625 #      ifdef RTLD_NOW
8626 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8627 #      else
8628 #        ifdef DL_NOW
8629 #          define LT_DLLAZY_OR_NOW      DL_NOW
8630 #        else
8631 #          define LT_DLLAZY_OR_NOW      0
8632 #        endif
8633 #      endif
8634 #    endif
8635 #  endif
8636 #endif
8637
8638 #ifdef __cplusplus
8639 extern "C" void exit (int);
8640 #endif
8641
8642 void fnord() { int i=42;}
8643 int main ()
8644 {
8645   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8646   int status = $lt_dlunknown;
8647
8648   if (self)
8649     {
8650       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8651       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8652       /* dlclose (self); */
8653     }
8654
8655     exit (status);
8656 }
8657 EOF
8658   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659   (eval $ac_link) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8663     (./conftest; exit; ) 2>/dev/null
8664     lt_status=$?
8665     case x$lt_status in
8666       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8667       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8668       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8669     esac
8670   else :
8671     # compilation failed
8672     lt_cv_dlopen_self=no
8673   fi
8674 fi
8675 rm -fr conftest*
8676
8677
8678 fi
8679 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8680 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8681
8682     if test "x$lt_cv_dlopen_self" = xyes; then
8683       LDFLAGS="$LDFLAGS $link_static_flag"
8684       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8685 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8686 if test "${lt_cv_dlopen_self_static+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689           if test "$cross_compiling" = yes; then :
8690   lt_cv_dlopen_self_static=cross
8691 else
8692   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8693   lt_status=$lt_dlunknown
8694   cat > conftest.$ac_ext <<EOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8697
8698 #if HAVE_DLFCN_H
8699 #include <dlfcn.h>
8700 #endif
8701
8702 #include <stdio.h>
8703
8704 #ifdef RTLD_GLOBAL
8705 #  define LT_DLGLOBAL           RTLD_GLOBAL
8706 #else
8707 #  ifdef DL_GLOBAL
8708 #    define LT_DLGLOBAL         DL_GLOBAL
8709 #  else
8710 #    define LT_DLGLOBAL         0
8711 #  endif
8712 #endif
8713
8714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715    find out it does not work in some platform. */
8716 #ifndef LT_DLLAZY_OR_NOW
8717 #  ifdef RTLD_LAZY
8718 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8719 #  else
8720 #    ifdef DL_LAZY
8721 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8722 #    else
8723 #      ifdef RTLD_NOW
8724 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8725 #      else
8726 #        ifdef DL_NOW
8727 #          define LT_DLLAZY_OR_NOW      DL_NOW
8728 #        else
8729 #          define LT_DLLAZY_OR_NOW      0
8730 #        endif
8731 #      endif
8732 #    endif
8733 #  endif
8734 #endif
8735
8736 #ifdef __cplusplus
8737 extern "C" void exit (int);
8738 #endif
8739
8740 void fnord() { int i=42;}
8741 int main ()
8742 {
8743   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744   int status = $lt_dlunknown;
8745
8746   if (self)
8747     {
8748       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8749       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750       /* dlclose (self); */
8751     }
8752
8753     exit (status);
8754 }
8755 EOF
8756   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757   (eval $ac_link) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761     (./conftest; exit; ) 2>/dev/null
8762     lt_status=$?
8763     case x$lt_status in
8764       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8765       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8766       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8767     esac
8768   else :
8769     # compilation failed
8770     lt_cv_dlopen_self_static=no
8771   fi
8772 fi
8773 rm -fr conftest*
8774
8775
8776 fi
8777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8778 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8779     fi
8780
8781     CPPFLAGS="$save_CPPFLAGS"
8782     LDFLAGS="$save_LDFLAGS"
8783     LIBS="$save_LIBS"
8784     ;;
8785   esac
8786
8787   case $lt_cv_dlopen_self in
8788   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8789   *) enable_dlopen_self=unknown ;;
8790   esac
8791
8792   case $lt_cv_dlopen_self_static in
8793   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8794   *) enable_dlopen_self_static=unknown ;;
8795   esac
8796 fi
8797
8798
8799 # Report which librarie types wil actually be built
8800 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8801 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8802 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8803 echo "${ECHO_T}$can_build_shared" >&6
8804
8805 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8806 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8807 test "$can_build_shared" = "no" && enable_shared=no
8808
8809 # On AIX, shared libraries and static libraries use the same namespace, and
8810 # are all built from PIC.
8811 case "$host_os" in
8812 aix3*)
8813   test "$enable_shared" = yes && enable_static=no
8814   if test -n "$RANLIB"; then
8815     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8816     postinstall_cmds='$RANLIB $lib'
8817   fi
8818   ;;
8819
8820 aix4*)
8821   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8822     test "$enable_shared" = yes && enable_static=no
8823   fi
8824   ;;
8825   darwin* | rhapsody*)
8826   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8827     archive_cmds_need_lc=no
8828     case "$host_os" in
8829     rhapsody* | darwin1.[012])
8830       allow_undefined_flag='-undefined suppress'
8831       ;;
8832     *) # Darwin 1.3 on
8833       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8834       ;;
8835     esac
8836     # FIXME: Relying on posixy $() will cause problems for
8837     #        cross-compilation, but unfortunately the echo tests do not
8838     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8839     #          `"' quotes if we put them in here... so don't!
8840                 output_verbose_link_cmd='echo'
8841     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8842     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8843     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8844                   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}'
8845                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8846     hardcode_direct=no
8847     hardcode_automatic=yes
8848     hardcode_shlibpath_var=unsupported
8849     whole_archive_flag_spec='-all_load $convenience'
8850     link_all_deplibs=yes
8851     fi
8852     ;;
8853 esac
8854 echo "$as_me:$LINENO: result: $enable_shared" >&5
8855 echo "${ECHO_T}$enable_shared" >&6
8856
8857 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8858 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8859 # Make sure either enable_shared or enable_static is yes.
8860 test "$enable_shared" = yes || enable_static=yes
8861 echo "$as_me:$LINENO: result: $enable_static" >&5
8862 echo "${ECHO_T}$enable_static" >&6
8863
8864 # The else clause should only fire when bootstrapping the
8865 # libtool distribution, otherwise you forgot to ship ltmain.sh
8866 # with your package, and you will get complaints that there are
8867 # no rules to generate ltmain.sh.
8868 if test -f "$ltmain"; then
8869   # See if we are running on zsh, and set the options which allow our commands through
8870   # without removal of \ escapes.
8871   if test -n "${ZSH_VERSION+set}" ; then
8872     setopt NO_GLOB_SUBST
8873   fi
8874   # Now quote all the things that may contain metacharacters while being
8875   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8876   # variables and quote the copies for generation of the libtool script.
8877   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8878     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8879     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8880     deplibs_check_method reload_flag reload_cmds need_locks \
8881     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8882     lt_cv_sys_global_symbol_to_c_name_address \
8883     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8884     old_postinstall_cmds old_postuninstall_cmds \
8885     compiler \
8886     CC \
8887     LD \
8888     lt_prog_compiler_wl \
8889     lt_prog_compiler_pic \
8890     lt_prog_compiler_static \
8891     lt_prog_compiler_no_builtin_flag \
8892     export_dynamic_flag_spec \
8893     thread_safe_flag_spec \
8894     whole_archive_flag_spec \
8895     enable_shared_with_static_runtimes \
8896     old_archive_cmds \
8897     old_archive_from_new_cmds \
8898     predep_objects \
8899     postdep_objects \
8900     predeps \
8901     postdeps \
8902     compiler_lib_search_path \
8903     archive_cmds \
8904     archive_expsym_cmds \
8905     postinstall_cmds \
8906     postuninstall_cmds \
8907     old_archive_from_expsyms_cmds \
8908     allow_undefined_flag \
8909     no_undefined_flag \
8910     export_symbols_cmds \
8911     hardcode_libdir_flag_spec \
8912     hardcode_libdir_flag_spec_ld \
8913     hardcode_libdir_separator \
8914     hardcode_automatic \
8915     module_cmds \
8916     module_expsym_cmds \
8917     lt_cv_prog_compiler_c_o \
8918     exclude_expsyms \
8919     include_expsyms; do
8920
8921     case $var in
8922     old_archive_cmds | \
8923     old_archive_from_new_cmds | \
8924     archive_cmds | \
8925     archive_expsym_cmds | \
8926     module_cmds | \
8927     module_expsym_cmds | \
8928     old_archive_from_expsyms_cmds | \
8929     export_symbols_cmds | \
8930     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8931     postinstall_cmds | postuninstall_cmds | \
8932     old_postinstall_cmds | old_postuninstall_cmds | \
8933     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8934       # Double-quote double-evaled strings.
8935       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8936       ;;
8937     *)
8938       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8939       ;;
8940     esac
8941   done
8942
8943   case $lt_echo in
8944   *'\$0 --fallback-echo"')
8945     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8946     ;;
8947   esac
8948
8949 cfgfile="${ofile}T"
8950   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8951   $rm -f "$cfgfile"
8952   { echo "$as_me:$LINENO: creating $ofile" >&5
8953 echo "$as_me: creating $ofile" >&6;}
8954
8955   cat <<__EOF__ >> "$cfgfile"
8956 #! $SHELL
8957
8958 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8959 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8961 #
8962 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8963 # Free Software Foundation, Inc.
8964 #
8965 # This file is part of GNU Libtool:
8966 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8967 #
8968 # This program is free software; you can redistribute it and/or modify
8969 # it under the terms of the GNU General Public License as published by
8970 # the Free Software Foundation; either version 2 of the License, or
8971 # (at your option) any later version.
8972 #
8973 # This program is distributed in the hope that it will be useful, but
8974 # WITHOUT ANY WARRANTY; without even the implied warranty of
8975 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8976 # General Public License for more details.
8977 #
8978 # You should have received a copy of the GNU General Public License
8979 # along with this program; if not, write to the Free Software
8980 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8981 #
8982 # As a special exception to the GNU General Public License, if you
8983 # distribute this file as part of a program that contains a
8984 # configuration script generated by Autoconf, you may include it under
8985 # the same distribution terms that you use for the rest of that program.
8986
8987 # A sed program that does not truncate output.
8988 SED=$lt_SED
8989
8990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8991 Xsed="$SED -e s/^X//"
8992
8993 # The HP-UX ksh and POSIX shell print the target directory to stdout
8994 # if CDPATH is set.
8995 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8996
8997 # The names of the tagged configurations supported by this script.
8998 available_tags=
8999
9000 # ### BEGIN LIBTOOL CONFIG
9001
9002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9003
9004 # Shell to use when invoking shell scripts.
9005 SHELL=$lt_SHELL
9006
9007 # Whether or not to build shared libraries.
9008 build_libtool_libs=$enable_shared
9009
9010 # Whether or not to build static libraries.
9011 build_old_libs=$enable_static
9012
9013 # Whether or not to add -lc for building shared libraries.
9014 build_libtool_need_lc=$archive_cmds_need_lc
9015
9016 # Whether or not to disallow shared libs when runtime libs are static
9017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9018
9019 # Whether or not to optimize for fast installation.
9020 fast_install=$enable_fast_install
9021
9022 # The host system.
9023 host_alias=$host_alias
9024 host=$host
9025
9026 # An echo program that does not interpret backslashes.
9027 echo=$lt_echo
9028
9029 # The archiver.
9030 AR=$lt_AR
9031 AR_FLAGS=$lt_AR_FLAGS
9032
9033 # A C compiler.
9034 LTCC=$lt_LTCC
9035
9036 # A language-specific compiler.
9037 CC=$lt_compiler
9038
9039 # Is the compiler the GNU C compiler?
9040 with_gcc=$GCC
9041
9042 # An ERE matcher.
9043 EGREP=$lt_EGREP
9044
9045 # The linker used to build libraries.
9046 LD=$lt_LD
9047
9048 # Whether we need hard or soft links.
9049 LN_S=$lt_LN_S
9050
9051 # A BSD-compatible nm program.
9052 NM=$lt_NM
9053
9054 # A symbol stripping program
9055 STRIP=$STRIP
9056
9057 # Used to examine libraries when file_magic_cmd begins "file"
9058 MAGIC_CMD=$MAGIC_CMD
9059
9060 # Used on cygwin: DLL creation program.
9061 DLLTOOL="$DLLTOOL"
9062
9063 # Used on cygwin: object dumper.
9064 OBJDUMP="$OBJDUMP"
9065
9066 # Used on cygwin: assembler.
9067 AS="$AS"
9068
9069 # The name of the directory that contains temporary libtool files.
9070 objdir=$objdir
9071
9072 # How to create reloadable object files.
9073 reload_flag=$lt_reload_flag
9074 reload_cmds=$lt_reload_cmds
9075
9076 # How to pass a linker flag through the compiler.
9077 wl=$lt_lt_prog_compiler_wl
9078
9079 # Object file suffix (normally "o").
9080 objext="$ac_objext"
9081
9082 # Old archive suffix (normally "a").
9083 libext="$libext"
9084
9085 # Shared library suffix (normally ".so").
9086 shrext='$shrext'
9087
9088 # Executable file suffix (normally "").
9089 exeext="$exeext"
9090
9091 # Additional compiler flags for building library objects.
9092 pic_flag=$lt_lt_prog_compiler_pic
9093 pic_mode=$pic_mode
9094
9095 # What is the maximum length of a command?
9096 max_cmd_len=$lt_cv_sys_max_cmd_len
9097
9098 # Does compiler simultaneously support -c and -o options?
9099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9100
9101 # Must we lock files when doing compilation ?
9102 need_locks=$lt_need_locks
9103
9104 # Do we need the lib prefix for modules?
9105 need_lib_prefix=$need_lib_prefix
9106
9107 # Do we need a version for libraries?
9108 need_version=$need_version
9109
9110 # Whether dlopen is supported.
9111 dlopen_support=$enable_dlopen
9112
9113 # Whether dlopen of programs is supported.
9114 dlopen_self=$enable_dlopen_self
9115
9116 # Whether dlopen of statically linked programs is supported.
9117 dlopen_self_static=$enable_dlopen_self_static
9118
9119 # Compiler flag to prevent dynamic linking.
9120 link_static_flag=$lt_lt_prog_compiler_static
9121
9122 # Compiler flag to turn off builtin functions.
9123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9124
9125 # Compiler flag to allow reflexive dlopens.
9126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9127
9128 # Compiler flag to generate shared objects directly from archives.
9129 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9130
9131 # Compiler flag to generate thread-safe objects.
9132 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9133
9134 # Library versioning type.
9135 version_type=$version_type
9136
9137 # Format of library name prefix.
9138 libname_spec=$lt_libname_spec
9139
9140 # List of archive names.  First name is the real one, the rest are links.
9141 # The last name is the one that the linker finds with -lNAME.
9142 library_names_spec=$lt_library_names_spec
9143
9144 # The coded name of the library, if different from the real name.
9145 soname_spec=$lt_soname_spec
9146
9147 # Commands used to build and install an old-style archive.
9148 RANLIB=$lt_RANLIB
9149 old_archive_cmds=$lt_old_archive_cmds
9150 old_postinstall_cmds=$lt_old_postinstall_cmds
9151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9152
9153 # Create an old-style archive from a shared archive.
9154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9155
9156 # Create a temporary old-style archive to link instead of a shared archive.
9157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9158
9159 # Commands used to build and install a shared archive.
9160 archive_cmds=$lt_archive_cmds
9161 archive_expsym_cmds=$lt_archive_expsym_cmds
9162 postinstall_cmds=$lt_postinstall_cmds
9163 postuninstall_cmds=$lt_postuninstall_cmds
9164
9165 # Commands used to build a loadable module (assumed same as above if empty)
9166 module_cmds=$lt_module_cmds
9167 module_expsym_cmds=$lt_module_expsym_cmds
9168
9169 # Commands to strip libraries.
9170 old_striplib=$lt_old_striplib
9171 striplib=$lt_striplib
9172
9173 # Dependencies to place before the objects being linked to create a
9174 # shared library.
9175 predep_objects=$lt_predep_objects
9176
9177 # Dependencies to place after the objects being linked to create a
9178 # shared library.
9179 postdep_objects=$lt_postdep_objects
9180
9181 # Dependencies to place before the objects being linked to create a
9182 # shared library.
9183 predeps=$lt_predeps
9184
9185 # Dependencies to place after the objects being linked to create a
9186 # shared library.
9187 postdeps=$lt_postdeps
9188
9189 # The library search path used internally by the compiler when linking
9190 # a shared library.
9191 compiler_lib_search_path=$lt_compiler_lib_search_path
9192
9193 # Method to check whether dependent libraries are shared objects.
9194 deplibs_check_method=$lt_deplibs_check_method
9195
9196 # Command to use when deplibs_check_method == file_magic.
9197 file_magic_cmd=$lt_file_magic_cmd
9198
9199 # Flag that allows shared libraries with undefined symbols to be built.
9200 allow_undefined_flag=$lt_allow_undefined_flag
9201
9202 # Flag that forces no undefined symbols.
9203 no_undefined_flag=$lt_no_undefined_flag
9204
9205 # Commands used to finish a libtool library installation in a directory.
9206 finish_cmds=$lt_finish_cmds
9207
9208 # Same as above, but a single script fragment to be evaled but not shown.
9209 finish_eval=$lt_finish_eval
9210
9211 # Take the output of nm and produce a listing of raw symbols and C names.
9212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9213
9214 # Transform the output of nm in a proper C declaration
9215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9216
9217 # Transform the output of nm in a C name address pair
9218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9219
9220 # This is the shared library runtime path variable.
9221 runpath_var=$runpath_var
9222
9223 # This is the shared library path variable.
9224 shlibpath_var=$shlibpath_var
9225
9226 # Is shlibpath searched before the hard-coded library search path?
9227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9228
9229 # How to hardcode a shared library path into an executable.
9230 hardcode_action=$hardcode_action
9231
9232 # Whether we should hardcode library paths into libraries.
9233 hardcode_into_libs=$hardcode_into_libs
9234
9235 # Flag to hardcode \$libdir into a binary during linking.
9236 # This must work even if \$libdir does not exist.
9237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9238
9239 # If ld is used when linking, flag to hardcode \$libdir into
9240 # a binary during linking. This must work even if \$libdir does
9241 # not exist.
9242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9243
9244 # Whether we need a single -rpath flag with a separated argument.
9245 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9246
9247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9248 # resulting binary.
9249 hardcode_direct=$hardcode_direct
9250
9251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9252 # resulting binary.
9253 hardcode_minus_L=$hardcode_minus_L
9254
9255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9256 # the resulting binary.
9257 hardcode_shlibpath_var=$hardcode_shlibpath_var
9258
9259 # Set to yes if building a shared library automatically hardcodes DIR into the library
9260 # and all subsequent libraries and executables linked against it.
9261 hardcode_automatic=$hardcode_automatic
9262
9263 # Variables whose values should be saved in libtool wrapper scripts and
9264 # restored at relink time.
9265 variables_saved_for_relink="$variables_saved_for_relink"
9266
9267 # Whether libtool must link a program against all its dependency libraries.
9268 link_all_deplibs=$link_all_deplibs
9269
9270 # Compile-time system search path for libraries
9271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9272
9273 # Run-time system search path for libraries
9274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9275
9276 # Fix the shell variable \$srcfile for the compiler.
9277 fix_srcfile_path="$fix_srcfile_path"
9278
9279 # Set to yes if exported symbols are required.
9280 always_export_symbols=$always_export_symbols
9281
9282 # The commands to list exported symbols.
9283 export_symbols_cmds=$lt_export_symbols_cmds
9284
9285 # The commands to extract the exported symbol list from a shared archive.
9286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9287
9288 # Symbols that should not be listed in the preloaded symbols.
9289 exclude_expsyms=$lt_exclude_expsyms
9290
9291 # Symbols that must always be exported.
9292 include_expsyms=$lt_include_expsyms
9293
9294 # ### END LIBTOOL CONFIG
9295
9296 __EOF__
9297
9298
9299   case $host_os in
9300   aix3*)
9301     cat <<\EOF >> "$cfgfile"
9302
9303 # AIX sometimes has problems with the GCC collect2 program.  For some
9304 # reason, if we set the COLLECT_NAMES environment variable, the problems
9305 # vanish in a puff of smoke.
9306 if test "X${COLLECT_NAMES+set}" != Xset; then
9307   COLLECT_NAMES=
9308   export COLLECT_NAMES
9309 fi
9310 EOF
9311     ;;
9312   esac
9313
9314   # We use sed instead of cat because bash on DJGPP gets confused if
9315   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9316   # text mode, it properly converts lines to CR/LF.  This bash problem
9317   # is reportedly fixed, but why not run on old versions too?
9318   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9319
9320   mv -f "$cfgfile" "$ofile" || \
9321     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9322   chmod +x "$ofile"
9323
9324 else
9325   # If there is no Makefile yet, we rely on a make rule to execute
9326   # `config.status --recheck' to rerun these tests and create the
9327   # libtool script then.
9328   test -f Makefile && make "$ltmain"
9329 fi
9330
9331
9332 ac_ext=c
9333 ac_cpp='$CPP $CPPFLAGS'
9334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9337
9338 CC="$lt_save_CC"
9339
9340
9341 # Check whether --with-tags or --without-tags was given.
9342 if test "${with_tags+set}" = set; then
9343   withval="$with_tags"
9344   tagnames="$withval"
9345 fi;
9346
9347 if test -f "$ltmain" && test -n "$tagnames"; then
9348   if test ! -f "${ofile}"; then
9349     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9350 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9351   fi
9352
9353   if test -z "$LTCC"; then
9354     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9355     if test -z "$LTCC"; then
9356       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9357 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9358     else
9359       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9360 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9361     fi
9362   fi
9363
9364   # Extract list of available tagged configurations in $ofile.
9365   # Note that this assumes the entire list is on one line.
9366   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9367
9368   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9369   for tagname in $tagnames; do
9370     IFS="$lt_save_ifs"
9371     # Check whether tagname contains only valid characters
9372     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9373     "") ;;
9374     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9375 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9376    { (exit 1); exit 1; }; }
9377         ;;
9378     esac
9379
9380     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9381     then
9382       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9383 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9384    { (exit 1); exit 1; }; }
9385     fi
9386
9387     # Update the list of available tags.
9388     if test -n "$tagname"; then
9389       echo appending configuration tag \"$tagname\" to $ofile
9390
9391       case $tagname in
9392       CXX)
9393         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9394           ac_ext=cc
9395 ac_cpp='$CXXCPP $CPPFLAGS'
9396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9399
9400
9401
9402
9403 archive_cmds_need_lc_CXX=no
9404 allow_undefined_flag_CXX=
9405 always_export_symbols_CXX=no
9406 archive_expsym_cmds_CXX=
9407 export_dynamic_flag_spec_CXX=
9408 hardcode_direct_CXX=no
9409 hardcode_libdir_flag_spec_CXX=
9410 hardcode_libdir_flag_spec_ld_CXX=
9411 hardcode_libdir_separator_CXX=
9412 hardcode_minus_L_CXX=no
9413 hardcode_automatic_CXX=no
9414 module_cmds_CXX=
9415 module_expsym_cmds_CXX=
9416 link_all_deplibs_CXX=unknown
9417 old_archive_cmds_CXX=$old_archive_cmds
9418 no_undefined_flag_CXX=
9419 whole_archive_flag_spec_CXX=
9420 enable_shared_with_static_runtimes_CXX=no
9421
9422 # Dependencies to place before and after the object being linked:
9423 predep_objects_CXX=
9424 postdep_objects_CXX=
9425 predeps_CXX=
9426 postdeps_CXX=
9427 compiler_lib_search_path_CXX=
9428
9429 # Source file extension for C++ test sources.
9430 ac_ext=cc
9431
9432 # Object file extension for compiled C++ test sources.
9433 objext=o
9434 objext_CXX=$objext
9435
9436 # Code to be used in simple compile tests
9437 lt_simple_compile_test_code="int some_variable = 0;\n"
9438
9439 # Code to be used in simple link tests
9440 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9441
9442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9443
9444 # If no C compiler was specified, use CC.
9445 LTCC=${LTCC-"$CC"}
9446
9447 # Allow CC to be a program name with arguments.
9448 compiler=$CC
9449
9450
9451 # Allow CC to be a program name with arguments.
9452 lt_save_CC=$CC
9453 lt_save_LD=$LD
9454 lt_save_GCC=$GCC
9455 GCC=$GXX
9456 lt_save_with_gnu_ld=$with_gnu_ld
9457 lt_save_path_LD=$lt_cv_path_LD
9458 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9459   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9460 else
9461   unset lt_cv_prog_gnu_ld
9462 fi
9463 if test -n "${lt_cv_path_LDCXX+set}"; then
9464   lt_cv_path_LD=$lt_cv_path_LDCXX
9465 else
9466   unset lt_cv_path_LD
9467 fi
9468 test -z "${LDCXX+set}" || LD=$LDCXX
9469 CC=${CXX-"c++"}
9470 compiler=$CC
9471 compiler_CXX=$CC
9472 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9473
9474 # We don't want -fno-exception wen compiling C++ code, so set the
9475 # no_builtin_flag separately
9476 if test "$GXX" = yes; then
9477   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9478 else
9479   lt_prog_compiler_no_builtin_flag_CXX=
9480 fi
9481
9482 if test "$GXX" = yes; then
9483   # Set up default GNU C++ configuration
9484
9485
9486 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9487 if test "${with_gnu_ld+set}" = set; then
9488   withval="$with_gnu_ld"
9489   test "$withval" = no || with_gnu_ld=yes
9490 else
9491   with_gnu_ld=no
9492 fi;
9493 ac_prog=ld
9494 if test "$GCC" = yes; then
9495   # Check if gcc -print-prog-name=ld gives a path.
9496   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9497 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9498   case $host in
9499   *-*-mingw*)
9500     # gcc leaves a trailing carriage return which upsets mingw
9501     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9502   *)
9503     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9504   esac
9505   case $ac_prog in
9506     # Accept absolute paths.
9507     [\\/]* | ?:[\\/]*)
9508       re_direlt='/[^/][^/]*/\.\./'
9509       # Canonicalize the path of ld
9510       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9511       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9512         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9513       done
9514       test -z "$LD" && LD="$ac_prog"
9515       ;;
9516   "")
9517     # If it fails, then pretend we aren't using GCC.
9518     ac_prog=ld
9519     ;;
9520   *)
9521     # If it is relative, then search for the first ld in PATH.
9522     with_gnu_ld=unknown
9523     ;;
9524   esac
9525 elif test "$with_gnu_ld" = yes; then
9526   echo "$as_me:$LINENO: checking for GNU ld" >&5
9527 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9528 else
9529   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9530 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9531 fi
9532 if test "${lt_cv_path_LD+set}" = set; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   if test -z "$LD"; then
9536   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9537   for ac_dir in $PATH; do
9538     IFS="$lt_save_ifs"
9539     test -z "$ac_dir" && ac_dir=.
9540     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9541       lt_cv_path_LD="$ac_dir/$ac_prog"
9542       # Check to see if the program is GNU ld.  I'd rather use --version,
9543       # but apparently some GNU ld's only accept -v.
9544       # Break only if it was the GNU/non-GNU ld that we prefer.
9545       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9546       *GNU* | *'with BFD'*)
9547         test "$with_gnu_ld" != no && break
9548         ;;
9549       *)
9550         test "$with_gnu_ld" != yes && break
9551         ;;
9552       esac
9553     fi
9554   done
9555   IFS="$lt_save_ifs"
9556 else
9557   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9558 fi
9559 fi
9560
9561 LD="$lt_cv_path_LD"
9562 if test -n "$LD"; then
9563   echo "$as_me:$LINENO: result: $LD" >&5
9564 echo "${ECHO_T}$LD" >&6
9565 else
9566   echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6
9568 fi
9569 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9570 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9571    { (exit 1); exit 1; }; }
9572 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9573 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9574 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9578 case `"$LD" -v 2>&1 </dev/null` in
9579 *GNU* | *'with BFD'*)
9580   lt_cv_prog_gnu_ld=yes
9581   ;;
9582 *)
9583   lt_cv_prog_gnu_ld=no
9584   ;;
9585 esac
9586 fi
9587 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9588 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9589 with_gnu_ld=$lt_cv_prog_gnu_ld
9590
9591
9592
9593   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9594   # archiving commands below assume that GNU ld is being used.
9595   if test "$with_gnu_ld" = yes; then
9596     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597     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'
9598
9599     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9600     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9601
9602     # If archive_cmds runs LD, not CC, wlarc should be empty
9603     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9604     #     investigate it a little bit more. (MM)
9605     wlarc='${wl}'
9606
9607     # ancient GNU ld didn't support --whole-archive et. al.
9608     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9609         grep 'no-whole-archive' > /dev/null; then
9610       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9611     else
9612       whole_archive_flag_spec_CXX=
9613     fi
9614   else
9615     with_gnu_ld=no
9616     wlarc=
9617
9618     # A generic and very simple default shared library creation
9619     # command for GNU C++ for the case where it uses the native
9620     # linker, instead of GNU ld.  If possible, this setting should
9621     # overridden to take advantage of the native linker features on
9622     # the platform it is being used on.
9623     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9624   fi
9625
9626   # Commands to make compiler produce verbose output that lists
9627   # what "hidden" libraries, object files and flags are used when
9628   # linking a shared library.
9629   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9630
9631 else
9632   GXX=no
9633   with_gnu_ld=no
9634   wlarc=
9635 fi
9636
9637 # PORTME: fill in a description of your system's C++ link characteristics
9638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9640 ld_shlibs_CXX=yes
9641 case $host_os in
9642   aix3*)
9643     # FIXME: insert proper C++ library support
9644     ld_shlibs_CXX=no
9645     ;;
9646   aix4* | aix5*)
9647     if test "$host_cpu" = ia64; then
9648       # On IA64, the linker does run time linking by default, so we don't
9649       # have to do anything special.
9650       aix_use_runtimelinking=no
9651       exp_sym_flag='-Bexport'
9652       no_entry_flag=""
9653     else
9654       aix_use_runtimelinking=no
9655
9656       # Test if we are trying to use run time linking or normal
9657       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9658       # need to do runtime linking.
9659       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9660         for ld_flag in $LDFLAGS; do
9661           case $ld_flag in
9662           *-brtl*)
9663             aix_use_runtimelinking=yes
9664             break
9665             ;;
9666           esac
9667         done
9668       esac
9669
9670       exp_sym_flag='-bexport'
9671       no_entry_flag='-bnoentry'
9672     fi
9673
9674     # When large executables or shared objects are built, AIX ld can
9675     # have problems creating the table of contents.  If linking a library
9676     # or program results in "error TOC overflow" add -mminimal-toc to
9677     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9678     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9679
9680     archive_cmds_CXX=''
9681     hardcode_direct_CXX=yes
9682     hardcode_libdir_separator_CXX=':'
9683     link_all_deplibs_CXX=yes
9684
9685     if test "$GXX" = yes; then
9686       case $host_os in aix4.012|aix4.012.*)
9687       # We only want to do this on AIX 4.2 and lower, the check
9688       # below for broken collect2 doesn't work under 4.3+
9689         collect2name=`${CC} -print-prog-name=collect2`
9690         if test -f "$collect2name" && \
9691            strings "$collect2name" | grep resolve_lib_name >/dev/null
9692         then
9693           # We have reworked collect2
9694           hardcode_direct_CXX=yes
9695         else
9696           # We have old collect2
9697           hardcode_direct_CXX=unsupported
9698           # It fails to find uninstalled libraries when the uninstalled
9699           # path is not listed in the libpath.  Setting hardcode_minus_L
9700           # to unsupported forces relinking
9701           hardcode_minus_L_CXX=yes
9702           hardcode_libdir_flag_spec_CXX='-L$libdir'
9703           hardcode_libdir_separator_CXX=
9704         fi
9705       esac
9706       shared_flag='-shared'
9707     else
9708       # not using gcc
9709       if test "$host_cpu" = ia64; then
9710         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9711         # chokes on -Wl,-G. The following line is correct:
9712         shared_flag='-G'
9713       else
9714         if test "$aix_use_runtimelinking" = yes; then
9715           shared_flag='${wl}-G'
9716         else
9717           shared_flag='${wl}-bM:SRE'
9718         fi
9719       fi
9720     fi
9721
9722     # It seems that -bexpall does not export symbols beginning with
9723     # underscore (_), so it is better to generate a list of symbols to export.
9724     always_export_symbols_CXX=yes
9725     if test "$aix_use_runtimelinking" = yes; then
9726       # Warning - without using the other runtime loading flags (-brtl),
9727       # -berok will link without error, but may produce a broken library.
9728       allow_undefined_flag_CXX='-berok'
9729       # Determine the default libpath from the value encoded in an empty executable.
9730       cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 int
9738 main ()
9739 {
9740
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747   (eval $ac_link) 2>conftest.er1
9748   ac_status=$?
9749   grep -v '^ *+' conftest.er1 >conftest.err
9750   rm -f conftest.er1
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -z "$ac_cxx_werror_flag"
9755                          || test ! -s conftest.err'
9756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757   (eval $ac_try) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9769 }'`
9770 # Check for a 64-bit object if we didn't find anything.
9771 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; }
9772 }'`; fi
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 fi
9778 rm -f conftest.err conftest.$ac_objext \
9779       conftest$ac_exeext conftest.$ac_ext
9780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9781
9782       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9783
9784       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9785      else
9786       if test "$host_cpu" = ia64; then
9787         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9788         allow_undefined_flag_CXX="-z nodefs"
9789         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9790       else
9791         # Determine the default libpath from the value encoded in an empty executable.
9792         cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h.  */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h.  */
9798
9799 int
9800 main ()
9801 {
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809   (eval $ac_link) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_cxx_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest$ac_exeext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829
9830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9831 }'`
9832 # Check for a 64-bit object if we didn't find anything.
9833 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; }
9834 }'`; fi
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 fi
9840 rm -f conftest.err conftest.$ac_objext \
9841       conftest$ac_exeext conftest.$ac_ext
9842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9843
9844         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9845         # Warning - without using the other run time loading flags,
9846         # -berok will link without error, but may produce a broken library.
9847         no_undefined_flag_CXX=' ${wl}-bernotok'
9848         allow_undefined_flag_CXX=' ${wl}-berok'
9849         # -bexpall does not export symbols beginning with underscore (_)
9850         always_export_symbols_CXX=yes
9851         # Exported symbols can be pulled into shared objects from archives
9852         whole_archive_flag_spec_CXX=' '
9853         archive_cmds_need_lc_CXX=yes
9854         # This is similar to how AIX traditionally builds it's shared libraries.
9855         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9856       fi
9857     fi
9858     ;;
9859   chorus*)
9860     case $cc_basename in
9861       *)
9862         # FIXME: insert proper C++ library support
9863         ld_shlibs_CXX=no
9864         ;;
9865     esac
9866     ;;
9867
9868   cygwin* | mingw* | pw32*)
9869     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9870     # as there is no search path for DLLs.
9871     hardcode_libdir_flag_spec_CXX='-L$libdir'
9872     allow_undefined_flag_CXX=unsupported
9873     always_export_symbols_CXX=no
9874     enable_shared_with_static_runtimes_CXX=yes
9875
9876     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9877       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9878       # If the export-symbols file already is a .def file (1st line
9879       # is EXPORTS), use it as is; otherwise, prepend...
9880       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9881         cp $export_symbols $output_objdir/$soname.def;
9882       else
9883         echo EXPORTS > $output_objdir/$soname.def;
9884         cat $export_symbols >> $output_objdir/$soname.def;
9885       fi~
9886       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9887     else
9888       ld_shlibs_CXX=no
9889     fi
9890   ;;
9891
9892   darwin* | rhapsody*)
9893    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9894     archive_cmds_need_lc_CXX=no
9895     case "$host_os" in
9896     rhapsody* | darwin1.[012])
9897       allow_undefined_flag_CXX='-undefined suppress'
9898       ;;
9899     *) # Darwin 1.3 on
9900       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9901       ;;
9902     esac
9903         lt_int_apple_cc_single_mod=no
9904         output_verbose_link_cmd='echo'
9905         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9906           lt_int_apple_cc_single_mod=yes
9907         fi
9908         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9909           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9910         else
9911         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9912       fi
9913       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9914
9915     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9916       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9917         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}'
9918       else
9919         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9920       fi
9921         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9922     hardcode_direct_CXX=no
9923     hardcode_automatic_CXX=yes
9924     hardcode_shlibpath_var_CXX=unsupported
9925     whole_archive_flag_spec_CXX='-all_load $convenience'
9926     link_all_deplibs_CXX=yes
9927    fi
9928     ;;
9929
9930   dgux*)
9931     case $cc_basename in
9932       ec++)
9933         # FIXME: insert proper C++ library support
9934         ld_shlibs_CXX=no
9935         ;;
9936       ghcx)
9937         # Green Hills C++ Compiler
9938         # FIXME: insert proper C++ library support
9939         ld_shlibs_CXX=no
9940         ;;
9941       *)
9942         # FIXME: insert proper C++ library support
9943         ld_shlibs_CXX=no
9944         ;;
9945     esac
9946     ;;
9947   freebsd12*)
9948     # C++ shared libraries reported to be fairly broken before switch to ELF
9949     ld_shlibs_CXX=no
9950     ;;
9951   freebsd-elf*)
9952     archive_cmds_need_lc_CXX=no
9953     ;;
9954   freebsd*)
9955     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9956     # conventions
9957     ld_shlibs_CXX=yes
9958     ;;
9959   gnu*)
9960     ;;
9961   hpux9*)
9962     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9963     hardcode_libdir_separator_CXX=:
9964     export_dynamic_flag_spec_CXX='${wl}-E'
9965     hardcode_direct_CXX=yes
9966     hardcode_minus_L_CXX=yes # Not in the search PATH,
9967                                 # but as the default
9968                                 # location of the library.
9969
9970     case $cc_basename in
9971     CC)
9972       # FIXME: insert proper C++ library support
9973       ld_shlibs_CXX=no
9974       ;;
9975     aCC)
9976       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'
9977       # Commands to make compiler produce verbose output that lists
9978       # what "hidden" libraries, object files and flags are used when
9979       # linking a shared library.
9980       #
9981       # There doesn't appear to be a way to prevent this compiler from
9982       # explicitly linking system object files so we need to strip them
9983       # from the output so that they don't get included in the library
9984       # dependencies.
9985       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9986       ;;
9987     *)
9988       if test "$GXX" = yes; then
9989         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'
9990       else
9991         # FIXME: insert proper C++ library support
9992         ld_shlibs_CXX=no
9993       fi
9994       ;;
9995     esac
9996     ;;
9997   hpux10*|hpux11*)
9998     if test $with_gnu_ld = no; then
9999       case "$host_cpu" in
10000       hppa*64*)
10001         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10002         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10003         hardcode_libdir_separator_CXX=:
10004         ;;
10005       ia64*)
10006         hardcode_libdir_flag_spec_CXX='-L$libdir'
10007         ;;
10008       *)
10009         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10010         hardcode_libdir_separator_CXX=:
10011         export_dynamic_flag_spec_CXX='${wl}-E'
10012         ;;
10013       esac
10014     fi
10015     case "$host_cpu" in
10016     hppa*64*)
10017       hardcode_direct_CXX=no
10018       hardcode_shlibpath_var_CXX=no
10019       ;;
10020     ia64*)
10021       hardcode_direct_CXX=no
10022       hardcode_shlibpath_var_CXX=no
10023       hardcode_minus_L_CXX=yes # Not in the search PATH,
10024                                               # but as the default
10025                                               # location of the library.
10026       ;;
10027     *)
10028       hardcode_direct_CXX=yes
10029       hardcode_minus_L_CXX=yes # Not in the search PATH,
10030                                               # but as the default
10031                                               # location of the library.
10032       ;;
10033     esac
10034
10035     case $cc_basename in
10036       CC)
10037         # FIXME: insert proper C++ library support
10038         ld_shlibs_CXX=no
10039         ;;
10040       aCC)
10041         case "$host_cpu" in
10042         hppa*64*|ia64*)
10043           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10044           ;;
10045         *)
10046           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10047           ;;
10048         esac
10049         # Commands to make compiler produce verbose output that lists
10050         # what "hidden" libraries, object files and flags are used when
10051         # linking a shared library.
10052         #
10053         # There doesn't appear to be a way to prevent this compiler from
10054         # explicitly linking system object files so we need to strip them
10055         # from the output so that they don't get included in the library
10056         # dependencies.
10057         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'
10058         ;;
10059       *)
10060         if test "$GXX" = yes; then
10061           if test $with_gnu_ld = no; then
10062             case "$host_cpu" in
10063             ia64*|hppa*64*)
10064               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10065               ;;
10066             *)
10067               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'
10068               ;;
10069             esac
10070           fi
10071         else
10072           # FIXME: insert proper C++ library support
10073           ld_shlibs_CXX=no
10074         fi
10075         ;;
10076     esac
10077     ;;
10078   irix5* | irix6*)
10079     case $cc_basename in
10080       CC)
10081         # SGI C++
10082         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 ${objdir}/so_locations -o $lib'
10083
10084         # Archives containing C++ object files must be created using
10085         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10086         # necessary to make sure instantiated templates are included
10087         # in the archive.
10088         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10089         ;;
10090       *)
10091         if test "$GXX" = yes; then
10092           if test "$with_gnu_ld" = no; then
10093             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}${objdir}/so_locations -o $lib'
10094           else
10095             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'
10096           fi
10097         fi
10098         link_all_deplibs_CXX=yes
10099         ;;
10100     esac
10101     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10102     hardcode_libdir_separator_CXX=:
10103     ;;
10104   linux*)
10105     case $cc_basename in
10106       KCC)
10107         # Kuck and Associates, Inc. (KAI) C++ Compiler
10108
10109         # KCC will only create a shared library if the output file
10110         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10111         # to its proper name (with version) after linking.
10112         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'
10113         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'
10114         # Commands to make compiler produce verbose output that lists
10115         # what "hidden" libraries, object files and flags are used when
10116         # linking a shared library.
10117         #
10118         # There doesn't appear to be a way to prevent this compiler from
10119         # explicitly linking system object files so we need to strip them
10120         # from the output so that they don't get included in the library
10121         # dependencies.
10122         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'
10123
10124         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10125         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10126
10127         # Archives containing C++ object files must be created using
10128         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10129         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10130         ;;
10131       icpc)
10132         # Intel C++
10133         with_gnu_ld=yes
10134         archive_cmds_need_lc_CXX=no
10135         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136         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'
10137         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10138         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10139         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10140         ;;
10141       cxx)
10142         # Compaq C++
10143         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10144         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'
10145
10146         runpath_var=LD_RUN_PATH
10147         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10148         hardcode_libdir_separator_CXX=:
10149
10150         # Commands to make compiler produce verbose output that lists
10151         # what "hidden" libraries, object files and flags are used when
10152         # linking a shared library.
10153         #
10154         # There doesn't appear to be a way to prevent this compiler from
10155         # explicitly linking system object files so we need to strip them
10156         # from the output so that they don't get included in the library
10157         # dependencies.
10158         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'
10159         ;;
10160     esac
10161     ;;
10162   lynxos*)
10163     # FIXME: insert proper C++ library support
10164     ld_shlibs_CXX=no
10165     ;;
10166   m88k*)
10167     # FIXME: insert proper C++ library support
10168     ld_shlibs_CXX=no
10169     ;;
10170   mvs*)
10171     case $cc_basename in
10172       cxx)
10173         # FIXME: insert proper C++ library support
10174         ld_shlibs_CXX=no
10175         ;;
10176       *)
10177         # FIXME: insert proper C++ library support
10178         ld_shlibs_CXX=no
10179         ;;
10180     esac
10181     ;;
10182   netbsd*)
10183     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10184       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10185       wlarc=
10186       hardcode_libdir_flag_spec_CXX='-R$libdir'
10187       hardcode_direct_CXX=yes
10188       hardcode_shlibpath_var_CXX=no
10189     fi
10190     # Workaround some broken pre-1.5 toolchains
10191     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10192     ;;
10193   osf3*)
10194     case $cc_basename in
10195       KCC)
10196         # Kuck and Associates, Inc. (KAI) C++ Compiler
10197
10198         # KCC will only create a shared library if the output file
10199         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10200         # to its proper name (with version) after linking.
10201         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'
10202
10203         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10204         hardcode_libdir_separator_CXX=:
10205
10206         # Archives containing C++ object files must be created using
10207         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10208         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10209
10210         ;;
10211       RCC)
10212         # Rational C++ 2.4.1
10213         # FIXME: insert proper C++ library support
10214         ld_shlibs_CXX=no
10215         ;;
10216       cxx)
10217         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10218         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 ${objdir}/so_locations -o $lib'
10219
10220         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10221         hardcode_libdir_separator_CXX=:
10222
10223         # Commands to make compiler produce verbose output that lists
10224         # what "hidden" libraries, object files and flags are used when
10225         # linking a shared library.
10226         #
10227         # There doesn't appear to be a way to prevent this compiler from
10228         # explicitly linking system object files so we need to strip them
10229         # from the output so that they don't get included in the library
10230         # dependencies.
10231         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'
10232         ;;
10233       *)
10234         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10235           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10236           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}${objdir}/so_locations -o $lib'
10237
10238           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10239           hardcode_libdir_separator_CXX=:
10240
10241           # Commands to make compiler produce verbose output that lists
10242           # what "hidden" libraries, object files and flags are used when
10243           # linking a shared library.
10244           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10245
10246         else
10247           # FIXME: insert proper C++ library support
10248           ld_shlibs_CXX=no
10249         fi
10250         ;;
10251     esac
10252     ;;
10253   osf4* | osf5*)
10254     case $cc_basename in
10255       KCC)
10256         # Kuck and Associates, Inc. (KAI) C++ Compiler
10257
10258         # KCC will only create a shared library if the output file
10259         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10260         # to its proper name (with version) after linking.
10261         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'
10262
10263         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10264         hardcode_libdir_separator_CXX=:
10265
10266         # Archives containing C++ object files must be created using
10267         # the KAI C++ compiler.
10268         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10269         ;;
10270       RCC)
10271         # Rational C++ 2.4.1
10272         # FIXME: insert proper C++ library support
10273         ld_shlibs_CXX=no
10274         ;;
10275       cxx)
10276         allow_undefined_flag_CXX=' -expect_unresolved \*'
10277         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 ${objdir}/so_locations -o $lib'
10278         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10279           echo "-hidden">> $lib.exp~
10280           $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 $objdir/so_locations -o $lib~
10281           $rm $lib.exp'
10282
10283         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10284         hardcode_libdir_separator_CXX=:
10285
10286         # Commands to make compiler produce verbose output that lists
10287         # what "hidden" libraries, object files and flags are used when
10288         # linking a shared library.
10289         #
10290         # There doesn't appear to be a way to prevent this compiler from
10291         # explicitly linking system object files so we need to strip them
10292         # from the output so that they don't get included in the library
10293         # dependencies.
10294         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'
10295         ;;
10296       *)
10297         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10298           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10299          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}${objdir}/so_locations -o $lib'
10300
10301           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10302           hardcode_libdir_separator_CXX=:
10303
10304           # Commands to make compiler produce verbose output that lists
10305           # what "hidden" libraries, object files and flags are used when
10306           # linking a shared library.
10307           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10308
10309         else
10310           # FIXME: insert proper C++ library support
10311           ld_shlibs_CXX=no
10312         fi
10313         ;;
10314     esac
10315     ;;
10316   psos*)
10317     # FIXME: insert proper C++ library support
10318     ld_shlibs_CXX=no
10319     ;;
10320   sco*)
10321     archive_cmds_need_lc_CXX=no
10322     case $cc_basename in
10323       CC)
10324         # FIXME: insert proper C++ library support
10325         ld_shlibs_CXX=no
10326         ;;
10327       *)
10328         # FIXME: insert proper C++ library support
10329         ld_shlibs_CXX=no
10330         ;;
10331     esac
10332     ;;
10333   sunos4*)
10334     case $cc_basename in
10335       CC)
10336         # Sun C++ 4.x
10337         # FIXME: insert proper C++ library support
10338         ld_shlibs_CXX=no
10339         ;;
10340       lcc)
10341         # Lucid
10342         # FIXME: insert proper C++ library support
10343         ld_shlibs_CXX=no
10344         ;;
10345       *)
10346         # FIXME: insert proper C++ library support
10347         ld_shlibs_CXX=no
10348         ;;
10349     esac
10350     ;;
10351   solaris*)
10352     case $cc_basename in
10353       CC)
10354         # Sun C++ 4.2, 5.x and Centerline C++
10355         no_undefined_flag_CXX=' -zdefs'
10356         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10357         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10358         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10359
10360         hardcode_libdir_flag_spec_CXX='-R$libdir'
10361         hardcode_shlibpath_var_CXX=no
10362         case $host_os in
10363           solaris2.0-5 | solaris2.0-5.*) ;;
10364           *)
10365             # The C++ compiler is used as linker so we must use $wl
10366             # flag to pass the commands to the underlying system
10367             # linker.
10368             # Supported since Solaris 2.6 (maybe 2.5.1?)
10369             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10370             ;;
10371         esac
10372         link_all_deplibs_CXX=yes
10373
10374         # Commands to make compiler produce verbose output that lists
10375         # what "hidden" libraries, object files and flags are used when
10376         # linking a shared library.
10377         #
10378         # There doesn't appear to be a way to prevent this compiler from
10379         # explicitly linking system object files so we need to strip them
10380         # from the output so that they don't get included in the library
10381         # dependencies.
10382         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10383
10384         # Archives containing C++ object files must be created using
10385         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10386         # necessary to make sure instantiated templates are included
10387         # in the archive.
10388         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10389         ;;
10390       gcx)
10391         # Green Hills C++ Compiler
10392         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10393
10394         # The C++ compiler must be used to create the archive.
10395         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10396         ;;
10397       *)
10398         # GNU C++ compiler with Solaris linker
10399         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10400           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10401           if $CC --version | grep -v '^2\.7' > /dev/null; then
10402             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10403             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10404                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10405
10406             # Commands to make compiler produce verbose output that lists
10407             # what "hidden" libraries, object files and flags are used when
10408             # linking a shared library.
10409             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10410           else
10411             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10412             # platform.
10413             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10414             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10415                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10416
10417             # Commands to make compiler produce verbose output that lists
10418             # what "hidden" libraries, object files and flags are used when
10419             # linking a shared library.
10420             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10421           fi
10422
10423           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10424         fi
10425         ;;
10426     esac
10427     ;;
10428   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10429     archive_cmds_need_lc_CXX=no
10430     ;;
10431   tandem*)
10432     case $cc_basename in
10433       NCC)
10434         # NonStop-UX NCC 3.20
10435         # FIXME: insert proper C++ library support
10436         ld_shlibs_CXX=no
10437         ;;
10438       *)
10439         # FIXME: insert proper C++ library support
10440         ld_shlibs_CXX=no
10441         ;;
10442     esac
10443     ;;
10444   vxworks*)
10445     # FIXME: insert proper C++ library support
10446     ld_shlibs_CXX=no
10447     ;;
10448   *)
10449     # FIXME: insert proper C++ library support
10450     ld_shlibs_CXX=no
10451     ;;
10452 esac
10453 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10454 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10455 test "$ld_shlibs_CXX" = no && can_build_shared=no
10456
10457 GCC_CXX="$GXX"
10458 LD_CXX="$LD"
10459
10460 ## CAVEAT EMPTOR:
10461 ## There is no encapsulation within the following macros, do not change
10462 ## the running order or otherwise move them around unless you know exactly
10463 ## what you are doing...
10464
10465 cat > conftest.$ac_ext <<EOF
10466 class Foo
10467 {
10468 public:
10469   Foo (void) { a = 0; }
10470 private:
10471   int a;
10472 };
10473 EOF
10474
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476   (eval $ac_compile) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; then
10480   # Parse the compiler output and extract the necessary
10481   # objects, libraries and library flags.
10482
10483   # Sentinel used to keep track of whether or not we are before
10484   # the conftest object file.
10485   pre_test_object_deps_done=no
10486
10487   # The `*' in the case matches for architectures that use `case' in
10488   # $output_verbose_cmd can trigger glob expansion during the loop
10489   # eval without this substitution.
10490   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10491
10492   for p in `eval $output_verbose_link_cmd`; do
10493     case $p in
10494
10495     -L* | -R* | -l*)
10496        # Some compilers place space between "-{L,R}" and the path.
10497        # Remove the space.
10498        if test $p = "-L" \
10499           || test $p = "-R"; then
10500          prev=$p
10501          continue
10502        else
10503          prev=
10504        fi
10505
10506        if test "$pre_test_object_deps_done" = no; then
10507          case $p in
10508          -L* | -R*)
10509            # Internal compiler library paths should come after those
10510            # provided the user.  The postdeps already come after the
10511            # user supplied libs so there is no need to process them.
10512            if test -z "$compiler_lib_search_path_CXX"; then
10513              compiler_lib_search_path_CXX="${prev}${p}"
10514            else
10515              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10516            fi
10517            ;;
10518          # The "-l" case would never come before the object being
10519          # linked, so don't bother handling this case.
10520          esac
10521        else
10522          if test -z "$postdeps_CXX"; then
10523            postdeps_CXX="${prev}${p}"
10524          else
10525            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10526          fi
10527        fi
10528        ;;
10529
10530     *.$objext)
10531        # This assumes that the test object file only shows up
10532        # once in the compiler output.
10533        if test "$p" = "conftest.$objext"; then
10534          pre_test_object_deps_done=yes
10535          continue
10536        fi
10537
10538        if test "$pre_test_object_deps_done" = no; then
10539          if test -z "$predep_objects_CXX"; then
10540            predep_objects_CXX="$p"
10541          else
10542            predep_objects_CXX="$predep_objects_CXX $p"
10543          fi
10544        else
10545          if test -z "$postdep_objects_CXX"; then
10546            postdep_objects_CXX="$p"
10547          else
10548            postdep_objects_CXX="$postdep_objects_CXX $p"
10549          fi
10550        fi
10551        ;;
10552
10553     *) ;; # Ignore the rest.
10554
10555     esac
10556   done
10557
10558   # Clean up.
10559   rm -f a.out a.exe
10560 else
10561   echo "libtool.m4: error: problem compiling CXX test program"
10562 fi
10563
10564 $rm -f confest.$objext
10565
10566 case " $postdeps_CXX " in
10567 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10568 esac
10569
10570 lt_prog_compiler_wl_CXX=
10571 lt_prog_compiler_pic_CXX=
10572 lt_prog_compiler_static_CXX=
10573
10574 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10576
10577   # C++ specific cases for pic, static, wl, etc.
10578   if test "$GXX" = yes; then
10579     lt_prog_compiler_wl_CXX='-Wl,'
10580     lt_prog_compiler_static_CXX='-static'
10581
10582     case $host_os in
10583     aix*)
10584       # All AIX code is PIC.
10585       if test "$host_cpu" = ia64; then
10586         # AIX 5 now supports IA64 processor
10587         lt_prog_compiler_static_CXX='-Bstatic'
10588       fi
10589       ;;
10590     amigaos*)
10591       # FIXME: we need at least 68020 code to build shared libraries, but
10592       # adding the `-m68020' flag to GCC prevents building anything better,
10593       # like `-m68040'.
10594       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10595       ;;
10596     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10597       # PIC is the default for these OSes.
10598       ;;
10599     mingw* | os2* | pw32*)
10600       # This hack is so that the source file can tell whether it is being
10601       # built for inclusion in a dll (and should export symbols for example).
10602       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10603       ;;
10604     darwin* | rhapsody*)
10605       # PIC is the default on this platform
10606       # Common symbols not allowed in MH_DYLIB files
10607       lt_prog_compiler_pic_CXX='-fno-common'
10608       ;;
10609     *djgpp*)
10610       # DJGPP does not support shared libraries at all
10611       lt_prog_compiler_pic_CXX=
10612       ;;
10613     sysv4*MP*)
10614       if test -d /usr/nec; then
10615         lt_prog_compiler_pic_CXX=-Kconform_pic
10616       fi
10617       ;;
10618     hpux*)
10619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10620       # not for PA HP-UX.
10621       case "$host_cpu" in
10622       hppa*64*|ia64*)
10623         ;;
10624       *)
10625         lt_prog_compiler_pic_CXX='-fPIC'
10626         ;;
10627       esac
10628       ;;
10629     *)
10630       lt_prog_compiler_pic_CXX='-fPIC'
10631       ;;
10632     esac
10633   else
10634     case $host_os in
10635       aix4* | aix5*)
10636         # All AIX code is PIC.
10637         if test "$host_cpu" = ia64; then
10638           # AIX 5 now supports IA64 processor
10639           lt_prog_compiler_static_CXX='-Bstatic'
10640         else
10641           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10642         fi
10643         ;;
10644       chorus*)
10645         case $cc_basename in
10646         cxch68)
10647           # Green Hills C++ Compiler
10648           # _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"
10649           ;;
10650         esac
10651         ;;
10652       dgux*)
10653         case $cc_basename in
10654           ec++)
10655             lt_prog_compiler_pic_CXX='-KPIC'
10656             ;;
10657           ghcx)
10658             # Green Hills C++ Compiler
10659             lt_prog_compiler_pic_CXX='-pic'
10660             ;;
10661           *)
10662             ;;
10663         esac
10664         ;;
10665       freebsd*)
10666         # FreeBSD uses GNU C++
10667         ;;
10668       hpux9* | hpux10* | hpux11*)
10669         case $cc_basename in
10670           CC)
10671             lt_prog_compiler_wl_CXX='-Wl,'
10672             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10673             if test "$host_cpu" != ia64; then
10674               lt_prog_compiler_pic_CXX='+Z'
10675             fi
10676             ;;
10677           aCC)
10678             lt_prog_compiler_wl_CXX='-Wl,'
10679             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10680             case "$host_cpu" in
10681             hppa*64*|ia64*)
10682               # +Z the default
10683               ;;
10684             *)
10685               lt_prog_compiler_pic_CXX='+Z'
10686               ;;
10687             esac
10688             ;;
10689           *)
10690             ;;
10691         esac
10692         ;;
10693       irix5* | irix6* | nonstopux*)
10694         case $cc_basename in
10695           CC)
10696             lt_prog_compiler_wl_CXX='-Wl,'
10697             lt_prog_compiler_static_CXX='-non_shared'
10698             # CC pic flag -KPIC is the default.
10699             ;;
10700           *)
10701             ;;
10702         esac
10703         ;;
10704       linux*)
10705         case $cc_basename in
10706           KCC)
10707             # KAI C++ Compiler
10708             lt_prog_compiler_wl_CXX='--backend -Wl,'
10709             lt_prog_compiler_pic_CXX='-fPIC'
10710             ;;
10711           icpc)
10712             # Intel C++
10713             lt_prog_compiler_wl_CXX='-Wl,'
10714             lt_prog_compiler_pic_CXX='-KPIC'
10715             lt_prog_compiler_static_CXX='-static'
10716             ;;
10717           cxx)
10718             # Compaq C++
10719             # Make sure the PIC flag is empty.  It appears that all Alpha
10720             # Linux and Compaq Tru64 Unix objects are PIC.
10721             lt_prog_compiler_pic_CXX=
10722             lt_prog_compiler_static_CXX='-non_shared'
10723             ;;
10724           *)
10725             ;;
10726         esac
10727         ;;
10728       lynxos*)
10729         ;;
10730       m88k*)
10731         ;;
10732       mvs*)
10733         case $cc_basename in
10734           cxx)
10735             lt_prog_compiler_pic_CXX='-W c,exportall'
10736             ;;
10737           *)
10738             ;;
10739         esac
10740         ;;
10741       netbsd*)
10742         ;;
10743       osf3* | osf4* | osf5*)
10744         case $cc_basename in
10745           KCC)
10746             lt_prog_compiler_wl_CXX='--backend -Wl,'
10747             ;;
10748           RCC)
10749             # Rational C++ 2.4.1
10750             lt_prog_compiler_pic_CXX='-pic'
10751             ;;
10752           cxx)
10753             # Digital/Compaq C++
10754             lt_prog_compiler_wl_CXX='-Wl,'
10755             # Make sure the PIC flag is empty.  It appears that all Alpha
10756             # Linux and Compaq Tru64 Unix objects are PIC.
10757             lt_prog_compiler_pic_CXX=
10758             lt_prog_compiler_static_CXX='-non_shared'
10759             ;;
10760           *)
10761             ;;
10762         esac
10763         ;;
10764       psos*)
10765         ;;
10766       sco*)
10767         case $cc_basename in
10768           CC)
10769             lt_prog_compiler_pic_CXX='-fPIC'
10770             ;;
10771           *)
10772             ;;
10773         esac
10774         ;;
10775       solaris*)
10776         case $cc_basename in
10777           CC)
10778             # Sun C++ 4.2, 5.x and Centerline C++
10779             lt_prog_compiler_pic_CXX='-KPIC'
10780             lt_prog_compiler_static_CXX='-Bstatic'
10781             lt_prog_compiler_wl_CXX='-Qoption ld '
10782             ;;
10783           gcx)
10784             # Green Hills C++ Compiler
10785             lt_prog_compiler_pic_CXX='-PIC'
10786             ;;
10787           *)
10788             ;;
10789         esac
10790         ;;
10791       sunos4*)
10792         case $cc_basename in
10793           CC)
10794             # Sun C++ 4.x
10795             lt_prog_compiler_pic_CXX='-pic'
10796             lt_prog_compiler_static_CXX='-Bstatic'
10797             ;;
10798           lcc)
10799             # Lucid
10800             lt_prog_compiler_pic_CXX='-pic'
10801             ;;
10802           *)
10803             ;;
10804         esac
10805         ;;
10806       tandem*)
10807         case $cc_basename in
10808           NCC)
10809             # NonStop-UX NCC 3.20
10810             lt_prog_compiler_pic_CXX='-KPIC'
10811             ;;
10812           *)
10813             ;;
10814         esac
10815         ;;
10816       unixware*)
10817         ;;
10818       vxworks*)
10819         ;;
10820       *)
10821         lt_prog_compiler_can_build_shared_CXX=no
10822         ;;
10823     esac
10824   fi
10825
10826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10827 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10828
10829 #
10830 # Check to make sure the PIC flag actually works.
10831 #
10832 if test -n "$lt_prog_compiler_pic_CXX"; then
10833   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10834 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10835 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838   lt_prog_compiler_pic_works_CXX=no
10839   ac_outfile=conftest.$ac_objext
10840    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10841    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10842    # Insert the option either (1) after the last *FLAGS variable, or
10843    # (2) before a word containing "conftest.", or (3) at the end.
10844    # Note that $ac_compile itself does not contain backslashes and begins
10845    # with a dollar sign (not a hyphen), so the echo should work correctly.
10846    # The option is referenced via a variable to avoid confusing sed.
10847    lt_compile=`echo "$ac_compile" | $SED \
10848    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10850    -e 's:$: $lt_compiler_flag:'`
10851    (eval echo "\"\$as_me:10851: $lt_compile\"" >&5)
10852    (eval "$lt_compile" 2>conftest.err)
10853    ac_status=$?
10854    cat conftest.err >&5
10855    echo "$as_me:10855: \$? = $ac_status" >&5
10856    if (exit $ac_status) && test -s "$ac_outfile"; then
10857      # The compiler can only warn and ignore the option if not recognized
10858      # So say no if there are warnings
10859      if test ! -s conftest.err; then
10860        lt_prog_compiler_pic_works_CXX=yes
10861      fi
10862    fi
10863    $rm conftest*
10864
10865 fi
10866 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10867 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10868
10869 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10870     case $lt_prog_compiler_pic_CXX in
10871      "" | " "*) ;;
10872      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10873      esac
10874 else
10875     lt_prog_compiler_pic_CXX=
10876      lt_prog_compiler_can_build_shared_CXX=no
10877 fi
10878
10879 fi
10880 case "$host_os" in
10881   # For platforms which do not support PIC, -DPIC is meaningless:
10882   *djgpp*)
10883     lt_prog_compiler_pic_CXX=
10884     ;;
10885   *)
10886     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10887     ;;
10888 esac
10889
10890 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10891 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10892 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10893   echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895   lt_cv_prog_compiler_c_o_CXX=no
10896    $rm -r conftest 2>/dev/null
10897    mkdir conftest
10898    cd conftest
10899    mkdir out
10900    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10901
10902    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10903    # that will create temporary files in the current directory regardless of
10904    # the output directory.  Thus, making CWD read-only will cause this test
10905    # to fail, enabling locking or at least warning the user not to do parallel
10906    # builds.
10907    chmod -w .
10908
10909    lt_compiler_flag="-o out/conftest2.$ac_objext"
10910    # Insert the option either (1) after the last *FLAGS variable, or
10911    # (2) before a word containing "conftest.", or (3) at the end.
10912    # Note that $ac_compile itself does not contain backslashes and begins
10913    # with a dollar sign (not a hyphen), so the echo should work correctly.
10914    lt_compile=`echo "$ac_compile" | $SED \
10915    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10917    -e 's:$: $lt_compiler_flag:'`
10918    (eval echo "\"\$as_me:10918: $lt_compile\"" >&5)
10919    (eval "$lt_compile" 2>out/conftest.err)
10920    ac_status=$?
10921    cat out/conftest.err >&5
10922    echo "$as_me:10922: \$? = $ac_status" >&5
10923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10924    then
10925      # The compiler can only warn and ignore the option if not recognized
10926      # So say no if there are warnings
10927      if test ! -s out/conftest.err; then
10928        lt_cv_prog_compiler_c_o_CXX=yes
10929      fi
10930    fi
10931    chmod u+w .
10932    $rm conftest* out/*
10933    rmdir out
10934    cd ..
10935    rmdir conftest
10936    $rm conftest*
10937
10938 fi
10939 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10940 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10941
10942
10943 hard_links="nottested"
10944 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10945   # do not overwrite the value of need_locks provided by the user
10946   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10947 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10948   hard_links=yes
10949   $rm conftest*
10950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10951   touch conftest.a
10952   ln conftest.a conftest.b 2>&5 || hard_links=no
10953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10954   echo "$as_me:$LINENO: result: $hard_links" >&5
10955 echo "${ECHO_T}$hard_links" >&6
10956   if test "$hard_links" = no; then
10957     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10958 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10959     need_locks=warn
10960   fi
10961 else
10962   need_locks=no
10963 fi
10964
10965 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10966 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10967
10968   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10969   case $host_os in
10970   aix4* | aix5*)
10971     # If we're using GNU nm, then we don't want the "-C" option.
10972     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10973     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10974       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'
10975     else
10976       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'
10977     fi
10978     ;;
10979   pw32*)
10980     export_symbols_cmds_CXX="$ltdll_cmds"
10981   ;;
10982   cygwin* | mingw*)
10983     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10984   ;;
10985   *)
10986     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10987   ;;
10988   esac
10989
10990 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10991 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10992 test "$ld_shlibs_CXX" = no && can_build_shared=no
10993
10994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10995 if test "$GCC" = yes; then
10996   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10997 fi
10998
10999 #
11000 # Do we need to explicitly link libc?
11001 #
11002 case "x$archive_cmds_need_lc_CXX" in
11003 x|xyes)
11004   # Assume -lc should be added
11005   archive_cmds_need_lc_CXX=yes
11006
11007   if test "$enable_shared" = yes && test "$GCC" = yes; then
11008     case $archive_cmds_CXX in
11009     *'~'*)
11010       # FIXME: we may have to deal with multi-command sequences.
11011       ;;
11012     '$CC '*)
11013       # Test whether the compiler implicitly links with -lc since on some
11014       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015       # to ld, don't add -lc before -lgcc.
11016       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11018       $rm conftest*
11019       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11020
11021       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022   (eval $ac_compile) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } 2>conftest.err; then
11026         soname=conftest
11027         lib=conftest
11028         libobjs=conftest.$ac_objext
11029         deplibs=
11030         wl=$lt_prog_compiler_wl_CXX
11031         compiler_flags=-v
11032         linker_flags=-v
11033         verstring=
11034         output_objdir=.
11035         libname=conftest
11036         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11037         allow_undefined_flag_CXX=
11038         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11039   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }
11043         then
11044           archive_cmds_need_lc_CXX=no
11045         else
11046           archive_cmds_need_lc_CXX=yes
11047         fi
11048         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11049       else
11050         cat conftest.err 1>&5
11051       fi
11052       $rm conftest*
11053       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11054 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11055       ;;
11056     esac
11057   fi
11058   ;;
11059 esac
11060
11061 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11063 hardcode_action_CXX=
11064 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11065    test -n "$runpath_var CXX" || \
11066    test "X$hardcode_automatic_CXX"="Xyes" ; then
11067
11068   # We can hardcode non-existant directories.
11069   if test "$hardcode_direct_CXX" != no &&
11070      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11071      # have to relink, otherwise we might link with an installed library
11072      # when we should be linking with a yet-to-be-installed one
11073      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11074      test "$hardcode_minus_L_CXX" != no; then
11075     # Linking always hardcodes the temporary library directory.
11076     hardcode_action_CXX=relink
11077   else
11078     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11079     hardcode_action_CXX=immediate
11080   fi
11081 else
11082   # We cannot hardcode anything, or else we can only hardcode existing
11083   # directories.
11084   hardcode_action_CXX=unsupported
11085 fi
11086 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11087 echo "${ECHO_T}$hardcode_action_CXX" >&6
11088
11089 if test "$hardcode_action_CXX" = relink; then
11090   # Fast installation is not supported
11091   enable_fast_install=no
11092 elif test "$shlibpath_overrides_runpath" = yes ||
11093      test "$enable_shared" = no; then
11094   # Fast installation is not necessary
11095   enable_fast_install=needless
11096 fi
11097
11098 striplib=
11099 old_striplib=
11100 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11102 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11103   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105   echo "$as_me:$LINENO: result: yes" >&5
11106 echo "${ECHO_T}yes" >&6
11107 else
11108 # FIXME - insert some real tests, host_os isn't really good enough
11109   case $host_os in
11110    darwin*)
11111        if test -n "$STRIP" ; then
11112          striplib="$STRIP -x"
11113          echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6
11115        else
11116   echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11118 fi
11119        ;;
11120    *)
11121   echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11123     ;;
11124   esac
11125 fi
11126
11127 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11128 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11129 library_names_spec=
11130 libname_spec='lib$name'
11131 soname_spec=
11132 shrext=".so"
11133 postinstall_cmds=
11134 postuninstall_cmds=
11135 finish_cmds=
11136 finish_eval=
11137 shlibpath_var=
11138 shlibpath_overrides_runpath=unknown
11139 version_type=none
11140 dynamic_linker="$host_os ld.so"
11141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11142 if test "$GCC" = yes; then
11143   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11144   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11145     # if the path contains ";" then we assume it to be the separator
11146     # otherwise default to the standard path separator (i.e. ":") - it is
11147     # assumed that no part of a normal pathname contains ";" but that should
11148     # okay in the real world where ";" in dirpaths is itself problematic.
11149     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11150   else
11151     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11152   fi
11153 else
11154   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11155 fi
11156 need_lib_prefix=unknown
11157 hardcode_into_libs=no
11158
11159 # when you set need_version to no, make sure it does not cause -set_version
11160 # flags to be left without arguments
11161 need_version=unknown
11162
11163 case $host_os in
11164 aix3*)
11165   version_type=linux
11166   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11167   shlibpath_var=LIBPATH
11168
11169   # AIX 3 has no versioning support, so we append a major version to the name.
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   ;;
11172
11173 aix4* | aix5*)
11174   version_type=linux
11175   need_lib_prefix=no
11176   need_version=no
11177   hardcode_into_libs=yes
11178   if test "$host_cpu" = ia64; then
11179     # AIX 5 supports IA64
11180     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11181     shlibpath_var=LD_LIBRARY_PATH
11182   else
11183     # With GCC up to 2.95.x, collect2 would create an import file
11184     # for dependence libraries.  The import file would start with
11185     # the line `#! .'.  This would cause the generated library to
11186     # depend on `.', always an invalid library.  This was fixed in
11187     # development snapshots of GCC prior to 3.0.
11188     case $host_os in
11189       aix4 | aix4.[01] | aix4.[01].*)
11190       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11191            echo ' yes '
11192            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11193         :
11194       else
11195         can_build_shared=no
11196       fi
11197       ;;
11198     esac
11199     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11200     # soname into executable. Probably we can add versioning support to
11201     # collect2, so additional links can be useful in future.
11202     if test "$aix_use_runtimelinking" = yes; then
11203       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11204       # instead of lib<name>.a to let people know that these are not
11205       # typical AIX shared libraries.
11206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207     else
11208       # We preserve .a as extension for shared libraries through AIX4.2
11209       # and later when we are not doing run time linking.
11210       library_names_spec='${libname}${release}.a $libname.a'
11211       soname_spec='${libname}${release}${shared_ext}$major'
11212     fi
11213     shlibpath_var=LIBPATH
11214   fi
11215   ;;
11216
11217 amigaos*)
11218   library_names_spec='$libname.ixlibrary $libname.a'
11219   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11220   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'
11221   ;;
11222
11223 beos*)
11224   library_names_spec='${libname}${shared_ext}'
11225   dynamic_linker="$host_os ld.so"
11226   shlibpath_var=LIBRARY_PATH
11227   ;;
11228
11229 bsdi4*)
11230   version_type=linux
11231   need_version=no
11232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233   soname_spec='${libname}${release}${shared_ext}$major'
11234   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11237   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11238   # the default ld.so.conf also contains /usr/contrib/lib and
11239   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11240   # libtool to hard-code these into programs
11241   ;;
11242
11243 cygwin* | mingw* | pw32*)
11244   version_type=windows
11245   shrext=".dll"
11246   need_version=no
11247   need_lib_prefix=no
11248
11249   case $GCC,$host_os in
11250   yes,cygwin* | yes,mingw* | yes,pw32*)
11251     library_names_spec='$libname.dll.a'
11252     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11253     postinstall_cmds='base_file=`basename \${file}`~
11254       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11255       dldir=$destdir/`dirname \$dlpath`~
11256       test -d \$dldir || mkdir -p \$dldir~
11257       $install_prog $dir/$dlname \$dldir/$dlname'
11258     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11259       dlpath=$dir/\$dldll~
11260        $rm \$dlpath'
11261     shlibpath_overrides_runpath=yes
11262
11263     case $host_os in
11264     cygwin*)
11265       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11266       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11267       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11268       ;;
11269     mingw*)
11270       # MinGW DLLs use traditional 'lib' prefix
11271       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11272       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11273       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11274         # It is most probably a Windows format PATH printed by
11275         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11276         # path with ; separators, and with drive letters. We can handle the
11277         # drive letters (cygwin fileutils understands them), so leave them,
11278         # especially as we might pass files found there to a mingw objdump,
11279         # which wouldn't understand a cygwinified path. Ahh.
11280         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11281       else
11282         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11283       fi
11284       ;;
11285     pw32*)
11286       # pw32 DLLs use 'pw' prefix rather than 'lib'
11287       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11288       ;;
11289     esac
11290     ;;
11291
11292   *)
11293     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11294     ;;
11295   esac
11296   dynamic_linker='Win32 ld.exe'
11297   # FIXME: first we should search . and the directory the executable is in
11298   shlibpath_var=PATH
11299   ;;
11300
11301 darwin* | rhapsody*)
11302   dynamic_linker="$host_os dyld"
11303   version_type=darwin
11304   need_lib_prefix=no
11305   need_version=no
11306   # FIXME: Relying on posixy $() will cause problems for
11307   #        cross-compilation, but unfortunately the echo tests do not
11308   #        yet detect zsh echo's removal of \ escapes.
11309   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11310   soname_spec='${libname}${release}${major}$shared_ext'
11311   shlibpath_overrides_runpath=yes
11312   shlibpath_var=DYLD_LIBRARY_PATH
11313   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11314   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11315   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11316   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"`
11317   fi
11318   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11319   ;;
11320
11321 dgux*)
11322   version_type=linux
11323   need_lib_prefix=no
11324   need_version=no
11325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11326   soname_spec='${libname}${release}${shared_ext}$major'
11327   shlibpath_var=LD_LIBRARY_PATH
11328   ;;
11329
11330 freebsd1*)
11331   dynamic_linker=no
11332   ;;
11333
11334 freebsd*)
11335   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11336   version_type=freebsd-$objformat
11337   case $version_type in
11338     freebsd-elf*)
11339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11340       need_version=no
11341       need_lib_prefix=no
11342       ;;
11343     freebsd-*)
11344       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11345       need_version=yes
11346       ;;
11347   esac
11348   shlibpath_var=LD_LIBRARY_PATH
11349   case $host_os in
11350   freebsd2*)
11351     shlibpath_overrides_runpath=yes
11352     ;;
11353   freebsd3.01* | freebsdelf3.01*)
11354     shlibpath_overrides_runpath=yes
11355     hardcode_into_libs=yes
11356     ;;
11357   *) # from 3.2 on
11358     shlibpath_overrides_runpath=no
11359     hardcode_into_libs=yes
11360     ;;
11361   esac
11362   ;;
11363
11364 gnu*)
11365   version_type=linux
11366   need_lib_prefix=no
11367   need_version=no
11368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11369   soname_spec='${libname}${release}${shared_ext}$major'
11370   shlibpath_var=LD_LIBRARY_PATH
11371   hardcode_into_libs=yes
11372   ;;
11373
11374 hpux9* | hpux10* | hpux11*)
11375   # Give a soname corresponding to the major version so that dld.sl refuses to
11376   # link against other versions.
11377   version_type=sunos
11378   need_lib_prefix=no
11379   need_version=no
11380   case "$host_cpu" in
11381   ia64*)
11382     shrext='.so'
11383     hardcode_into_libs=yes
11384     dynamic_linker="$host_os dld.so"
11385     shlibpath_var=LD_LIBRARY_PATH
11386     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388     soname_spec='${libname}${release}${shared_ext}$major'
11389     if test "X$HPUX_IA64_MODE" = X32; then
11390       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11391     else
11392       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11393     fi
11394     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11395     ;;
11396    hppa*64*)
11397      shrext='.sl'
11398      hardcode_into_libs=yes
11399      dynamic_linker="$host_os dld.sl"
11400      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11401      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11402      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403      soname_spec='${libname}${release}${shared_ext}$major'
11404      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11405      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11406      ;;
11407    *)
11408     shrext='.sl'
11409     dynamic_linker="$host_os dld.sl"
11410     shlibpath_var=SHLIB_PATH
11411     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413     soname_spec='${libname}${release}${shared_ext}$major'
11414     ;;
11415   esac
11416   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11417   postinstall_cmds='chmod 555 $lib'
11418   ;;
11419
11420 irix5* | irix6* | nonstopux*)
11421   case $host_os in
11422     nonstopux*) version_type=nonstopux ;;
11423     *)
11424         if test "$lt_cv_prog_gnu_ld" = yes; then
11425                 version_type=linux
11426         else
11427                 version_type=irix
11428         fi ;;
11429   esac
11430   need_lib_prefix=no
11431   need_version=no
11432   soname_spec='${libname}${release}${shared_ext}$major'
11433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11434   case $host_os in
11435   irix5* | nonstopux*)
11436     libsuff= shlibsuff=
11437     ;;
11438   *)
11439     case $LD in # libtool.m4 will add one of these switches to LD
11440     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11441       libsuff= shlibsuff= libmagic=32-bit;;
11442     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11443       libsuff=32 shlibsuff=N32 libmagic=N32;;
11444     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11445       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11446     *) libsuff= shlibsuff= libmagic=never-match;;
11447     esac
11448     ;;
11449   esac
11450   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11451   shlibpath_overrides_runpath=no
11452   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11453   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11454   hardcode_into_libs=yes
11455   ;;
11456
11457 # No shared lib support for Linux oldld, aout, or coff.
11458 linux*oldld* | linux*aout* | linux*coff*)
11459   dynamic_linker=no
11460   ;;
11461
11462 # This must be Linux ELF.
11463 linux*)
11464   version_type=linux
11465   need_lib_prefix=no
11466   need_version=no
11467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468   soname_spec='${libname}${release}${shared_ext}$major'
11469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11470   shlibpath_var=LD_LIBRARY_PATH
11471   shlibpath_overrides_runpath=no
11472   # This implies no fast_install, which is unacceptable.
11473   # Some rework will be needed to allow for fast_install
11474   # before this can be enabled.
11475   hardcode_into_libs=yes
11476
11477   # We used to test for /lib/ld.so.1 and disable shared libraries on
11478   # powerpc, because MkLinux only supported shared libraries with the
11479   # GNU dynamic linker.  Since this was broken with cross compilers,
11480   # most powerpc-linux boxes support dynamic linking these days and
11481   # people can always --disable-shared, the test was removed, and we
11482   # assume the GNU/Linux dynamic linker is in use.
11483   dynamic_linker='GNU/Linux ld.so'
11484   ;;
11485
11486 netbsd*)
11487   version_type=sunos
11488   need_lib_prefix=no
11489   need_version=no
11490   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11492     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11493     dynamic_linker='NetBSD (a.out) ld.so'
11494   else
11495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11496     soname_spec='${libname}${release}${shared_ext}$major'
11497     dynamic_linker='NetBSD ld.elf_so'
11498   fi
11499   shlibpath_var=LD_LIBRARY_PATH
11500   shlibpath_overrides_runpath=yes
11501   hardcode_into_libs=yes
11502   ;;
11503
11504 newsos6)
11505   version_type=linux
11506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507   shlibpath_var=LD_LIBRARY_PATH
11508   shlibpath_overrides_runpath=yes
11509   ;;
11510
11511 nto-qnx)
11512   version_type=linux
11513   need_lib_prefix=no
11514   need_version=no
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516   soname_spec='${libname}${release}${shared_ext}$major'
11517   shlibpath_var=LD_LIBRARY_PATH
11518   shlibpath_overrides_runpath=yes
11519   ;;
11520
11521 openbsd*)
11522   version_type=sunos
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11529     case $host_os in
11530       openbsd2.[89] | openbsd2.[89].*)
11531         shlibpath_overrides_runpath=no
11532         ;;
11533       *)
11534         shlibpath_overrides_runpath=yes
11535         ;;
11536       esac
11537   else
11538     shlibpath_overrides_runpath=yes
11539   fi
11540   ;;
11541
11542 os2*)
11543   libname_spec='$name'
11544   shrext=".dll"
11545   need_lib_prefix=no
11546   library_names_spec='$libname${shared_ext} $libname.a'
11547   dynamic_linker='OS/2 ld.exe'
11548   shlibpath_var=LIBPATH
11549   ;;
11550
11551 osf3* | osf4* | osf5*)
11552   version_type=osf
11553   need_lib_prefix=no
11554   need_version=no
11555   soname_spec='${libname}${release}${shared_ext}$major'
11556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557   shlibpath_var=LD_LIBRARY_PATH
11558   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11559   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11560   ;;
11561
11562 sco3.2v5*)
11563   version_type=osf
11564   soname_spec='${libname}${release}${shared_ext}$major'
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566   shlibpath_var=LD_LIBRARY_PATH
11567   ;;
11568
11569 solaris*)
11570   version_type=linux
11571   need_lib_prefix=no
11572   need_version=no
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574   soname_spec='${libname}${release}${shared_ext}$major'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   shlibpath_overrides_runpath=yes
11577   hardcode_into_libs=yes
11578   # ldd complains unless libraries are executable
11579   postinstall_cmds='chmod +x $lib'
11580   ;;
11581
11582 sunos4*)
11583   version_type=sunos
11584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11585   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11586   shlibpath_var=LD_LIBRARY_PATH
11587   shlibpath_overrides_runpath=yes
11588   if test "$with_gnu_ld" = yes; then
11589     need_lib_prefix=no
11590   fi
11591   need_version=yes
11592   ;;
11593
11594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11595   version_type=linux
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   case $host_vendor in
11600     sni)
11601       shlibpath_overrides_runpath=no
11602       need_lib_prefix=no
11603       export_dynamic_flag_spec='${wl}-Blargedynsym'
11604       runpath_var=LD_RUN_PATH
11605       ;;
11606     siemens)
11607       need_lib_prefix=no
11608       ;;
11609     motorola)
11610       need_lib_prefix=no
11611       need_version=no
11612       shlibpath_overrides_runpath=no
11613       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11614       ;;
11615   esac
11616   ;;
11617
11618 sysv4*MP*)
11619   if test -d /usr/nec ;then
11620     version_type=linux
11621     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11622     soname_spec='$libname${shared_ext}.$major'
11623     shlibpath_var=LD_LIBRARY_PATH
11624   fi
11625   ;;
11626
11627 uts4*)
11628   version_type=linux
11629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630   soname_spec='${libname}${release}${shared_ext}$major'
11631   shlibpath_var=LD_LIBRARY_PATH
11632   ;;
11633
11634 *)
11635   dynamic_linker=no
11636   ;;
11637 esac
11638 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11639 echo "${ECHO_T}$dynamic_linker" >&6
11640 test "$dynamic_linker" = no && can_build_shared=no
11641
11642 if test "x$enable_dlopen" != xyes; then
11643   enable_dlopen=unknown
11644   enable_dlopen_self=unknown
11645   enable_dlopen_self_static=unknown
11646 else
11647   lt_cv_dlopen=no
11648   lt_cv_dlopen_libs=
11649
11650   case $host_os in
11651   beos*)
11652     lt_cv_dlopen="load_add_on"
11653     lt_cv_dlopen_libs=
11654     lt_cv_dlopen_self=yes
11655     ;;
11656
11657   mingw* | pw32*)
11658     lt_cv_dlopen="LoadLibrary"
11659     lt_cv_dlopen_libs=
11660    ;;
11661
11662   cygwin*)
11663     lt_cv_dlopen="dlopen"
11664     lt_cv_dlopen_libs=
11665    ;;
11666
11667   darwin*)
11668   # if libdl is installed we need to link against it
11669     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   ac_check_lib_save_LIBS=$LIBS
11675 LIBS="-ldl  $LIBS"
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682
11683 /* Override any gcc2 internal prototype to avoid an error.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 /* We use char because int might match the return type of a gcc2
11688    builtin and then its argument prototype would still apply.  */
11689 char dlopen ();
11690 int
11691 main ()
11692 {
11693 dlopen ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700   (eval $ac_link) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_cxx_werror_flag"
11708                          || test ! -s conftest.err'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest$ac_exeext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   ac_cv_lib_dl_dlopen=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_cv_lib_dl_dlopen=no
11726 fi
11727 rm -f conftest.err conftest.$ac_objext \
11728       conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11730 fi
11731 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11733 if test $ac_cv_lib_dl_dlopen = yes; then
11734   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11735 else
11736
11737     lt_cv_dlopen="dyld"
11738     lt_cv_dlopen_libs=
11739     lt_cv_dlopen_self=yes
11740
11741 fi
11742
11743    ;;
11744
11745   *)
11746     echo "$as_me:$LINENO: checking for shl_load" >&5
11747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11748 if test "${ac_cv_func_shl_load+set}" = set; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11759 #define shl_load innocuous_shl_load
11760
11761 /* System header to define __stub macros and hopefully few prototypes,
11762     which can conflict with char shl_load (); below.
11763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11764     <limits.h> exists even on freestanding compilers.  */
11765
11766 #ifdef __STDC__
11767 # include <limits.h>
11768 #else
11769 # include <assert.h>
11770 #endif
11771
11772 #undef shl_load
11773
11774 /* Override any gcc2 internal prototype to avoid an error.  */
11775 #ifdef __cplusplus
11776 extern "C"
11777 {
11778 #endif
11779 /* We use char because int might match the return type of a gcc2
11780    builtin and then its argument prototype would still apply.  */
11781 char shl_load ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11786 choke me
11787 #else
11788 char (*f) () = shl_load;
11789 #endif
11790 #ifdef __cplusplus
11791 }
11792 #endif
11793
11794 int
11795 main ()
11796 {
11797 return f != shl_load;
11798   ;
11799   return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804   (eval $ac_link) 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_cxx_werror_flag"
11812                          || test ! -s conftest.err'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; } &&
11818          { ac_try='test -s conftest$ac_exeext'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   ac_cv_func_shl_load=yes
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_cv_func_shl_load=no
11830 fi
11831 rm -f conftest.err conftest.$ac_objext \
11832       conftest$ac_exeext conftest.$ac_ext
11833 fi
11834 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11835 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11836 if test $ac_cv_func_shl_load = yes; then
11837   lt_cv_dlopen="shl_load"
11838 else
11839   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844   ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-ldld  $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852
11853 /* Override any gcc2 internal prototype to avoid an error.  */
11854 #ifdef __cplusplus
11855 extern "C"
11856 #endif
11857 /* We use char because int might match the return type of a gcc2
11858    builtin and then its argument prototype would still apply.  */
11859 char shl_load ();
11860 int
11861 main ()
11862 {
11863 shl_load ();
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870   (eval $ac_link) 2>conftest.er1
11871   ac_status=$?
11872   grep -v '^ *+' conftest.er1 >conftest.err
11873   rm -f conftest.er1
11874   cat conftest.err >&5
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -z "$ac_cxx_werror_flag"
11878                          || test ! -s conftest.err'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; } &&
11884          { ac_try='test -s conftest$ac_exeext'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; }; then
11890   ac_cv_lib_dld_shl_load=yes
11891 else
11892   echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_cv_lib_dld_shl_load=no
11896 fi
11897 rm -f conftest.err conftest.$ac_objext \
11898       conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11900 fi
11901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11903 if test $ac_cv_lib_dld_shl_load = yes; then
11904   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11905 else
11906   echo "$as_me:$LINENO: checking for dlopen" >&5
11907 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11908 if test "${ac_cv_func_dlopen+set}" = set; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911   cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11919 #define dlopen innocuous_dlopen
11920
11921 /* System header to define __stub macros and hopefully few prototypes,
11922     which can conflict with char dlopen (); below.
11923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924     <limits.h> exists even on freestanding compilers.  */
11925
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11931
11932 #undef dlopen
11933
11934 /* Override any gcc2 internal prototype to avoid an error.  */
11935 #ifdef __cplusplus
11936 extern "C"
11937 {
11938 #endif
11939 /* We use char because int might match the return type of a gcc2
11940    builtin and then its argument prototype would still apply.  */
11941 char dlopen ();
11942 /* The GNU C library defines this for functions which it implements
11943     to always fail with ENOSYS.  Some functions are actually named
11944     something starting with __ and the normal name is an alias.  */
11945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11946 choke me
11947 #else
11948 char (*f) () = dlopen;
11949 #endif
11950 #ifdef __cplusplus
11951 }
11952 #endif
11953
11954 int
11955 main ()
11956 {
11957 return f != dlopen;
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964   (eval $ac_link) 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_cxx_werror_flag"
11972                          || test ! -s conftest.err'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest$ac_exeext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   ac_cv_func_dlopen=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 ac_cv_func_dlopen=no
11990 fi
11991 rm -f conftest.err conftest.$ac_objext \
11992       conftest$ac_exeext conftest.$ac_ext
11993 fi
11994 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11995 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11996 if test $ac_cv_func_dlopen = yes; then
11997   lt_cv_dlopen="dlopen"
11998 else
11999   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12000 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-ldl  $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012
12013 /* Override any gcc2 internal prototype to avoid an error.  */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 /* We use char because int might match the return type of a gcc2
12018    builtin and then its argument prototype would still apply.  */
12019 char dlopen ();
12020 int
12021 main ()
12022 {
12023 dlopen ();
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12030   (eval $ac_link) 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -z "$ac_cxx_werror_flag"
12038                          || test ! -s conftest.err'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; } &&
12044          { ac_try='test -s conftest$ac_exeext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   ac_cv_lib_dl_dlopen=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 ac_cv_lib_dl_dlopen=no
12056 fi
12057 rm -f conftest.err conftest.$ac_objext \
12058       conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12063 if test $ac_cv_lib_dl_dlopen = yes; then
12064   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12065 else
12066   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12069   echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071   ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lsvld  $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079
12080 /* Override any gcc2 internal prototype to avoid an error.  */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 /* We use char because int might match the return type of a gcc2
12085    builtin and then its argument prototype would still apply.  */
12086 char dlopen ();
12087 int
12088 main ()
12089 {
12090 dlopen ();
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>conftest.er1
12098   ac_status=$?
12099   grep -v '^ *+' conftest.er1 >conftest.err
12100   rm -f conftest.er1
12101   cat conftest.err >&5
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -z "$ac_cxx_werror_flag"
12105                          || test ! -s conftest.err'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; } &&
12111          { ac_try='test -s conftest$ac_exeext'
12112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113   (eval $ac_try) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; }; then
12117   ac_cv_lib_svld_dlopen=yes
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122 ac_cv_lib_svld_dlopen=no
12123 fi
12124 rm -f conftest.err conftest.$ac_objext \
12125       conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12127 fi
12128 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12129 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12130 if test $ac_cv_lib_svld_dlopen = yes; then
12131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12132 else
12133   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12134 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12135 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-ldld  $LIBS"
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146
12147 /* Override any gcc2 internal prototype to avoid an error.  */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 /* We use char because int might match the return type of a gcc2
12152    builtin and then its argument prototype would still apply.  */
12153 char dld_link ();
12154 int
12155 main ()
12156 {
12157 dld_link ();
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164   (eval $ac_link) 2>conftest.er1
12165   ac_status=$?
12166   grep -v '^ *+' conftest.er1 >conftest.err
12167   rm -f conftest.er1
12168   cat conftest.err >&5
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -z "$ac_cxx_werror_flag"
12172                          || test ! -s conftest.err'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest$ac_exeext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   ac_cv_lib_dld_dld_link=yes
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_cv_lib_dld_dld_link=no
12190 fi
12191 rm -f conftest.err conftest.$ac_objext \
12192       conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12196 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12197 if test $ac_cv_lib_dld_dld_link = yes; then
12198   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12199 fi
12200
12201
12202 fi
12203
12204
12205 fi
12206
12207
12208 fi
12209
12210
12211 fi
12212
12213
12214 fi
12215
12216     ;;
12217   esac
12218
12219   if test "x$lt_cv_dlopen" != xno; then
12220     enable_dlopen=yes
12221   else
12222     enable_dlopen=no
12223   fi
12224
12225   case $lt_cv_dlopen in
12226   dlopen)
12227     save_CPPFLAGS="$CPPFLAGS"
12228     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12229
12230     save_LDFLAGS="$LDFLAGS"
12231     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12232
12233     save_LIBS="$LIBS"
12234     LIBS="$lt_cv_dlopen_libs $LIBS"
12235
12236     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12237 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12238 if test "${lt_cv_dlopen_self+set}" = set; then
12239   echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241           if test "$cross_compiling" = yes; then :
12242   lt_cv_dlopen_self=cross
12243 else
12244   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12245   lt_status=$lt_dlunknown
12246   cat > conftest.$ac_ext <<EOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12249
12250 #if HAVE_DLFCN_H
12251 #include <dlfcn.h>
12252 #endif
12253
12254 #include <stdio.h>
12255
12256 #ifdef RTLD_GLOBAL
12257 #  define LT_DLGLOBAL           RTLD_GLOBAL
12258 #else
12259 #  ifdef DL_GLOBAL
12260 #    define LT_DLGLOBAL         DL_GLOBAL
12261 #  else
12262 #    define LT_DLGLOBAL         0
12263 #  endif
12264 #endif
12265
12266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12267    find out it does not work in some platform. */
12268 #ifndef LT_DLLAZY_OR_NOW
12269 #  ifdef RTLD_LAZY
12270 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12271 #  else
12272 #    ifdef DL_LAZY
12273 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12274 #    else
12275 #      ifdef RTLD_NOW
12276 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12277 #      else
12278 #        ifdef DL_NOW
12279 #          define LT_DLLAZY_OR_NOW      DL_NOW
12280 #        else
12281 #          define LT_DLLAZY_OR_NOW      0
12282 #        endif
12283 #      endif
12284 #    endif
12285 #  endif
12286 #endif
12287
12288 #ifdef __cplusplus
12289 extern "C" void exit (int);
12290 #endif
12291
12292 void fnord() { int i=42;}
12293 int main ()
12294 {
12295   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296   int status = $lt_dlunknown;
12297
12298   if (self)
12299     {
12300       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12301       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12302       /* dlclose (self); */
12303     }
12304
12305     exit (status);
12306 }
12307 EOF
12308   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12309   (eval $ac_link) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12313     (./conftest; exit; ) 2>/dev/null
12314     lt_status=$?
12315     case x$lt_status in
12316       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12317       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12318       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12319     esac
12320   else :
12321     # compilation failed
12322     lt_cv_dlopen_self=no
12323   fi
12324 fi
12325 rm -fr conftest*
12326
12327
12328 fi
12329 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12330 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12331
12332     if test "x$lt_cv_dlopen_self" = xyes; then
12333       LDFLAGS="$LDFLAGS $link_static_flag"
12334       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12335 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12336 if test "${lt_cv_dlopen_self_static+set}" = set; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339           if test "$cross_compiling" = yes; then :
12340   lt_cv_dlopen_self_static=cross
12341 else
12342   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12343   lt_status=$lt_dlunknown
12344   cat > conftest.$ac_ext <<EOF
12345 #line 12345 "configure"
12346 #include "confdefs.h"
12347
12348 #if HAVE_DLFCN_H
12349 #include <dlfcn.h>
12350 #endif
12351
12352 #include <stdio.h>
12353
12354 #ifdef RTLD_GLOBAL
12355 #  define LT_DLGLOBAL           RTLD_GLOBAL
12356 #else
12357 #  ifdef DL_GLOBAL
12358 #    define LT_DLGLOBAL         DL_GLOBAL
12359 #  else
12360 #    define LT_DLGLOBAL         0
12361 #  endif
12362 #endif
12363
12364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12365    find out it does not work in some platform. */
12366 #ifndef LT_DLLAZY_OR_NOW
12367 #  ifdef RTLD_LAZY
12368 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12369 #  else
12370 #    ifdef DL_LAZY
12371 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12372 #    else
12373 #      ifdef RTLD_NOW
12374 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12375 #      else
12376 #        ifdef DL_NOW
12377 #          define LT_DLLAZY_OR_NOW      DL_NOW
12378 #        else
12379 #          define LT_DLLAZY_OR_NOW      0
12380 #        endif
12381 #      endif
12382 #    endif
12383 #  endif
12384 #endif
12385
12386 #ifdef __cplusplus
12387 extern "C" void exit (int);
12388 #endif
12389
12390 void fnord() { int i=42;}
12391 int main ()
12392 {
12393   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12394   int status = $lt_dlunknown;
12395
12396   if (self)
12397     {
12398       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12399       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400       /* dlclose (self); */
12401     }
12402
12403     exit (status);
12404 }
12405 EOF
12406   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407   (eval $ac_link) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12411     (./conftest; exit; ) 2>/dev/null
12412     lt_status=$?
12413     case x$lt_status in
12414       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12415       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12416       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12417     esac
12418   else :
12419     # compilation failed
12420     lt_cv_dlopen_self_static=no
12421   fi
12422 fi
12423 rm -fr conftest*
12424
12425
12426 fi
12427 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12428 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12429     fi
12430
12431     CPPFLAGS="$save_CPPFLAGS"
12432     LDFLAGS="$save_LDFLAGS"
12433     LIBS="$save_LIBS"
12434     ;;
12435   esac
12436
12437   case $lt_cv_dlopen_self in
12438   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12439   *) enable_dlopen_self=unknown ;;
12440   esac
12441
12442   case $lt_cv_dlopen_self_static in
12443   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12444   *) enable_dlopen_self_static=unknown ;;
12445   esac
12446 fi
12447
12448
12449 # The else clause should only fire when bootstrapping the
12450 # libtool distribution, otherwise you forgot to ship ltmain.sh
12451 # with your package, and you will get complaints that there are
12452 # no rules to generate ltmain.sh.
12453 if test -f "$ltmain"; then
12454   # See if we are running on zsh, and set the options which allow our commands through
12455   # without removal of \ escapes.
12456   if test -n "${ZSH_VERSION+set}" ; then
12457     setopt NO_GLOB_SUBST
12458   fi
12459   # Now quote all the things that may contain metacharacters while being
12460   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12461   # variables and quote the copies for generation of the libtool script.
12462   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12463     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12464     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12465     deplibs_check_method reload_flag reload_cmds need_locks \
12466     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12467     lt_cv_sys_global_symbol_to_c_name_address \
12468     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12469     old_postinstall_cmds old_postuninstall_cmds \
12470     compiler_CXX \
12471     CC_CXX \
12472     LD_CXX \
12473     lt_prog_compiler_wl_CXX \
12474     lt_prog_compiler_pic_CXX \
12475     lt_prog_compiler_static_CXX \
12476     lt_prog_compiler_no_builtin_flag_CXX \
12477     export_dynamic_flag_spec_CXX \
12478     thread_safe_flag_spec_CXX \
12479     whole_archive_flag_spec_CXX \
12480     enable_shared_with_static_runtimes_CXX \
12481     old_archive_cmds_CXX \
12482     old_archive_from_new_cmds_CXX \
12483     predep_objects_CXX \
12484     postdep_objects_CXX \
12485     predeps_CXX \
12486     postdeps_CXX \
12487     compiler_lib_search_path_CXX \
12488     archive_cmds_CXX \
12489     archive_expsym_cmds_CXX \
12490     postinstall_cmds_CXX \
12491     postuninstall_cmds_CXX \
12492     old_archive_from_expsyms_cmds_CXX \
12493     allow_undefined_flag_CXX \
12494     no_undefined_flag_CXX \
12495     export_symbols_cmds_CXX \
12496     hardcode_libdir_flag_spec_CXX \
12497     hardcode_libdir_flag_spec_ld_CXX \
12498     hardcode_libdir_separator_CXX \
12499     hardcode_automatic_CXX \
12500     module_cmds_CXX \
12501     module_expsym_cmds_CXX \
12502     lt_cv_prog_compiler_c_o_CXX \
12503     exclude_expsyms_CXX \
12504     include_expsyms_CXX; do
12505
12506     case $var in
12507     old_archive_cmds_CXX | \
12508     old_archive_from_new_cmds_CXX | \
12509     archive_cmds_CXX | \
12510     archive_expsym_cmds_CXX | \
12511     module_cmds_CXX | \
12512     module_expsym_cmds_CXX | \
12513     old_archive_from_expsyms_cmds_CXX | \
12514     export_symbols_cmds_CXX | \
12515     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12516     postinstall_cmds | postuninstall_cmds | \
12517     old_postinstall_cmds | old_postuninstall_cmds | \
12518     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12519       # Double-quote double-evaled strings.
12520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12521       ;;
12522     *)
12523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12524       ;;
12525     esac
12526   done
12527
12528   case $lt_echo in
12529   *'\$0 --fallback-echo"')
12530     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12531     ;;
12532   esac
12533
12534 cfgfile="$ofile"
12535
12536   cat <<__EOF__ >> "$cfgfile"
12537 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12538
12539 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12540
12541 # Shell to use when invoking shell scripts.
12542 SHELL=$lt_SHELL
12543
12544 # Whether or not to build shared libraries.
12545 build_libtool_libs=$enable_shared
12546
12547 # Whether or not to build static libraries.
12548 build_old_libs=$enable_static
12549
12550 # Whether or not to add -lc for building shared libraries.
12551 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12552
12553 # Whether or not to disallow shared libs when runtime libs are static
12554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12555
12556 # Whether or not to optimize for fast installation.
12557 fast_install=$enable_fast_install
12558
12559 # The host system.
12560 host_alias=$host_alias
12561 host=$host
12562
12563 # An echo program that does not interpret backslashes.
12564 echo=$lt_echo
12565
12566 # The archiver.
12567 AR=$lt_AR
12568 AR_FLAGS=$lt_AR_FLAGS
12569
12570 # A C compiler.
12571 LTCC=$lt_LTCC
12572
12573 # A language-specific compiler.
12574 CC=$lt_compiler_CXX
12575
12576 # Is the compiler the GNU C compiler?
12577 with_gcc=$GCC_CXX
12578
12579 # An ERE matcher.
12580 EGREP=$lt_EGREP
12581
12582 # The linker used to build libraries.
12583 LD=$lt_LD_CXX
12584
12585 # Whether we need hard or soft links.
12586 LN_S=$lt_LN_S
12587
12588 # A BSD-compatible nm program.
12589 NM=$lt_NM
12590
12591 # A symbol stripping program
12592 STRIP=$STRIP
12593
12594 # Used to examine libraries when file_magic_cmd begins "file"
12595 MAGIC_CMD=$MAGIC_CMD
12596
12597 # Used on cygwin: DLL creation program.
12598 DLLTOOL="$DLLTOOL"
12599
12600 # Used on cygwin: object dumper.
12601 OBJDUMP="$OBJDUMP"
12602
12603 # Used on cygwin: assembler.
12604 AS="$AS"
12605
12606 # The name of the directory that contains temporary libtool files.
12607 objdir=$objdir
12608
12609 # How to create reloadable object files.
12610 reload_flag=$lt_reload_flag
12611 reload_cmds=$lt_reload_cmds
12612
12613 # How to pass a linker flag through the compiler.
12614 wl=$lt_lt_prog_compiler_wl_CXX
12615
12616 # Object file suffix (normally "o").
12617 objext="$ac_objext"
12618
12619 # Old archive suffix (normally "a").
12620 libext="$libext"
12621
12622 # Shared library suffix (normally ".so").
12623 shrext='$shrext'
12624
12625 # Executable file suffix (normally "").
12626 exeext="$exeext"
12627
12628 # Additional compiler flags for building library objects.
12629 pic_flag=$lt_lt_prog_compiler_pic_CXX
12630 pic_mode=$pic_mode
12631
12632 # What is the maximum length of a command?
12633 max_cmd_len=$lt_cv_sys_max_cmd_len
12634
12635 # Does compiler simultaneously support -c and -o options?
12636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12637
12638 # Must we lock files when doing compilation ?
12639 need_locks=$lt_need_locks
12640
12641 # Do we need the lib prefix for modules?
12642 need_lib_prefix=$need_lib_prefix
12643
12644 # Do we need a version for libraries?
12645 need_version=$need_version
12646
12647 # Whether dlopen is supported.
12648 dlopen_support=$enable_dlopen
12649
12650 # Whether dlopen of programs is supported.
12651 dlopen_self=$enable_dlopen_self
12652
12653 # Whether dlopen of statically linked programs is supported.
12654 dlopen_self_static=$enable_dlopen_self_static
12655
12656 # Compiler flag to prevent dynamic linking.
12657 link_static_flag=$lt_lt_prog_compiler_static_CXX
12658
12659 # Compiler flag to turn off builtin functions.
12660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12661
12662 # Compiler flag to allow reflexive dlopens.
12663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12664
12665 # Compiler flag to generate shared objects directly from archives.
12666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12667
12668 # Compiler flag to generate thread-safe objects.
12669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12670
12671 # Library versioning type.
12672 version_type=$version_type
12673
12674 # Format of library name prefix.
12675 libname_spec=$lt_libname_spec
12676
12677 # List of archive names.  First name is the real one, the rest are links.
12678 # The last name is the one that the linker finds with -lNAME.
12679 library_names_spec=$lt_library_names_spec
12680
12681 # The coded name of the library, if different from the real name.
12682 soname_spec=$lt_soname_spec
12683
12684 # Commands used to build and install an old-style archive.
12685 RANLIB=$lt_RANLIB
12686 old_archive_cmds=$lt_old_archive_cmds_CXX
12687 old_postinstall_cmds=$lt_old_postinstall_cmds
12688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12689
12690 # Create an old-style archive from a shared archive.
12691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12692
12693 # Create a temporary old-style archive to link instead of a shared archive.
12694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12695
12696 # Commands used to build and install a shared archive.
12697 archive_cmds=$lt_archive_cmds_CXX
12698 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12699 postinstall_cmds=$lt_postinstall_cmds
12700 postuninstall_cmds=$lt_postuninstall_cmds
12701
12702 # Commands used to build a loadable module (assumed same as above if empty)
12703 module_cmds=$lt_module_cmds_CXX
12704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12705
12706 # Commands to strip libraries.
12707 old_striplib=$lt_old_striplib
12708 striplib=$lt_striplib
12709
12710 # Dependencies to place before the objects being linked to create a
12711 # shared library.
12712 predep_objects=$lt_predep_objects_CXX
12713
12714 # Dependencies to place after the objects being linked to create a
12715 # shared library.
12716 postdep_objects=$lt_postdep_objects_CXX
12717
12718 # Dependencies to place before the objects being linked to create a
12719 # shared library.
12720 predeps=$lt_predeps_CXX
12721
12722 # Dependencies to place after the objects being linked to create a
12723 # shared library.
12724 postdeps=$lt_postdeps_CXX
12725
12726 # The library search path used internally by the compiler when linking
12727 # a shared library.
12728 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12729
12730 # Method to check whether dependent libraries are shared objects.
12731 deplibs_check_method=$lt_deplibs_check_method
12732
12733 # Command to use when deplibs_check_method == file_magic.
12734 file_magic_cmd=$lt_file_magic_cmd
12735
12736 # Flag that allows shared libraries with undefined symbols to be built.
12737 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12738
12739 # Flag that forces no undefined symbols.
12740 no_undefined_flag=$lt_no_undefined_flag_CXX
12741
12742 # Commands used to finish a libtool library installation in a directory.
12743 finish_cmds=$lt_finish_cmds
12744
12745 # Same as above, but a single script fragment to be evaled but not shown.
12746 finish_eval=$lt_finish_eval
12747
12748 # Take the output of nm and produce a listing of raw symbols and C names.
12749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12750
12751 # Transform the output of nm in a proper C declaration
12752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12753
12754 # Transform the output of nm in a C name address pair
12755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12756
12757 # This is the shared library runtime path variable.
12758 runpath_var=$runpath_var
12759
12760 # This is the shared library path variable.
12761 shlibpath_var=$shlibpath_var
12762
12763 # Is shlibpath searched before the hard-coded library search path?
12764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12765
12766 # How to hardcode a shared library path into an executable.
12767 hardcode_action=$hardcode_action_CXX
12768
12769 # Whether we should hardcode library paths into libraries.
12770 hardcode_into_libs=$hardcode_into_libs
12771
12772 # Flag to hardcode \$libdir into a binary during linking.
12773 # This must work even if \$libdir does not exist.
12774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12775
12776 # If ld is used when linking, flag to hardcode \$libdir into
12777 # a binary during linking. This must work even if \$libdir does
12778 # not exist.
12779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12780
12781 # Whether we need a single -rpath flag with a separated argument.
12782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12783
12784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12785 # resulting binary.
12786 hardcode_direct=$hardcode_direct_CXX
12787
12788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12789 # resulting binary.
12790 hardcode_minus_L=$hardcode_minus_L_CXX
12791
12792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12793 # the resulting binary.
12794 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12795
12796 # Set to yes if building a shared library automatically hardcodes DIR into the library
12797 # and all subsequent libraries and executables linked against it.
12798 hardcode_automatic=$hardcode_automatic_CXX
12799
12800 # Variables whose values should be saved in libtool wrapper scripts and
12801 # restored at relink time.
12802 variables_saved_for_relink="$variables_saved_for_relink"
12803
12804 # Whether libtool must link a program against all its dependency libraries.
12805 link_all_deplibs=$link_all_deplibs_CXX
12806
12807 # Compile-time system search path for libraries
12808 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12809
12810 # Run-time system search path for libraries
12811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12812
12813 # Fix the shell variable \$srcfile for the compiler.
12814 fix_srcfile_path="$fix_srcfile_path_CXX"
12815
12816 # Set to yes if exported symbols are required.
12817 always_export_symbols=$always_export_symbols_CXX
12818
12819 # The commands to list exported symbols.
12820 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12821
12822 # The commands to extract the exported symbol list from a shared archive.
12823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12824
12825 # Symbols that should not be listed in the preloaded symbols.
12826 exclude_expsyms=$lt_exclude_expsyms_CXX
12827
12828 # Symbols that must always be exported.
12829 include_expsyms=$lt_include_expsyms_CXX
12830
12831 # ### END LIBTOOL TAG CONFIG: $tagname
12832
12833 __EOF__
12834
12835
12836 else
12837   # If there is no Makefile yet, we rely on a make rule to execute
12838   # `config.status --recheck' to rerun these tests and create the
12839   # libtool script then.
12840   test -f Makefile && make "$ltmain"
12841 fi
12842
12843
12844 ac_ext=c
12845 ac_cpp='$CPP $CPPFLAGS'
12846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850 CC=$lt_save_CC
12851 LDCXX=$LD
12852 LD=$lt_save_LD
12853 GCC=$lt_save_GCC
12854 with_gnu_ldcxx=$with_gnu_ld
12855 with_gnu_ld=$lt_save_with_gnu_ld
12856 lt_cv_path_LDCXX=$lt_cv_path_LD
12857 lt_cv_path_LD=$lt_save_path_LD
12858 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12859 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12860
12861         else
12862           tagname=""
12863         fi
12864         ;;
12865
12866       F77)
12867         if test -n "$F77" && test "X$F77" != "Xno"; then
12868
12869 ac_ext=f
12870 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12871 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12873
12874
12875 archive_cmds_need_lc_F77=no
12876 allow_undefined_flag_F77=
12877 always_export_symbols_F77=no
12878 archive_expsym_cmds_F77=
12879 export_dynamic_flag_spec_F77=
12880 hardcode_direct_F77=no
12881 hardcode_libdir_flag_spec_F77=
12882 hardcode_libdir_flag_spec_ld_F77=
12883 hardcode_libdir_separator_F77=
12884 hardcode_minus_L_F77=no
12885 hardcode_automatic_F77=no
12886 module_cmds_F77=
12887 module_expsym_cmds_F77=
12888 link_all_deplibs_F77=unknown
12889 old_archive_cmds_F77=$old_archive_cmds
12890 no_undefined_flag_F77=
12891 whole_archive_flag_spec_F77=
12892 enable_shared_with_static_runtimes_F77=no
12893
12894 # Source file extension for f77 test sources.
12895 ac_ext=f
12896
12897 # Object file extension for compiled f77 test sources.
12898 objext=o
12899 objext_F77=$objext
12900
12901 # Code to be used in simple compile tests
12902 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12903
12904 # Code to be used in simple link tests
12905 lt_simple_link_test_code="      program t\n      end\n"
12906
12907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12908
12909 # If no C compiler was specified, use CC.
12910 LTCC=${LTCC-"$CC"}
12911
12912 # Allow CC to be a program name with arguments.
12913 compiler=$CC
12914
12915
12916 # Allow CC to be a program name with arguments.
12917 lt_save_CC="$CC"
12918 CC=${F77-"f77"}
12919 compiler=$CC
12920 compiler_F77=$CC
12921 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12922
12923 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12924 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12925 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12926 echo "${ECHO_T}$can_build_shared" >&6
12927
12928 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12929 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12930 test "$can_build_shared" = "no" && enable_shared=no
12931
12932 # On AIX, shared libraries and static libraries use the same namespace, and
12933 # are all built from PIC.
12934 case "$host_os" in
12935 aix3*)
12936   test "$enable_shared" = yes && enable_static=no
12937   if test -n "$RANLIB"; then
12938     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12939     postinstall_cmds='$RANLIB $lib'
12940   fi
12941   ;;
12942 aix4*)
12943   test "$enable_shared" = yes && enable_static=no
12944   ;;
12945 esac
12946 echo "$as_me:$LINENO: result: $enable_shared" >&5
12947 echo "${ECHO_T}$enable_shared" >&6
12948
12949 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12950 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12951 # Make sure either enable_shared or enable_static is yes.
12952 test "$enable_shared" = yes || enable_static=yes
12953 echo "$as_me:$LINENO: result: $enable_static" >&5
12954 echo "${ECHO_T}$enable_static" >&6
12955
12956 test "$ld_shlibs_F77" = no && can_build_shared=no
12957
12958 GCC_F77="$G77"
12959 LD_F77="$LD"
12960
12961 lt_prog_compiler_wl_F77=
12962 lt_prog_compiler_pic_F77=
12963 lt_prog_compiler_static_F77=
12964
12965 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12966 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12967
12968   if test "$GCC" = yes; then
12969     lt_prog_compiler_wl_F77='-Wl,'
12970     lt_prog_compiler_static_F77='-static'
12971
12972     case $host_os in
12973       aix*)
12974       # All AIX code is PIC.
12975       if test "$host_cpu" = ia64; then
12976         # AIX 5 now supports IA64 processor
12977         lt_prog_compiler_static_F77='-Bstatic'
12978       fi
12979       ;;
12980
12981     amigaos*)
12982       # FIXME: we need at least 68020 code to build shared libraries, but
12983       # adding the `-m68020' flag to GCC prevents building anything better,
12984       # like `-m68040'.
12985       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12986       ;;
12987
12988     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12989       # PIC is the default for these OSes.
12990       ;;
12991
12992     mingw* | pw32* | os2*)
12993       # This hack is so that the source file can tell whether it is being
12994       # built for inclusion in a dll (and should export symbols for example).
12995       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12996       ;;
12997
12998     darwin* | rhapsody*)
12999       # PIC is the default on this platform
13000       # Common symbols not allowed in MH_DYLIB files
13001       lt_prog_compiler_pic_F77='-fno-common'
13002       ;;
13003
13004     msdosdjgpp*)
13005       # Just because we use GCC doesn't mean we suddenly get shared libraries
13006       # on systems that don't support them.
13007       lt_prog_compiler_can_build_shared_F77=no
13008       enable_shared=no
13009       ;;
13010
13011     sysv4*MP*)
13012       if test -d /usr/nec; then
13013         lt_prog_compiler_pic_F77=-Kconform_pic
13014       fi
13015       ;;
13016
13017     hpux*)
13018       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13019       # not for PA HP-UX.
13020       case "$host_cpu" in
13021       hppa*64*|ia64*)
13022         # +Z the default
13023         ;;
13024       *)
13025         lt_prog_compiler_pic_F77='-fPIC'
13026         ;;
13027       esac
13028       ;;
13029
13030     *)
13031       lt_prog_compiler_pic_F77='-fPIC'
13032       ;;
13033     esac
13034   else
13035     # PORTME Check for flag to pass linker flags through the system compiler.
13036     case $host_os in
13037     aix*)
13038       lt_prog_compiler_wl_F77='-Wl,'
13039       if test "$host_cpu" = ia64; then
13040         # AIX 5 now supports IA64 processor
13041         lt_prog_compiler_static_F77='-Bstatic'
13042       else
13043         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13044       fi
13045       ;;
13046
13047     mingw* | pw32* | os2*)
13048       # This hack is so that the source file can tell whether it is being
13049       # built for inclusion in a dll (and should export symbols for example).
13050       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051       ;;
13052
13053     hpux9* | hpux10* | hpux11*)
13054       lt_prog_compiler_wl_F77='-Wl,'
13055       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13056       # not for PA HP-UX.
13057       case "$host_cpu" in
13058       hppa*64*|ia64*)
13059         # +Z the default
13060         ;;
13061       *)
13062         lt_prog_compiler_pic_F77='+Z'
13063         ;;
13064       esac
13065       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13066       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13067       ;;
13068
13069     irix5* | irix6* | nonstopux*)
13070       lt_prog_compiler_wl_F77='-Wl,'
13071       # PIC (with -KPIC) is the default.
13072       lt_prog_compiler_static_F77='-non_shared'
13073       ;;
13074
13075     newsos6)
13076       lt_prog_compiler_pic_F77='-KPIC'
13077       lt_prog_compiler_static_F77='-Bstatic'
13078       ;;
13079
13080     linux*)
13081       case $CC in
13082       icc|ecc)
13083         lt_prog_compiler_wl_F77='-Wl,'
13084         lt_prog_compiler_pic_F77='-KPIC'
13085         lt_prog_compiler_static_F77='-static'
13086         ;;
13087       ccc)
13088         lt_prog_compiler_wl_F77='-Wl,'
13089         # All Alpha code is PIC.
13090         lt_prog_compiler_static_F77='-non_shared'
13091         ;;
13092       esac
13093       ;;
13094
13095     osf3* | osf4* | osf5*)
13096       lt_prog_compiler_wl_F77='-Wl,'
13097       # All OSF/1 code is PIC.
13098       lt_prog_compiler_static_F77='-non_shared'
13099       ;;
13100
13101     sco3.2v5*)
13102       lt_prog_compiler_pic_F77='-Kpic'
13103       lt_prog_compiler_static_F77='-dn'
13104       ;;
13105
13106     solaris*)
13107       lt_prog_compiler_wl_F77='-Wl,'
13108       lt_prog_compiler_pic_F77='-KPIC'
13109       lt_prog_compiler_static_F77='-Bstatic'
13110       ;;
13111
13112     sunos4*)
13113       lt_prog_compiler_wl_F77='-Qoption ld '
13114       lt_prog_compiler_pic_F77='-PIC'
13115       lt_prog_compiler_static_F77='-Bstatic'
13116       ;;
13117
13118     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13119       lt_prog_compiler_wl_F77='-Wl,'
13120       lt_prog_compiler_pic_F77='-KPIC'
13121       lt_prog_compiler_static_F77='-Bstatic'
13122       ;;
13123
13124     sysv4*MP*)
13125       if test -d /usr/nec ;then
13126         lt_prog_compiler_pic_F77='-Kconform_pic'
13127         lt_prog_compiler_static_F77='-Bstatic'
13128       fi
13129       ;;
13130
13131     uts4*)
13132       lt_prog_compiler_pic_F77='-pic'
13133       lt_prog_compiler_static_F77='-Bstatic'
13134       ;;
13135
13136     *)
13137       lt_prog_compiler_can_build_shared_F77=no
13138       ;;
13139     esac
13140   fi
13141
13142 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13143 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13144
13145 #
13146 # Check to make sure the PIC flag actually works.
13147 #
13148 if test -n "$lt_prog_compiler_pic_F77"; then
13149   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13150 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13151 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   lt_prog_compiler_pic_works_F77=no
13155   ac_outfile=conftest.$ac_objext
13156    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13157    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13158    # Insert the option either (1) after the last *FLAGS variable, or
13159    # (2) before a word containing "conftest.", or (3) at the end.
13160    # Note that $ac_compile itself does not contain backslashes and begins
13161    # with a dollar sign (not a hyphen), so the echo should work correctly.
13162    # The option is referenced via a variable to avoid confusing sed.
13163    lt_compile=`echo "$ac_compile" | $SED \
13164    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13166    -e 's:$: $lt_compiler_flag:'`
13167    (eval echo "\"\$as_me:13167: $lt_compile\"" >&5)
13168    (eval "$lt_compile" 2>conftest.err)
13169    ac_status=$?
13170    cat conftest.err >&5
13171    echo "$as_me:13171: \$? = $ac_status" >&5
13172    if (exit $ac_status) && test -s "$ac_outfile"; then
13173      # The compiler can only warn and ignore the option if not recognized
13174      # So say no if there are warnings
13175      if test ! -s conftest.err; then
13176        lt_prog_compiler_pic_works_F77=yes
13177      fi
13178    fi
13179    $rm conftest*
13180
13181 fi
13182 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13183 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13184
13185 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13186     case $lt_prog_compiler_pic_F77 in
13187      "" | " "*) ;;
13188      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13189      esac
13190 else
13191     lt_prog_compiler_pic_F77=
13192      lt_prog_compiler_can_build_shared_F77=no
13193 fi
13194
13195 fi
13196 case "$host_os" in
13197   # For platforms which do not support PIC, -DPIC is meaningless:
13198   *djgpp*)
13199     lt_prog_compiler_pic_F77=
13200     ;;
13201   *)
13202     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13203     ;;
13204 esac
13205
13206 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13207 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13208 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   lt_cv_prog_compiler_c_o_F77=no
13212    $rm -r conftest 2>/dev/null
13213    mkdir conftest
13214    cd conftest
13215    mkdir out
13216    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13217
13218    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13219    # that will create temporary files in the current directory regardless of
13220    # the output directory.  Thus, making CWD read-only will cause this test
13221    # to fail, enabling locking or at least warning the user not to do parallel
13222    # builds.
13223    chmod -w .
13224
13225    lt_compiler_flag="-o out/conftest2.$ac_objext"
13226    # Insert the option either (1) after the last *FLAGS variable, or
13227    # (2) before a word containing "conftest.", or (3) at the end.
13228    # Note that $ac_compile itself does not contain backslashes and begins
13229    # with a dollar sign (not a hyphen), so the echo should work correctly.
13230    lt_compile=`echo "$ac_compile" | $SED \
13231    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13233    -e 's:$: $lt_compiler_flag:'`
13234    (eval echo "\"\$as_me:13234: $lt_compile\"" >&5)
13235    (eval "$lt_compile" 2>out/conftest.err)
13236    ac_status=$?
13237    cat out/conftest.err >&5
13238    echo "$as_me:13238: \$? = $ac_status" >&5
13239    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13240    then
13241      # The compiler can only warn and ignore the option if not recognized
13242      # So say no if there are warnings
13243      if test ! -s out/conftest.err; then
13244        lt_cv_prog_compiler_c_o_F77=yes
13245      fi
13246    fi
13247    chmod u+w .
13248    $rm conftest* out/*
13249    rmdir out
13250    cd ..
13251    rmdir conftest
13252    $rm conftest*
13253
13254 fi
13255 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13257
13258
13259 hard_links="nottested"
13260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13261   # do not overwrite the value of need_locks provided by the user
13262   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13264   hard_links=yes
13265   $rm conftest*
13266   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13267   touch conftest.a
13268   ln conftest.a conftest.b 2>&5 || hard_links=no
13269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13270   echo "$as_me:$LINENO: result: $hard_links" >&5
13271 echo "${ECHO_T}$hard_links" >&6
13272   if test "$hard_links" = no; then
13273     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13275     need_locks=warn
13276   fi
13277 else
13278   need_locks=no
13279 fi
13280
13281 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13283
13284   runpath_var=
13285   allow_undefined_flag_F77=
13286   enable_shared_with_static_runtimes_F77=no
13287   archive_cmds_F77=
13288   archive_expsym_cmds_F77=
13289   old_archive_From_new_cmds_F77=
13290   old_archive_from_expsyms_cmds_F77=
13291   export_dynamic_flag_spec_F77=
13292   whole_archive_flag_spec_F77=
13293   thread_safe_flag_spec_F77=
13294   hardcode_libdir_flag_spec_F77=
13295   hardcode_libdir_flag_spec_ld_F77=
13296   hardcode_libdir_separator_F77=
13297   hardcode_direct_F77=no
13298   hardcode_minus_L_F77=no
13299   hardcode_shlibpath_var_F77=unsupported
13300   link_all_deplibs_F77=unknown
13301   hardcode_automatic_F77=no
13302   module_cmds_F77=
13303   module_expsym_cmds_F77=
13304   always_export_symbols_F77=no
13305   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13306   # include_expsyms should be a list of space-separated symbols to be *always*
13307   # included in the symbol list
13308   include_expsyms_F77=
13309   # exclude_expsyms can be an extended regexp of symbols to exclude
13310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13312   # as well as any symbol that contains `d'.
13313   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13315   # platforms (ab)use it in PIC code, but their linkers get confused if
13316   # the symbol is explicitly referenced.  Since portable code cannot
13317   # rely on this symbol name, it's probably fine to never include it in
13318   # preloaded symbol tables.
13319   extract_expsyms_cmds=
13320
13321   case $host_os in
13322   cygwin* | mingw* | pw32*)
13323     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13324     # When not using gcc, we currently assume that we are using
13325     # Microsoft Visual C++.
13326     if test "$GCC" != yes; then
13327       with_gnu_ld=no
13328     fi
13329     ;;
13330   openbsd*)
13331     with_gnu_ld=no
13332     ;;
13333   esac
13334
13335   ld_shlibs_F77=yes
13336   if test "$with_gnu_ld" = yes; then
13337     # If archive_cmds runs LD, not CC, wlarc should be empty
13338     wlarc='${wl}'
13339
13340     # See if GNU ld supports shared libraries.
13341     case $host_os in
13342     aix3* | aix4* | aix5*)
13343       # On AIX/PPC, the GNU linker is very broken
13344       if test "$host_cpu" != ia64; then
13345         ld_shlibs_F77=no
13346         cat <<EOF 1>&2
13347
13348 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13349 *** to be unable to reliably create shared libraries on AIX.
13350 *** Therefore, libtool is disabling shared libraries support.  If you
13351 *** really care for shared libraries, you may want to modify your PATH
13352 *** so that a non-GNU linker is found, and then restart.
13353
13354 EOF
13355       fi
13356       ;;
13357
13358     amigaos*)
13359       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)'
13360       hardcode_libdir_flag_spec_F77='-L$libdir'
13361       hardcode_minus_L_F77=yes
13362
13363       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13364       # that the semantics of dynamic libraries on AmigaOS, at least up
13365       # to version 4, is to share data among multiple programs linked
13366       # with the same dynamic library.  Since this doesn't match the
13367       # behavior of shared libraries on other platforms, we can't use
13368       # them.
13369       ld_shlibs_F77=no
13370       ;;
13371
13372     beos*)
13373       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13374         allow_undefined_flag_F77=unsupported
13375         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13376         # support --undefined.  This deserves some investigation.  FIXME
13377         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378       else
13379         ld_shlibs_F77=no
13380       fi
13381       ;;
13382
13383     cygwin* | mingw* | pw32*)
13384       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13385       # as there is no search path for DLLs.
13386       hardcode_libdir_flag_spec_F77='-L$libdir'
13387       allow_undefined_flag_F77=unsupported
13388       always_export_symbols_F77=no
13389       enable_shared_with_static_runtimes_F77=yes
13390       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13391
13392       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13393         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13394         # If the export-symbols file already is a .def file (1st line
13395         # is EXPORTS), use it as is; otherwise, prepend...
13396         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13397           cp $export_symbols $output_objdir/$soname.def;
13398         else
13399           echo EXPORTS > $output_objdir/$soname.def;
13400           cat $export_symbols >> $output_objdir/$soname.def;
13401         fi~
13402         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13403       else
13404         ld_shlibs=no
13405       fi
13406       ;;
13407
13408     netbsd*)
13409       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13410         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13411         wlarc=
13412       else
13413         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13414         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13415       fi
13416       ;;
13417
13418     solaris* | sysv5*)
13419       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13420         ld_shlibs_F77=no
13421         cat <<EOF 1>&2
13422
13423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13424 *** create shared libraries on Solaris systems.  Therefore, libtool
13425 *** is disabling shared libraries support.  We urge you to upgrade GNU
13426 *** binutils to release 2.9.1 or newer.  Another option is to modify
13427 *** your PATH or compiler configuration so that the native linker is
13428 *** used, and then restart.
13429
13430 EOF
13431       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13432         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13434       else
13435         ld_shlibs_F77=no
13436       fi
13437       ;;
13438
13439     sunos4*)
13440       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13441       wlarc=
13442       hardcode_direct_F77=yes
13443       hardcode_shlibpath_var_F77=no
13444       ;;
13445
13446     *)
13447       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13448         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13450       else
13451         ld_shlibs_F77=no
13452       fi
13453       ;;
13454     esac
13455
13456     if test "$ld_shlibs_F77" = yes; then
13457       runpath_var=LD_RUN_PATH
13458       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13459       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13460       # ancient GNU ld didn't support --whole-archive et. al.
13461       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13462         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13463       else
13464         whole_archive_flag_spec_F77=
13465       fi
13466     fi
13467   else
13468     # PORTME fill in a description of your system's linker (not GNU ld)
13469     case $host_os in
13470     aix3*)
13471       allow_undefined_flag_F77=unsupported
13472       always_export_symbols_F77=yes
13473       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'
13474       # Note: this linker hardcodes the directories in LIBPATH if there
13475       # are no directories specified by -L.
13476       hardcode_minus_L_F77=yes
13477       if test "$GCC" = yes && test -z "$link_static_flag"; then
13478         # Neither direct hardcoding nor static linking is supported with a
13479         # broken collect2.
13480         hardcode_direct_F77=unsupported
13481       fi
13482       ;;
13483
13484     aix4* | aix5*)
13485       if test "$host_cpu" = ia64; then
13486         # On IA64, the linker does run time linking by default, so we don't
13487         # have to do anything special.
13488         aix_use_runtimelinking=no
13489         exp_sym_flag='-Bexport'
13490         no_entry_flag=""
13491       else
13492         # If we're using GNU nm, then we don't want the "-C" option.
13493         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13494         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13495           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'
13496         else
13497           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'
13498         fi
13499         aix_use_runtimelinking=no
13500
13501         # Test if we are trying to use run time linking or normal
13502         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13503         # need to do runtime linking.
13504         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13505           for ld_flag in $LDFLAGS; do
13506           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13507             aix_use_runtimelinking=yes
13508             break
13509           fi
13510           done
13511         esac
13512
13513         exp_sym_flag='-bexport'
13514         no_entry_flag='-bnoentry'
13515       fi
13516
13517       # When large executables or shared objects are built, AIX ld can
13518       # have problems creating the table of contents.  If linking a library
13519       # or program results in "error TOC overflow" add -mminimal-toc to
13520       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13521       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13522
13523       archive_cmds_F77=''
13524       hardcode_direct_F77=yes
13525       hardcode_libdir_separator_F77=':'
13526       link_all_deplibs_F77=yes
13527
13528       if test "$GCC" = yes; then
13529         case $host_os in aix4.012|aix4.012.*)
13530         # We only want to do this on AIX 4.2 and lower, the check
13531         # below for broken collect2 doesn't work under 4.3+
13532           collect2name=`${CC} -print-prog-name=collect2`
13533           if test -f "$collect2name" && \
13534            strings "$collect2name" | grep resolve_lib_name >/dev/null
13535           then
13536           # We have reworked collect2
13537           hardcode_direct_F77=yes
13538           else
13539           # We have old collect2
13540           hardcode_direct_F77=unsupported
13541           # It fails to find uninstalled libraries when the uninstalled
13542           # path is not listed in the libpath.  Setting hardcode_minus_L
13543           # to unsupported forces relinking
13544           hardcode_minus_L_F77=yes
13545           hardcode_libdir_flag_spec_F77='-L$libdir'
13546           hardcode_libdir_separator_F77=
13547           fi
13548         esac
13549         shared_flag='-shared'
13550       else
13551         # not using gcc
13552         if test "$host_cpu" = ia64; then
13553         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13554         # chokes on -Wl,-G. The following line is correct:
13555           shared_flag='-G'
13556         else
13557         if test "$aix_use_runtimelinking" = yes; then
13558             shared_flag='${wl}-G'
13559           else
13560             shared_flag='${wl}-bM:SRE'
13561         fi
13562         fi
13563       fi
13564
13565       # It seems that -bexpall does not export symbols beginning with
13566       # underscore (_), so it is better to generate a list of symbols to export.
13567       always_export_symbols_F77=yes
13568       if test "$aix_use_runtimelinking" = yes; then
13569         # Warning - without using the other runtime loading flags (-brtl),
13570         # -berok will link without error, but may produce a broken library.
13571         allow_undefined_flag_F77='-berok'
13572        # Determine the default libpath from the value encoded in an empty executable.
13573        cat >conftest.$ac_ext <<_ACEOF
13574       program main
13575
13576       end
13577 _ACEOF
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13580   (eval $ac_link) 2>conftest.er1
13581   ac_status=$?
13582   grep -v '^ *+' conftest.er1 >conftest.err
13583   rm -f conftest.er1
13584   cat conftest.err >&5
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } &&
13587          { ac_try='test -z "$ac_f77_werror_flag"
13588                          || test ! -s conftest.err'
13589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590   (eval $ac_try) 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); }; } &&
13594          { ac_try='test -s conftest$ac_exeext'
13595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596   (eval $ac_try) 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; }; then
13600
13601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13602 }'`
13603 # Check for a 64-bit object if we didn't find anything.
13604 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; }
13605 }'`; fi
13606 else
13607   echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 fi
13611 rm -f conftest.err conftest.$ac_objext \
13612       conftest$ac_exeext conftest.$ac_ext
13613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13614
13615        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13616         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13617        else
13618         if test "$host_cpu" = ia64; then
13619           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13620           allow_undefined_flag_F77="-z nodefs"
13621           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13622         else
13623          # Determine the default libpath from the value encoded in an empty executable.
13624          cat >conftest.$ac_ext <<_ACEOF
13625       program main
13626
13627       end
13628 _ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631   (eval $ac_link) 2>conftest.er1
13632   ac_status=$?
13633   grep -v '^ *+' conftest.er1 >conftest.err
13634   rm -f conftest.er1
13635   cat conftest.err >&5
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } &&
13638          { ac_try='test -z "$ac_f77_werror_flag"
13639                          || test ! -s conftest.err'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; } &&
13645          { ac_try='test -s conftest$ac_exeext'
13646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647   (eval $ac_try) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; }; then
13651
13652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13653 }'`
13654 # Check for a 64-bit object if we didn't find anything.
13655 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; }
13656 }'`; fi
13657 else
13658   echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13660
13661 fi
13662 rm -f conftest.err conftest.$ac_objext \
13663       conftest$ac_exeext conftest.$ac_ext
13664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13665
13666          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13667           # Warning - without using the other run time loading flags,
13668           # -berok will link without error, but may produce a broken library.
13669           no_undefined_flag_F77=' ${wl}-bernotok'
13670           allow_undefined_flag_F77=' ${wl}-berok'
13671           # -bexpall does not export symbols beginning with underscore (_)
13672           always_export_symbols_F77=yes
13673           # Exported symbols can be pulled into shared objects from archives
13674           whole_archive_flag_spec_F77=' '
13675           archive_cmds_need_lc_F77=yes
13676           # This is similar to how AIX traditionally builds it's shared libraries.
13677           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13678         fi
13679       fi
13680       ;;
13681
13682     amigaos*)
13683       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)'
13684       hardcode_libdir_flag_spec_F77='-L$libdir'
13685       hardcode_minus_L_F77=yes
13686       # see comment about different semantics on the GNU ld section
13687       ld_shlibs_F77=no
13688       ;;
13689
13690     bsdi4*)
13691       export_dynamic_flag_spec_F77=-rdynamic
13692       ;;
13693
13694     cygwin* | mingw* | pw32*)
13695       # When not using gcc, we currently assume that we are using
13696       # Microsoft Visual C++.
13697       # hardcode_libdir_flag_spec is actually meaningless, as there is
13698       # no search path for DLLs.
13699       hardcode_libdir_flag_spec_F77=' '
13700       allow_undefined_flag_F77=unsupported
13701       # Tell ltmain to make .lib files, not .a files.
13702       libext=lib
13703       # Tell ltmain to make .dll files, not .so files.
13704       shrext=".dll"
13705       # FIXME: Setting linknames here is a bad hack.
13706       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13707       # The linker will automatically build a .lib file if we build a DLL.
13708       old_archive_From_new_cmds_F77='true'
13709       # FIXME: Should let the user specify the lib program.
13710       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13711       fix_srcfile_path='`cygpath -w "$srcfile"`'
13712       enable_shared_with_static_runtimes_F77=yes
13713       ;;
13714
13715     darwin* | rhapsody*)
13716     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13717       archive_cmds_need_lc_F77=no
13718       case "$host_os" in
13719       rhapsody* | darwin1.[012])
13720         allow_undefined_flag_F77='-undefined suppress'
13721         ;;
13722       *) # Darwin 1.3 on
13723         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13724         ;;
13725       esac
13726       # FIXME: Relying on posixy $() will cause problems for
13727       #        cross-compilation, but unfortunately the echo tests do not
13728       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13729       #        `"' quotes if we put them in here... so don't!
13730         lt_int_apple_cc_single_mod=no
13731         output_verbose_link_cmd='echo'
13732         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13733           lt_int_apple_cc_single_mod=yes
13734         fi
13735         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13736           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13737         else
13738         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13739       fi
13740       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13741       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13742         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13743           archive_expsym_cmds_F77='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}'
13744         else
13745           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13746         fi
13747           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13748       hardcode_direct_F77=no
13749       hardcode_automatic_F77=yes
13750       hardcode_shlibpath_var_F77=unsupported
13751       whole_archive_flag_spec_F77='-all_load $convenience'
13752       link_all_deplibs_F77=yes
13753     fi
13754       ;;
13755
13756     dgux*)
13757       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13758       hardcode_libdir_flag_spec_F77='-L$libdir'
13759       hardcode_shlibpath_var_F77=no
13760       ;;
13761
13762     freebsd1*)
13763       ld_shlibs_F77=no
13764       ;;
13765
13766     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13767     # support.  Future versions do this automatically, but an explicit c++rt0.o
13768     # does not break anything, and helps significantly (at the cost of a little
13769     # extra space).
13770     freebsd2.2*)
13771       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13772       hardcode_libdir_flag_spec_F77='-R$libdir'
13773       hardcode_direct_F77=yes
13774       hardcode_shlibpath_var_F77=no
13775       ;;
13776
13777     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13778     freebsd2*)
13779       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13780       hardcode_direct_F77=yes
13781       hardcode_minus_L_F77=yes
13782       hardcode_shlibpath_var_F77=no
13783       ;;
13784
13785     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13786     freebsd*)
13787       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13788       hardcode_libdir_flag_spec_F77='-R$libdir'
13789       hardcode_direct_F77=yes
13790       hardcode_shlibpath_var_F77=no
13791       ;;
13792
13793     hpux9*)
13794       if test "$GCC" = yes; then
13795         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'
13796       else
13797         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'
13798       fi
13799       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13800       hardcode_libdir_separator_F77=:
13801       hardcode_direct_F77=yes
13802
13803       # hardcode_minus_L: Not really in the search PATH,
13804       # but as the default location of the library.
13805       hardcode_minus_L_F77=yes
13806       export_dynamic_flag_spec_F77='${wl}-E'
13807       ;;
13808
13809     hpux10* | hpux11*)
13810       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13811         case "$host_cpu" in
13812         hppa*64*|ia64*)
13813           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13814           ;;
13815         *)
13816           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13817           ;;
13818         esac
13819       else
13820         case "$host_cpu" in
13821         hppa*64*|ia64*)
13822           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13823           ;;
13824         *)
13825           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13826           ;;
13827         esac
13828       fi
13829       if test "$with_gnu_ld" = no; then
13830         case "$host_cpu" in
13831         hppa*64*)
13832           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13833           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13834           hardcode_libdir_separator_F77=:
13835           hardcode_direct_F77=no
13836           hardcode_shlibpath_var_F77=no
13837           ;;
13838         ia64*)
13839           hardcode_libdir_flag_spec_F77='-L$libdir'
13840           hardcode_direct_F77=no
13841           hardcode_shlibpath_var_F77=no
13842
13843           # hardcode_minus_L: Not really in the search PATH,
13844           # but as the default location of the library.
13845           hardcode_minus_L_F77=yes
13846           ;;
13847         *)
13848           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13849           hardcode_libdir_separator_F77=:
13850           hardcode_direct_F77=yes
13851           export_dynamic_flag_spec_F77='${wl}-E'
13852
13853           # hardcode_minus_L: Not really in the search PATH,
13854           # but as the default location of the library.
13855           hardcode_minus_L_F77=yes
13856           ;;
13857         esac
13858       fi
13859       ;;
13860
13861     irix5* | irix6* | nonstopux*)
13862       if test "$GCC" = yes; then
13863         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'
13864       else
13865         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'
13866         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13867       fi
13868       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13869       hardcode_libdir_separator_F77=:
13870       link_all_deplibs_F77=yes
13871       ;;
13872
13873     netbsd*)
13874       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13876       else
13877         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13878       fi
13879       hardcode_libdir_flag_spec_F77='-R$libdir'
13880       hardcode_direct_F77=yes
13881       hardcode_shlibpath_var_F77=no
13882       ;;
13883
13884     newsos6)
13885       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886       hardcode_direct_F77=yes
13887       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13888       hardcode_libdir_separator_F77=:
13889       hardcode_shlibpath_var_F77=no
13890       ;;
13891
13892     openbsd*)
13893       hardcode_direct_F77=yes
13894       hardcode_shlibpath_var_F77=no
13895       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13896         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13897         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13898         export_dynamic_flag_spec_F77='${wl}-E'
13899       else
13900        case $host_os in
13901          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13902            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13903            hardcode_libdir_flag_spec_F77='-R$libdir'
13904            ;;
13905          *)
13906            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13908            ;;
13909        esac
13910       fi
13911       ;;
13912
13913     os2*)
13914       hardcode_libdir_flag_spec_F77='-L$libdir'
13915       hardcode_minus_L_F77=yes
13916       allow_undefined_flag_F77=unsupported
13917       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'
13918       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13919       ;;
13920
13921     osf3*)
13922       if test "$GCC" = yes; then
13923         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13924         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'
13925       else
13926         allow_undefined_flag_F77=' -expect_unresolved \*'
13927         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'
13928       fi
13929       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13930       hardcode_libdir_separator_F77=:
13931       ;;
13932
13933     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13934       if test "$GCC" = yes; then
13935         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13936         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'
13937         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13938       else
13939         allow_undefined_flag_F77=' -expect_unresolved \*'
13940         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'
13941         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~
13942         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13943
13944         # Both c and cxx compiler support -rpath directly
13945         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13946       fi
13947       hardcode_libdir_separator_F77=:
13948       ;;
13949
13950     sco3.2v5*)
13951       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952       hardcode_shlibpath_var_F77=no
13953       export_dynamic_flag_spec_F77='${wl}-Bexport'
13954       runpath_var=LD_RUN_PATH
13955       hardcode_runpath_var=yes
13956       ;;
13957
13958     solaris*)
13959       no_undefined_flag_F77=' -z text'
13960       if test "$GCC" = yes; then
13961         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13963           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13964       else
13965         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13968       fi
13969       hardcode_libdir_flag_spec_F77='-R$libdir'
13970       hardcode_shlibpath_var_F77=no
13971       case $host_os in
13972       solaris2.[0-5] | solaris2.[0-5].*) ;;
13973       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13974         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13975       esac
13976       link_all_deplibs_F77=yes
13977       ;;
13978
13979     sunos4*)
13980       if test "x$host_vendor" = xsequent; then
13981         # Use $CC to link under sequent, because it throws in some extra .o
13982         # files that make .init and .fini sections work.
13983         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13984       else
13985         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13986       fi
13987       hardcode_libdir_flag_spec_F77='-L$libdir'
13988       hardcode_direct_F77=yes
13989       hardcode_minus_L_F77=yes
13990       hardcode_shlibpath_var_F77=no
13991       ;;
13992
13993     sysv4)
13994       case $host_vendor in
13995         sni)
13996           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13997           hardcode_direct_F77=yes # is this really true???
13998         ;;
13999         siemens)
14000           ## LD is ld it makes a PLAMLIB
14001           ## CC just makes a GrossModule.
14002           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14003           reload_cmds_F77='$CC -r -o $output$reload_objs'
14004           hardcode_direct_F77=no
14005         ;;
14006         motorola)
14007           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14008           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14009         ;;
14010       esac
14011       runpath_var='LD_RUN_PATH'
14012       hardcode_shlibpath_var_F77=no
14013       ;;
14014
14015     sysv4.3*)
14016       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017       hardcode_shlibpath_var_F77=no
14018       export_dynamic_flag_spec_F77='-Bexport'
14019       ;;
14020
14021     sysv4*MP*)
14022       if test -d /usr/nec; then
14023         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14024         hardcode_shlibpath_var_F77=no
14025         runpath_var=LD_RUN_PATH
14026         hardcode_runpath_var=yes
14027         ld_shlibs_F77=yes
14028       fi
14029       ;;
14030
14031     sysv4.2uw2*)
14032       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14033       hardcode_direct_F77=yes
14034       hardcode_minus_L_F77=no
14035       hardcode_shlibpath_var_F77=no
14036       hardcode_runpath_var=yes
14037       runpath_var=LD_RUN_PATH
14038       ;;
14039
14040    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14041       no_undefined_flag_F77='${wl}-z ${wl}text'
14042       if test "$GCC" = yes; then
14043         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14044       else
14045         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14046       fi
14047       runpath_var='LD_RUN_PATH'
14048       hardcode_shlibpath_var_F77=no
14049       ;;
14050
14051     sysv5*)
14052       no_undefined_flag_F77=' -z text'
14053       # $CC -shared without GNU ld will not create a library from C++
14054       # object files and a static libstdc++, better avoid it by now
14055       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14056       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14057                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14058       hardcode_libdir_flag_spec_F77=
14059       hardcode_shlibpath_var_F77=no
14060       runpath_var='LD_RUN_PATH'
14061       ;;
14062
14063     uts4*)
14064       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065       hardcode_libdir_flag_spec_F77='-L$libdir'
14066       hardcode_shlibpath_var_F77=no
14067       ;;
14068
14069     *)
14070       ld_shlibs_F77=no
14071       ;;
14072     esac
14073   fi
14074
14075 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14076 echo "${ECHO_T}$ld_shlibs_F77" >&6
14077 test "$ld_shlibs_F77" = no && can_build_shared=no
14078
14079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14080 if test "$GCC" = yes; then
14081   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14082 fi
14083
14084 #
14085 # Do we need to explicitly link libc?
14086 #
14087 case "x$archive_cmds_need_lc_F77" in
14088 x|xyes)
14089   # Assume -lc should be added
14090   archive_cmds_need_lc_F77=yes
14091
14092   if test "$enable_shared" = yes && test "$GCC" = yes; then
14093     case $archive_cmds_F77 in
14094     *'~'*)
14095       # FIXME: we may have to deal with multi-command sequences.
14096       ;;
14097     '$CC '*)
14098       # Test whether the compiler implicitly links with -lc since on some
14099       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14100       # to ld, don't add -lc before -lgcc.
14101       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14103       $rm conftest*
14104       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14105
14106       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107   (eval $ac_compile) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } 2>conftest.err; then
14111         soname=conftest
14112         lib=conftest
14113         libobjs=conftest.$ac_objext
14114         deplibs=
14115         wl=$lt_prog_compiler_wl_F77
14116         compiler_flags=-v
14117         linker_flags=-v
14118         verstring=
14119         output_objdir=.
14120         libname=conftest
14121         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14122         allow_undefined_flag_F77=
14123         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14124   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); }
14128         then
14129           archive_cmds_need_lc_F77=no
14130         else
14131           archive_cmds_need_lc_F77=yes
14132         fi
14133         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14134       else
14135         cat conftest.err 1>&5
14136       fi
14137       $rm conftest*
14138       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14139 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14140       ;;
14141     esac
14142   fi
14143   ;;
14144 esac
14145
14146 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14148 hardcode_action_F77=
14149 if test -n "$hardcode_libdir_flag_spec_F77" || \
14150    test -n "$runpath_var F77" || \
14151    test "X$hardcode_automatic_F77"="Xyes" ; then
14152
14153   # We can hardcode non-existant directories.
14154   if test "$hardcode_direct_F77" != no &&
14155      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14156      # have to relink, otherwise we might link with an installed library
14157      # when we should be linking with a yet-to-be-installed one
14158      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14159      test "$hardcode_minus_L_F77" != no; then
14160     # Linking always hardcodes the temporary library directory.
14161     hardcode_action_F77=relink
14162   else
14163     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14164     hardcode_action_F77=immediate
14165   fi
14166 else
14167   # We cannot hardcode anything, or else we can only hardcode existing
14168   # directories.
14169   hardcode_action_F77=unsupported
14170 fi
14171 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14172 echo "${ECHO_T}$hardcode_action_F77" >&6
14173
14174 if test "$hardcode_action_F77" = relink; then
14175   # Fast installation is not supported
14176   enable_fast_install=no
14177 elif test "$shlibpath_overrides_runpath" = yes ||
14178      test "$enable_shared" = no; then
14179   # Fast installation is not necessary
14180   enable_fast_install=needless
14181 fi
14182
14183 striplib=
14184 old_striplib=
14185 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14186 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14187 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14188   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14189   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14190   echo "$as_me:$LINENO: result: yes" >&5
14191 echo "${ECHO_T}yes" >&6
14192 else
14193 # FIXME - insert some real tests, host_os isn't really good enough
14194   case $host_os in
14195    darwin*)
14196        if test -n "$STRIP" ; then
14197          striplib="$STRIP -x"
14198          echo "$as_me:$LINENO: result: yes" >&5
14199 echo "${ECHO_T}yes" >&6
14200        else
14201   echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6
14203 fi
14204        ;;
14205    *)
14206   echo "$as_me:$LINENO: result: no" >&5
14207 echo "${ECHO_T}no" >&6
14208     ;;
14209   esac
14210 fi
14211
14212 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14214 library_names_spec=
14215 libname_spec='lib$name'
14216 soname_spec=
14217 shrext=".so"
14218 postinstall_cmds=
14219 postuninstall_cmds=
14220 finish_cmds=
14221 finish_eval=
14222 shlibpath_var=
14223 shlibpath_overrides_runpath=unknown
14224 version_type=none
14225 dynamic_linker="$host_os ld.so"
14226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14227 if test "$GCC" = yes; then
14228   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14229   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14230     # if the path contains ";" then we assume it to be the separator
14231     # otherwise default to the standard path separator (i.e. ":") - it is
14232     # assumed that no part of a normal pathname contains ";" but that should
14233     # okay in the real world where ";" in dirpaths is itself problematic.
14234     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14235   else
14236     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14237   fi
14238 else
14239   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14240 fi
14241 need_lib_prefix=unknown
14242 hardcode_into_libs=no
14243
14244 # when you set need_version to no, make sure it does not cause -set_version
14245 # flags to be left without arguments
14246 need_version=unknown
14247
14248 case $host_os in
14249 aix3*)
14250   version_type=linux
14251   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14252   shlibpath_var=LIBPATH
14253
14254   # AIX 3 has no versioning support, so we append a major version to the name.
14255   soname_spec='${libname}${release}${shared_ext}$major'
14256   ;;
14257
14258 aix4* | aix5*)
14259   version_type=linux
14260   need_lib_prefix=no
14261   need_version=no
14262   hardcode_into_libs=yes
14263   if test "$host_cpu" = ia64; then
14264     # AIX 5 supports IA64
14265     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14266     shlibpath_var=LD_LIBRARY_PATH
14267   else
14268     # With GCC up to 2.95.x, collect2 would create an import file
14269     # for dependence libraries.  The import file would start with
14270     # the line `#! .'.  This would cause the generated library to
14271     # depend on `.', always an invalid library.  This was fixed in
14272     # development snapshots of GCC prior to 3.0.
14273     case $host_os in
14274       aix4 | aix4.[01] | aix4.[01].*)
14275       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14276            echo ' yes '
14277            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14278         :
14279       else
14280         can_build_shared=no
14281       fi
14282       ;;
14283     esac
14284     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14285     # soname into executable. Probably we can add versioning support to
14286     # collect2, so additional links can be useful in future.
14287     if test "$aix_use_runtimelinking" = yes; then
14288       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14289       # instead of lib<name>.a to let people know that these are not
14290       # typical AIX shared libraries.
14291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292     else
14293       # We preserve .a as extension for shared libraries through AIX4.2
14294       # and later when we are not doing run time linking.
14295       library_names_spec='${libname}${release}.a $libname.a'
14296       soname_spec='${libname}${release}${shared_ext}$major'
14297     fi
14298     shlibpath_var=LIBPATH
14299   fi
14300   ;;
14301
14302 amigaos*)
14303   library_names_spec='$libname.ixlibrary $libname.a'
14304   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14305   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'
14306   ;;
14307
14308 beos*)
14309   library_names_spec='${libname}${shared_ext}'
14310   dynamic_linker="$host_os ld.so"
14311   shlibpath_var=LIBRARY_PATH
14312   ;;
14313
14314 bsdi4*)
14315   version_type=linux
14316   need_version=no
14317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318   soname_spec='${libname}${release}${shared_ext}$major'
14319   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14320   shlibpath_var=LD_LIBRARY_PATH
14321   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14322   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14323   # the default ld.so.conf also contains /usr/contrib/lib and
14324   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14325   # libtool to hard-code these into programs
14326   ;;
14327
14328 cygwin* | mingw* | pw32*)
14329   version_type=windows
14330   shrext=".dll"
14331   need_version=no
14332   need_lib_prefix=no
14333
14334   case $GCC,$host_os in
14335   yes,cygwin* | yes,mingw* | yes,pw32*)
14336     library_names_spec='$libname.dll.a'
14337     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14338     postinstall_cmds='base_file=`basename \${file}`~
14339       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14340       dldir=$destdir/`dirname \$dlpath`~
14341       test -d \$dldir || mkdir -p \$dldir~
14342       $install_prog $dir/$dlname \$dldir/$dlname'
14343     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14344       dlpath=$dir/\$dldll~
14345        $rm \$dlpath'
14346     shlibpath_overrides_runpath=yes
14347
14348     case $host_os in
14349     cygwin*)
14350       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14351       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14352       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14353       ;;
14354     mingw*)
14355       # MinGW DLLs use traditional 'lib' prefix
14356       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14357       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14358       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14359         # It is most probably a Windows format PATH printed by
14360         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14361         # path with ; separators, and with drive letters. We can handle the
14362         # drive letters (cygwin fileutils understands them), so leave them,
14363         # especially as we might pass files found there to a mingw objdump,
14364         # which wouldn't understand a cygwinified path. Ahh.
14365         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14366       else
14367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14368       fi
14369       ;;
14370     pw32*)
14371       # pw32 DLLs use 'pw' prefix rather than 'lib'
14372       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14373       ;;
14374     esac
14375     ;;
14376
14377   *)
14378     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14379     ;;
14380   esac
14381   dynamic_linker='Win32 ld.exe'
14382   # FIXME: first we should search . and the directory the executable is in
14383   shlibpath_var=PATH
14384   ;;
14385
14386 darwin* | rhapsody*)
14387   dynamic_linker="$host_os dyld"
14388   version_type=darwin
14389   need_lib_prefix=no
14390   need_version=no
14391   # FIXME: Relying on posixy $() will cause problems for
14392   #        cross-compilation, but unfortunately the echo tests do not
14393   #        yet detect zsh echo's removal of \ escapes.
14394   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14395   soname_spec='${libname}${release}${major}$shared_ext'
14396   shlibpath_overrides_runpath=yes
14397   shlibpath_var=DYLD_LIBRARY_PATH
14398   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14399   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14400   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14401   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"`
14402   fi
14403   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14404   ;;
14405
14406 dgux*)
14407   version_type=linux
14408   need_lib_prefix=no
14409   need_version=no
14410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14411   soname_spec='${libname}${release}${shared_ext}$major'
14412   shlibpath_var=LD_LIBRARY_PATH
14413   ;;
14414
14415 freebsd1*)
14416   dynamic_linker=no
14417   ;;
14418
14419 freebsd*)
14420   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14421   version_type=freebsd-$objformat
14422   case $version_type in
14423     freebsd-elf*)
14424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14425       need_version=no
14426       need_lib_prefix=no
14427       ;;
14428     freebsd-*)
14429       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14430       need_version=yes
14431       ;;
14432   esac
14433   shlibpath_var=LD_LIBRARY_PATH
14434   case $host_os in
14435   freebsd2*)
14436     shlibpath_overrides_runpath=yes
14437     ;;
14438   freebsd3.01* | freebsdelf3.01*)
14439     shlibpath_overrides_runpath=yes
14440     hardcode_into_libs=yes
14441     ;;
14442   *) # from 3.2 on
14443     shlibpath_overrides_runpath=no
14444     hardcode_into_libs=yes
14445     ;;
14446   esac
14447   ;;
14448
14449 gnu*)
14450   version_type=linux
14451   need_lib_prefix=no
14452   need_version=no
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14454   soname_spec='${libname}${release}${shared_ext}$major'
14455   shlibpath_var=LD_LIBRARY_PATH
14456   hardcode_into_libs=yes
14457   ;;
14458
14459 hpux9* | hpux10* | hpux11*)
14460   # Give a soname corresponding to the major version so that dld.sl refuses to
14461   # link against other versions.
14462   version_type=sunos
14463   need_lib_prefix=no
14464   need_version=no
14465   case "$host_cpu" in
14466   ia64*)
14467     shrext='.so'
14468     hardcode_into_libs=yes
14469     dynamic_linker="$host_os dld.so"
14470     shlibpath_var=LD_LIBRARY_PATH
14471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473     soname_spec='${libname}${release}${shared_ext}$major'
14474     if test "X$HPUX_IA64_MODE" = X32; then
14475       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14476     else
14477       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14478     fi
14479     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14480     ;;
14481    hppa*64*)
14482      shrext='.sl'
14483      hardcode_into_libs=yes
14484      dynamic_linker="$host_os dld.sl"
14485      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14486      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14487      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488      soname_spec='${libname}${release}${shared_ext}$major'
14489      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14490      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14491      ;;
14492    *)
14493     shrext='.sl'
14494     dynamic_linker="$host_os dld.sl"
14495     shlibpath_var=SHLIB_PATH
14496     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498     soname_spec='${libname}${release}${shared_ext}$major'
14499     ;;
14500   esac
14501   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14502   postinstall_cmds='chmod 555 $lib'
14503   ;;
14504
14505 irix5* | irix6* | nonstopux*)
14506   case $host_os in
14507     nonstopux*) version_type=nonstopux ;;
14508     *)
14509         if test "$lt_cv_prog_gnu_ld" = yes; then
14510                 version_type=linux
14511         else
14512                 version_type=irix
14513         fi ;;
14514   esac
14515   need_lib_prefix=no
14516   need_version=no
14517   soname_spec='${libname}${release}${shared_ext}$major'
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14519   case $host_os in
14520   irix5* | nonstopux*)
14521     libsuff= shlibsuff=
14522     ;;
14523   *)
14524     case $LD in # libtool.m4 will add one of these switches to LD
14525     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14526       libsuff= shlibsuff= libmagic=32-bit;;
14527     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14528       libsuff=32 shlibsuff=N32 libmagic=N32;;
14529     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14530       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14531     *) libsuff= shlibsuff= libmagic=never-match;;
14532     esac
14533     ;;
14534   esac
14535   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14536   shlibpath_overrides_runpath=no
14537   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14538   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14539   hardcode_into_libs=yes
14540   ;;
14541
14542 # No shared lib support for Linux oldld, aout, or coff.
14543 linux*oldld* | linux*aout* | linux*coff*)
14544   dynamic_linker=no
14545   ;;
14546
14547 # This must be Linux ELF.
14548 linux*)
14549   version_type=linux
14550   need_lib_prefix=no
14551   need_version=no
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553   soname_spec='${libname}${release}${shared_ext}$major'
14554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14555   shlibpath_var=LD_LIBRARY_PATH
14556   shlibpath_overrides_runpath=no
14557   # This implies no fast_install, which is unacceptable.
14558   # Some rework will be needed to allow for fast_install
14559   # before this can be enabled.
14560   hardcode_into_libs=yes
14561
14562   # We used to test for /lib/ld.so.1 and disable shared libraries on
14563   # powerpc, because MkLinux only supported shared libraries with the
14564   # GNU dynamic linker.  Since this was broken with cross compilers,
14565   # most powerpc-linux boxes support dynamic linking these days and
14566   # people can always --disable-shared, the test was removed, and we
14567   # assume the GNU/Linux dynamic linker is in use.
14568   dynamic_linker='GNU/Linux ld.so'
14569   ;;
14570
14571 netbsd*)
14572   version_type=sunos
14573   need_lib_prefix=no
14574   need_version=no
14575   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14577     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14578     dynamic_linker='NetBSD (a.out) ld.so'
14579   else
14580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14581     soname_spec='${libname}${release}${shared_ext}$major'
14582     dynamic_linker='NetBSD ld.elf_so'
14583   fi
14584   shlibpath_var=LD_LIBRARY_PATH
14585   shlibpath_overrides_runpath=yes
14586   hardcode_into_libs=yes
14587   ;;
14588
14589 newsos6)
14590   version_type=linux
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   shlibpath_overrides_runpath=yes
14594   ;;
14595
14596 nto-qnx)
14597   version_type=linux
14598   need_lib_prefix=no
14599   need_version=no
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601   soname_spec='${libname}${release}${shared_ext}$major'
14602   shlibpath_var=LD_LIBRARY_PATH
14603   shlibpath_overrides_runpath=yes
14604   ;;
14605
14606 openbsd*)
14607   version_type=sunos
14608   need_lib_prefix=no
14609   need_version=no
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612   shlibpath_var=LD_LIBRARY_PATH
14613   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14614     case $host_os in
14615       openbsd2.[89] | openbsd2.[89].*)
14616         shlibpath_overrides_runpath=no
14617         ;;
14618       *)
14619         shlibpath_overrides_runpath=yes
14620         ;;
14621       esac
14622   else
14623     shlibpath_overrides_runpath=yes
14624   fi
14625   ;;
14626
14627 os2*)
14628   libname_spec='$name'
14629   shrext=".dll"
14630   need_lib_prefix=no
14631   library_names_spec='$libname${shared_ext} $libname.a'
14632   dynamic_linker='OS/2 ld.exe'
14633   shlibpath_var=LIBPATH
14634   ;;
14635
14636 osf3* | osf4* | osf5*)
14637   version_type=osf
14638   need_lib_prefix=no
14639   need_version=no
14640   soname_spec='${libname}${release}${shared_ext}$major'
14641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642   shlibpath_var=LD_LIBRARY_PATH
14643   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14644   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14645   ;;
14646
14647 sco3.2v5*)
14648   version_type=osf
14649   soname_spec='${libname}${release}${shared_ext}$major'
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651   shlibpath_var=LD_LIBRARY_PATH
14652   ;;
14653
14654 solaris*)
14655   version_type=linux
14656   need_lib_prefix=no
14657   need_version=no
14658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659   soname_spec='${libname}${release}${shared_ext}$major'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=yes
14662   hardcode_into_libs=yes
14663   # ldd complains unless libraries are executable
14664   postinstall_cmds='chmod +x $lib'
14665   ;;
14666
14667 sunos4*)
14668   version_type=sunos
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14671   shlibpath_var=LD_LIBRARY_PATH
14672   shlibpath_overrides_runpath=yes
14673   if test "$with_gnu_ld" = yes; then
14674     need_lib_prefix=no
14675   fi
14676   need_version=yes
14677   ;;
14678
14679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14680   version_type=linux
14681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682   soname_spec='${libname}${release}${shared_ext}$major'
14683   shlibpath_var=LD_LIBRARY_PATH
14684   case $host_vendor in
14685     sni)
14686       shlibpath_overrides_runpath=no
14687       need_lib_prefix=no
14688       export_dynamic_flag_spec='${wl}-Blargedynsym'
14689       runpath_var=LD_RUN_PATH
14690       ;;
14691     siemens)
14692       need_lib_prefix=no
14693       ;;
14694     motorola)
14695       need_lib_prefix=no
14696       need_version=no
14697       shlibpath_overrides_runpath=no
14698       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14699       ;;
14700   esac
14701   ;;
14702
14703 sysv4*MP*)
14704   if test -d /usr/nec ;then
14705     version_type=linux
14706     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14707     soname_spec='$libname${shared_ext}.$major'
14708     shlibpath_var=LD_LIBRARY_PATH
14709   fi
14710   ;;
14711
14712 uts4*)
14713   version_type=linux
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715   soname_spec='${libname}${release}${shared_ext}$major'
14716   shlibpath_var=LD_LIBRARY_PATH
14717   ;;
14718
14719 *)
14720   dynamic_linker=no
14721   ;;
14722 esac
14723 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14724 echo "${ECHO_T}$dynamic_linker" >&6
14725 test "$dynamic_linker" = no && can_build_shared=no
14726
14727
14728 # The else clause should only fire when bootstrapping the
14729 # libtool distribution, otherwise you forgot to ship ltmain.sh
14730 # with your package, and you will get complaints that there are
14731 # no rules to generate ltmain.sh.
14732 if test -f "$ltmain"; then
14733   # See if we are running on zsh, and set the options which allow our commands through
14734   # without removal of \ escapes.
14735   if test -n "${ZSH_VERSION+set}" ; then
14736     setopt NO_GLOB_SUBST
14737   fi
14738   # Now quote all the things that may contain metacharacters while being
14739   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14740   # variables and quote the copies for generation of the libtool script.
14741   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14742     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14743     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14744     deplibs_check_method reload_flag reload_cmds need_locks \
14745     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14746     lt_cv_sys_global_symbol_to_c_name_address \
14747     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14748     old_postinstall_cmds old_postuninstall_cmds \
14749     compiler_F77 \
14750     CC_F77 \
14751     LD_F77 \
14752     lt_prog_compiler_wl_F77 \
14753     lt_prog_compiler_pic_F77 \
14754     lt_prog_compiler_static_F77 \
14755     lt_prog_compiler_no_builtin_flag_F77 \
14756     export_dynamic_flag_spec_F77 \
14757     thread_safe_flag_spec_F77 \
14758     whole_archive_flag_spec_F77 \
14759     enable_shared_with_static_runtimes_F77 \
14760     old_archive_cmds_F77 \
14761     old_archive_from_new_cmds_F77 \
14762     predep_objects_F77 \
14763     postdep_objects_F77 \
14764     predeps_F77 \
14765     postdeps_F77 \
14766     compiler_lib_search_path_F77 \
14767     archive_cmds_F77 \
14768     archive_expsym_cmds_F77 \
14769     postinstall_cmds_F77 \
14770     postuninstall_cmds_F77 \
14771     old_archive_from_expsyms_cmds_F77 \
14772     allow_undefined_flag_F77 \
14773     no_undefined_flag_F77 \
14774     export_symbols_cmds_F77 \
14775     hardcode_libdir_flag_spec_F77 \
14776     hardcode_libdir_flag_spec_ld_F77 \
14777     hardcode_libdir_separator_F77 \
14778     hardcode_automatic_F77 \
14779     module_cmds_F77 \
14780     module_expsym_cmds_F77 \
14781     lt_cv_prog_compiler_c_o_F77 \
14782     exclude_expsyms_F77 \
14783     include_expsyms_F77; do
14784
14785     case $var in
14786     old_archive_cmds_F77 | \
14787     old_archive_from_new_cmds_F77 | \
14788     archive_cmds_F77 | \
14789     archive_expsym_cmds_F77 | \
14790     module_cmds_F77 | \
14791     module_expsym_cmds_F77 | \
14792     old_archive_from_expsyms_cmds_F77 | \
14793     export_symbols_cmds_F77 | \
14794     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14795     postinstall_cmds | postuninstall_cmds | \
14796     old_postinstall_cmds | old_postuninstall_cmds | \
14797     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14798       # Double-quote double-evaled strings.
14799       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14800       ;;
14801     *)
14802       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14803       ;;
14804     esac
14805   done
14806
14807   case $lt_echo in
14808   *'\$0 --fallback-echo"')
14809     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14810     ;;
14811   esac
14812
14813 cfgfile="$ofile"
14814
14815   cat <<__EOF__ >> "$cfgfile"
14816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14817
14818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14819
14820 # Shell to use when invoking shell scripts.
14821 SHELL=$lt_SHELL
14822
14823 # Whether or not to build shared libraries.
14824 build_libtool_libs=$enable_shared
14825
14826 # Whether or not to build static libraries.
14827 build_old_libs=$enable_static
14828
14829 # Whether or not to add -lc for building shared libraries.
14830 build_libtool_need_lc=$archive_cmds_need_lc_F77
14831
14832 # Whether or not to disallow shared libs when runtime libs are static
14833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14834
14835 # Whether or not to optimize for fast installation.
14836 fast_install=$enable_fast_install
14837
14838 # The host system.
14839 host_alias=$host_alias
14840 host=$host
14841
14842 # An echo program that does not interpret backslashes.
14843 echo=$lt_echo
14844
14845 # The archiver.
14846 AR=$lt_AR
14847 AR_FLAGS=$lt_AR_FLAGS
14848
14849 # A C compiler.
14850 LTCC=$lt_LTCC
14851
14852 # A language-specific compiler.
14853 CC=$lt_compiler_F77
14854
14855 # Is the compiler the GNU C compiler?
14856 with_gcc=$GCC_F77
14857
14858 # An ERE matcher.
14859 EGREP=$lt_EGREP
14860
14861 # The linker used to build libraries.
14862 LD=$lt_LD_F77
14863
14864 # Whether we need hard or soft links.
14865 LN_S=$lt_LN_S
14866
14867 # A BSD-compatible nm program.
14868 NM=$lt_NM
14869
14870 # A symbol stripping program
14871 STRIP=$STRIP
14872
14873 # Used to examine libraries when file_magic_cmd begins "file"
14874 MAGIC_CMD=$MAGIC_CMD
14875
14876 # Used on cygwin: DLL creation program.
14877 DLLTOOL="$DLLTOOL"
14878
14879 # Used on cygwin: object dumper.
14880 OBJDUMP="$OBJDUMP"
14881
14882 # Used on cygwin: assembler.
14883 AS="$AS"
14884
14885 # The name of the directory that contains temporary libtool files.
14886 objdir=$objdir
14887
14888 # How to create reloadable object files.
14889 reload_flag=$lt_reload_flag
14890 reload_cmds=$lt_reload_cmds
14891
14892 # How to pass a linker flag through the compiler.
14893 wl=$lt_lt_prog_compiler_wl_F77
14894
14895 # Object file suffix (normally "o").
14896 objext="$ac_objext"
14897
14898 # Old archive suffix (normally "a").
14899 libext="$libext"
14900
14901 # Shared library suffix (normally ".so").
14902 shrext='$shrext'
14903
14904 # Executable file suffix (normally "").
14905 exeext="$exeext"
14906
14907 # Additional compiler flags for building library objects.
14908 pic_flag=$lt_lt_prog_compiler_pic_F77
14909 pic_mode=$pic_mode
14910
14911 # What is the maximum length of a command?
14912 max_cmd_len=$lt_cv_sys_max_cmd_len
14913
14914 # Does compiler simultaneously support -c and -o options?
14915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14916
14917 # Must we lock files when doing compilation ?
14918 need_locks=$lt_need_locks
14919
14920 # Do we need the lib prefix for modules?
14921 need_lib_prefix=$need_lib_prefix
14922
14923 # Do we need a version for libraries?
14924 need_version=$need_version
14925
14926 # Whether dlopen is supported.
14927 dlopen_support=$enable_dlopen
14928
14929 # Whether dlopen of programs is supported.
14930 dlopen_self=$enable_dlopen_self
14931
14932 # Whether dlopen of statically linked programs is supported.
14933 dlopen_self_static=$enable_dlopen_self_static
14934
14935 # Compiler flag to prevent dynamic linking.
14936 link_static_flag=$lt_lt_prog_compiler_static_F77
14937
14938 # Compiler flag to turn off builtin functions.
14939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14940
14941 # Compiler flag to allow reflexive dlopens.
14942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14943
14944 # Compiler flag to generate shared objects directly from archives.
14945 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14946
14947 # Compiler flag to generate thread-safe objects.
14948 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14949
14950 # Library versioning type.
14951 version_type=$version_type
14952
14953 # Format of library name prefix.
14954 libname_spec=$lt_libname_spec
14955
14956 # List of archive names.  First name is the real one, the rest are links.
14957 # The last name is the one that the linker finds with -lNAME.
14958 library_names_spec=$lt_library_names_spec
14959
14960 # The coded name of the library, if different from the real name.
14961 soname_spec=$lt_soname_spec
14962
14963 # Commands used to build and install an old-style archive.
14964 RANLIB=$lt_RANLIB
14965 old_archive_cmds=$lt_old_archive_cmds_F77
14966 old_postinstall_cmds=$lt_old_postinstall_cmds
14967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14968
14969 # Create an old-style archive from a shared archive.
14970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14971
14972 # Create a temporary old-style archive to link instead of a shared archive.
14973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14974
14975 # Commands used to build and install a shared archive.
14976 archive_cmds=$lt_archive_cmds_F77
14977 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14978 postinstall_cmds=$lt_postinstall_cmds
14979 postuninstall_cmds=$lt_postuninstall_cmds
14980
14981 # Commands used to build a loadable module (assumed same as above if empty)
14982 module_cmds=$lt_module_cmds_F77
14983 module_expsym_cmds=$lt_module_expsym_cmds_F77
14984
14985 # Commands to strip libraries.
14986 old_striplib=$lt_old_striplib
14987 striplib=$lt_striplib
14988
14989 # Dependencies to place before the objects being linked to create a
14990 # shared library.
14991 predep_objects=$lt_predep_objects_F77
14992
14993 # Dependencies to place after the objects being linked to create a
14994 # shared library.
14995 postdep_objects=$lt_postdep_objects_F77
14996
14997 # Dependencies to place before the objects being linked to create a
14998 # shared library.
14999 predeps=$lt_predeps_F77
15000
15001 # Dependencies to place after the objects being linked to create a
15002 # shared library.
15003 postdeps=$lt_postdeps_F77
15004
15005 # The library search path used internally by the compiler when linking
15006 # a shared library.
15007 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15008
15009 # Method to check whether dependent libraries are shared objects.
15010 deplibs_check_method=$lt_deplibs_check_method
15011
15012 # Command to use when deplibs_check_method == file_magic.
15013 file_magic_cmd=$lt_file_magic_cmd
15014
15015 # Flag that allows shared libraries with undefined symbols to be built.
15016 allow_undefined_flag=$lt_allow_undefined_flag_F77
15017
15018 # Flag that forces no undefined symbols.
15019 no_undefined_flag=$lt_no_undefined_flag_F77
15020
15021 # Commands used to finish a libtool library installation in a directory.
15022 finish_cmds=$lt_finish_cmds
15023
15024 # Same as above, but a single script fragment to be evaled but not shown.
15025 finish_eval=$lt_finish_eval
15026
15027 # Take the output of nm and produce a listing of raw symbols and C names.
15028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15029
15030 # Transform the output of nm in a proper C declaration
15031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15032
15033 # Transform the output of nm in a C name address pair
15034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15035
15036 # This is the shared library runtime path variable.
15037 runpath_var=$runpath_var
15038
15039 # This is the shared library path variable.
15040 shlibpath_var=$shlibpath_var
15041
15042 # Is shlibpath searched before the hard-coded library search path?
15043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15044
15045 # How to hardcode a shared library path into an executable.
15046 hardcode_action=$hardcode_action_F77
15047
15048 # Whether we should hardcode library paths into libraries.
15049 hardcode_into_libs=$hardcode_into_libs
15050
15051 # Flag to hardcode \$libdir into a binary during linking.
15052 # This must work even if \$libdir does not exist.
15053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15054
15055 # If ld is used when linking, flag to hardcode \$libdir into
15056 # a binary during linking. This must work even if \$libdir does
15057 # not exist.
15058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15059
15060 # Whether we need a single -rpath flag with a separated argument.
15061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15062
15063 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15064 # resulting binary.
15065 hardcode_direct=$hardcode_direct_F77
15066
15067 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15068 # resulting binary.
15069 hardcode_minus_L=$hardcode_minus_L_F77
15070
15071 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15072 # the resulting binary.
15073 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15074
15075 # Set to yes if building a shared library automatically hardcodes DIR into the library
15076 # and all subsequent libraries and executables linked against it.
15077 hardcode_automatic=$hardcode_automatic_F77
15078
15079 # Variables whose values should be saved in libtool wrapper scripts and
15080 # restored at relink time.
15081 variables_saved_for_relink="$variables_saved_for_relink"
15082
15083 # Whether libtool must link a program against all its dependency libraries.
15084 link_all_deplibs=$link_all_deplibs_F77
15085
15086 # Compile-time system search path for libraries
15087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15088
15089 # Run-time system search path for libraries
15090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15091
15092 # Fix the shell variable \$srcfile for the compiler.
15093 fix_srcfile_path="$fix_srcfile_path_F77"
15094
15095 # Set to yes if exported symbols are required.
15096 always_export_symbols=$always_export_symbols_F77
15097
15098 # The commands to list exported symbols.
15099 export_symbols_cmds=$lt_export_symbols_cmds_F77
15100
15101 # The commands to extract the exported symbol list from a shared archive.
15102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15103
15104 # Symbols that should not be listed in the preloaded symbols.
15105 exclude_expsyms=$lt_exclude_expsyms_F77
15106
15107 # Symbols that must always be exported.
15108 include_expsyms=$lt_include_expsyms_F77
15109
15110 # ### END LIBTOOL TAG CONFIG: $tagname
15111
15112 __EOF__
15113
15114
15115 else
15116   # If there is no Makefile yet, we rely on a make rule to execute
15117   # `config.status --recheck' to rerun these tests and create the
15118   # libtool script then.
15119   test -f Makefile && make "$ltmain"
15120 fi
15121
15122
15123 ac_ext=c
15124 ac_cpp='$CPP $CPPFLAGS'
15125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15128
15129 CC="$lt_save_CC"
15130
15131         else
15132           tagname=""
15133         fi
15134         ;;
15135
15136       GCJ)
15137         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15138
15139
15140
15141 # Source file extension for Java test sources.
15142 ac_ext=java
15143
15144 # Object file extension for compiled Java test sources.
15145 objext=o
15146 objext_GCJ=$objext
15147
15148 # Code to be used in simple compile tests
15149 lt_simple_compile_test_code="class foo {}\n"
15150
15151 # Code to be used in simple link tests
15152 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15153
15154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15155
15156 # If no C compiler was specified, use CC.
15157 LTCC=${LTCC-"$CC"}
15158
15159 # Allow CC to be a program name with arguments.
15160 compiler=$CC
15161
15162
15163 # Allow CC to be a program name with arguments.
15164 lt_save_CC="$CC"
15165 CC=${GCJ-"gcj"}
15166 compiler=$CC
15167 compiler_GCJ=$CC
15168
15169 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15170 archive_cmds_need_lc_GCJ=no
15171
15172 ## CAVEAT EMPTOR:
15173 ## There is no encapsulation within the following macros, do not change
15174 ## the running order or otherwise move them around unless you know exactly
15175 ## what you are doing...
15176
15177 lt_prog_compiler_no_builtin_flag_GCJ=
15178
15179 if test "$GCC" = yes; then
15180   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15181
15182   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15183 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15184 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   lt_cv_prog_compiler_rtti_exceptions=no
15188   ac_outfile=conftest.$ac_objext
15189    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15190    lt_compiler_flag="-fno-rtti -fno-exceptions"
15191    # Insert the option either (1) after the last *FLAGS variable, or
15192    # (2) before a word containing "conftest.", or (3) at the end.
15193    # Note that $ac_compile itself does not contain backslashes and begins
15194    # with a dollar sign (not a hyphen), so the echo should work correctly.
15195    # The option is referenced via a variable to avoid confusing sed.
15196    lt_compile=`echo "$ac_compile" | $SED \
15197    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15199    -e 's:$: $lt_compiler_flag:'`
15200    (eval echo "\"\$as_me:15200: $lt_compile\"" >&5)
15201    (eval "$lt_compile" 2>conftest.err)
15202    ac_status=$?
15203    cat conftest.err >&5
15204    echo "$as_me:15204: \$? = $ac_status" >&5
15205    if (exit $ac_status) && test -s "$ac_outfile"; then
15206      # The compiler can only warn and ignore the option if not recognized
15207      # So say no if there are warnings
15208      if test ! -s conftest.err; then
15209        lt_cv_prog_compiler_rtti_exceptions=yes
15210      fi
15211    fi
15212    $rm conftest*
15213
15214 fi
15215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15217
15218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15219     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15220 else
15221     :
15222 fi
15223
15224 fi
15225
15226 lt_prog_compiler_wl_GCJ=
15227 lt_prog_compiler_pic_GCJ=
15228 lt_prog_compiler_static_GCJ=
15229
15230 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15232
15233   if test "$GCC" = yes; then
15234     lt_prog_compiler_wl_GCJ='-Wl,'
15235     lt_prog_compiler_static_GCJ='-static'
15236
15237     case $host_os in
15238       aix*)
15239       # All AIX code is PIC.
15240       if test "$host_cpu" = ia64; then
15241         # AIX 5 now supports IA64 processor
15242         lt_prog_compiler_static_GCJ='-Bstatic'
15243       fi
15244       ;;
15245
15246     amigaos*)
15247       # FIXME: we need at least 68020 code to build shared libraries, but
15248       # adding the `-m68020' flag to GCC prevents building anything better,
15249       # like `-m68040'.
15250       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15251       ;;
15252
15253     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15254       # PIC is the default for these OSes.
15255       ;;
15256
15257     mingw* | pw32* | os2*)
15258       # This hack is so that the source file can tell whether it is being
15259       # built for inclusion in a dll (and should export symbols for example).
15260       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15261       ;;
15262
15263     darwin* | rhapsody*)
15264       # PIC is the default on this platform
15265       # Common symbols not allowed in MH_DYLIB files
15266       lt_prog_compiler_pic_GCJ='-fno-common'
15267       ;;
15268
15269     msdosdjgpp*)
15270       # Just because we use GCC doesn't mean we suddenly get shared libraries
15271       # on systems that don't support them.
15272       lt_prog_compiler_can_build_shared_GCJ=no
15273       enable_shared=no
15274       ;;
15275
15276     sysv4*MP*)
15277       if test -d /usr/nec; then
15278         lt_prog_compiler_pic_GCJ=-Kconform_pic
15279       fi
15280       ;;
15281
15282     hpux*)
15283       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15284       # not for PA HP-UX.
15285       case "$host_cpu" in
15286       hppa*64*|ia64*)
15287         # +Z the default
15288         ;;
15289       *)
15290         lt_prog_compiler_pic_GCJ='-fPIC'
15291         ;;
15292       esac
15293       ;;
15294
15295     *)
15296       lt_prog_compiler_pic_GCJ='-fPIC'
15297       ;;
15298     esac
15299   else
15300     # PORTME Check for flag to pass linker flags through the system compiler.
15301     case $host_os in
15302     aix*)
15303       lt_prog_compiler_wl_GCJ='-Wl,'
15304       if test "$host_cpu" = ia64; then
15305         # AIX 5 now supports IA64 processor
15306         lt_prog_compiler_static_GCJ='-Bstatic'
15307       else
15308         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15309       fi
15310       ;;
15311
15312     mingw* | pw32* | os2*)
15313       # This hack is so that the source file can tell whether it is being
15314       # built for inclusion in a dll (and should export symbols for example).
15315       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15316       ;;
15317
15318     hpux9* | hpux10* | hpux11*)
15319       lt_prog_compiler_wl_GCJ='-Wl,'
15320       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15321       # not for PA HP-UX.
15322       case "$host_cpu" in
15323       hppa*64*|ia64*)
15324         # +Z the default
15325         ;;
15326       *)
15327         lt_prog_compiler_pic_GCJ='+Z'
15328         ;;
15329       esac
15330       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15331       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15332       ;;
15333
15334     irix5* | irix6* | nonstopux*)
15335       lt_prog_compiler_wl_GCJ='-Wl,'
15336       # PIC (with -KPIC) is the default.
15337       lt_prog_compiler_static_GCJ='-non_shared'
15338       ;;
15339
15340     newsos6)
15341       lt_prog_compiler_pic_GCJ='-KPIC'
15342       lt_prog_compiler_static_GCJ='-Bstatic'
15343       ;;
15344
15345     linux*)
15346       case $CC in
15347       icc|ecc)
15348         lt_prog_compiler_wl_GCJ='-Wl,'
15349         lt_prog_compiler_pic_GCJ='-KPIC'
15350         lt_prog_compiler_static_GCJ='-static'
15351         ;;
15352       ccc)
15353         lt_prog_compiler_wl_GCJ='-Wl,'
15354         # All Alpha code is PIC.
15355         lt_prog_compiler_static_GCJ='-non_shared'
15356         ;;
15357       esac
15358       ;;
15359
15360     osf3* | osf4* | osf5*)
15361       lt_prog_compiler_wl_GCJ='-Wl,'
15362       # All OSF/1 code is PIC.
15363       lt_prog_compiler_static_GCJ='-non_shared'
15364       ;;
15365
15366     sco3.2v5*)
15367       lt_prog_compiler_pic_GCJ='-Kpic'
15368       lt_prog_compiler_static_GCJ='-dn'
15369       ;;
15370
15371     solaris*)
15372       lt_prog_compiler_wl_GCJ='-Wl,'
15373       lt_prog_compiler_pic_GCJ='-KPIC'
15374       lt_prog_compiler_static_GCJ='-Bstatic'
15375       ;;
15376
15377     sunos4*)
15378       lt_prog_compiler_wl_GCJ='-Qoption ld '
15379       lt_prog_compiler_pic_GCJ='-PIC'
15380       lt_prog_compiler_static_GCJ='-Bstatic'
15381       ;;
15382
15383     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15384       lt_prog_compiler_wl_GCJ='-Wl,'
15385       lt_prog_compiler_pic_GCJ='-KPIC'
15386       lt_prog_compiler_static_GCJ='-Bstatic'
15387       ;;
15388
15389     sysv4*MP*)
15390       if test -d /usr/nec ;then
15391         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15392         lt_prog_compiler_static_GCJ='-Bstatic'
15393       fi
15394       ;;
15395
15396     uts4*)
15397       lt_prog_compiler_pic_GCJ='-pic'
15398       lt_prog_compiler_static_GCJ='-Bstatic'
15399       ;;
15400
15401     *)
15402       lt_prog_compiler_can_build_shared_GCJ=no
15403       ;;
15404     esac
15405   fi
15406
15407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15408 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15409
15410 #
15411 # Check to make sure the PIC flag actually works.
15412 #
15413 if test -n "$lt_prog_compiler_pic_GCJ"; then
15414   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   lt_prog_compiler_pic_works_GCJ=no
15420   ac_outfile=conftest.$ac_objext
15421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15422    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15423    # Insert the option either (1) after the last *FLAGS variable, or
15424    # (2) before a word containing "conftest.", or (3) at the end.
15425    # Note that $ac_compile itself does not contain backslashes and begins
15426    # with a dollar sign (not a hyphen), so the echo should work correctly.
15427    # The option is referenced via a variable to avoid confusing sed.
15428    lt_compile=`echo "$ac_compile" | $SED \
15429    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15431    -e 's:$: $lt_compiler_flag:'`
15432    (eval echo "\"\$as_me:15432: $lt_compile\"" >&5)
15433    (eval "$lt_compile" 2>conftest.err)
15434    ac_status=$?
15435    cat conftest.err >&5
15436    echo "$as_me:15436: \$? = $ac_status" >&5
15437    if (exit $ac_status) && test -s "$ac_outfile"; then
15438      # The compiler can only warn and ignore the option if not recognized
15439      # So say no if there are warnings
15440      if test ! -s conftest.err; then
15441        lt_prog_compiler_pic_works_GCJ=yes
15442      fi
15443    fi
15444    $rm conftest*
15445
15446 fi
15447 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15448 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15449
15450 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15451     case $lt_prog_compiler_pic_GCJ in
15452      "" | " "*) ;;
15453      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15454      esac
15455 else
15456     lt_prog_compiler_pic_GCJ=
15457      lt_prog_compiler_can_build_shared_GCJ=no
15458 fi
15459
15460 fi
15461 case "$host_os" in
15462   # For platforms which do not support PIC, -DPIC is meaningless:
15463   *djgpp*)
15464     lt_prog_compiler_pic_GCJ=
15465     ;;
15466   *)
15467     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15468     ;;
15469 esac
15470
15471 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15472 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15473 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   lt_cv_prog_compiler_c_o_GCJ=no
15477    $rm -r conftest 2>/dev/null
15478    mkdir conftest
15479    cd conftest
15480    mkdir out
15481    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15482
15483    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15484    # that will create temporary files in the current directory regardless of
15485    # the output directory.  Thus, making CWD read-only will cause this test
15486    # to fail, enabling locking or at least warning the user not to do parallel
15487    # builds.
15488    chmod -w .
15489
15490    lt_compiler_flag="-o out/conftest2.$ac_objext"
15491    # Insert the option either (1) after the last *FLAGS variable, or
15492    # (2) before a word containing "conftest.", or (3) at the end.
15493    # Note that $ac_compile itself does not contain backslashes and begins
15494    # with a dollar sign (not a hyphen), so the echo should work correctly.
15495    lt_compile=`echo "$ac_compile" | $SED \
15496    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15498    -e 's:$: $lt_compiler_flag:'`
15499    (eval echo "\"\$as_me:15499: $lt_compile\"" >&5)
15500    (eval "$lt_compile" 2>out/conftest.err)
15501    ac_status=$?
15502    cat out/conftest.err >&5
15503    echo "$as_me:15503: \$? = $ac_status" >&5
15504    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15505    then
15506      # The compiler can only warn and ignore the option if not recognized
15507      # So say no if there are warnings
15508      if test ! -s out/conftest.err; then
15509        lt_cv_prog_compiler_c_o_GCJ=yes
15510      fi
15511    fi
15512    chmod u+w .
15513    $rm conftest* out/*
15514    rmdir out
15515    cd ..
15516    rmdir conftest
15517    $rm conftest*
15518
15519 fi
15520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15521 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15522
15523
15524 hard_links="nottested"
15525 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15526   # do not overwrite the value of need_locks provided by the user
15527   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15528 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15529   hard_links=yes
15530   $rm conftest*
15531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15532   touch conftest.a
15533   ln conftest.a conftest.b 2>&5 || hard_links=no
15534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15535   echo "$as_me:$LINENO: result: $hard_links" >&5
15536 echo "${ECHO_T}$hard_links" >&6
15537   if test "$hard_links" = no; then
15538     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15539 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15540     need_locks=warn
15541   fi
15542 else
15543   need_locks=no
15544 fi
15545
15546 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15547 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15548
15549   runpath_var=
15550   allow_undefined_flag_GCJ=
15551   enable_shared_with_static_runtimes_GCJ=no
15552   archive_cmds_GCJ=
15553   archive_expsym_cmds_GCJ=
15554   old_archive_From_new_cmds_GCJ=
15555   old_archive_from_expsyms_cmds_GCJ=
15556   export_dynamic_flag_spec_GCJ=
15557   whole_archive_flag_spec_GCJ=
15558   thread_safe_flag_spec_GCJ=
15559   hardcode_libdir_flag_spec_GCJ=
15560   hardcode_libdir_flag_spec_ld_GCJ=
15561   hardcode_libdir_separator_GCJ=
15562   hardcode_direct_GCJ=no
15563   hardcode_minus_L_GCJ=no
15564   hardcode_shlibpath_var_GCJ=unsupported
15565   link_all_deplibs_GCJ=unknown
15566   hardcode_automatic_GCJ=no
15567   module_cmds_GCJ=
15568   module_expsym_cmds_GCJ=
15569   always_export_symbols_GCJ=no
15570   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15571   # include_expsyms should be a list of space-separated symbols to be *always*
15572   # included in the symbol list
15573   include_expsyms_GCJ=
15574   # exclude_expsyms can be an extended regexp of symbols to exclude
15575   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15576   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15577   # as well as any symbol that contains `d'.
15578   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15579   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15580   # platforms (ab)use it in PIC code, but their linkers get confused if
15581   # the symbol is explicitly referenced.  Since portable code cannot
15582   # rely on this symbol name, it's probably fine to never include it in
15583   # preloaded symbol tables.
15584   extract_expsyms_cmds=
15585
15586   case $host_os in
15587   cygwin* | mingw* | pw32*)
15588     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15589     # When not using gcc, we currently assume that we are using
15590     # Microsoft Visual C++.
15591     if test "$GCC" != yes; then
15592       with_gnu_ld=no
15593     fi
15594     ;;
15595   openbsd*)
15596     with_gnu_ld=no
15597     ;;
15598   esac
15599
15600   ld_shlibs_GCJ=yes
15601   if test "$with_gnu_ld" = yes; then
15602     # If archive_cmds runs LD, not CC, wlarc should be empty
15603     wlarc='${wl}'
15604
15605     # See if GNU ld supports shared libraries.
15606     case $host_os in
15607     aix3* | aix4* | aix5*)
15608       # On AIX/PPC, the GNU linker is very broken
15609       if test "$host_cpu" != ia64; then
15610         ld_shlibs_GCJ=no
15611         cat <<EOF 1>&2
15612
15613 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15614 *** to be unable to reliably create shared libraries on AIX.
15615 *** Therefore, libtool is disabling shared libraries support.  If you
15616 *** really care for shared libraries, you may want to modify your PATH
15617 *** so that a non-GNU linker is found, and then restart.
15618
15619 EOF
15620       fi
15621       ;;
15622
15623     amigaos*)
15624       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)'
15625       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15626       hardcode_minus_L_GCJ=yes
15627
15628       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15629       # that the semantics of dynamic libraries on AmigaOS, at least up
15630       # to version 4, is to share data among multiple programs linked
15631       # with the same dynamic library.  Since this doesn't match the
15632       # behavior of shared libraries on other platforms, we can't use
15633       # them.
15634       ld_shlibs_GCJ=no
15635       ;;
15636
15637     beos*)
15638       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15639         allow_undefined_flag_GCJ=unsupported
15640         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15641         # support --undefined.  This deserves some investigation.  FIXME
15642         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15643       else
15644         ld_shlibs_GCJ=no
15645       fi
15646       ;;
15647
15648     cygwin* | mingw* | pw32*)
15649       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15650       # as there is no search path for DLLs.
15651       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15652       allow_undefined_flag_GCJ=unsupported
15653       always_export_symbols_GCJ=no
15654       enable_shared_with_static_runtimes_GCJ=yes
15655       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15656
15657       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15658         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15659         # If the export-symbols file already is a .def file (1st line
15660         # is EXPORTS), use it as is; otherwise, prepend...
15661         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15662           cp $export_symbols $output_objdir/$soname.def;
15663         else
15664           echo EXPORTS > $output_objdir/$soname.def;
15665           cat $export_symbols >> $output_objdir/$soname.def;
15666         fi~
15667         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15668       else
15669         ld_shlibs=no
15670       fi
15671       ;;
15672
15673     netbsd*)
15674       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15675         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15676         wlarc=
15677       else
15678         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15680       fi
15681       ;;
15682
15683     solaris* | sysv5*)
15684       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15685         ld_shlibs_GCJ=no
15686         cat <<EOF 1>&2
15687
15688 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15689 *** create shared libraries on Solaris systems.  Therefore, libtool
15690 *** is disabling shared libraries support.  We urge you to upgrade GNU
15691 *** binutils to release 2.9.1 or newer.  Another option is to modify
15692 *** your PATH or compiler configuration so that the native linker is
15693 *** used, and then restart.
15694
15695 EOF
15696       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15697         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15699       else
15700         ld_shlibs_GCJ=no
15701       fi
15702       ;;
15703
15704     sunos4*)
15705       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15706       wlarc=
15707       hardcode_direct_GCJ=yes
15708       hardcode_shlibpath_var_GCJ=no
15709       ;;
15710
15711     *)
15712       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15713         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15714         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15715       else
15716         ld_shlibs_GCJ=no
15717       fi
15718       ;;
15719     esac
15720
15721     if test "$ld_shlibs_GCJ" = yes; then
15722       runpath_var=LD_RUN_PATH
15723       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15724       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15725       # ancient GNU ld didn't support --whole-archive et. al.
15726       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15727         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15728       else
15729         whole_archive_flag_spec_GCJ=
15730       fi
15731     fi
15732   else
15733     # PORTME fill in a description of your system's linker (not GNU ld)
15734     case $host_os in
15735     aix3*)
15736       allow_undefined_flag_GCJ=unsupported
15737       always_export_symbols_GCJ=yes
15738       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'
15739       # Note: this linker hardcodes the directories in LIBPATH if there
15740       # are no directories specified by -L.
15741       hardcode_minus_L_GCJ=yes
15742       if test "$GCC" = yes && test -z "$link_static_flag"; then
15743         # Neither direct hardcoding nor static linking is supported with a
15744         # broken collect2.
15745         hardcode_direct_GCJ=unsupported
15746       fi
15747       ;;
15748
15749     aix4* | aix5*)
15750       if test "$host_cpu" = ia64; then
15751         # On IA64, the linker does run time linking by default, so we don't
15752         # have to do anything special.
15753         aix_use_runtimelinking=no
15754         exp_sym_flag='-Bexport'
15755         no_entry_flag=""
15756       else
15757         # If we're using GNU nm, then we don't want the "-C" option.
15758         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15759         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15760           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'
15761         else
15762           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'
15763         fi
15764         aix_use_runtimelinking=no
15765
15766         # Test if we are trying to use run time linking or normal
15767         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15768         # need to do runtime linking.
15769         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15770           for ld_flag in $LDFLAGS; do
15771           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15772             aix_use_runtimelinking=yes
15773             break
15774           fi
15775           done
15776         esac
15777
15778         exp_sym_flag='-bexport'
15779         no_entry_flag='-bnoentry'
15780       fi
15781
15782       # When large executables or shared objects are built, AIX ld can
15783       # have problems creating the table of contents.  If linking a library
15784       # or program results in "error TOC overflow" add -mminimal-toc to
15785       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15786       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15787
15788       archive_cmds_GCJ=''
15789       hardcode_direct_GCJ=yes
15790       hardcode_libdir_separator_GCJ=':'
15791       link_all_deplibs_GCJ=yes
15792
15793       if test "$GCC" = yes; then
15794         case $host_os in aix4.012|aix4.012.*)
15795         # We only want to do this on AIX 4.2 and lower, the check
15796         # below for broken collect2 doesn't work under 4.3+
15797           collect2name=`${CC} -print-prog-name=collect2`
15798           if test -f "$collect2name" && \
15799            strings "$collect2name" | grep resolve_lib_name >/dev/null
15800           then
15801           # We have reworked collect2
15802           hardcode_direct_GCJ=yes
15803           else
15804           # We have old collect2
15805           hardcode_direct_GCJ=unsupported
15806           # It fails to find uninstalled libraries when the uninstalled
15807           # path is not listed in the libpath.  Setting hardcode_minus_L
15808           # to unsupported forces relinking
15809           hardcode_minus_L_GCJ=yes
15810           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15811           hardcode_libdir_separator_GCJ=
15812           fi
15813         esac
15814         shared_flag='-shared'
15815       else
15816         # not using gcc
15817         if test "$host_cpu" = ia64; then
15818         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15819         # chokes on -Wl,-G. The following line is correct:
15820           shared_flag='-G'
15821         else
15822         if test "$aix_use_runtimelinking" = yes; then
15823             shared_flag='${wl}-G'
15824           else
15825             shared_flag='${wl}-bM:SRE'
15826         fi
15827         fi
15828       fi
15829
15830       # It seems that -bexpall does not export symbols beginning with
15831       # underscore (_), so it is better to generate a list of symbols to export.
15832       always_export_symbols_GCJ=yes
15833       if test "$aix_use_runtimelinking" = yes; then
15834         # Warning - without using the other runtime loading flags (-brtl),
15835         # -berok will link without error, but may produce a broken library.
15836         allow_undefined_flag_GCJ='-berok'
15837        # Determine the default libpath from the value encoded in an empty executable.
15838        cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844
15845 int
15846 main ()
15847 {
15848
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855   (eval $ac_link) 2>conftest.er1
15856   ac_status=$?
15857   grep -v '^ *+' conftest.er1 >conftest.err
15858   rm -f conftest.er1
15859   cat conftest.err >&5
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } &&
15862          { ac_try='test -z "$ac_c_werror_flag"
15863                          || test ! -s conftest.err'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; } &&
15869          { ac_try='test -s conftest$ac_exeext'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875
15876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15877 }'`
15878 # Check for a 64-bit object if we didn't find anything.
15879 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; }
15880 }'`; fi
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885 fi
15886 rm -f conftest.err conftest.$ac_objext \
15887       conftest$ac_exeext conftest.$ac_ext
15888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15889
15890        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15891         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15892        else
15893         if test "$host_cpu" = ia64; then
15894           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15895           allow_undefined_flag_GCJ="-z nodefs"
15896           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15897         else
15898          # Determine the default libpath from the value encoded in an empty executable.
15899          cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905
15906 int
15907 main ()
15908 {
15909
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag"
15924                          || test ! -s conftest.err'
15925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926   (eval $ac_try) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest$ac_exeext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936
15937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15938 }'`
15939 # Check for a 64-bit object if we didn't find anything.
15940 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; }
15941 }'`; fi
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946 fi
15947 rm -f conftest.err conftest.$ac_objext \
15948       conftest$ac_exeext conftest.$ac_ext
15949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15950
15951          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15952           # Warning - without using the other run time loading flags,
15953           # -berok will link without error, but may produce a broken library.
15954           no_undefined_flag_GCJ=' ${wl}-bernotok'
15955           allow_undefined_flag_GCJ=' ${wl}-berok'
15956           # -bexpall does not export symbols beginning with underscore (_)
15957           always_export_symbols_GCJ=yes
15958           # Exported symbols can be pulled into shared objects from archives
15959           whole_archive_flag_spec_GCJ=' '
15960           archive_cmds_need_lc_GCJ=yes
15961           # This is similar to how AIX traditionally builds it's shared libraries.
15962           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15963         fi
15964       fi
15965       ;;
15966
15967     amigaos*)
15968       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)'
15969       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15970       hardcode_minus_L_GCJ=yes
15971       # see comment about different semantics on the GNU ld section
15972       ld_shlibs_GCJ=no
15973       ;;
15974
15975     bsdi4*)
15976       export_dynamic_flag_spec_GCJ=-rdynamic
15977       ;;
15978
15979     cygwin* | mingw* | pw32*)
15980       # When not using gcc, we currently assume that we are using
15981       # Microsoft Visual C++.
15982       # hardcode_libdir_flag_spec is actually meaningless, as there is
15983       # no search path for DLLs.
15984       hardcode_libdir_flag_spec_GCJ=' '
15985       allow_undefined_flag_GCJ=unsupported
15986       # Tell ltmain to make .lib files, not .a files.
15987       libext=lib
15988       # Tell ltmain to make .dll files, not .so files.
15989       shrext=".dll"
15990       # FIXME: Setting linknames here is a bad hack.
15991       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15992       # The linker will automatically build a .lib file if we build a DLL.
15993       old_archive_From_new_cmds_GCJ='true'
15994       # FIXME: Should let the user specify the lib program.
15995       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15996       fix_srcfile_path='`cygpath -w "$srcfile"`'
15997       enable_shared_with_static_runtimes_GCJ=yes
15998       ;;
15999
16000     darwin* | rhapsody*)
16001     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16002       archive_cmds_need_lc_GCJ=no
16003       case "$host_os" in
16004       rhapsody* | darwin1.[012])
16005         allow_undefined_flag_GCJ='-undefined suppress'
16006         ;;
16007       *) # Darwin 1.3 on
16008         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16009         ;;
16010       esac
16011       # FIXME: Relying on posixy $() will cause problems for
16012       #        cross-compilation, but unfortunately the echo tests do not
16013       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
16014       #        `"' quotes if we put them in here... so don't!
16015         lt_int_apple_cc_single_mod=no
16016         output_verbose_link_cmd='echo'
16017         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16018           lt_int_apple_cc_single_mod=yes
16019         fi
16020         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16021           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16022         else
16023         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16024       fi
16025       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16026       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16027         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16028           archive_expsym_cmds_GCJ='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}'
16029         else
16030           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16031         fi
16032           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16033       hardcode_direct_GCJ=no
16034       hardcode_automatic_GCJ=yes
16035       hardcode_shlibpath_var_GCJ=unsupported
16036       whole_archive_flag_spec_GCJ='-all_load $convenience'
16037       link_all_deplibs_GCJ=yes
16038     fi
16039       ;;
16040
16041     dgux*)
16042       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16044       hardcode_shlibpath_var_GCJ=no
16045       ;;
16046
16047     freebsd1*)
16048       ld_shlibs_GCJ=no
16049       ;;
16050
16051     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16052     # support.  Future versions do this automatically, but an explicit c++rt0.o
16053     # does not break anything, and helps significantly (at the cost of a little
16054     # extra space).
16055     freebsd2.2*)
16056       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16057       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16058       hardcode_direct_GCJ=yes
16059       hardcode_shlibpath_var_GCJ=no
16060       ;;
16061
16062     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16063     freebsd2*)
16064       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065       hardcode_direct_GCJ=yes
16066       hardcode_minus_L_GCJ=yes
16067       hardcode_shlibpath_var_GCJ=no
16068       ;;
16069
16070     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16071     freebsd*)
16072       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16073       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16074       hardcode_direct_GCJ=yes
16075       hardcode_shlibpath_var_GCJ=no
16076       ;;
16077
16078     hpux9*)
16079       if test "$GCC" = yes; then
16080         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'
16081       else
16082         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'
16083       fi
16084       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16085       hardcode_libdir_separator_GCJ=:
16086       hardcode_direct_GCJ=yes
16087
16088       # hardcode_minus_L: Not really in the search PATH,
16089       # but as the default location of the library.
16090       hardcode_minus_L_GCJ=yes
16091       export_dynamic_flag_spec_GCJ='${wl}-E'
16092       ;;
16093
16094     hpux10* | hpux11*)
16095       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16096         case "$host_cpu" in
16097         hppa*64*|ia64*)
16098           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16099           ;;
16100         *)
16101           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16102           ;;
16103         esac
16104       else
16105         case "$host_cpu" in
16106         hppa*64*|ia64*)
16107           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16108           ;;
16109         *)
16110           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16111           ;;
16112         esac
16113       fi
16114       if test "$with_gnu_ld" = no; then
16115         case "$host_cpu" in
16116         hppa*64*)
16117           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16118           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16119           hardcode_libdir_separator_GCJ=:
16120           hardcode_direct_GCJ=no
16121           hardcode_shlibpath_var_GCJ=no
16122           ;;
16123         ia64*)
16124           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125           hardcode_direct_GCJ=no
16126           hardcode_shlibpath_var_GCJ=no
16127
16128           # hardcode_minus_L: Not really in the search PATH,
16129           # but as the default location of the library.
16130           hardcode_minus_L_GCJ=yes
16131           ;;
16132         *)
16133           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16134           hardcode_libdir_separator_GCJ=:
16135           hardcode_direct_GCJ=yes
16136           export_dynamic_flag_spec_GCJ='${wl}-E'
16137
16138           # hardcode_minus_L: Not really in the search PATH,
16139           # but as the default location of the library.
16140           hardcode_minus_L_GCJ=yes
16141           ;;
16142         esac
16143       fi
16144       ;;
16145
16146     irix5* | irix6* | nonstopux*)
16147       if test "$GCC" = yes; then
16148         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'
16149       else
16150         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'
16151         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16152       fi
16153       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16154       hardcode_libdir_separator_GCJ=:
16155       link_all_deplibs_GCJ=yes
16156       ;;
16157
16158     netbsd*)
16159       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16161       else
16162         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16163       fi
16164       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16165       hardcode_direct_GCJ=yes
16166       hardcode_shlibpath_var_GCJ=no
16167       ;;
16168
16169     newsos6)
16170       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171       hardcode_direct_GCJ=yes
16172       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16173       hardcode_libdir_separator_GCJ=:
16174       hardcode_shlibpath_var_GCJ=no
16175       ;;
16176
16177     openbsd*)
16178       hardcode_direct_GCJ=yes
16179       hardcode_shlibpath_var_GCJ=no
16180       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16181         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16182         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16183         export_dynamic_flag_spec_GCJ='${wl}-E'
16184       else
16185        case $host_os in
16186          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16187            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16188            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16189            ;;
16190          *)
16191            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16192            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16193            ;;
16194        esac
16195       fi
16196       ;;
16197
16198     os2*)
16199       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16200       hardcode_minus_L_GCJ=yes
16201       allow_undefined_flag_GCJ=unsupported
16202       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'
16203       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16204       ;;
16205
16206     osf3*)
16207       if test "$GCC" = yes; then
16208         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16209         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'
16210       else
16211         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16212         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'
16213       fi
16214       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16215       hardcode_libdir_separator_GCJ=:
16216       ;;
16217
16218     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16219       if test "$GCC" = yes; then
16220         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16221         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'
16222         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16223       else
16224         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16225         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'
16226         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~
16227         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16228
16229         # Both c and cxx compiler support -rpath directly
16230         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16231       fi
16232       hardcode_libdir_separator_GCJ=:
16233       ;;
16234
16235     sco3.2v5*)
16236       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237       hardcode_shlibpath_var_GCJ=no
16238       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16239       runpath_var=LD_RUN_PATH
16240       hardcode_runpath_var=yes
16241       ;;
16242
16243     solaris*)
16244       no_undefined_flag_GCJ=' -z text'
16245       if test "$GCC" = yes; then
16246         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16249       else
16250         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16252         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16253       fi
16254       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255       hardcode_shlibpath_var_GCJ=no
16256       case $host_os in
16257       solaris2.[0-5] | solaris2.[0-5].*) ;;
16258       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16259         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16260       esac
16261       link_all_deplibs_GCJ=yes
16262       ;;
16263
16264     sunos4*)
16265       if test "x$host_vendor" = xsequent; then
16266         # Use $CC to link under sequent, because it throws in some extra .o
16267         # files that make .init and .fini sections work.
16268         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16269       else
16270         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16271       fi
16272       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16273       hardcode_direct_GCJ=yes
16274       hardcode_minus_L_GCJ=yes
16275       hardcode_shlibpath_var_GCJ=no
16276       ;;
16277
16278     sysv4)
16279       case $host_vendor in
16280         sni)
16281           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282           hardcode_direct_GCJ=yes # is this really true???
16283         ;;
16284         siemens)
16285           ## LD is ld it makes a PLAMLIB
16286           ## CC just makes a GrossModule.
16287           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16288           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16289           hardcode_direct_GCJ=no
16290         ;;
16291         motorola)
16292           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16294         ;;
16295       esac
16296       runpath_var='LD_RUN_PATH'
16297       hardcode_shlibpath_var_GCJ=no
16298       ;;
16299
16300     sysv4.3*)
16301       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302       hardcode_shlibpath_var_GCJ=no
16303       export_dynamic_flag_spec_GCJ='-Bexport'
16304       ;;
16305
16306     sysv4*MP*)
16307       if test -d /usr/nec; then
16308         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16309         hardcode_shlibpath_var_GCJ=no
16310         runpath_var=LD_RUN_PATH
16311         hardcode_runpath_var=yes
16312         ld_shlibs_GCJ=yes
16313       fi
16314       ;;
16315
16316     sysv4.2uw2*)
16317       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16318       hardcode_direct_GCJ=yes
16319       hardcode_minus_L_GCJ=no
16320       hardcode_shlibpath_var_GCJ=no
16321       hardcode_runpath_var=yes
16322       runpath_var=LD_RUN_PATH
16323       ;;
16324
16325    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16326       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16327       if test "$GCC" = yes; then
16328         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16329       else
16330         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16331       fi
16332       runpath_var='LD_RUN_PATH'
16333       hardcode_shlibpath_var_GCJ=no
16334       ;;
16335
16336     sysv5*)
16337       no_undefined_flag_GCJ=' -z text'
16338       # $CC -shared without GNU ld will not create a library from C++
16339       # object files and a static libstdc++, better avoid it by now
16340       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16342                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16343       hardcode_libdir_flag_spec_GCJ=
16344       hardcode_shlibpath_var_GCJ=no
16345       runpath_var='LD_RUN_PATH'
16346       ;;
16347
16348     uts4*)
16349       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16351       hardcode_shlibpath_var_GCJ=no
16352       ;;
16353
16354     *)
16355       ld_shlibs_GCJ=no
16356       ;;
16357     esac
16358   fi
16359
16360 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16361 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16362 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16363
16364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16365 if test "$GCC" = yes; then
16366   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16367 fi
16368
16369 #
16370 # Do we need to explicitly link libc?
16371 #
16372 case "x$archive_cmds_need_lc_GCJ" in
16373 x|xyes)
16374   # Assume -lc should be added
16375   archive_cmds_need_lc_GCJ=yes
16376
16377   if test "$enable_shared" = yes && test "$GCC" = yes; then
16378     case $archive_cmds_GCJ in
16379     *'~'*)
16380       # FIXME: we may have to deal with multi-command sequences.
16381       ;;
16382     '$CC '*)
16383       # Test whether the compiler implicitly links with -lc since on some
16384       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16385       # to ld, don't add -lc before -lgcc.
16386       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16387 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16388       $rm conftest*
16389       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16390
16391       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392   (eval $ac_compile) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } 2>conftest.err; then
16396         soname=conftest
16397         lib=conftest
16398         libobjs=conftest.$ac_objext
16399         deplibs=
16400         wl=$lt_prog_compiler_wl_GCJ
16401         compiler_flags=-v
16402         linker_flags=-v
16403         verstring=
16404         output_objdir=.
16405         libname=conftest
16406         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16407         allow_undefined_flag_GCJ=
16408         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16409   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }
16413         then
16414           archive_cmds_need_lc_GCJ=no
16415         else
16416           archive_cmds_need_lc_GCJ=yes
16417         fi
16418         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16419       else
16420         cat conftest.err 1>&5
16421       fi
16422       $rm conftest*
16423       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16424 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16425       ;;
16426     esac
16427   fi
16428   ;;
16429 esac
16430
16431 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16433 hardcode_action_GCJ=
16434 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16435    test -n "$runpath_var GCJ" || \
16436    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16437
16438   # We can hardcode non-existant directories.
16439   if test "$hardcode_direct_GCJ" != no &&
16440      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16441      # have to relink, otherwise we might link with an installed library
16442      # when we should be linking with a yet-to-be-installed one
16443      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16444      test "$hardcode_minus_L_GCJ" != no; then
16445     # Linking always hardcodes the temporary library directory.
16446     hardcode_action_GCJ=relink
16447   else
16448     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16449     hardcode_action_GCJ=immediate
16450   fi
16451 else
16452   # We cannot hardcode anything, or else we can only hardcode existing
16453   # directories.
16454   hardcode_action_GCJ=unsupported
16455 fi
16456 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16457 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16458
16459 if test "$hardcode_action_GCJ" = relink; then
16460   # Fast installation is not supported
16461   enable_fast_install=no
16462 elif test "$shlibpath_overrides_runpath" = yes ||
16463      test "$enable_shared" = no; then
16464   # Fast installation is not necessary
16465   enable_fast_install=needless
16466 fi
16467
16468 striplib=
16469 old_striplib=
16470 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16471 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16472 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16473   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16474   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16475   echo "$as_me:$LINENO: result: yes" >&5
16476 echo "${ECHO_T}yes" >&6
16477 else
16478 # FIXME - insert some real tests, host_os isn't really good enough
16479   case $host_os in
16480    darwin*)
16481        if test -n "$STRIP" ; then
16482          striplib="$STRIP -x"
16483          echo "$as_me:$LINENO: result: yes" >&5
16484 echo "${ECHO_T}yes" >&6
16485        else
16486   echo "$as_me:$LINENO: result: no" >&5
16487 echo "${ECHO_T}no" >&6
16488 fi
16489        ;;
16490    *)
16491   echo "$as_me:$LINENO: result: no" >&5
16492 echo "${ECHO_T}no" >&6
16493     ;;
16494   esac
16495 fi
16496
16497 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16499 library_names_spec=
16500 libname_spec='lib$name'
16501 soname_spec=
16502 shrext=".so"
16503 postinstall_cmds=
16504 postuninstall_cmds=
16505 finish_cmds=
16506 finish_eval=
16507 shlibpath_var=
16508 shlibpath_overrides_runpath=unknown
16509 version_type=none
16510 dynamic_linker="$host_os ld.so"
16511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16512 if test "$GCC" = yes; then
16513   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16515     # if the path contains ";" then we assume it to be the separator
16516     # otherwise default to the standard path separator (i.e. ":") - it is
16517     # assumed that no part of a normal pathname contains ";" but that should
16518     # okay in the real world where ";" in dirpaths is itself problematic.
16519     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16520   else
16521     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16522   fi
16523 else
16524   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16525 fi
16526 need_lib_prefix=unknown
16527 hardcode_into_libs=no
16528
16529 # when you set need_version to no, make sure it does not cause -set_version
16530 # flags to be left without arguments
16531 need_version=unknown
16532
16533 case $host_os in
16534 aix3*)
16535   version_type=linux
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16537   shlibpath_var=LIBPATH
16538
16539   # AIX 3 has no versioning support, so we append a major version to the name.
16540   soname_spec='${libname}${release}${shared_ext}$major'
16541   ;;
16542
16543 aix4* | aix5*)
16544   version_type=linux
16545   need_lib_prefix=no
16546   need_version=no
16547   hardcode_into_libs=yes
16548   if test "$host_cpu" = ia64; then
16549     # AIX 5 supports IA64
16550     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16551     shlibpath_var=LD_LIBRARY_PATH
16552   else
16553     # With GCC up to 2.95.x, collect2 would create an import file
16554     # for dependence libraries.  The import file would start with
16555     # the line `#! .'.  This would cause the generated library to
16556     # depend on `.', always an invalid library.  This was fixed in
16557     # development snapshots of GCC prior to 3.0.
16558     case $host_os in
16559       aix4 | aix4.[01] | aix4.[01].*)
16560       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16561            echo ' yes '
16562            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16563         :
16564       else
16565         can_build_shared=no
16566       fi
16567       ;;
16568     esac
16569     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16570     # soname into executable. Probably we can add versioning support to
16571     # collect2, so additional links can be useful in future.
16572     if test "$aix_use_runtimelinking" = yes; then
16573       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16574       # instead of lib<name>.a to let people know that these are not
16575       # typical AIX shared libraries.
16576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577     else
16578       # We preserve .a as extension for shared libraries through AIX4.2
16579       # and later when we are not doing run time linking.
16580       library_names_spec='${libname}${release}.a $libname.a'
16581       soname_spec='${libname}${release}${shared_ext}$major'
16582     fi
16583     shlibpath_var=LIBPATH
16584   fi
16585   ;;
16586
16587 amigaos*)
16588   library_names_spec='$libname.ixlibrary $libname.a'
16589   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16590   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'
16591   ;;
16592
16593 beos*)
16594   library_names_spec='${libname}${shared_ext}'
16595   dynamic_linker="$host_os ld.so"
16596   shlibpath_var=LIBRARY_PATH
16597   ;;
16598
16599 bsdi4*)
16600   version_type=linux
16601   need_version=no
16602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603   soname_spec='${libname}${release}${shared_ext}$major'
16604   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605   shlibpath_var=LD_LIBRARY_PATH
16606   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608   # the default ld.so.conf also contains /usr/contrib/lib and
16609   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610   # libtool to hard-code these into programs
16611   ;;
16612
16613 cygwin* | mingw* | pw32*)
16614   version_type=windows
16615   shrext=".dll"
16616   need_version=no
16617   need_lib_prefix=no
16618
16619   case $GCC,$host_os in
16620   yes,cygwin* | yes,mingw* | yes,pw32*)
16621     library_names_spec='$libname.dll.a'
16622     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16623     postinstall_cmds='base_file=`basename \${file}`~
16624       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16625       dldir=$destdir/`dirname \$dlpath`~
16626       test -d \$dldir || mkdir -p \$dldir~
16627       $install_prog $dir/$dlname \$dldir/$dlname'
16628     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16629       dlpath=$dir/\$dldll~
16630        $rm \$dlpath'
16631     shlibpath_overrides_runpath=yes
16632
16633     case $host_os in
16634     cygwin*)
16635       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16636       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16637       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16638       ;;
16639     mingw*)
16640       # MinGW DLLs use traditional 'lib' prefix
16641       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16642       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16643       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16644         # It is most probably a Windows format PATH printed by
16645         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16646         # path with ; separators, and with drive letters. We can handle the
16647         # drive letters (cygwin fileutils understands them), so leave them,
16648         # especially as we might pass files found there to a mingw objdump,
16649         # which wouldn't understand a cygwinified path. Ahh.
16650         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16651       else
16652         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16653       fi
16654       ;;
16655     pw32*)
16656       # pw32 DLLs use 'pw' prefix rather than 'lib'
16657       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16658       ;;
16659     esac
16660     ;;
16661
16662   *)
16663     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16664     ;;
16665   esac
16666   dynamic_linker='Win32 ld.exe'
16667   # FIXME: first we should search . and the directory the executable is in
16668   shlibpath_var=PATH
16669   ;;
16670
16671 darwin* | rhapsody*)
16672   dynamic_linker="$host_os dyld"
16673   version_type=darwin
16674   need_lib_prefix=no
16675   need_version=no
16676   # FIXME: Relying on posixy $() will cause problems for
16677   #        cross-compilation, but unfortunately the echo tests do not
16678   #        yet detect zsh echo's removal of \ escapes.
16679   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16680   soname_spec='${libname}${release}${major}$shared_ext'
16681   shlibpath_overrides_runpath=yes
16682   shlibpath_var=DYLD_LIBRARY_PATH
16683   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16684   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16685   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16686   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"`
16687   fi
16688   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16689   ;;
16690
16691 dgux*)
16692   version_type=linux
16693   need_lib_prefix=no
16694   need_version=no
16695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16696   soname_spec='${libname}${release}${shared_ext}$major'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   ;;
16699
16700 freebsd1*)
16701   dynamic_linker=no
16702   ;;
16703
16704 freebsd*)
16705   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16706   version_type=freebsd-$objformat
16707   case $version_type in
16708     freebsd-elf*)
16709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16710       need_version=no
16711       need_lib_prefix=no
16712       ;;
16713     freebsd-*)
16714       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16715       need_version=yes
16716       ;;
16717   esac
16718   shlibpath_var=LD_LIBRARY_PATH
16719   case $host_os in
16720   freebsd2*)
16721     shlibpath_overrides_runpath=yes
16722     ;;
16723   freebsd3.01* | freebsdelf3.01*)
16724     shlibpath_overrides_runpath=yes
16725     hardcode_into_libs=yes
16726     ;;
16727   *) # from 3.2 on
16728     shlibpath_overrides_runpath=no
16729     hardcode_into_libs=yes
16730     ;;
16731   esac
16732   ;;
16733
16734 gnu*)
16735   version_type=linux
16736   need_lib_prefix=no
16737   need_version=no
16738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16739   soname_spec='${libname}${release}${shared_ext}$major'
16740   shlibpath_var=LD_LIBRARY_PATH
16741   hardcode_into_libs=yes
16742   ;;
16743
16744 hpux9* | hpux10* | hpux11*)
16745   # Give a soname corresponding to the major version so that dld.sl refuses to
16746   # link against other versions.
16747   version_type=sunos
16748   need_lib_prefix=no
16749   need_version=no
16750   case "$host_cpu" in
16751   ia64*)
16752     shrext='.so'
16753     hardcode_into_libs=yes
16754     dynamic_linker="$host_os dld.so"
16755     shlibpath_var=LD_LIBRARY_PATH
16756     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758     soname_spec='${libname}${release}${shared_ext}$major'
16759     if test "X$HPUX_IA64_MODE" = X32; then
16760       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16761     else
16762       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16763     fi
16764     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16765     ;;
16766    hppa*64*)
16767      shrext='.sl'
16768      hardcode_into_libs=yes
16769      dynamic_linker="$host_os dld.sl"
16770      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16771      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16772      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773      soname_spec='${libname}${release}${shared_ext}$major'
16774      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16775      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16776      ;;
16777    *)
16778     shrext='.sl'
16779     dynamic_linker="$host_os dld.sl"
16780     shlibpath_var=SHLIB_PATH
16781     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
16785   esac
16786   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16787   postinstall_cmds='chmod 555 $lib'
16788   ;;
16789
16790 irix5* | irix6* | nonstopux*)
16791   case $host_os in
16792     nonstopux*) version_type=nonstopux ;;
16793     *)
16794         if test "$lt_cv_prog_gnu_ld" = yes; then
16795                 version_type=linux
16796         else
16797                 version_type=irix
16798         fi ;;
16799   esac
16800   need_lib_prefix=no
16801   need_version=no
16802   soname_spec='${libname}${release}${shared_ext}$major'
16803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16804   case $host_os in
16805   irix5* | nonstopux*)
16806     libsuff= shlibsuff=
16807     ;;
16808   *)
16809     case $LD in # libtool.m4 will add one of these switches to LD
16810     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16811       libsuff= shlibsuff= libmagic=32-bit;;
16812     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16813       libsuff=32 shlibsuff=N32 libmagic=N32;;
16814     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16815       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16816     *) libsuff= shlibsuff= libmagic=never-match;;
16817     esac
16818     ;;
16819   esac
16820   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16821   shlibpath_overrides_runpath=no
16822   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16823   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16824   hardcode_into_libs=yes
16825   ;;
16826
16827 # No shared lib support for Linux oldld, aout, or coff.
16828 linux*oldld* | linux*aout* | linux*coff*)
16829   dynamic_linker=no
16830   ;;
16831
16832 # This must be Linux ELF.
16833 linux*)
16834   version_type=linux
16835   need_lib_prefix=no
16836   need_version=no
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838   soname_spec='${libname}${release}${shared_ext}$major'
16839   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16840   shlibpath_var=LD_LIBRARY_PATH
16841   shlibpath_overrides_runpath=no
16842   # This implies no fast_install, which is unacceptable.
16843   # Some rework will be needed to allow for fast_install
16844   # before this can be enabled.
16845   hardcode_into_libs=yes
16846
16847   # We used to test for /lib/ld.so.1 and disable shared libraries on
16848   # powerpc, because MkLinux only supported shared libraries with the
16849   # GNU dynamic linker.  Since this was broken with cross compilers,
16850   # most powerpc-linux boxes support dynamic linking these days and
16851   # people can always --disable-shared, the test was removed, and we
16852   # assume the GNU/Linux dynamic linker is in use.
16853   dynamic_linker='GNU/Linux ld.so'
16854   ;;
16855
16856 netbsd*)
16857   version_type=sunos
16858   need_lib_prefix=no
16859   need_version=no
16860   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16862     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16863     dynamic_linker='NetBSD (a.out) ld.so'
16864   else
16865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16866     soname_spec='${libname}${release}${shared_ext}$major'
16867     dynamic_linker='NetBSD ld.elf_so'
16868   fi
16869   shlibpath_var=LD_LIBRARY_PATH
16870   shlibpath_overrides_runpath=yes
16871   hardcode_into_libs=yes
16872   ;;
16873
16874 newsos6)
16875   version_type=linux
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877   shlibpath_var=LD_LIBRARY_PATH
16878   shlibpath_overrides_runpath=yes
16879   ;;
16880
16881 nto-qnx)
16882   version_type=linux
16883   need_lib_prefix=no
16884   need_version=no
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886   soname_spec='${libname}${release}${shared_ext}$major'
16887   shlibpath_var=LD_LIBRARY_PATH
16888   shlibpath_overrides_runpath=yes
16889   ;;
16890
16891 openbsd*)
16892   version_type=sunos
16893   need_lib_prefix=no
16894   need_version=no
16895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16896   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16897   shlibpath_var=LD_LIBRARY_PATH
16898   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16899     case $host_os in
16900       openbsd2.[89] | openbsd2.[89].*)
16901         shlibpath_overrides_runpath=no
16902         ;;
16903       *)
16904         shlibpath_overrides_runpath=yes
16905         ;;
16906       esac
16907   else
16908     shlibpath_overrides_runpath=yes
16909   fi
16910   ;;
16911
16912 os2*)
16913   libname_spec='$name'
16914   shrext=".dll"
16915   need_lib_prefix=no
16916   library_names_spec='$libname${shared_ext} $libname.a'
16917   dynamic_linker='OS/2 ld.exe'
16918   shlibpath_var=LIBPATH
16919   ;;
16920
16921 osf3* | osf4* | osf5*)
16922   version_type=osf
16923   need_lib_prefix=no
16924   need_version=no
16925   soname_spec='${libname}${release}${shared_ext}$major'
16926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927   shlibpath_var=LD_LIBRARY_PATH
16928   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16929   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16930   ;;
16931
16932 sco3.2v5*)
16933   version_type=osf
16934   soname_spec='${libname}${release}${shared_ext}$major'
16935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16936   shlibpath_var=LD_LIBRARY_PATH
16937   ;;
16938
16939 solaris*)
16940   version_type=linux
16941   need_lib_prefix=no
16942   need_version=no
16943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944   soname_spec='${libname}${release}${shared_ext}$major'
16945   shlibpath_var=LD_LIBRARY_PATH
16946   shlibpath_overrides_runpath=yes
16947   hardcode_into_libs=yes
16948   # ldd complains unless libraries are executable
16949   postinstall_cmds='chmod +x $lib'
16950   ;;
16951
16952 sunos4*)
16953   version_type=sunos
16954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16955   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16956   shlibpath_var=LD_LIBRARY_PATH
16957   shlibpath_overrides_runpath=yes
16958   if test "$with_gnu_ld" = yes; then
16959     need_lib_prefix=no
16960   fi
16961   need_version=yes
16962   ;;
16963
16964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16965   version_type=linux
16966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967   soname_spec='${libname}${release}${shared_ext}$major'
16968   shlibpath_var=LD_LIBRARY_PATH
16969   case $host_vendor in
16970     sni)
16971       shlibpath_overrides_runpath=no
16972       need_lib_prefix=no
16973       export_dynamic_flag_spec='${wl}-Blargedynsym'
16974       runpath_var=LD_RUN_PATH
16975       ;;
16976     siemens)
16977       need_lib_prefix=no
16978       ;;
16979     motorola)
16980       need_lib_prefix=no
16981       need_version=no
16982       shlibpath_overrides_runpath=no
16983       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16984       ;;
16985   esac
16986   ;;
16987
16988 sysv4*MP*)
16989   if test -d /usr/nec ;then
16990     version_type=linux
16991     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16992     soname_spec='$libname${shared_ext}.$major'
16993     shlibpath_var=LD_LIBRARY_PATH
16994   fi
16995   ;;
16996
16997 uts4*)
16998   version_type=linux
16999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000   soname_spec='${libname}${release}${shared_ext}$major'
17001   shlibpath_var=LD_LIBRARY_PATH
17002   ;;
17003
17004 *)
17005   dynamic_linker=no
17006   ;;
17007 esac
17008 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17009 echo "${ECHO_T}$dynamic_linker" >&6
17010 test "$dynamic_linker" = no && can_build_shared=no
17011
17012 if test "x$enable_dlopen" != xyes; then
17013   enable_dlopen=unknown
17014   enable_dlopen_self=unknown
17015   enable_dlopen_self_static=unknown
17016 else
17017   lt_cv_dlopen=no
17018   lt_cv_dlopen_libs=
17019
17020   case $host_os in
17021   beos*)
17022     lt_cv_dlopen="load_add_on"
17023     lt_cv_dlopen_libs=
17024     lt_cv_dlopen_self=yes
17025     ;;
17026
17027   mingw* | pw32*)
17028     lt_cv_dlopen="LoadLibrary"
17029     lt_cv_dlopen_libs=
17030    ;;
17031
17032   cygwin*)
17033     lt_cv_dlopen="dlopen"
17034     lt_cv_dlopen_libs=
17035    ;;
17036
17037   darwin*)
17038   # if libdl is installed we need to link against it
17039     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   ac_check_lib_save_LIBS=$LIBS
17045 LIBS="-ldl  $LIBS"
17046 cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052
17053 /* Override any gcc2 internal prototype to avoid an error.  */
17054 #ifdef __cplusplus
17055 extern "C"
17056 #endif
17057 /* We use char because int might match the return type of a gcc2
17058    builtin and then its argument prototype would still apply.  */
17059 char dlopen ();
17060 int
17061 main ()
17062 {
17063 dlopen ();
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070   (eval $ac_link) 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } &&
17077          { ac_try='test -z "$ac_c_werror_flag"
17078                          || test ! -s conftest.err'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; } &&
17084          { ac_try='test -s conftest$ac_exeext'
17085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086   (eval $ac_try) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; }; then
17090   ac_cv_lib_dl_dlopen=yes
17091 else
17092   echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 ac_cv_lib_dl_dlopen=no
17096 fi
17097 rm -f conftest.err conftest.$ac_objext \
17098       conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17100 fi
17101 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17103 if test $ac_cv_lib_dl_dlopen = yes; then
17104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105 else
17106
17107     lt_cv_dlopen="dyld"
17108     lt_cv_dlopen_libs=
17109     lt_cv_dlopen_self=yes
17110
17111 fi
17112
17113    ;;
17114
17115   *)
17116     echo "$as_me:$LINENO: checking for shl_load" >&5
17117 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17118 if test "${ac_cv_func_shl_load+set}" = set; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17129 #define shl_load innocuous_shl_load
17130
17131 /* System header to define __stub macros and hopefully few prototypes,
17132     which can conflict with char shl_load (); below.
17133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134     <limits.h> exists even on freestanding compilers.  */
17135
17136 #ifdef __STDC__
17137 # include <limits.h>
17138 #else
17139 # include <assert.h>
17140 #endif
17141
17142 #undef shl_load
17143
17144 /* Override any gcc2 internal prototype to avoid an error.  */
17145 #ifdef __cplusplus
17146 extern "C"
17147 {
17148 #endif
17149 /* We use char because int might match the return type of a gcc2
17150    builtin and then its argument prototype would still apply.  */
17151 char shl_load ();
17152 /* The GNU C library defines this for functions which it implements
17153     to always fail with ENOSYS.  Some functions are actually named
17154     something starting with __ and the normal name is an alias.  */
17155 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17156 choke me
17157 #else
17158 char (*f) () = shl_load;
17159 #endif
17160 #ifdef __cplusplus
17161 }
17162 #endif
17163
17164 int
17165 main ()
17166 {
17167 return f != shl_load;
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174   (eval $ac_link) 2>conftest.er1
17175   ac_status=$?
17176   grep -v '^ *+' conftest.er1 >conftest.err
17177   rm -f conftest.er1
17178   cat conftest.err >&5
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); } &&
17181          { ac_try='test -z "$ac_c_werror_flag"
17182                          || test ! -s conftest.err'
17183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184   (eval $ac_try) 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; } &&
17188          { ac_try='test -s conftest$ac_exeext'
17189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190   (eval $ac_try) 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; }; then
17194   ac_cv_func_shl_load=yes
17195 else
17196   echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 ac_cv_func_shl_load=no
17200 fi
17201 rm -f conftest.err conftest.$ac_objext \
17202       conftest$ac_exeext conftest.$ac_ext
17203 fi
17204 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17205 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17206 if test $ac_cv_func_shl_load = yes; then
17207   lt_cv_dlopen="shl_load"
17208 else
17209   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17212   echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214   ac_check_lib_save_LIBS=$LIBS
17215 LIBS="-ldld  $LIBS"
17216 cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h.  */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h.  */
17222
17223 /* Override any gcc2 internal prototype to avoid an error.  */
17224 #ifdef __cplusplus
17225 extern "C"
17226 #endif
17227 /* We use char because int might match the return type of a gcc2
17228    builtin and then its argument prototype would still apply.  */
17229 char shl_load ();
17230 int
17231 main ()
17232 {
17233 shl_load ();
17234   ;
17235   return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240   (eval $ac_link) 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } &&
17247          { ac_try='test -z "$ac_c_werror_flag"
17248                          || test ! -s conftest.err'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; } &&
17254          { ac_try='test -s conftest$ac_exeext'
17255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256   (eval $ac_try) 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }; }; then
17260   ac_cv_lib_dld_shl_load=yes
17261 else
17262   echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 ac_cv_lib_dld_shl_load=no
17266 fi
17267 rm -f conftest.err conftest.$ac_objext \
17268       conftest$ac_exeext conftest.$ac_ext
17269 LIBS=$ac_check_lib_save_LIBS
17270 fi
17271 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17273 if test $ac_cv_lib_dld_shl_load = yes; then
17274   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17275 else
17276   echo "$as_me:$LINENO: checking for dlopen" >&5
17277 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17278 if test "${ac_cv_func_dlopen+set}" = set; then
17279   echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281   cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h.  */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h.  */
17287 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17289 #define dlopen innocuous_dlopen
17290
17291 /* System header to define __stub macros and hopefully few prototypes,
17292     which can conflict with char dlopen (); below.
17293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294     <limits.h> exists even on freestanding compilers.  */
17295
17296 #ifdef __STDC__
17297 # include <limits.h>
17298 #else
17299 # include <assert.h>
17300 #endif
17301
17302 #undef dlopen
17303
17304 /* Override any gcc2 internal prototype to avoid an error.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 {
17308 #endif
17309 /* We use char because int might match the return type of a gcc2
17310    builtin and then its argument prototype would still apply.  */
17311 char dlopen ();
17312 /* The GNU C library defines this for functions which it implements
17313     to always fail with ENOSYS.  Some functions are actually named
17314     something starting with __ and the normal name is an alias.  */
17315 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17316 choke me
17317 #else
17318 char (*f) () = dlopen;
17319 #endif
17320 #ifdef __cplusplus
17321 }
17322 #endif
17323
17324 int
17325 main ()
17326 {
17327 return f != dlopen;
17328   ;
17329   return 0;
17330 }
17331 _ACEOF
17332 rm -f conftest.$ac_objext conftest$ac_exeext
17333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334   (eval $ac_link) 2>conftest.er1
17335   ac_status=$?
17336   grep -v '^ *+' conftest.er1 >conftest.err
17337   rm -f conftest.er1
17338   cat conftest.err >&5
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } &&
17341          { ac_try='test -z "$ac_c_werror_flag"
17342                          || test ! -s conftest.err'
17343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344   (eval $ac_try) 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; } &&
17348          { ac_try='test -s conftest$ac_exeext'
17349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350   (eval $ac_try) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   ac_cv_func_dlopen=yes
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 ac_cv_func_dlopen=no
17360 fi
17361 rm -f conftest.err conftest.$ac_objext \
17362       conftest$ac_exeext conftest.$ac_ext
17363 fi
17364 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17365 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17366 if test $ac_cv_func_dlopen = yes; then
17367   lt_cv_dlopen="dlopen"
17368 else
17369   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17370 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17371 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374   ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-ldl  $LIBS"
17376 cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382
17383 /* Override any gcc2 internal prototype to avoid an error.  */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 /* We use char because int might match the return type of a gcc2
17388    builtin and then its argument prototype would still apply.  */
17389 char dlopen ();
17390 int
17391 main ()
17392 {
17393 dlopen ();
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17400   (eval $ac_link) 2>conftest.er1
17401   ac_status=$?
17402   grep -v '^ *+' conftest.er1 >conftest.err
17403   rm -f conftest.er1
17404   cat conftest.err >&5
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } &&
17407          { ac_try='test -z "$ac_c_werror_flag"
17408                          || test ! -s conftest.err'
17409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410   (eval $ac_try) 2>&5
17411   ac_status=$?
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); }; } &&
17414          { ac_try='test -s conftest$ac_exeext'
17415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416   (eval $ac_try) 2>&5
17417   ac_status=$?
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); }; }; then
17420   ac_cv_lib_dl_dlopen=yes
17421 else
17422   echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ac_cv_lib_dl_dlopen=no
17426 fi
17427 rm -f conftest.err conftest.$ac_objext \
17428       conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17430 fi
17431 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17433 if test $ac_cv_lib_dl_dlopen = yes; then
17434   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17435 else
17436   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17437 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17438 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17439   echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441   ac_check_lib_save_LIBS=$LIBS
17442 LIBS="-lsvld  $LIBS"
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449
17450 /* Override any gcc2 internal prototype to avoid an error.  */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 /* We use char because int might match the return type of a gcc2
17455    builtin and then its argument prototype would still apply.  */
17456 char dlopen ();
17457 int
17458 main ()
17459 {
17460 dlopen ();
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17467   (eval $ac_link) 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } &&
17474          { ac_try='test -z "$ac_c_werror_flag"
17475                          || test ! -s conftest.err'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; } &&
17481          { ac_try='test -s conftest$ac_exeext'
17482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483   (eval $ac_try) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; }; then
17487   ac_cv_lib_svld_dlopen=yes
17488 else
17489   echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492 ac_cv_lib_svld_dlopen=no
17493 fi
17494 rm -f 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_svld_dlopen" >&5
17499 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17500 if test $ac_cv_lib_svld_dlopen = yes; then
17501   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17502 else
17503   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17504 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17505 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   ac_check_lib_save_LIBS=$LIBS
17509 LIBS="-ldld  $LIBS"
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516
17517 /* Override any gcc2 internal prototype to avoid an error.  */
17518 #ifdef __cplusplus
17519 extern "C"
17520 #endif
17521 /* We use char because int might match the return type of a gcc2
17522    builtin and then its argument prototype would still apply.  */
17523 char dld_link ();
17524 int
17525 main ()
17526 {
17527 dld_link ();
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534   (eval $ac_link) 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag"
17542                          || test ! -s conftest.err'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; } &&
17548          { ac_try='test -s conftest$ac_exeext'
17549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550   (eval $ac_try) 2>&5
17551   ac_status=$?
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); }; }; then
17554   ac_cv_lib_dld_dld_link=yes
17555 else
17556   echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 ac_cv_lib_dld_dld_link=no
17560 fi
17561 rm -f conftest.err conftest.$ac_objext \
17562       conftest$ac_exeext conftest.$ac_ext
17563 LIBS=$ac_check_lib_save_LIBS
17564 fi
17565 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17566 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17567 if test $ac_cv_lib_dld_dld_link = yes; then
17568   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17569 fi
17570
17571
17572 fi
17573
17574
17575 fi
17576
17577
17578 fi
17579
17580
17581 fi
17582
17583
17584 fi
17585
17586     ;;
17587   esac
17588
17589   if test "x$lt_cv_dlopen" != xno; then
17590     enable_dlopen=yes
17591   else
17592     enable_dlopen=no
17593   fi
17594
17595   case $lt_cv_dlopen in
17596   dlopen)
17597     save_CPPFLAGS="$CPPFLAGS"
17598     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17599
17600     save_LDFLAGS="$LDFLAGS"
17601     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17602
17603     save_LIBS="$LIBS"
17604     LIBS="$lt_cv_dlopen_libs $LIBS"
17605
17606     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17607 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17608 if test "${lt_cv_dlopen_self+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611           if test "$cross_compiling" = yes; then :
17612   lt_cv_dlopen_self=cross
17613 else
17614   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17615   lt_status=$lt_dlunknown
17616   cat > conftest.$ac_ext <<EOF
17617 #line 17617 "configure"
17618 #include "confdefs.h"
17619
17620 #if HAVE_DLFCN_H
17621 #include <dlfcn.h>
17622 #endif
17623
17624 #include <stdio.h>
17625
17626 #ifdef RTLD_GLOBAL
17627 #  define LT_DLGLOBAL           RTLD_GLOBAL
17628 #else
17629 #  ifdef DL_GLOBAL
17630 #    define LT_DLGLOBAL         DL_GLOBAL
17631 #  else
17632 #    define LT_DLGLOBAL         0
17633 #  endif
17634 #endif
17635
17636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17637    find out it does not work in some platform. */
17638 #ifndef LT_DLLAZY_OR_NOW
17639 #  ifdef RTLD_LAZY
17640 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17641 #  else
17642 #    ifdef DL_LAZY
17643 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17644 #    else
17645 #      ifdef RTLD_NOW
17646 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17647 #      else
17648 #        ifdef DL_NOW
17649 #          define LT_DLLAZY_OR_NOW      DL_NOW
17650 #        else
17651 #          define LT_DLLAZY_OR_NOW      0
17652 #        endif
17653 #      endif
17654 #    endif
17655 #  endif
17656 #endif
17657
17658 #ifdef __cplusplus
17659 extern "C" void exit (int);
17660 #endif
17661
17662 void fnord() { int i=42;}
17663 int main ()
17664 {
17665   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17666   int status = $lt_dlunknown;
17667
17668   if (self)
17669     {
17670       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17671       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17672       /* dlclose (self); */
17673     }
17674
17675     exit (status);
17676 }
17677 EOF
17678   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679   (eval $ac_link) 2>&5
17680   ac_status=$?
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17683     (./conftest; exit; ) 2>/dev/null
17684     lt_status=$?
17685     case x$lt_status in
17686       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17687       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17688       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17689     esac
17690   else :
17691     # compilation failed
17692     lt_cv_dlopen_self=no
17693   fi
17694 fi
17695 rm -fr conftest*
17696
17697
17698 fi
17699 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17700 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17701
17702     if test "x$lt_cv_dlopen_self" = xyes; then
17703       LDFLAGS="$LDFLAGS $link_static_flag"
17704       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17705 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17706 if test "${lt_cv_dlopen_self_static+set}" = set; then
17707   echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709           if test "$cross_compiling" = yes; then :
17710   lt_cv_dlopen_self_static=cross
17711 else
17712   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17713   lt_status=$lt_dlunknown
17714   cat > conftest.$ac_ext <<EOF
17715 #line 17715 "configure"
17716 #include "confdefs.h"
17717
17718 #if HAVE_DLFCN_H
17719 #include <dlfcn.h>
17720 #endif
17721
17722 #include <stdio.h>
17723
17724 #ifdef RTLD_GLOBAL
17725 #  define LT_DLGLOBAL           RTLD_GLOBAL
17726 #else
17727 #  ifdef DL_GLOBAL
17728 #    define LT_DLGLOBAL         DL_GLOBAL
17729 #  else
17730 #    define LT_DLGLOBAL         0
17731 #  endif
17732 #endif
17733
17734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17735    find out it does not work in some platform. */
17736 #ifndef LT_DLLAZY_OR_NOW
17737 #  ifdef RTLD_LAZY
17738 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17739 #  else
17740 #    ifdef DL_LAZY
17741 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17742 #    else
17743 #      ifdef RTLD_NOW
17744 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17745 #      else
17746 #        ifdef DL_NOW
17747 #          define LT_DLLAZY_OR_NOW      DL_NOW
17748 #        else
17749 #          define LT_DLLAZY_OR_NOW      0
17750 #        endif
17751 #      endif
17752 #    endif
17753 #  endif
17754 #endif
17755
17756 #ifdef __cplusplus
17757 extern "C" void exit (int);
17758 #endif
17759
17760 void fnord() { int i=42;}
17761 int main ()
17762 {
17763   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17764   int status = $lt_dlunknown;
17765
17766   if (self)
17767     {
17768       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17769       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17770       /* dlclose (self); */
17771     }
17772
17773     exit (status);
17774 }
17775 EOF
17776   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777   (eval $ac_link) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17781     (./conftest; exit; ) 2>/dev/null
17782     lt_status=$?
17783     case x$lt_status in
17784       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17785       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17786       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17787     esac
17788   else :
17789     # compilation failed
17790     lt_cv_dlopen_self_static=no
17791   fi
17792 fi
17793 rm -fr conftest*
17794
17795
17796 fi
17797 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17798 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17799     fi
17800
17801     CPPFLAGS="$save_CPPFLAGS"
17802     LDFLAGS="$save_LDFLAGS"
17803     LIBS="$save_LIBS"
17804     ;;
17805   esac
17806
17807   case $lt_cv_dlopen_self in
17808   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17809   *) enable_dlopen_self=unknown ;;
17810   esac
17811
17812   case $lt_cv_dlopen_self_static in
17813   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17814   *) enable_dlopen_self_static=unknown ;;
17815   esac
17816 fi
17817
17818
17819 # The else clause should only fire when bootstrapping the
17820 # libtool distribution, otherwise you forgot to ship ltmain.sh
17821 # with your package, and you will get complaints that there are
17822 # no rules to generate ltmain.sh.
17823 if test -f "$ltmain"; then
17824   # See if we are running on zsh, and set the options which allow our commands through
17825   # without removal of \ escapes.
17826   if test -n "${ZSH_VERSION+set}" ; then
17827     setopt NO_GLOB_SUBST
17828   fi
17829   # Now quote all the things that may contain metacharacters while being
17830   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17831   # variables and quote the copies for generation of the libtool script.
17832   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17833     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17834     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17835     deplibs_check_method reload_flag reload_cmds need_locks \
17836     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17837     lt_cv_sys_global_symbol_to_c_name_address \
17838     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17839     old_postinstall_cmds old_postuninstall_cmds \
17840     compiler_GCJ \
17841     CC_GCJ \
17842     LD_GCJ \
17843     lt_prog_compiler_wl_GCJ \
17844     lt_prog_compiler_pic_GCJ \
17845     lt_prog_compiler_static_GCJ \
17846     lt_prog_compiler_no_builtin_flag_GCJ \
17847     export_dynamic_flag_spec_GCJ \
17848     thread_safe_flag_spec_GCJ \
17849     whole_archive_flag_spec_GCJ \
17850     enable_shared_with_static_runtimes_GCJ \
17851     old_archive_cmds_GCJ \
17852     old_archive_from_new_cmds_GCJ \
17853     predep_objects_GCJ \
17854     postdep_objects_GCJ \
17855     predeps_GCJ \
17856     postdeps_GCJ \
17857     compiler_lib_search_path_GCJ \
17858     archive_cmds_GCJ \
17859     archive_expsym_cmds_GCJ \
17860     postinstall_cmds_GCJ \
17861     postuninstall_cmds_GCJ \
17862     old_archive_from_expsyms_cmds_GCJ \
17863     allow_undefined_flag_GCJ \
17864     no_undefined_flag_GCJ \
17865     export_symbols_cmds_GCJ \
17866     hardcode_libdir_flag_spec_GCJ \
17867     hardcode_libdir_flag_spec_ld_GCJ \
17868     hardcode_libdir_separator_GCJ \
17869     hardcode_automatic_GCJ \
17870     module_cmds_GCJ \
17871     module_expsym_cmds_GCJ \
17872     lt_cv_prog_compiler_c_o_GCJ \
17873     exclude_expsyms_GCJ \
17874     include_expsyms_GCJ; do
17875
17876     case $var in
17877     old_archive_cmds_GCJ | \
17878     old_archive_from_new_cmds_GCJ | \
17879     archive_cmds_GCJ | \
17880     archive_expsym_cmds_GCJ | \
17881     module_cmds_GCJ | \
17882     module_expsym_cmds_GCJ | \
17883     old_archive_from_expsyms_cmds_GCJ | \
17884     export_symbols_cmds_GCJ | \
17885     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17886     postinstall_cmds | postuninstall_cmds | \
17887     old_postinstall_cmds | old_postuninstall_cmds | \
17888     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17889       # Double-quote double-evaled strings.
17890       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17891       ;;
17892     *)
17893       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17894       ;;
17895     esac
17896   done
17897
17898   case $lt_echo in
17899   *'\$0 --fallback-echo"')
17900     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17901     ;;
17902   esac
17903
17904 cfgfile="$ofile"
17905
17906   cat <<__EOF__ >> "$cfgfile"
17907 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17908
17909 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17910
17911 # Shell to use when invoking shell scripts.
17912 SHELL=$lt_SHELL
17913
17914 # Whether or not to build shared libraries.
17915 build_libtool_libs=$enable_shared
17916
17917 # Whether or not to build static libraries.
17918 build_old_libs=$enable_static
17919
17920 # Whether or not to add -lc for building shared libraries.
17921 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17922
17923 # Whether or not to disallow shared libs when runtime libs are static
17924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17925
17926 # Whether or not to optimize for fast installation.
17927 fast_install=$enable_fast_install
17928
17929 # The host system.
17930 host_alias=$host_alias
17931 host=$host
17932
17933 # An echo program that does not interpret backslashes.
17934 echo=$lt_echo
17935
17936 # The archiver.
17937 AR=$lt_AR
17938 AR_FLAGS=$lt_AR_FLAGS
17939
17940 # A C compiler.
17941 LTCC=$lt_LTCC
17942
17943 # A language-specific compiler.
17944 CC=$lt_compiler_GCJ
17945
17946 # Is the compiler the GNU C compiler?
17947 with_gcc=$GCC_GCJ
17948
17949 # An ERE matcher.
17950 EGREP=$lt_EGREP
17951
17952 # The linker used to build libraries.
17953 LD=$lt_LD_GCJ
17954
17955 # Whether we need hard or soft links.
17956 LN_S=$lt_LN_S
17957
17958 # A BSD-compatible nm program.
17959 NM=$lt_NM
17960
17961 # A symbol stripping program
17962 STRIP=$STRIP
17963
17964 # Used to examine libraries when file_magic_cmd begins "file"
17965 MAGIC_CMD=$MAGIC_CMD
17966
17967 # Used on cygwin: DLL creation program.
17968 DLLTOOL="$DLLTOOL"
17969
17970 # Used on cygwin: object dumper.
17971 OBJDUMP="$OBJDUMP"
17972
17973 # Used on cygwin: assembler.
17974 AS="$AS"
17975
17976 # The name of the directory that contains temporary libtool files.
17977 objdir=$objdir
17978
17979 # How to create reloadable object files.
17980 reload_flag=$lt_reload_flag
17981 reload_cmds=$lt_reload_cmds
17982
17983 # How to pass a linker flag through the compiler.
17984 wl=$lt_lt_prog_compiler_wl_GCJ
17985
17986 # Object file suffix (normally "o").
17987 objext="$ac_objext"
17988
17989 # Old archive suffix (normally "a").
17990 libext="$libext"
17991
17992 # Shared library suffix (normally ".so").
17993 shrext='$shrext'
17994
17995 # Executable file suffix (normally "").
17996 exeext="$exeext"
17997
17998 # Additional compiler flags for building library objects.
17999 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18000 pic_mode=$pic_mode
18001
18002 # What is the maximum length of a command?
18003 max_cmd_len=$lt_cv_sys_max_cmd_len
18004
18005 # Does compiler simultaneously support -c and -o options?
18006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18007
18008 # Must we lock files when doing compilation ?
18009 need_locks=$lt_need_locks
18010
18011 # Do we need the lib prefix for modules?
18012 need_lib_prefix=$need_lib_prefix
18013
18014 # Do we need a version for libraries?
18015 need_version=$need_version
18016
18017 # Whether dlopen is supported.
18018 dlopen_support=$enable_dlopen
18019
18020 # Whether dlopen of programs is supported.
18021 dlopen_self=$enable_dlopen_self
18022
18023 # Whether dlopen of statically linked programs is supported.
18024 dlopen_self_static=$enable_dlopen_self_static
18025
18026 # Compiler flag to prevent dynamic linking.
18027 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18028
18029 # Compiler flag to turn off builtin functions.
18030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18031
18032 # Compiler flag to allow reflexive dlopens.
18033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18034
18035 # Compiler flag to generate shared objects directly from archives.
18036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18037
18038 # Compiler flag to generate thread-safe objects.
18039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18040
18041 # Library versioning type.
18042 version_type=$version_type
18043
18044 # Format of library name prefix.
18045 libname_spec=$lt_libname_spec
18046
18047 # List of archive names.  First name is the real one, the rest are links.
18048 # The last name is the one that the linker finds with -lNAME.
18049 library_names_spec=$lt_library_names_spec
18050
18051 # The coded name of the library, if different from the real name.
18052 soname_spec=$lt_soname_spec
18053
18054 # Commands used to build and install an old-style archive.
18055 RANLIB=$lt_RANLIB
18056 old_archive_cmds=$lt_old_archive_cmds_GCJ
18057 old_postinstall_cmds=$lt_old_postinstall_cmds
18058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18059
18060 # Create an old-style archive from a shared archive.
18061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18062
18063 # Create a temporary old-style archive to link instead of a shared archive.
18064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18065
18066 # Commands used to build and install a shared archive.
18067 archive_cmds=$lt_archive_cmds_GCJ
18068 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18069 postinstall_cmds=$lt_postinstall_cmds
18070 postuninstall_cmds=$lt_postuninstall_cmds
18071
18072 # Commands used to build a loadable module (assumed same as above if empty)
18073 module_cmds=$lt_module_cmds_GCJ
18074 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18075
18076 # Commands to strip libraries.
18077 old_striplib=$lt_old_striplib
18078 striplib=$lt_striplib
18079
18080 # Dependencies to place before the objects being linked to create a
18081 # shared library.
18082 predep_objects=$lt_predep_objects_GCJ
18083
18084 # Dependencies to place after the objects being linked to create a
18085 # shared library.
18086 postdep_objects=$lt_postdep_objects_GCJ
18087
18088 # Dependencies to place before the objects being linked to create a
18089 # shared library.
18090 predeps=$lt_predeps_GCJ
18091
18092 # Dependencies to place after the objects being linked to create a
18093 # shared library.
18094 postdeps=$lt_postdeps_GCJ
18095
18096 # The library search path used internally by the compiler when linking
18097 # a shared library.
18098 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18099
18100 # Method to check whether dependent libraries are shared objects.
18101 deplibs_check_method=$lt_deplibs_check_method
18102
18103 # Command to use when deplibs_check_method == file_magic.
18104 file_magic_cmd=$lt_file_magic_cmd
18105
18106 # Flag that allows shared libraries with undefined symbols to be built.
18107 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18108
18109 # Flag that forces no undefined symbols.
18110 no_undefined_flag=$lt_no_undefined_flag_GCJ
18111
18112 # Commands used to finish a libtool library installation in a directory.
18113 finish_cmds=$lt_finish_cmds
18114
18115 # Same as above, but a single script fragment to be evaled but not shown.
18116 finish_eval=$lt_finish_eval
18117
18118 # Take the output of nm and produce a listing of raw symbols and C names.
18119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18120
18121 # Transform the output of nm in a proper C declaration
18122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18123
18124 # Transform the output of nm in a C name address pair
18125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18126
18127 # This is the shared library runtime path variable.
18128 runpath_var=$runpath_var
18129
18130 # This is the shared library path variable.
18131 shlibpath_var=$shlibpath_var
18132
18133 # Is shlibpath searched before the hard-coded library search path?
18134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18135
18136 # How to hardcode a shared library path into an executable.
18137 hardcode_action=$hardcode_action_GCJ
18138
18139 # Whether we should hardcode library paths into libraries.
18140 hardcode_into_libs=$hardcode_into_libs
18141
18142 # Flag to hardcode \$libdir into a binary during linking.
18143 # This must work even if \$libdir does not exist.
18144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18145
18146 # If ld is used when linking, flag to hardcode \$libdir into
18147 # a binary during linking. This must work even if \$libdir does
18148 # not exist.
18149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18150
18151 # Whether we need a single -rpath flag with a separated argument.
18152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18153
18154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18155 # resulting binary.
18156 hardcode_direct=$hardcode_direct_GCJ
18157
18158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18159 # resulting binary.
18160 hardcode_minus_L=$hardcode_minus_L_GCJ
18161
18162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18163 # the resulting binary.
18164 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18165
18166 # Set to yes if building a shared library automatically hardcodes DIR into the library
18167 # and all subsequent libraries and executables linked against it.
18168 hardcode_automatic=$hardcode_automatic_GCJ
18169
18170 # Variables whose values should be saved in libtool wrapper scripts and
18171 # restored at relink time.
18172 variables_saved_for_relink="$variables_saved_for_relink"
18173
18174 # Whether libtool must link a program against all its dependency libraries.
18175 link_all_deplibs=$link_all_deplibs_GCJ
18176
18177 # Compile-time system search path for libraries
18178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18179
18180 # Run-time system search path for libraries
18181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18182
18183 # Fix the shell variable \$srcfile for the compiler.
18184 fix_srcfile_path="$fix_srcfile_path_GCJ"
18185
18186 # Set to yes if exported symbols are required.
18187 always_export_symbols=$always_export_symbols_GCJ
18188
18189 # The commands to list exported symbols.
18190 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18191
18192 # The commands to extract the exported symbol list from a shared archive.
18193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18194
18195 # Symbols that should not be listed in the preloaded symbols.
18196 exclude_expsyms=$lt_exclude_expsyms_GCJ
18197
18198 # Symbols that must always be exported.
18199 include_expsyms=$lt_include_expsyms_GCJ
18200
18201 # ### END LIBTOOL TAG CONFIG: $tagname
18202
18203 __EOF__
18204
18205
18206 else
18207   # If there is no Makefile yet, we rely on a make rule to execute
18208   # `config.status --recheck' to rerun these tests and create the
18209   # libtool script then.
18210   test -f Makefile && make "$ltmain"
18211 fi
18212
18213
18214 ac_ext=c
18215 ac_cpp='$CPP $CPPFLAGS'
18216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18219
18220 CC="$lt_save_CC"
18221
18222         else
18223           tagname=""
18224         fi
18225         ;;
18226
18227       RC)
18228
18229
18230
18231 # Source file extension for RC test sources.
18232 ac_ext=rc
18233
18234 # Object file extension for compiled RC test sources.
18235 objext=o
18236 objext_RC=$objext
18237
18238 # Code to be used in simple compile tests
18239 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18240
18241 # Code to be used in simple link tests
18242 lt_simple_link_test_code="$lt_simple_compile_test_code"
18243
18244 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18245
18246 # If no C compiler was specified, use CC.
18247 LTCC=${LTCC-"$CC"}
18248
18249 # Allow CC to be a program name with arguments.
18250 compiler=$CC
18251
18252
18253 # Allow CC to be a program name with arguments.
18254 lt_save_CC="$CC"
18255 CC=${RC-"windres"}
18256 compiler=$CC
18257 compiler_RC=$CC
18258 lt_cv_prog_compiler_c_o_RC=yes
18259
18260 # The else clause should only fire when bootstrapping the
18261 # libtool distribution, otherwise you forgot to ship ltmain.sh
18262 # with your package, and you will get complaints that there are
18263 # no rules to generate ltmain.sh.
18264 if test -f "$ltmain"; then
18265   # See if we are running on zsh, and set the options which allow our commands through
18266   # without removal of \ escapes.
18267   if test -n "${ZSH_VERSION+set}" ; then
18268     setopt NO_GLOB_SUBST
18269   fi
18270   # Now quote all the things that may contain metacharacters while being
18271   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18272   # variables and quote the copies for generation of the libtool script.
18273   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18274     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18275     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18276     deplibs_check_method reload_flag reload_cmds need_locks \
18277     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18278     lt_cv_sys_global_symbol_to_c_name_address \
18279     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18280     old_postinstall_cmds old_postuninstall_cmds \
18281     compiler_RC \
18282     CC_RC \
18283     LD_RC \
18284     lt_prog_compiler_wl_RC \
18285     lt_prog_compiler_pic_RC \
18286     lt_prog_compiler_static_RC \
18287     lt_prog_compiler_no_builtin_flag_RC \
18288     export_dynamic_flag_spec_RC \
18289     thread_safe_flag_spec_RC \
18290     whole_archive_flag_spec_RC \
18291     enable_shared_with_static_runtimes_RC \
18292     old_archive_cmds_RC \
18293     old_archive_from_new_cmds_RC \
18294     predep_objects_RC \
18295     postdep_objects_RC \
18296     predeps_RC \
18297     postdeps_RC \
18298     compiler_lib_search_path_RC \
18299     archive_cmds_RC \
18300     archive_expsym_cmds_RC \
18301     postinstall_cmds_RC \
18302     postuninstall_cmds_RC \
18303     old_archive_from_expsyms_cmds_RC \
18304     allow_undefined_flag_RC \
18305     no_undefined_flag_RC \
18306     export_symbols_cmds_RC \
18307     hardcode_libdir_flag_spec_RC \
18308     hardcode_libdir_flag_spec_ld_RC \
18309     hardcode_libdir_separator_RC \
18310     hardcode_automatic_RC \
18311     module_cmds_RC \
18312     module_expsym_cmds_RC \
18313     lt_cv_prog_compiler_c_o_RC \
18314     exclude_expsyms_RC \
18315     include_expsyms_RC; do
18316
18317     case $var in
18318     old_archive_cmds_RC | \
18319     old_archive_from_new_cmds_RC | \
18320     archive_cmds_RC | \
18321     archive_expsym_cmds_RC | \
18322     module_cmds_RC | \
18323     module_expsym_cmds_RC | \
18324     old_archive_from_expsyms_cmds_RC | \
18325     export_symbols_cmds_RC | \
18326     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18327     postinstall_cmds | postuninstall_cmds | \
18328     old_postinstall_cmds | old_postuninstall_cmds | \
18329     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18330       # Double-quote double-evaled strings.
18331       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18332       ;;
18333     *)
18334       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18335       ;;
18336     esac
18337   done
18338
18339   case $lt_echo in
18340   *'\$0 --fallback-echo"')
18341     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18342     ;;
18343   esac
18344
18345 cfgfile="$ofile"
18346
18347   cat <<__EOF__ >> "$cfgfile"
18348 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18349
18350 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18351
18352 # Shell to use when invoking shell scripts.
18353 SHELL=$lt_SHELL
18354
18355 # Whether or not to build shared libraries.
18356 build_libtool_libs=$enable_shared
18357
18358 # Whether or not to build static libraries.
18359 build_old_libs=$enable_static
18360
18361 # Whether or not to add -lc for building shared libraries.
18362 build_libtool_need_lc=$archive_cmds_need_lc_RC
18363
18364 # Whether or not to disallow shared libs when runtime libs are static
18365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18366
18367 # Whether or not to optimize for fast installation.
18368 fast_install=$enable_fast_install
18369
18370 # The host system.
18371 host_alias=$host_alias
18372 host=$host
18373
18374 # An echo program that does not interpret backslashes.
18375 echo=$lt_echo
18376
18377 # The archiver.
18378 AR=$lt_AR
18379 AR_FLAGS=$lt_AR_FLAGS
18380
18381 # A C compiler.
18382 LTCC=$lt_LTCC
18383
18384 # A language-specific compiler.
18385 CC=$lt_compiler_RC
18386
18387 # Is the compiler the GNU C compiler?
18388 with_gcc=$GCC_RC
18389
18390 # An ERE matcher.
18391 EGREP=$lt_EGREP
18392
18393 # The linker used to build libraries.
18394 LD=$lt_LD_RC
18395
18396 # Whether we need hard or soft links.
18397 LN_S=$lt_LN_S
18398
18399 # A BSD-compatible nm program.
18400 NM=$lt_NM
18401
18402 # A symbol stripping program
18403 STRIP=$STRIP
18404
18405 # Used to examine libraries when file_magic_cmd begins "file"
18406 MAGIC_CMD=$MAGIC_CMD
18407
18408 # Used on cygwin: DLL creation program.
18409 DLLTOOL="$DLLTOOL"
18410
18411 # Used on cygwin: object dumper.
18412 OBJDUMP="$OBJDUMP"
18413
18414 # Used on cygwin: assembler.
18415 AS="$AS"
18416
18417 # The name of the directory that contains temporary libtool files.
18418 objdir=$objdir
18419
18420 # How to create reloadable object files.
18421 reload_flag=$lt_reload_flag
18422 reload_cmds=$lt_reload_cmds
18423
18424 # How to pass a linker flag through the compiler.
18425 wl=$lt_lt_prog_compiler_wl_RC
18426
18427 # Object file suffix (normally "o").
18428 objext="$ac_objext"
18429
18430 # Old archive suffix (normally "a").
18431 libext="$libext"
18432
18433 # Shared library suffix (normally ".so").
18434 shrext='$shrext'
18435
18436 # Executable file suffix (normally "").
18437 exeext="$exeext"
18438
18439 # Additional compiler flags for building library objects.
18440 pic_flag=$lt_lt_prog_compiler_pic_RC
18441 pic_mode=$pic_mode
18442
18443 # What is the maximum length of a command?
18444 max_cmd_len=$lt_cv_sys_max_cmd_len
18445
18446 # Does compiler simultaneously support -c and -o options?
18447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18448
18449 # Must we lock files when doing compilation ?
18450 need_locks=$lt_need_locks
18451
18452 # Do we need the lib prefix for modules?
18453 need_lib_prefix=$need_lib_prefix
18454
18455 # Do we need a version for libraries?
18456 need_version=$need_version
18457
18458 # Whether dlopen is supported.
18459 dlopen_support=$enable_dlopen
18460
18461 # Whether dlopen of programs is supported.
18462 dlopen_self=$enable_dlopen_self
18463
18464 # Whether dlopen of statically linked programs is supported.
18465 dlopen_self_static=$enable_dlopen_self_static
18466
18467 # Compiler flag to prevent dynamic linking.
18468 link_static_flag=$lt_lt_prog_compiler_static_RC
18469
18470 # Compiler flag to turn off builtin functions.
18471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18472
18473 # Compiler flag to allow reflexive dlopens.
18474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18475
18476 # Compiler flag to generate shared objects directly from archives.
18477 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18478
18479 # Compiler flag to generate thread-safe objects.
18480 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18481
18482 # Library versioning type.
18483 version_type=$version_type
18484
18485 # Format of library name prefix.
18486 libname_spec=$lt_libname_spec
18487
18488 # List of archive names.  First name is the real one, the rest are links.
18489 # The last name is the one that the linker finds with -lNAME.
18490 library_names_spec=$lt_library_names_spec
18491
18492 # The coded name of the library, if different from the real name.
18493 soname_spec=$lt_soname_spec
18494
18495 # Commands used to build and install an old-style archive.
18496 RANLIB=$lt_RANLIB
18497 old_archive_cmds=$lt_old_archive_cmds_RC
18498 old_postinstall_cmds=$lt_old_postinstall_cmds
18499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18500
18501 # Create an old-style archive from a shared archive.
18502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18503
18504 # Create a temporary old-style archive to link instead of a shared archive.
18505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18506
18507 # Commands used to build and install a shared archive.
18508 archive_cmds=$lt_archive_cmds_RC
18509 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18510 postinstall_cmds=$lt_postinstall_cmds
18511 postuninstall_cmds=$lt_postuninstall_cmds
18512
18513 # Commands used to build a loadable module (assumed same as above if empty)
18514 module_cmds=$lt_module_cmds_RC
18515 module_expsym_cmds=$lt_module_expsym_cmds_RC
18516
18517 # Commands to strip libraries.
18518 old_striplib=$lt_old_striplib
18519 striplib=$lt_striplib
18520
18521 # Dependencies to place before the objects being linked to create a
18522 # shared library.
18523 predep_objects=$lt_predep_objects_RC
18524
18525 # Dependencies to place after the objects being linked to create a
18526 # shared library.
18527 postdep_objects=$lt_postdep_objects_RC
18528
18529 # Dependencies to place before the objects being linked to create a
18530 # shared library.
18531 predeps=$lt_predeps_RC
18532
18533 # Dependencies to place after the objects being linked to create a
18534 # shared library.
18535 postdeps=$lt_postdeps_RC
18536
18537 # The library search path used internally by the compiler when linking
18538 # a shared library.
18539 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18540
18541 # Method to check whether dependent libraries are shared objects.
18542 deplibs_check_method=$lt_deplibs_check_method
18543
18544 # Command to use when deplibs_check_method == file_magic.
18545 file_magic_cmd=$lt_file_magic_cmd
18546
18547 # Flag that allows shared libraries with undefined symbols to be built.
18548 allow_undefined_flag=$lt_allow_undefined_flag_RC
18549
18550 # Flag that forces no undefined symbols.
18551 no_undefined_flag=$lt_no_undefined_flag_RC
18552
18553 # Commands used to finish a libtool library installation in a directory.
18554 finish_cmds=$lt_finish_cmds
18555
18556 # Same as above, but a single script fragment to be evaled but not shown.
18557 finish_eval=$lt_finish_eval
18558
18559 # Take the output of nm and produce a listing of raw symbols and C names.
18560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18561
18562 # Transform the output of nm in a proper C declaration
18563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18564
18565 # Transform the output of nm in a C name address pair
18566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18567
18568 # This is the shared library runtime path variable.
18569 runpath_var=$runpath_var
18570
18571 # This is the shared library path variable.
18572 shlibpath_var=$shlibpath_var
18573
18574 # Is shlibpath searched before the hard-coded library search path?
18575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18576
18577 # How to hardcode a shared library path into an executable.
18578 hardcode_action=$hardcode_action_RC
18579
18580 # Whether we should hardcode library paths into libraries.
18581 hardcode_into_libs=$hardcode_into_libs
18582
18583 # Flag to hardcode \$libdir into a binary during linking.
18584 # This must work even if \$libdir does not exist.
18585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18586
18587 # If ld is used when linking, flag to hardcode \$libdir into
18588 # a binary during linking. This must work even if \$libdir does
18589 # not exist.
18590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18591
18592 # Whether we need a single -rpath flag with a separated argument.
18593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18594
18595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18596 # resulting binary.
18597 hardcode_direct=$hardcode_direct_RC
18598
18599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18600 # resulting binary.
18601 hardcode_minus_L=$hardcode_minus_L_RC
18602
18603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18604 # the resulting binary.
18605 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18606
18607 # Set to yes if building a shared library automatically hardcodes DIR into the library
18608 # and all subsequent libraries and executables linked against it.
18609 hardcode_automatic=$hardcode_automatic_RC
18610
18611 # Variables whose values should be saved in libtool wrapper scripts and
18612 # restored at relink time.
18613 variables_saved_for_relink="$variables_saved_for_relink"
18614
18615 # Whether libtool must link a program against all its dependency libraries.
18616 link_all_deplibs=$link_all_deplibs_RC
18617
18618 # Compile-time system search path for libraries
18619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18620
18621 # Run-time system search path for libraries
18622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18623
18624 # Fix the shell variable \$srcfile for the compiler.
18625 fix_srcfile_path="$fix_srcfile_path_RC"
18626
18627 # Set to yes if exported symbols are required.
18628 always_export_symbols=$always_export_symbols_RC
18629
18630 # The commands to list exported symbols.
18631 export_symbols_cmds=$lt_export_symbols_cmds_RC
18632
18633 # The commands to extract the exported symbol list from a shared archive.
18634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18635
18636 # Symbols that should not be listed in the preloaded symbols.
18637 exclude_expsyms=$lt_exclude_expsyms_RC
18638
18639 # Symbols that must always be exported.
18640 include_expsyms=$lt_include_expsyms_RC
18641
18642 # ### END LIBTOOL TAG CONFIG: $tagname
18643
18644 __EOF__
18645
18646
18647 else
18648   # If there is no Makefile yet, we rely on a make rule to execute
18649   # `config.status --recheck' to rerun these tests and create the
18650   # libtool script then.
18651   test -f Makefile && make "$ltmain"
18652 fi
18653
18654
18655 ac_ext=c
18656 ac_cpp='$CPP $CPPFLAGS'
18657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660
18661 CC="$lt_save_CC"
18662
18663         ;;
18664
18665       *)
18666         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18667 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18668    { (exit 1); exit 1; }; }
18669         ;;
18670       esac
18671
18672       # Append the new tag name to the list of available tags.
18673       if test -n "$tagname" ; then
18674       available_tags="$available_tags $tagname"
18675     fi
18676     fi
18677   done
18678   IFS="$lt_save_ifs"
18679
18680   # Now substitute the updated list of available tags.
18681   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18682     mv "${ofile}T" "$ofile"
18683     chmod +x "$ofile"
18684   else
18685     rm -f "${ofile}T"
18686     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18687 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18688    { (exit 1); exit 1; }; }
18689   fi
18690 fi
18691
18692
18693
18694 # This can be used to rebuild libtool when needed
18695 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18696
18697 # Always use our own libtool.
18698 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18699
18700 # Prevent multiple expansion
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722 # Extract the first word of "dot", so it can be a program name with args.
18723 set dummy dot; ac_word=$2
18724 echo "$as_me:$LINENO: checking for $ac_word" >&5
18725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18726 if test "${ac_cv_path_DOT+set}" = set; then
18727   echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729   case $DOT in
18730   [\\/]* | ?:[\\/]*)
18731   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18732   ;;
18733   *)
18734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18735 for as_dir in $PATH
18736 do
18737   IFS=$as_save_IFS
18738   test -z "$as_dir" && as_dir=.
18739   for ac_exec_ext in '' $ac_executable_extensions; do
18740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18741     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18743     break 2
18744   fi
18745 done
18746 done
18747
18748   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18749   ;;
18750 esac
18751 fi
18752 DOT=$ac_cv_path_DOT
18753
18754 if test -n "$DOT"; then
18755   echo "$as_me:$LINENO: result: $DOT" >&5
18756 echo "${ECHO_T}$DOT" >&6
18757 else
18758   echo "$as_me:$LINENO: result: no" >&5
18759 echo "${ECHO_T}no" >&6
18760 fi
18761
18762 # Extract the first word of "etags", so it can be a program name with args.
18763 set dummy etags; ac_word=$2
18764 echo "$as_me:$LINENO: checking for $ac_word" >&5
18765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18766 if test "${ac_cv_path_ETAGS+set}" = set; then
18767   echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769   case $ETAGS in
18770   [\\/]* | ?:[\\/]*)
18771   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18772   ;;
18773   *)
18774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18775 for as_dir in $PATH
18776 do
18777   IFS=$as_save_IFS
18778   test -z "$as_dir" && as_dir=.
18779   for ac_exec_ext in '' $ac_executable_extensions; do
18780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18781     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783     break 2
18784   fi
18785 done
18786 done
18787
18788   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18789   ;;
18790 esac
18791 fi
18792 ETAGS=$ac_cv_path_ETAGS
18793
18794 if test -n "$ETAGS"; then
18795   echo "$as_me:$LINENO: result: $ETAGS" >&5
18796 echo "${ECHO_T}$ETAGS" >&6
18797 else
18798   echo "$as_me:$LINENO: result: no" >&5
18799 echo "${ECHO_T}no" >&6
18800 fi
18801
18802 etags_version=`$ETAGS --version 2>&1`
18803 case "$etags_version" in
18804         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18805         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18806         *) ETAGSFLAGS="" ;;
18807 esac
18808 ETAGSFLAGS=$ETAGSFLAGS
18809
18810 # Extract the first word of "python", so it can be a program name with args.
18811 set dummy python; ac_word=$2
18812 echo "$as_me:$LINENO: checking for $ac_word" >&5
18813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18814 if test "${ac_cv_path_PYTHON+set}" = set; then
18815   echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817   case $PYTHON in
18818   [\\/]* | ?:[\\/]*)
18819   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18820   ;;
18821   *)
18822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18824 do
18825   IFS=$as_save_IFS
18826   test -z "$as_dir" && as_dir=.
18827   for ac_exec_ext in '' $ac_executable_extensions; do
18828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18829     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18831     break 2
18832   fi
18833 done
18834 done
18835
18836   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18837   ;;
18838 esac
18839 fi
18840 PYTHON=$ac_cv_path_PYTHON
18841
18842 if test -n "$PYTHON"; then
18843   echo "$as_me:$LINENO: result: $PYTHON" >&5
18844 echo "${ECHO_T}$PYTHON" >&6
18845 else
18846   echo "$as_me:$LINENO: result: no" >&5
18847 echo "${ECHO_T}no" >&6
18848 fi
18849
18850 if test "$PYTHON" = "false"
18851 then
18852         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18853 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18854 fi
18855 # Extract the first word of "qmtest", so it can be a program name with args.
18856 set dummy qmtest; ac_word=$2
18857 echo "$as_me:$LINENO: checking for $ac_word" >&5
18858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18859 if test "${ac_cv_path_QMTEST+set}" = set; then
18860   echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
18862   case $QMTEST in
18863   [\\/]* | ?:[\\/]*)
18864   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18865   ;;
18866   *)
18867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868 for as_dir in $PATH
18869 do
18870   IFS=$as_save_IFS
18871   test -z "$as_dir" && as_dir=.
18872   for ac_exec_ext in '' $ac_executable_extensions; do
18873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18874     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18876     break 2
18877   fi
18878 done
18879 done
18880
18881   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18882   ;;
18883 esac
18884 fi
18885 QMTEST=$ac_cv_path_QMTEST
18886
18887 if test -n "$QMTEST"; then
18888   echo "$as_me:$LINENO: result: $QMTEST" >&5
18889 echo "${ECHO_T}$QMTEST" >&6
18890 else
18891   echo "$as_me:$LINENO: result: no" >&5
18892 echo "${ECHO_T}no" >&6
18893 fi
18894
18895 if test "$QMTEST" = "false"
18896 then
18897         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18898 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18899 fi
18900
18901 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18902 pymajor=`echo $pyversion | cut -d. -f1`
18903 pyminor=`echo $pyversion | cut -d. -f2`
18904
18905 if test "$pymajor" -ge "2"
18906 then
18907         if test "$pymajor" -eq "2"
18908         then
18909                 if test "$pyminor" -lt "2"
18910                 then
18911                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18912 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18913                 fi
18914         fi
18915 else
18916         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18917 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18918 fi
18919
18920
18921
18922
18923 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18924 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18925 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   ac_check_lib_save_LIBS=$LIBS
18929 LIBS="-lelf  $LIBS"
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936
18937 /* Override any gcc2 internal prototype to avoid an error.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 /* We use char because int might match the return type of a gcc2
18942    builtin and then its argument prototype would still apply.  */
18943 char elf_begin ();
18944 int
18945 main ()
18946 {
18947 elf_begin ();
18948   ;
18949   return 0;
18950 }
18951 _ACEOF
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18954   (eval $ac_link) 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -z "$ac_c_werror_flag"
18962                          || test ! -s conftest.err'
18963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964   (eval $ac_try) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; } &&
18968          { ac_try='test -s conftest$ac_exeext'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974   ac_cv_lib_elf_elf_begin=yes
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_cv_lib_elf_elf_begin=no
18980 fi
18981 rm -f conftest.err conftest.$ac_objext \
18982       conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18984 fi
18985 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18986 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18987 if test $ac_cv_lib_elf_elf_begin = yes; then
18988   cat >>confdefs.h <<_ACEOF
18989 #define HAVE_LIBELF 1
18990 _ACEOF
18991
18992   LIBS="-lelf $LIBS"
18993
18994 fi
18995
18996
18997 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18998 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18999 if test "${ac_cv_search_dlopen+set}" = set; then
19000   echo $ECHO_N "(cached) $ECHO_C" >&6
19001 else
19002   ac_func_search_save_LIBS=$LIBS
19003 ac_cv_search_dlopen=no
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h.  */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h.  */
19010
19011 /* Override any gcc2 internal prototype to avoid an error.  */
19012 #ifdef __cplusplus
19013 extern "C"
19014 #endif
19015 /* We use char because int might match the return type of a gcc2
19016    builtin and then its argument prototype would still apply.  */
19017 char dlopen ();
19018 int
19019 main ()
19020 {
19021 dlopen ();
19022   ;
19023   return 0;
19024 }
19025 _ACEOF
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028   (eval $ac_link) 2>conftest.er1
19029   ac_status=$?
19030   grep -v '^ *+' conftest.er1 >conftest.err
19031   rm -f conftest.er1
19032   cat conftest.err >&5
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); } &&
19035          { ac_try='test -z "$ac_c_werror_flag"
19036                          || test ! -s conftest.err'
19037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038   (eval $ac_try) 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; } &&
19042          { ac_try='test -s conftest$ac_exeext'
19043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044   (eval $ac_try) 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; }; then
19048   ac_cv_search_dlopen="none required"
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053 fi
19054 rm -f conftest.err conftest.$ac_objext \
19055       conftest$ac_exeext conftest.$ac_ext
19056 if test "$ac_cv_search_dlopen" = no; then
19057   for ac_lib in dl; do
19058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19059     cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065
19066 /* Override any gcc2 internal prototype to avoid an error.  */
19067 #ifdef __cplusplus
19068 extern "C"
19069 #endif
19070 /* We use char because int might match the return type of a gcc2
19071    builtin and then its argument prototype would still apply.  */
19072 char dlopen ();
19073 int
19074 main ()
19075 {
19076 dlopen ();
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19083   (eval $ac_link) 2>conftest.er1
19084   ac_status=$?
19085   grep -v '^ *+' conftest.er1 >conftest.err
19086   rm -f conftest.er1
19087   cat conftest.err >&5
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } &&
19090          { ac_try='test -z "$ac_c_werror_flag"
19091                          || test ! -s conftest.err'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; } &&
19097          { ac_try='test -s conftest$ac_exeext'
19098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099   (eval $ac_try) 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; }; then
19103   ac_cv_search_dlopen="-l$ac_lib"
19104 break
19105 else
19106   echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 fi
19110 rm -f conftest.err conftest.$ac_objext \
19111       conftest$ac_exeext conftest.$ac_ext
19112   done
19113 fi
19114 LIBS=$ac_func_search_save_LIBS
19115 fi
19116 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19117 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19118 if test "$ac_cv_search_dlopen" != no; then
19119   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_DLOPEN 1
19123 _ACEOF
19124
19125 else
19126   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19127 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19128 fi
19129
19130
19131 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19132 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19133 if test "${ac_cv_search_mallinfo+set}" = set; then
19134   echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136   ac_func_search_save_LIBS=$LIBS
19137 ac_cv_search_mallinfo=no
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19144
19145 /* Override any gcc2 internal prototype to avoid an error.  */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 /* We use char because int might match the return type of a gcc2
19150    builtin and then its argument prototype would still apply.  */
19151 char mallinfo ();
19152 int
19153 main ()
19154 {
19155 mallinfo ();
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19162   (eval $ac_link) 2>conftest.er1
19163   ac_status=$?
19164   grep -v '^ *+' conftest.er1 >conftest.err
19165   rm -f conftest.er1
19166   cat conftest.err >&5
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } &&
19169          { ac_try='test -z "$ac_c_werror_flag"
19170                          || test ! -s conftest.err'
19171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172   (eval $ac_try) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; } &&
19176          { ac_try='test -s conftest$ac_exeext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   ac_cv_search_mallinfo="none required"
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 fi
19188 rm -f conftest.err conftest.$ac_objext \
19189       conftest$ac_exeext conftest.$ac_ext
19190 if test "$ac_cv_search_mallinfo" = no; then
19191   for ac_lib in malloc; do
19192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19193     cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199
19200 /* Override any gcc2 internal prototype to avoid an error.  */
19201 #ifdef __cplusplus
19202 extern "C"
19203 #endif
19204 /* We use char because int might match the return type of a gcc2
19205    builtin and then its argument prototype would still apply.  */
19206 char mallinfo ();
19207 int
19208 main ()
19209 {
19210 mallinfo ();
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217   (eval $ac_link) 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_c_werror_flag"
19225                          || test ! -s conftest.err'
19226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227   (eval $ac_try) 2>&5
19228   ac_status=$?
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; } &&
19231          { ac_try='test -s conftest$ac_exeext'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; }; then
19237   ac_cv_search_mallinfo="-l$ac_lib"
19238 break
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 fi
19244 rm -f conftest.err conftest.$ac_objext \
19245       conftest$ac_exeext conftest.$ac_ext
19246   done
19247 fi
19248 LIBS=$ac_func_search_save_LIBS
19249 fi
19250 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19251 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19252 if test "$ac_cv_search_mallinfo" != no; then
19253   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19254
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE_MALLINFO 1
19257 _ACEOF
19258
19259 fi
19260
19261
19262 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19263 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19265   echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267   ac_func_search_save_LIBS=$LIBS
19268 ac_cv_search_pthread_mutex_lock=no
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275
19276 /* Override any gcc2 internal prototype to avoid an error.  */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 /* We use char because int might match the return type of a gcc2
19281    builtin and then its argument prototype would still apply.  */
19282 char pthread_mutex_lock ();
19283 int
19284 main ()
19285 {
19286 pthread_mutex_lock ();
19287   ;
19288   return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293   (eval $ac_link) 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } &&
19300          { ac_try='test -z "$ac_c_werror_flag"
19301                          || test ! -s conftest.err'
19302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303   (eval $ac_try) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; } &&
19307          { ac_try='test -s conftest$ac_exeext'
19308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309   (eval $ac_try) 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); }; }; then
19313   ac_cv_search_pthread_mutex_lock="none required"
19314 else
19315   echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19317
19318 fi
19319 rm -f conftest.err conftest.$ac_objext \
19320       conftest$ac_exeext conftest.$ac_ext
19321 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19322   for ac_lib in pthread; do
19323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19324     cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330
19331 /* Override any gcc2 internal prototype to avoid an error.  */
19332 #ifdef __cplusplus
19333 extern "C"
19334 #endif
19335 /* We use char because int might match the return type of a gcc2
19336    builtin and then its argument prototype would still apply.  */
19337 char pthread_mutex_lock ();
19338 int
19339 main ()
19340 {
19341 pthread_mutex_lock ();
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348   (eval $ac_link) 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -z "$ac_c_werror_flag"
19356                          || test ! -s conftest.err'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; } &&
19362          { ac_try='test -s conftest$ac_exeext'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19369 break
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 fi
19375 rm -f conftest.err conftest.$ac_objext \
19376       conftest$ac_exeext conftest.$ac_ext
19377   done
19378 fi
19379 LIBS=$ac_func_search_save_LIBS
19380 fi
19381 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19382 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19383 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19384   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19385   HAVE_PTHREAD_MUTEX_LOCK=1
19386 else
19387   HAVE_PTHREAD_MUTEX_LOCK=0
19388 fi
19389
19390
19391
19392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19394 if test "${ac_cv_header_stdc+set}" = set; then
19395   echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397   cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 #include <stdlib.h>
19404 #include <stdarg.h>
19405 #include <string.h>
19406 #include <float.h>
19407
19408 int
19409 main ()
19410 {
19411
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418   (eval $ac_compile) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest.$ac_objext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_header_stdc=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_header_stdc=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19446
19447 if test $ac_cv_header_stdc = yes; then
19448   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19449   cat >conftest.$ac_ext <<_ACEOF
19450 /* confdefs.h.  */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h.  */
19455 #include <string.h>
19456
19457 _ACEOF
19458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19459   $EGREP "memchr" >/dev/null 2>&1; then
19460   :
19461 else
19462   ac_cv_header_stdc=no
19463 fi
19464 rm -f conftest*
19465
19466 fi
19467
19468 if test $ac_cv_header_stdc = yes; then
19469   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19470   cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h.  */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h.  */
19476 #include <stdlib.h>
19477
19478 _ACEOF
19479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480   $EGREP "free" >/dev/null 2>&1; then
19481   :
19482 else
19483   ac_cv_header_stdc=no
19484 fi
19485 rm -f conftest*
19486
19487 fi
19488
19489 if test $ac_cv_header_stdc = yes; then
19490   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19491   if test "$cross_compiling" = yes; then
19492   :
19493 else
19494   cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h.  */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h.  */
19500 #include <ctype.h>
19501 #if ((' ' & 0x0FF) == 0x020)
19502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19504 #else
19505 # define ISLOWER(c) \
19506                    (('a' <= (c) && (c) <= 'i') \
19507                      || ('j' <= (c) && (c) <= 'r') \
19508                      || ('s' <= (c) && (c) <= 'z'))
19509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19510 #endif
19511
19512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19513 int
19514 main ()
19515 {
19516   int i;
19517   for (i = 0; i < 256; i++)
19518     if (XOR (islower (i), ISLOWER (i))
19519         || toupper (i) != TOUPPER (i))
19520       exit(2);
19521   exit (0);
19522 }
19523 _ACEOF
19524 rm -f conftest$ac_exeext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526   (eval $ac_link) 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531   (eval $ac_try) 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; }; then
19535   :
19536 else
19537   echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541 ( exit $ac_status )
19542 ac_cv_header_stdc=no
19543 fi
19544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19545 fi
19546 fi
19547 fi
19548 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19549 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19550 if test $ac_cv_header_stdc = yes; then
19551
19552 cat >>confdefs.h <<\_ACEOF
19553 #define STDC_HEADERS 1
19554 _ACEOF
19555
19556 fi
19557
19558 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19559 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19560 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19561   echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563   cat >conftest.$ac_ext <<_ACEOF
19564 /* confdefs.h.  */
19565 _ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h.  */
19569 #include <sys/types.h>
19570 #include <sys/wait.h>
19571 #ifndef WEXITSTATUS
19572 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19573 #endif
19574 #ifndef WIFEXITED
19575 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19576 #endif
19577
19578 int
19579 main ()
19580 {
19581   int s;
19582   wait (&s);
19583   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590   (eval $ac_compile) 2>conftest.er1
19591   ac_status=$?
19592   grep -v '^ *+' conftest.er1 >conftest.err
19593   rm -f conftest.er1
19594   cat conftest.err >&5
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); } &&
19597          { ac_try='test -z "$ac_c_werror_flag"
19598                          || test ! -s conftest.err'
19599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600   (eval $ac_try) 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; } &&
19604          { ac_try='test -s conftest.$ac_objext'
19605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606   (eval $ac_try) 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); }; }; then
19610   ac_cv_header_sys_wait_h=yes
19611 else
19612   echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 ac_cv_header_sys_wait_h=no
19616 fi
19617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618 fi
19619 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19620 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19621 if test $ac_cv_header_sys_wait_h = yes; then
19622
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_SYS_WAIT_H 1
19625 _ACEOF
19626
19627 fi
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19642 do
19643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19645   echo "$as_me:$LINENO: checking for $ac_header" >&5
19646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 fi
19650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19652 else
19653   # Is the header compilable?
19654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h.  */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h.  */
19662 $ac_includes_default
19663 #include <$ac_header>
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667   (eval $ac_compile) 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_c_werror_flag"
19675                          || test ! -s conftest.err'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; } &&
19681          { ac_try='test -s conftest.$ac_objext'
19682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683   (eval $ac_try) 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; }; then
19687   ac_header_compiler=yes
19688 else
19689   echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692 ac_header_compiler=no
19693 fi
19694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19696 echo "${ECHO_T}$ac_header_compiler" >&6
19697
19698 # Is the header present?
19699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h.  */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h.  */
19707 #include <$ac_header>
19708 _ACEOF
19709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } >/dev/null; then
19717   if test -s conftest.err; then
19718     ac_cpp_err=$ac_c_preproc_warn_flag
19719     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19720   else
19721     ac_cpp_err=
19722   fi
19723 else
19724   ac_cpp_err=yes
19725 fi
19726 if test -z "$ac_cpp_err"; then
19727   ac_header_preproc=yes
19728 else
19729   echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732   ac_header_preproc=no
19733 fi
19734 rm -f conftest.err conftest.$ac_ext
19735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19736 echo "${ECHO_T}$ac_header_preproc" >&6
19737
19738 # So?  What about this header?
19739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19740   yes:no: )
19741     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19745     ac_header_preproc=yes
19746     ;;
19747   no:yes:* )
19748     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19750     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19751 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19752     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19754     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19755 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19758     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19760     (
19761       cat <<\_ASBOX
19762 ## ----------------------------------- ##
19763 ## Report this to llvmbugs@cs.uiuc.edu ##
19764 ## ----------------------------------- ##
19765 _ASBOX
19766     ) |
19767       sed "s/^/$as_me: WARNING:     /" >&2
19768     ;;
19769 esac
19770 echo "$as_me:$LINENO: checking for $ac_header" >&5
19771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19773   echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775   eval "$as_ac_Header=\$ac_header_preproc"
19776 fi
19777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19779
19780 fi
19781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19782   cat >>confdefs.h <<_ACEOF
19783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19784 _ACEOF
19785
19786 fi
19787
19788 done
19789
19790
19791 if test "${ac_cv_header_sys_types_h+set}" = set; then
19792   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19793 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19794 if test "${ac_cv_header_sys_types_h+set}" = set; then
19795   echo $ECHO_N "(cached) $ECHO_C" >&6
19796 fi
19797 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19798 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19799 else
19800   # Is the header compilable?
19801 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19802 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809 $ac_includes_default
19810 #include <sys/types.h>
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814   (eval $ac_compile) 2>conftest.er1
19815   ac_status=$?
19816   grep -v '^ *+' conftest.er1 >conftest.err
19817   rm -f conftest.er1
19818   cat conftest.err >&5
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); } &&
19821          { ac_try='test -z "$ac_c_werror_flag"
19822                          || test ! -s conftest.err'
19823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824   (eval $ac_try) 2>&5
19825   ac_status=$?
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); }; } &&
19828          { ac_try='test -s conftest.$ac_objext'
19829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830   (eval $ac_try) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; }; then
19834   ac_header_compiler=yes
19835 else
19836   echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19838
19839 ac_header_compiler=no
19840 fi
19841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6
19844
19845 # Is the header present?
19846 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19847 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h.  */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h.  */
19854 #include <sys/types.h>
19855 _ACEOF
19856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19857   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19858   ac_status=$?
19859   grep -v '^ *+' conftest.er1 >conftest.err
19860   rm -f conftest.er1
19861   cat conftest.err >&5
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); } >/dev/null; then
19864   if test -s conftest.err; then
19865     ac_cpp_err=$ac_c_preproc_warn_flag
19866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19867   else
19868     ac_cpp_err=
19869   fi
19870 else
19871   ac_cpp_err=yes
19872 fi
19873 if test -z "$ac_cpp_err"; then
19874   ac_header_preproc=yes
19875 else
19876   echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879   ac_header_preproc=no
19880 fi
19881 rm -f conftest.err conftest.$ac_ext
19882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19883 echo "${ECHO_T}$ac_header_preproc" >&6
19884
19885 # So?  What about this header?
19886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19887   yes:no: )
19888     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19889 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19890     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19891 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19892     ac_header_preproc=yes
19893     ;;
19894   no:yes:* )
19895     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19896 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19897     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19898 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19899     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19900 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19901     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19902 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19903     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19904 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19905     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19906 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19907     (
19908       cat <<\_ASBOX
19909 ## ----------------------------------- ##
19910 ## Report this to llvmbugs@cs.uiuc.edu ##
19911 ## ----------------------------------- ##
19912 _ASBOX
19913     ) |
19914       sed "s/^/$as_me: WARNING:     /" >&2
19915     ;;
19916 esac
19917 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19918 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19919 if test "${ac_cv_header_sys_types_h+set}" = set; then
19920   echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922   ac_cv_header_sys_types_h=$ac_header_preproc
19923 fi
19924 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19925 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19926
19927 fi
19928 if test $ac_cv_header_sys_types_h = yes; then
19929   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19930 else
19931   INCLUDE_SYS_TYPES_H=''
19932 fi
19933
19934
19935
19936 if test "${ac_cv_header_inttypes_h+set}" = set; then
19937   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19938 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19939 if test "${ac_cv_header_inttypes_h+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 fi
19942 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19943 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19944 else
19945   # Is the header compilable?
19946 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19947 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 $ac_includes_default
19955 #include <inttypes.h>
19956 _ACEOF
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959   (eval $ac_compile) 2>conftest.er1
19960   ac_status=$?
19961   grep -v '^ *+' conftest.er1 >conftest.err
19962   rm -f conftest.er1
19963   cat conftest.err >&5
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } &&
19966          { ac_try='test -z "$ac_c_werror_flag"
19967                          || test ! -s conftest.err'
19968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969   (eval $ac_try) 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); }; } &&
19973          { ac_try='test -s conftest.$ac_objext'
19974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975   (eval $ac_try) 2>&5
19976   ac_status=$?
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); }; }; then
19979   ac_header_compiler=yes
19980 else
19981   echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19983
19984 ac_header_compiler=no
19985 fi
19986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19988 echo "${ECHO_T}$ac_header_compiler" >&6
19989
19990 # Is the header present?
19991 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19992 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 #include <inttypes.h>
20000 _ACEOF
20001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } >/dev/null; then
20009   if test -s conftest.err; then
20010     ac_cpp_err=$ac_c_preproc_warn_flag
20011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20012   else
20013     ac_cpp_err=
20014   fi
20015 else
20016   ac_cpp_err=yes
20017 fi
20018 if test -z "$ac_cpp_err"; then
20019   ac_header_preproc=yes
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024   ac_header_preproc=no
20025 fi
20026 rm -f conftest.err conftest.$ac_ext
20027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20028 echo "${ECHO_T}$ac_header_preproc" >&6
20029
20030 # So?  What about this header?
20031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20032   yes:no: )
20033     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20034 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20035     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20036 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20037     ac_header_preproc=yes
20038     ;;
20039   no:yes:* )
20040     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20041 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20043 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20045 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20046     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20047 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20048     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20049 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20050     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20051 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20052     (
20053       cat <<\_ASBOX
20054 ## ----------------------------------- ##
20055 ## Report this to llvmbugs@cs.uiuc.edu ##
20056 ## ----------------------------------- ##
20057 _ASBOX
20058     ) |
20059       sed "s/^/$as_me: WARNING:     /" >&2
20060     ;;
20061 esac
20062 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20063 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20064 if test "${ac_cv_header_inttypes_h+set}" = set; then
20065   echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20067   ac_cv_header_inttypes_h=$ac_header_preproc
20068 fi
20069 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20070 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20071
20072 fi
20073 if test $ac_cv_header_inttypes_h = yes; then
20074   INCLUDE_INTTYPES_H='#include <inttypes.h>'
20075 else
20076   INCLUDE_INTTYPES_H=''
20077 fi
20078
20079
20080
20081 if test "${ac_cv_header_stdint_h+set}" = set; then
20082   echo "$as_me:$LINENO: checking for stdint.h" >&5
20083 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20084 if test "${ac_cv_header_stdint_h+set}" = set; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 fi
20087 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20088 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20089 else
20090   # Is the header compilable?
20091 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20092 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h.  */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h.  */
20099 $ac_includes_default
20100 #include <stdint.h>
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104   (eval $ac_compile) 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } &&
20111          { ac_try='test -z "$ac_c_werror_flag"
20112                          || test ! -s conftest.err'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest.$ac_objext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_header_compiler=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_header_compiler=no
20130 fi
20131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20133 echo "${ECHO_T}$ac_header_compiler" >&6
20134
20135 # Is the header present?
20136 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20137 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 #include <stdint.h>
20145 _ACEOF
20146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } >/dev/null; then
20154   if test -s conftest.err; then
20155     ac_cpp_err=$ac_c_preproc_warn_flag
20156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20157   else
20158     ac_cpp_err=
20159   fi
20160 else
20161   ac_cpp_err=yes
20162 fi
20163 if test -z "$ac_cpp_err"; then
20164   ac_header_preproc=yes
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169   ac_header_preproc=no
20170 fi
20171 rm -f conftest.err conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173 echo "${ECHO_T}$ac_header_preproc" >&6
20174
20175 # So?  What about this header?
20176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20177   yes:no: )
20178     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20179 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20180     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20181 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20182     ac_header_preproc=yes
20183     ;;
20184   no:yes:* )
20185     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20186 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20187     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20188 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20189     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20190 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20191     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20192 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20193     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20194 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20195     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20196 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20197     (
20198       cat <<\_ASBOX
20199 ## ----------------------------------- ##
20200 ## Report this to llvmbugs@cs.uiuc.edu ##
20201 ## ----------------------------------- ##
20202 _ASBOX
20203     ) |
20204       sed "s/^/$as_me: WARNING:     /" >&2
20205     ;;
20206 esac
20207 echo "$as_me:$LINENO: checking for stdint.h" >&5
20208 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20209 if test "${ac_cv_header_stdint_h+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   ac_cv_header_stdint_h=$ac_header_preproc
20213 fi
20214 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20215 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20216
20217 fi
20218 if test $ac_cv_header_stdint_h = yes; then
20219   INCLUDE_STDINT_H='#include <stdint.h>'
20220 else
20221   INCLUDE_STDINT_H=''
20222 fi
20223
20224
20225
20226
20227
20228 echo "$as_me:$LINENO: checking for pid_t" >&5
20229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20230 if test "${ac_cv_type_pid_t+set}" = set; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233   cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 $ac_includes_default
20240 int
20241 main ()
20242 {
20243 if ((pid_t *) 0)
20244   return 0;
20245 if (sizeof (pid_t))
20246   return 0;
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253   (eval $ac_compile) 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } &&
20260          { ac_try='test -z "$ac_c_werror_flag"
20261                          || test ! -s conftest.err'
20262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263   (eval $ac_try) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; } &&
20267          { ac_try='test -s conftest.$ac_objext'
20268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269   (eval $ac_try) 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; }; then
20273   ac_cv_type_pid_t=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278 ac_cv_type_pid_t=no
20279 fi
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20281 fi
20282 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20283 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20284 if test $ac_cv_type_pid_t = yes; then
20285   :
20286 else
20287
20288 cat >>confdefs.h <<_ACEOF
20289 #define pid_t int
20290 _ACEOF
20291
20292 fi
20293
20294 echo "$as_me:$LINENO: checking for size_t" >&5
20295 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20296 if test "${ac_cv_type_size_t+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305 $ac_includes_default
20306 int
20307 main ()
20308 {
20309 if ((size_t *) 0)
20310   return 0;
20311 if (sizeof (size_t))
20312   return 0;
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319   (eval $ac_compile) 2>conftest.er1
20320   ac_status=$?
20321   grep -v '^ *+' conftest.er1 >conftest.err
20322   rm -f conftest.er1
20323   cat conftest.err >&5
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); } &&
20326          { ac_try='test -z "$ac_c_werror_flag"
20327                          || test ! -s conftest.err'
20328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329   (eval $ac_try) 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; } &&
20333          { ac_try='test -s conftest.$ac_objext'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   ac_cv_type_size_t=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_cv_type_size_t=no
20345 fi
20346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20347 fi
20348 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20349 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20350 if test $ac_cv_type_size_t = yes; then
20351   :
20352 else
20353
20354 cat >>confdefs.h <<_ACEOF
20355 #define size_t unsigned
20356 _ACEOF
20357
20358 fi
20359
20360 echo "$as_me:$LINENO: checking for int64_t" >&5
20361 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20362 if test "${ac_cv_type_int64_t+set}" = set; then
20363   echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365   cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371 $ac_includes_default
20372 int
20373 main ()
20374 {
20375 if ((int64_t *) 0)
20376   return 0;
20377 if (sizeof (int64_t))
20378   return 0;
20379   ;
20380   return 0;
20381 }
20382 _ACEOF
20383 rm -f conftest.$ac_objext
20384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385   (eval $ac_compile) 2>conftest.er1
20386   ac_status=$?
20387   grep -v '^ *+' conftest.er1 >conftest.err
20388   rm -f conftest.er1
20389   cat conftest.err >&5
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); } &&
20392          { ac_try='test -z "$ac_c_werror_flag"
20393                          || test ! -s conftest.err'
20394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395   (eval $ac_try) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; } &&
20399          { ac_try='test -s conftest.$ac_objext'
20400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401   (eval $ac_try) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_cv_type_int64_t=yes
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_cv_type_int64_t=no
20411 fi
20412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20413 fi
20414 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20415 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20416 if test $ac_cv_type_int64_t = yes; then
20417
20418 cat >>confdefs.h <<_ACEOF
20419 #define HAVE_INT64_T 1
20420 _ACEOF
20421
20422
20423 else
20424   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20425 echo "$as_me: error: Type int64_t required but not found" >&2;}
20426    { (exit 1); exit 1; }; }
20427 fi
20428
20429 echo "$as_me:$LINENO: checking for uint64_t" >&5
20430 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20431 if test "${ac_cv_type_uint64_t+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 $ac_includes_default
20441 int
20442 main ()
20443 {
20444 if ((uint64_t *) 0)
20445   return 0;
20446 if (sizeof (uint64_t))
20447   return 0;
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454   (eval $ac_compile) 2>conftest.er1
20455   ac_status=$?
20456   grep -v '^ *+' conftest.er1 >conftest.err
20457   rm -f conftest.er1
20458   cat conftest.err >&5
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); } &&
20461          { ac_try='test -z "$ac_c_werror_flag"
20462                          || test ! -s conftest.err'
20463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464   (eval $ac_try) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; } &&
20468          { ac_try='test -s conftest.$ac_objext'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_cv_type_uint64_t=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_cv_type_uint64_t=no
20480 fi
20481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20482 fi
20483 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20484 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20485 if test $ac_cv_type_uint64_t = yes; then
20486
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_UINT64_T 1
20489 _ACEOF
20490
20491
20492 else
20493   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20494 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20495    { (exit 1); exit 1; }; }
20496 fi
20497
20498 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20499 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20500 if test "${ac_cv_header_time+set}" = set; then
20501   echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503   cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 #include <sys/types.h>
20510 #include <sys/time.h>
20511 #include <time.h>
20512
20513 int
20514 main ()
20515 {
20516 if ((struct tm *) 0)
20517 return 0;
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524   (eval $ac_compile) 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } &&
20531          { ac_try='test -z "$ac_c_werror_flag"
20532                          || test ! -s conftest.err'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; } &&
20538          { ac_try='test -s conftest.$ac_objext'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544   ac_cv_header_time=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv_header_time=no
20550 fi
20551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20552 fi
20553 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20554 echo "${ECHO_T}$ac_cv_header_time" >&6
20555 if test $ac_cv_header_time = yes; then
20556
20557 cat >>confdefs.h <<\_ACEOF
20558 #define TIME_WITH_SYS_TIME 1
20559 _ACEOF
20560
20561 fi
20562
20563 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20564 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20565 if test "${ac_cv_struct_tm+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 #include <sys/types.h>
20575 #include <time.h>
20576
20577 int
20578 main ()
20579 {
20580 struct tm *tp; tp->tm_sec;
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587   (eval $ac_compile) 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_c_werror_flag"
20595                          || test ! -s conftest.err'
20596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597   (eval $ac_try) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; } &&
20601          { ac_try='test -s conftest.$ac_objext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607   ac_cv_struct_tm=time.h
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ac_cv_struct_tm=sys/time.h
20613 fi
20614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20615 fi
20616 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20617 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20618 if test $ac_cv_struct_tm = sys/time.h; then
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define TM_IN_SYS_TIME 1
20622 _ACEOF
20623
20624 fi
20625
20626
20627
20628         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20629 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20630
20631
20632         ac_ext=c
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
20638         if test "$cross_compiling" = yes; then
20639   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20640 See \`config.log' for more details." >&5
20641 echo "$as_me: error: cannot run test program while cross compiling
20642 See \`config.log' for more details." >&2;}
20643    { (exit 1); exit 1; }; }
20644 else
20645   cat >conftest.$ac_ext <<_ACEOF
20646 /* confdefs.h.  */
20647 _ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h.  */
20651 #include <stdio.h>
20652                                  #include <stdlib.h>
20653 int
20654 main ()
20655 {
20656
20657                                  volatile double A, B;
20658                                  char Buffer[100];
20659                                  A = 1;
20660                                  A /= 10.0;
20661                                  sprintf(Buffer, "%a", A);
20662                                  B = atof(Buffer);
20663                                  if (A != B)
20664                                                          return (1);
20665                                  if (A != 0x1.999999999999ap-4)
20666                                                          return (1);
20667                                  return (0);
20668   ;
20669   return 0;
20670 }
20671 _ACEOF
20672 rm -f conftest$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674   (eval $ac_link) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679   (eval $ac_try) 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_c_printf_a=yes
20684 else
20685   echo "$as_me: program exited with status $ac_status" >&5
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ( exit $ac_status )
20690 ac_c_printf_a=no
20691 fi
20692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20693 fi
20694         ac_ext=c
20695 ac_cpp='$CPP $CPPFLAGS'
20696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20699
20700         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20701 echo "${ECHO_T}$ac_c_printf_a" >&6
20702         if test "$ac_c_printf_a" = "yes"; then
20703
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_PRINTF_A 1
20706 _ACEOF
20707
20708         fi
20709
20710
20711 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20712 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20713 if test "${ac_cv_c_bigendian+set}" = set; then
20714   echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716   # See if sys/param.h defines the BYTE_ORDER macro.
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723 #include <sys/types.h>
20724 #include <sys/param.h>
20725
20726 int
20727 main ()
20728 {
20729 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20730  bogus endian macros
20731 #endif
20732
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739   (eval $ac_compile) 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } &&
20746          { ac_try='test -z "$ac_c_werror_flag"
20747                          || test ! -s conftest.err'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; } &&
20753          { ac_try='test -s conftest.$ac_objext'
20754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755   (eval $ac_try) 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; }; then
20759   # It does; now see whether it defined to BIG_ENDIAN or not.
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766 #include <sys/types.h>
20767 #include <sys/param.h>
20768
20769 int
20770 main ()
20771 {
20772 #if BYTE_ORDER != BIG_ENDIAN
20773  not big endian
20774 #endif
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20782   (eval $ac_compile) 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_c_werror_flag"
20790                          || test ! -s conftest.err'
20791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792   (eval $ac_try) 2>&5
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); }; } &&
20796          { ac_try='test -s conftest.$ac_objext'
20797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798   (eval $ac_try) 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); }; }; then
20802   ac_cv_c_bigendian=yes
20803 else
20804   echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ac_cv_c_bigendian=no
20808 fi
20809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 # It does not; compile a test program.
20815 if test "$cross_compiling" = yes; then
20816   # try to guess the endianness by grepping values into an object file
20817   ac_cv_c_bigendian=unknown
20818   cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20825 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20826 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20827 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20828 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20829 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20830 int
20831 main ()
20832 {
20833  _ascii (); _ebcdic ();
20834   ;
20835   return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext
20839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840   (eval $ac_compile) 2>conftest.er1
20841   ac_status=$?
20842   grep -v '^ *+' conftest.er1 >conftest.err
20843   rm -f conftest.er1
20844   cat conftest.err >&5
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } &&
20847          { ac_try='test -z "$ac_c_werror_flag"
20848                          || test ! -s conftest.err'
20849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850   (eval $ac_try) 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); }; } &&
20854          { ac_try='test -s conftest.$ac_objext'
20855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856   (eval $ac_try) 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; }; then
20860   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20861   ac_cv_c_bigendian=yes
20862 fi
20863 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20864   if test "$ac_cv_c_bigendian" = unknown; then
20865     ac_cv_c_bigendian=no
20866   else
20867     # finding both strings is unlikely to happen, but who knows?
20868     ac_cv_c_bigendian=unknown
20869   fi
20870 fi
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 fi
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 else
20878   cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884 int
20885 main ()
20886 {
20887   /* Are we little or big endian?  From Harbison&Steele.  */
20888   union
20889   {
20890     long l;
20891     char c[sizeof (long)];
20892   } u;
20893   u.l = 1;
20894   exit (u.c[sizeof (long) - 1] == 1);
20895 }
20896 _ACEOF
20897 rm -f conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899   (eval $ac_link) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; }; then
20908   ac_cv_c_bigendian=no
20909 else
20910   echo "$as_me: program exited with status $ac_status" >&5
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914 ( exit $ac_status )
20915 ac_cv_c_bigendian=yes
20916 fi
20917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20918 fi
20919 fi
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20921 fi
20922 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20923 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20924 case $ac_cv_c_bigendian in
20925   yes)
20926     ENDIAN=big
20927  ;;
20928   no)
20929     ENDIAN=little
20930  ;;
20931   *)
20932     { { echo "$as_me:$LINENO: error: unknown endianness
20933 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20934 echo "$as_me: error: unknown endianness
20935 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20936    { (exit 1); exit 1; }; } ;;
20937 esac
20938
20939
20940 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20941 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20942 if test "${ac_cv_cxx_namespaces+set}" = set; then
20943   echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945
20946
20947  ac_ext=cc
20948 ac_cpp='$CXXCPP $CPPFLAGS'
20949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953  cat >conftest.$ac_ext <<_ACEOF
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959 namespace Outer { namespace Inner { int i = 0; }}
20960 int
20961 main ()
20962 {
20963 using namespace Outer::Inner; return i;
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970   (eval $ac_compile) 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_cxx_werror_flag"
20978                          || test ! -s conftest.err'
20979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980   (eval $ac_try) 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; } &&
20984          { ac_try='test -s conftest.$ac_objext'
20985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; }; then
20990   ac_cv_cxx_namespaces=yes
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ac_cv_cxx_namespaces=no
20996 fi
20997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20998  ac_ext=c
20999 ac_cpp='$CPP $CPPFLAGS'
21000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003
21004
21005 fi
21006 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21007 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21008 if test "$ac_cv_cxx_namespaces" = yes; then
21009
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_NAMESPACES
21012 _ACEOF
21013
21014 fi
21015
21016 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21017 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21018 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021
21022
21023
21024   ac_ext=cc
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030   cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h.  */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h.  */
21036 #include <ext/hash_map>
21037 #ifdef HAVE_NAMESPACES
21038 using namespace std;
21039 #endif
21040 int
21041 main ()
21042 {
21043 hash_map<int, int> t;
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21050   (eval $ac_compile) 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } &&
21057          { ac_try='test -z "$ac_cxx_werror_flag"
21058                          || test ! -s conftest.err'
21059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060   (eval $ac_try) 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; } &&
21064          { ac_try='test -s conftest.$ac_objext'
21065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066   (eval $ac_try) 2>&5
21067   ac_status=$?
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); }; }; then
21070   ac_cv_cxx_have_std_ext_hash_map=yes
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075 ac_cv_cxx_have_std_ext_hash_map=no
21076 fi
21077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21078   ac_ext=c
21079 ac_cpp='$CPP $CPPFLAGS'
21080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
21084 fi
21085 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21086 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21087  HAVE_STD_EXT_HASH_MAP=0
21088  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21089  then
21090    HAVE_STD_EXT_HASH_MAP=1
21091  fi
21092
21093  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21094 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21095 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21096   echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21098
21099
21100
21101   ac_ext=cc
21102 ac_cpp='$CXXCPP $CPPFLAGS'
21103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21106
21107   cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 #include <ext/hash_map>
21114 #ifdef HAVE_NAMESPACES
21115 using namespace __gnu_cxx;
21116 #endif
21117 int
21118 main ()
21119 {
21120 hash_map<int,int> t;
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext
21126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21127   (eval $ac_compile) 2>conftest.er1
21128   ac_status=$?
21129   grep -v '^ *+' conftest.er1 >conftest.err
21130   rm -f conftest.er1
21131   cat conftest.err >&5
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); } &&
21134          { ac_try='test -z "$ac_cxx_werror_flag"
21135                          || test ! -s conftest.err'
21136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137   (eval $ac_try) 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; } &&
21141          { ac_try='test -s conftest.$ac_objext'
21142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143   (eval $ac_try) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; }; then
21147   ac_cv_cxx_have_gnu_ext_hash_map=yes
21148 else
21149   echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152 ac_cv_cxx_have_gnu_ext_hash_map=no
21153 fi
21154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21155   ac_ext=c
21156 ac_cpp='$CPP $CPPFLAGS'
21157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160
21161 fi
21162 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21163 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21164  HAVE_GNU_EXT_HASH_MAP=0
21165  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21166  then
21167    HAVE_GNU_EXT_HASH_MAP=1
21168  fi
21169
21170  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21171 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21172 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21173   echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175
21176
21177
21178   ac_ext=cc
21179 ac_cpp='$CXXCPP $CPPFLAGS'
21180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21183
21184   cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include <hash_map>
21191 int
21192 main ()
21193 {
21194 hash_map<int,int> t;
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201   (eval $ac_compile) 2>conftest.er1
21202   ac_status=$?
21203   grep -v '^ *+' conftest.er1 >conftest.err
21204   rm -f conftest.er1
21205   cat conftest.err >&5
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); } &&
21208          { ac_try='test -z "$ac_cxx_werror_flag"
21209                          || test ! -s conftest.err'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; } &&
21215          { ac_try='test -s conftest.$ac_objext'
21216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217   (eval $ac_try) 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); }; }; then
21221   ac_cv_cxx_have_global_hash_map=yes
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226 ac_cv_cxx_have_global_hash_map=no
21227 fi
21228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229   ac_ext=c
21230 ac_cpp='$CPP $CPPFLAGS'
21231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234
21235 fi
21236 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21237 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21238  HAVE_GLOBAL_HASH_MAP=0
21239  if test "$ac_cv_cxx_have_global_hash_map" = yes
21240  then
21241    HAVE_GLOBAL_HASH_MAP=1
21242  fi
21243
21244 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21245 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21246 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249
21250
21251
21252   ac_ext=cc
21253 ac_cpp='$CXXCPP $CPPFLAGS'
21254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21257
21258   cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 #include <ext/hash_set>
21265 #ifdef HAVE_NAMESPACES
21266 using namespace std;
21267 #endif
21268 int
21269 main ()
21270 {
21271 hash_set<int> t;
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278   (eval $ac_compile) 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } &&
21285          { ac_try='test -z "$ac_cxx_werror_flag"
21286                          || test ! -s conftest.err'
21287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288   (eval $ac_try) 2>&5
21289   ac_status=$?
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); }; } &&
21292          { ac_try='test -s conftest.$ac_objext'
21293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; }; then
21298   ac_cv_cxx_have_std_ext_hash_set=yes
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_cv_cxx_have_std_ext_hash_set=no
21304 fi
21305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21306   ac_ext=c
21307 ac_cpp='$CPP $CPPFLAGS'
21308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312 fi
21313 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21314 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21315  HAVE_STD_EXT_HASH_SET=0
21316  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21317  then
21318    HAVE_STD_EXT_HASH_SET=1
21319  fi
21320
21321  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21322 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21323 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21324   echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326
21327
21328
21329   ac_ext=cc
21330 ac_cpp='$CXXCPP $CPPFLAGS'
21331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21334
21335   cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <ext/hash_set>
21342 #ifdef HAVE_NAMESPACES
21343 using namespace __gnu_cxx;
21344 #endif
21345 int
21346 main ()
21347 {
21348 hash_set<int> t;
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355   (eval $ac_compile) 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } &&
21362          { ac_try='test -z "$ac_cxx_werror_flag"
21363                          || test ! -s conftest.err'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; } &&
21369          { ac_try='test -s conftest.$ac_objext'
21370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371   (eval $ac_try) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   ac_cv_cxx_have_gnu_ext_hash_set=yes
21376 else
21377   echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 ac_cv_cxx_have_gnu_ext_hash_set=no
21381 fi
21382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21383   ac_ext=c
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388
21389 fi
21390 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21391 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21392  HAVE_GNU_EXT_HASH_SET=0
21393  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21394  then
21395    HAVE_GNU_EXT_HASH_SET=1
21396  fi
21397
21398  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21399 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21400 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403
21404
21405
21406   ac_ext=cc
21407 ac_cpp='$CXXCPP $CPPFLAGS'
21408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21411
21412   cat >conftest.$ac_ext <<_ACEOF
21413 /* confdefs.h.  */
21414 _ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h.  */
21418 #include <hash_set>
21419 int
21420 main ()
21421 {
21422 hash_set<int> t; return 0;
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429   (eval $ac_compile) 2>conftest.er1
21430   ac_status=$?
21431   grep -v '^ *+' conftest.er1 >conftest.err
21432   rm -f conftest.er1
21433   cat conftest.err >&5
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } &&
21436          { ac_try='test -z "$ac_cxx_werror_flag"
21437                          || test ! -s conftest.err'
21438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439   (eval $ac_try) 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; } &&
21443          { ac_try='test -s conftest.$ac_objext'
21444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445   (eval $ac_try) 2>&5
21446   ac_status=$?
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); }; }; then
21449   ac_cv_cxx_have_global_hash_set=yes
21450 else
21451   echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 ac_cv_cxx_have_global_hash_set=no
21455 fi
21456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21457   ac_ext=c
21458 ac_cpp='$CPP $CPPFLAGS'
21459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21462
21463 fi
21464 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21465 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21466  HAVE_GLOBAL_HASH_SET=0
21467  if test "$ac_cv_cxx_have_global_hash_set" = yes
21468  then
21469    HAVE_GLOBAL_HASH_SET=1
21470  fi
21471
21472 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21473 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21474 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477
21478
21479
21480   ac_ext=cc
21481 ac_cpp='$CXXCPP $CPPFLAGS'
21482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21485
21486   cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h.  */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h.  */
21492 #include <iterator>
21493 #ifdef HAVE_NAMESPACES
21494 using namespace std;
21495 #endif
21496 int
21497 main ()
21498 {
21499 iterator<int,int,int> t; return 0;
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21506   (eval $ac_compile) 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } &&
21513          { ac_try='test -z "$ac_cxx_werror_flag"
21514                          || test ! -s conftest.err'
21515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516   (eval $ac_try) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; } &&
21520          { ac_try='test -s conftest.$ac_objext'
21521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522   (eval $ac_try) 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); }; }; then
21526   ac_cv_cxx_have_std_iterator=yes
21527 else
21528   echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21530
21531 ac_cv_cxx_have_std_iterator=no
21532 fi
21533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21534   ac_ext=c
21535 ac_cpp='$CPP $CPPFLAGS'
21536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21539
21540
21541 fi
21542 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21543 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21544 HAVE_STD_ITERATOR=0
21545 if test "$ac_cv_cxx_have_std_iterator" = yes
21546 then
21547    HAVE_STD_ITERATOR=1
21548 fi
21549
21550 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21551 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21552 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555
21556
21557
21558   ac_ext=cc
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
21564   cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h.  */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h.  */
21570 #include <iterator>
21571 #ifdef HAVE_NAMESPACES
21572 using namespace std;
21573 #endif
21574 int
21575 main ()
21576 {
21577 bidirectional_iterator<int,int> t; return 0;
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21584   (eval $ac_compile) 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } &&
21591          { ac_try='test -z "$ac_cxx_werror_flag"
21592                          || test ! -s conftest.err'
21593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594   (eval $ac_try) 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; } &&
21598          { ac_try='test -s conftest.$ac_objext'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; }; then
21604   ac_cv_cxx_have_bi_iterator=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 ac_cv_cxx_have_bi_iterator=no
21610 fi
21611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21612   ac_ext=c
21613 ac_cpp='$CPP $CPPFLAGS'
21614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21617
21618
21619 fi
21620 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21621 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21622 HAVE_BI_ITERATOR=0
21623 if test "$ac_cv_cxx_have_bi_iterator" = yes
21624 then
21625    HAVE_BI_ITERATOR=1
21626 fi
21627
21628 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21629 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21630 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633
21634
21635
21636   ac_ext=cc
21637 ac_cpp='$CXXCPP $CPPFLAGS'
21638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21641
21642   cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 #include <iterator>
21649 #ifdef HAVE_NAMESPACES
21650 using namespace std;
21651 #endif
21652 int
21653 main ()
21654 {
21655 forward_iterator<int,int> t; return 0;
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21662   (eval $ac_compile) 2>conftest.er1
21663   ac_status=$?
21664   grep -v '^ *+' conftest.er1 >conftest.err
21665   rm -f conftest.er1
21666   cat conftest.err >&5
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } &&
21669          { ac_try='test -z "$ac_cxx_werror_flag"
21670                          || test ! -s conftest.err'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; } &&
21676          { ac_try='test -s conftest.$ac_objext'
21677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678   (eval $ac_try) 2>&5
21679   ac_status=$?
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); }; }; then
21682   ac_cv_cxx_have_fwd_iterator=yes
21683 else
21684   echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ac_cv_cxx_have_fwd_iterator=no
21688 fi
21689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21690   ac_ext=c
21691 ac_cpp='$CPP $CPPFLAGS'
21692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21695
21696
21697 fi
21698 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21699 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21700 HAVE_FWD_ITERATOR=0
21701 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21702 then
21703    HAVE_FWD_ITERATOR=1
21704 fi
21705
21706
21707
21708 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21709 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21710 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713   ac_ext=cc
21714 ac_cpp='$CXXCPP $CPPFLAGS'
21715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21718
21719   cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h.  */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h.  */
21725 #include <math.h>
21726                      int foo(float f) {return isnan(f);}
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730   (eval $ac_compile) 2>conftest.er1
21731   ac_status=$?
21732   grep -v '^ *+' conftest.er1 >conftest.err
21733   rm -f conftest.er1
21734   cat conftest.err >&5
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } &&
21737          { ac_try='test -z "$ac_cxx_werror_flag"
21738                          || test ! -s conftest.err'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; } &&
21744          { ac_try='test -s conftest.$ac_objext'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; }; then
21750   ac_cv_func_isnan_in_math_h=yes
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 ac_cv_func_isnan_in_math_h=no
21756 fi
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21758  ac_ext=c
21759 ac_cpp='$CPP $CPPFLAGS'
21760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21763
21764 fi
21765 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21766 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21767  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21768  then
21769
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_ISNAN_IN_MATH_H 1
21772 _ACEOF
21773
21774  fi
21775 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21776 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21777 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   ac_ext=cc
21781 ac_cpp='$CXXCPP $CPPFLAGS'
21782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21785
21786   cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 #include <cmath>
21793                      int foo(float f) {return isnan(f);}
21794 _ACEOF
21795 rm -f conftest.$ac_objext
21796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21797   (eval $ac_compile) 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } &&
21804          { ac_try='test -z "$ac_cxx_werror_flag"
21805                          || test ! -s conftest.err'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; } &&
21811          { ac_try='test -s conftest.$ac_objext'
21812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813   (eval $ac_try) 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; }; then
21817   ac_cv_func_isnan_in_cmath=yes
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822 ac_cv_func_isnan_in_cmath=no
21823 fi
21824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21825  ac_ext=c
21826 ac_cpp='$CPP $CPPFLAGS'
21827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21830
21831 fi
21832 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21833 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21834  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21835  then
21836
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_ISNAN_IN_CMATH 1
21839 _ACEOF
21840
21841  fi
21842 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21843 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21844 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847   ac_ext=cc
21848 ac_cpp='$CXXCPP $CPPFLAGS'
21849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21852
21853   cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 #include <cmath>
21860                      using std::isnan; int foo(float f) {return isnan(f);}
21861 _ACEOF
21862 rm -f conftest.$ac_objext
21863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21864   (eval $ac_compile) 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } &&
21871          { ac_try='test -z "$ac_cxx_werror_flag"
21872                          || test ! -s conftest.err'
21873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; } &&
21878          { ac_try='test -s conftest.$ac_objext'
21879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880   (eval $ac_try) 2>&5
21881   ac_status=$?
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); }; }; then
21884   ac_cv_func_std_isnan_in_cmath=yes
21885 else
21886   echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ac_cv_func_std_isnan_in_cmath=no
21890 fi
21891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21892  ac_ext=c
21893 ac_cpp='$CPP $CPPFLAGS'
21894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21897
21898 fi
21899 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21900 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21901  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21902  then
21903
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_STD_ISNAN_IN_CMATH 1
21906 _ACEOF
21907
21908  fi
21909
21910
21911 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21912 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21913 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21914   echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916   ac_ext=cc
21917 ac_cpp='$CXXCPP $CPPFLAGS'
21918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21921
21922   cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928 #include <math.h>
21929                      int foo(float f) {return isinf(f);}
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21933   (eval $ac_compile) 2>conftest.er1
21934   ac_status=$?
21935   grep -v '^ *+' conftest.er1 >conftest.err
21936   rm -f conftest.er1
21937   cat conftest.err >&5
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); } &&
21940          { ac_try='test -z "$ac_cxx_werror_flag"
21941                          || test ! -s conftest.err'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; } &&
21947          { ac_try='test -s conftest.$ac_objext'
21948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949   (eval $ac_try) 2>&5
21950   ac_status=$?
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); }; }; then
21953   ac_cv_func_isinf_in_math_h=yes
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958 ac_cv_func_isinf_in_math_h=no
21959 fi
21960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21961  ac_ext=c
21962 ac_cpp='$CPP $CPPFLAGS'
21963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21966
21967 fi
21968 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21969 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21970  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21971  then
21972
21973 cat >>confdefs.h <<\_ACEOF
21974 #define HAVE_ISINF_IN_MATH_H 1
21975 _ACEOF
21976
21977  fi
21978 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21979 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21980 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21981   echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983   ac_ext=cc
21984 ac_cpp='$CXXCPP $CPPFLAGS'
21985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21988
21989   cat >conftest.$ac_ext <<_ACEOF
21990 /* confdefs.h.  */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h.  */
21995 #include <cmath>
21996                      int foo(float f) {return isinf(f);}
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000   (eval $ac_compile) 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } &&
22007          { ac_try='test -z "$ac_cxx_werror_flag"
22008                          || test ! -s conftest.err'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest.$ac_objext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   ac_cv_func_isinf_in_cmath=yes
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ac_cv_func_isinf_in_cmath=no
22026 fi
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028  ac_ext=c
22029 ac_cpp='$CPP $CPPFLAGS'
22030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22033
22034 fi
22035 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22036 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22037  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22038  then
22039
22040 cat >>confdefs.h <<\_ACEOF
22041 #define HAVE_ISINF_IN_CMATH 1
22042 _ACEOF
22043
22044  fi
22045 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22046 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22047 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22048   echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050   ac_ext=cc
22051 ac_cpp='$CXXCPP $CPPFLAGS'
22052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22055
22056   cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h.  */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h.  */
22062 #include <cmath>
22063                      using std::isinf; int foo(float f) {return isinf(f);}
22064 _ACEOF
22065 rm -f conftest.$ac_objext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22067   (eval $ac_compile) 2>conftest.er1
22068   ac_status=$?
22069   grep -v '^ *+' conftest.er1 >conftest.err
22070   rm -f conftest.er1
22071   cat conftest.err >&5
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); } &&
22074          { ac_try='test -z "$ac_cxx_werror_flag"
22075                          || test ! -s conftest.err'
22076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077   (eval $ac_try) 2>&5
22078   ac_status=$?
22079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080   (exit $ac_status); }; } &&
22081          { ac_try='test -s conftest.$ac_objext'
22082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083   (eval $ac_try) 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); }; }; then
22087   ac_cv_func_std_isinf_in_cmath=yes
22088 else
22089   echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092 ac_cv_func_std_isinf_in_cmath=no
22093 fi
22094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22095  ac_ext=c
22096 ac_cpp='$CPP $CPPFLAGS'
22097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22100
22101 fi
22102 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22103 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22104  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22105  then
22106
22107 cat >>confdefs.h <<\_ACEOF
22108 #define HAVE_STD_ISINF_IN_CMATH 1
22109 _ACEOF
22110
22111  fi
22112 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22113 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22114 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22115   echo $ECHO_N "(cached) $ECHO_C" >&6
22116 else
22117   ac_ext=cc
22118 ac_cpp='$CXXCPP $CPPFLAGS'
22119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22122
22123   cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h.  */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h.  */
22129 #include <ieeefp.h>
22130                      int foo(float f) {return finite(f);}
22131 _ACEOF
22132 rm -f conftest.$ac_objext
22133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22134   (eval $ac_compile) 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } &&
22141          { ac_try='test -z "$ac_cxx_werror_flag"
22142                          || test ! -s conftest.err'
22143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144   (eval $ac_try) 2>&5
22145   ac_status=$?
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); }; } &&
22148          { ac_try='test -s conftest.$ac_objext'
22149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150   (eval $ac_try) 2>&5
22151   ac_status=$?
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); }; }; then
22154   ac_cv_func_finite_in_ieeefp_h=yes
22155 else
22156   echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159 ac_cv_func_finite_in_ieeefp_h=no
22160 fi
22161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22162  ac_ext=c
22163 ac_cpp='$CPP $CPPFLAGS'
22164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22167
22168 fi
22169 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22170 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22171  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22172  then
22173
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_FINITE_IN_IEEEFP_H 1
22176 _ACEOF
22177
22178  fi
22179
22180
22181 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22182 # for constant arguments.  Useless!
22183 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22184 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22185 if test "${ac_cv_working_alloca_h+set}" = set; then
22186   echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188   cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194 #include <alloca.h>
22195 int
22196 main ()
22197 {
22198 char *p = (char *) alloca (2 * sizeof (int));
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest.$ac_objext conftest$ac_exeext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22205   (eval $ac_link) 2>conftest.er1
22206   ac_status=$?
22207   grep -v '^ *+' conftest.er1 >conftest.err
22208   rm -f conftest.er1
22209   cat conftest.err >&5
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } &&
22212          { ac_try='test -z "$ac_c_werror_flag"
22213                          || test ! -s conftest.err'
22214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215   (eval $ac_try) 2>&5
22216   ac_status=$?
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); }; } &&
22219          { ac_try='test -s conftest$ac_exeext'
22220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221   (eval $ac_try) 2>&5
22222   ac_status=$?
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); }; }; then
22225   ac_cv_working_alloca_h=yes
22226 else
22227   echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230 ac_cv_working_alloca_h=no
22231 fi
22232 rm -f conftest.err conftest.$ac_objext \
22233       conftest$ac_exeext conftest.$ac_ext
22234 fi
22235 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22237 if test $ac_cv_working_alloca_h = yes; then
22238
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_ALLOCA_H 1
22241 _ACEOF
22242
22243 fi
22244
22245 echo "$as_me:$LINENO: checking for alloca" >&5
22246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22247 if test "${ac_cv_func_alloca_works+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 #ifdef __GNUC__
22257 # define alloca __builtin_alloca
22258 #else
22259 # ifdef _MSC_VER
22260 #  include <malloc.h>
22261 #  define alloca _alloca
22262 # else
22263 #  if HAVE_ALLOCA_H
22264 #   include <alloca.h>
22265 #  else
22266 #   ifdef _AIX
22267  #pragma alloca
22268 #   else
22269 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22270 char *alloca ();
22271 #    endif
22272 #   endif
22273 #  endif
22274 # endif
22275 #endif
22276
22277 int
22278 main ()
22279 {
22280 char *p = (char *) alloca (1);
22281   ;
22282   return 0;
22283 }
22284 _ACEOF
22285 rm -f conftest.$ac_objext conftest$ac_exeext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287   (eval $ac_link) 2>conftest.er1
22288   ac_status=$?
22289   grep -v '^ *+' conftest.er1 >conftest.err
22290   rm -f conftest.er1
22291   cat conftest.err >&5
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); } &&
22294          { ac_try='test -z "$ac_c_werror_flag"
22295                          || test ! -s conftest.err'
22296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22297   (eval $ac_try) 2>&5
22298   ac_status=$?
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); }; } &&
22301          { ac_try='test -s conftest$ac_exeext'
22302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303   (eval $ac_try) 2>&5
22304   ac_status=$?
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); }; }; then
22307   ac_cv_func_alloca_works=yes
22308 else
22309   echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312 ac_cv_func_alloca_works=no
22313 fi
22314 rm -f conftest.err conftest.$ac_objext \
22315       conftest$ac_exeext conftest.$ac_ext
22316 fi
22317 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22318 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22319
22320 if test $ac_cv_func_alloca_works = yes; then
22321
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_ALLOCA 1
22324 _ACEOF
22325
22326 else
22327   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22328 # that cause trouble.  Some versions do not even contain alloca or
22329 # contain a buggy version.  If you still want to use their alloca,
22330 # use ar to extract alloca.o from them instead of compiling alloca.c.
22331
22332 ALLOCA=alloca.$ac_objext
22333
22334 cat >>confdefs.h <<\_ACEOF
22335 #define C_ALLOCA 1
22336 _ACEOF
22337
22338
22339 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22340 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22341 if test "${ac_cv_os_cray+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 #if defined(CRAY) && ! defined(CRAY2)
22351 webecray
22352 #else
22353 wenotbecray
22354 #endif
22355
22356 _ACEOF
22357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22358   $EGREP "webecray" >/dev/null 2>&1; then
22359   ac_cv_os_cray=yes
22360 else
22361   ac_cv_os_cray=no
22362 fi
22363 rm -f conftest*
22364
22365 fi
22366 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22367 echo "${ECHO_T}$ac_cv_os_cray" >&6
22368 if test $ac_cv_os_cray = yes; then
22369   for ac_func in _getb67 GETB67 getb67; do
22370     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22371 echo "$as_me:$LINENO: checking for $ac_func" >&5
22372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22373 if eval "test \"\${$as_ac_var+set}\" = set"; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376   cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22384 #define $ac_func innocuous_$ac_func
22385
22386 /* System header to define __stub macros and hopefully few prototypes,
22387     which can conflict with char $ac_func (); below.
22388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22389     <limits.h> exists even on freestanding compilers.  */
22390
22391 #ifdef __STDC__
22392 # include <limits.h>
22393 #else
22394 # include <assert.h>
22395 #endif
22396
22397 #undef $ac_func
22398
22399 /* Override any gcc2 internal prototype to avoid an error.  */
22400 #ifdef __cplusplus
22401 extern "C"
22402 {
22403 #endif
22404 /* We use char because int might match the return type of a gcc2
22405    builtin and then its argument prototype would still apply.  */
22406 char $ac_func ();
22407 /* The GNU C library defines this for functions which it implements
22408     to always fail with ENOSYS.  Some functions are actually named
22409     something starting with __ and the normal name is an alias.  */
22410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22411 choke me
22412 #else
22413 char (*f) () = $ac_func;
22414 #endif
22415 #ifdef __cplusplus
22416 }
22417 #endif
22418
22419 int
22420 main ()
22421 {
22422 return f != $ac_func;
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext conftest$ac_exeext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22429   (eval $ac_link) 2>conftest.er1
22430   ac_status=$?
22431   grep -v '^ *+' conftest.er1 >conftest.err
22432   rm -f conftest.er1
22433   cat conftest.err >&5
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } &&
22436          { ac_try='test -z "$ac_c_werror_flag"
22437                          || test ! -s conftest.err'
22438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439   (eval $ac_try) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; } &&
22443          { ac_try='test -s conftest$ac_exeext'
22444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445   (eval $ac_try) 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; }; then
22449   eval "$as_ac_var=yes"
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 eval "$as_ac_var=no"
22455 fi
22456 rm -f conftest.err conftest.$ac_objext \
22457       conftest$ac_exeext conftest.$ac_ext
22458 fi
22459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22461 if test `eval echo '${'$as_ac_var'}'` = yes; then
22462
22463 cat >>confdefs.h <<_ACEOF
22464 #define CRAY_STACKSEG_END $ac_func
22465 _ACEOF
22466
22467     break
22468 fi
22469
22470   done
22471 fi
22472
22473 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22474 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22475 if test "${ac_cv_c_stack_direction+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   if test "$cross_compiling" = yes; then
22479   ac_cv_c_stack_direction=0
22480 else
22481   cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 int
22488 find_stack_direction ()
22489 {
22490   static char *addr = 0;
22491   auto char dummy;
22492   if (addr == 0)
22493     {
22494       addr = &dummy;
22495       return find_stack_direction ();
22496     }
22497   else
22498     return (&dummy > addr) ? 1 : -1;
22499 }
22500
22501 int
22502 main ()
22503 {
22504   exit (find_stack_direction () < 0);
22505 }
22506 _ACEOF
22507 rm -f conftest$ac_exeext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509   (eval $ac_link) 2>&5
22510   ac_status=$?
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   ac_cv_c_stack_direction=1
22519 else
22520   echo "$as_me: program exited with status $ac_status" >&5
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 ( exit $ac_status )
22525 ac_cv_c_stack_direction=-1
22526 fi
22527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22528 fi
22529 fi
22530 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22531 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22532
22533 cat >>confdefs.h <<_ACEOF
22534 #define STACK_DIRECTION $ac_cv_c_stack_direction
22535 _ACEOF
22536
22537
22538 fi
22539
22540
22541
22542 for ac_header in stdlib.h unistd.h
22543 do
22544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22546   echo "$as_me:$LINENO: checking for $ac_header" >&5
22547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22549   echo $ECHO_N "(cached) $ECHO_C" >&6
22550 fi
22551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22553 else
22554   # Is the header compilable?
22555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22557 cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563 $ac_includes_default
22564 #include <$ac_header>
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568   (eval $ac_compile) 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } &&
22575          { ac_try='test -z "$ac_c_werror_flag"
22576                          || test ! -s conftest.err'
22577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578   (eval $ac_try) 2>&5
22579   ac_status=$?
22580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581   (exit $ac_status); }; } &&
22582          { ac_try='test -s conftest.$ac_objext'
22583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584   (eval $ac_try) 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); }; }; then
22588   ac_header_compiler=yes
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 ac_header_compiler=no
22594 fi
22595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22597 echo "${ECHO_T}$ac_header_compiler" >&6
22598
22599 # Is the header present?
22600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22602 cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h.  */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h.  */
22608 #include <$ac_header>
22609 _ACEOF
22610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22612   ac_status=$?
22613   grep -v '^ *+' conftest.er1 >conftest.err
22614   rm -f conftest.er1
22615   cat conftest.err >&5
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } >/dev/null; then
22618   if test -s conftest.err; then
22619     ac_cpp_err=$ac_c_preproc_warn_flag
22620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22621   else
22622     ac_cpp_err=
22623   fi
22624 else
22625   ac_cpp_err=yes
22626 fi
22627 if test -z "$ac_cpp_err"; then
22628   ac_header_preproc=yes
22629 else
22630   echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22632
22633   ac_header_preproc=no
22634 fi
22635 rm -f conftest.err conftest.$ac_ext
22636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22637 echo "${ECHO_T}$ac_header_preproc" >&6
22638
22639 # So?  What about this header?
22640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22641   yes:no: )
22642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22646     ac_header_preproc=yes
22647     ;;
22648   no:yes:* )
22649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22661     (
22662       cat <<\_ASBOX
22663 ## ----------------------------------- ##
22664 ## Report this to llvmbugs@cs.uiuc.edu ##
22665 ## ----------------------------------- ##
22666 _ASBOX
22667     ) |
22668       sed "s/^/$as_me: WARNING:     /" >&2
22669     ;;
22670 esac
22671 echo "$as_me:$LINENO: checking for $ac_header" >&5
22672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22674   echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22676   eval "$as_ac_Header=\$ac_header_preproc"
22677 fi
22678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22680
22681 fi
22682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22683   cat >>confdefs.h <<_ACEOF
22684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22685 _ACEOF
22686
22687 fi
22688
22689 done
22690
22691
22692 for ac_func in getpagesize
22693 do
22694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22695 echo "$as_me:$LINENO: checking for $ac_func" >&5
22696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22697 if eval "test \"\${$as_ac_var+set}\" = set"; then
22698   echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700   cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22708 #define $ac_func innocuous_$ac_func
22709
22710 /* System header to define __stub macros and hopefully few prototypes,
22711     which can conflict with char $ac_func (); below.
22712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22713     <limits.h> exists even on freestanding compilers.  */
22714
22715 #ifdef __STDC__
22716 # include <limits.h>
22717 #else
22718 # include <assert.h>
22719 #endif
22720
22721 #undef $ac_func
22722
22723 /* Override any gcc2 internal prototype to avoid an error.  */
22724 #ifdef __cplusplus
22725 extern "C"
22726 {
22727 #endif
22728 /* We use char because int might match the return type of a gcc2
22729    builtin and then its argument prototype would still apply.  */
22730 char $ac_func ();
22731 /* The GNU C library defines this for functions which it implements
22732     to always fail with ENOSYS.  Some functions are actually named
22733     something starting with __ and the normal name is an alias.  */
22734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22735 choke me
22736 #else
22737 char (*f) () = $ac_func;
22738 #endif
22739 #ifdef __cplusplus
22740 }
22741 #endif
22742
22743 int
22744 main ()
22745 {
22746 return f != $ac_func;
22747   ;
22748   return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22753   (eval $ac_link) 2>conftest.er1
22754   ac_status=$?
22755   grep -v '^ *+' conftest.er1 >conftest.err
22756   rm -f conftest.er1
22757   cat conftest.err >&5
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); } &&
22760          { ac_try='test -z "$ac_c_werror_flag"
22761                          || test ! -s conftest.err'
22762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763   (eval $ac_try) 2>&5
22764   ac_status=$?
22765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766   (exit $ac_status); }; } &&
22767          { ac_try='test -s conftest$ac_exeext'
22768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769   (eval $ac_try) 2>&5
22770   ac_status=$?
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); }; }; then
22773   eval "$as_ac_var=yes"
22774 else
22775   echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778 eval "$as_ac_var=no"
22779 fi
22780 rm -f conftest.err conftest.$ac_objext \
22781       conftest$ac_exeext conftest.$ac_ext
22782 fi
22783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22785 if test `eval echo '${'$as_ac_var'}'` = yes; then
22786   cat >>confdefs.h <<_ACEOF
22787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22788 _ACEOF
22789
22790 fi
22791 done
22792
22793 echo "$as_me:$LINENO: checking for working mmap" >&5
22794 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22796   echo $ECHO_N "(cached) $ECHO_C" >&6
22797 else
22798   if test "$cross_compiling" = yes; then
22799   ac_cv_func_mmap_fixed_mapped=no
22800 else
22801   cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807 $ac_includes_default
22808 /* malloc might have been renamed as rpl_malloc. */
22809 #undef malloc
22810
22811 /* Thanks to Mike Haertel and Jim Avera for this test.
22812    Here is a matrix of mmap possibilities:
22813         mmap private not fixed
22814         mmap private fixed at somewhere currently unmapped
22815         mmap private fixed at somewhere already mapped
22816         mmap shared not fixed
22817         mmap shared fixed at somewhere currently unmapped
22818         mmap shared fixed at somewhere already mapped
22819    For private mappings, we should verify that changes cannot be read()
22820    back from the file, nor mmap's back from the file at a different
22821    address.  (There have been systems where private was not correctly
22822    implemented like the infamous i386 svr4.0, and systems where the
22823    VM page cache was not coherent with the file system buffer cache
22824    like early versions of FreeBSD and possibly contemporary NetBSD.)
22825    For shared mappings, we should conversely verify that changes get
22826    propagated back to all the places they're supposed to be.
22827
22828    Grep wants private fixed already mapped.
22829    The main things grep needs to know about mmap are:
22830    * does it exist and is it safe to write into the mmap'd area
22831    * how to use it (BSD variants)  */
22832
22833 #include <fcntl.h>
22834 #include <sys/mman.h>
22835
22836 #if !STDC_HEADERS && !HAVE_STDLIB_H
22837 char *malloc ();
22838 #endif
22839
22840 /* This mess was copied from the GNU getpagesize.h.  */
22841 #if !HAVE_GETPAGESIZE
22842 /* Assume that all systems that can run configure have sys/param.h.  */
22843 # if !HAVE_SYS_PARAM_H
22844 #  define HAVE_SYS_PARAM_H 1
22845 # endif
22846
22847 # ifdef _SC_PAGESIZE
22848 #  define getpagesize() sysconf(_SC_PAGESIZE)
22849 # else /* no _SC_PAGESIZE */
22850 #  if HAVE_SYS_PARAM_H
22851 #   include <sys/param.h>
22852 #   ifdef EXEC_PAGESIZE
22853 #    define getpagesize() EXEC_PAGESIZE
22854 #   else /* no EXEC_PAGESIZE */
22855 #    ifdef NBPG
22856 #     define getpagesize() NBPG * CLSIZE
22857 #     ifndef CLSIZE
22858 #      define CLSIZE 1
22859 #     endif /* no CLSIZE */
22860 #    else /* no NBPG */
22861 #     ifdef NBPC
22862 #      define getpagesize() NBPC
22863 #     else /* no NBPC */
22864 #      ifdef PAGESIZE
22865 #       define getpagesize() PAGESIZE
22866 #      endif /* PAGESIZE */
22867 #     endif /* no NBPC */
22868 #    endif /* no NBPG */
22869 #   endif /* no EXEC_PAGESIZE */
22870 #  else /* no HAVE_SYS_PARAM_H */
22871 #   define getpagesize() 8192   /* punt totally */
22872 #  endif /* no HAVE_SYS_PARAM_H */
22873 # endif /* no _SC_PAGESIZE */
22874
22875 #endif /* no HAVE_GETPAGESIZE */
22876
22877 int
22878 main ()
22879 {
22880   char *data, *data2, *data3;
22881   int i, pagesize;
22882   int fd;
22883
22884   pagesize = getpagesize ();
22885
22886   /* First, make a file with some known garbage in it. */
22887   data = (char *) malloc (pagesize);
22888   if (!data)
22889     exit (1);
22890   for (i = 0; i < pagesize; ++i)
22891     *(data + i) = rand ();
22892   umask (0);
22893   fd = creat ("conftest.mmap", 0600);
22894   if (fd < 0)
22895     exit (1);
22896   if (write (fd, data, pagesize) != pagesize)
22897     exit (1);
22898   close (fd);
22899
22900   /* Next, try to mmap the file at a fixed address which already has
22901      something else allocated at it.  If we can, also make sure that
22902      we see the same garbage.  */
22903   fd = open ("conftest.mmap", O_RDWR);
22904   if (fd < 0)
22905     exit (1);
22906   data2 = (char *) malloc (2 * pagesize);
22907   if (!data2)
22908     exit (1);
22909   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22910   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22911                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22912     exit (1);
22913   for (i = 0; i < pagesize; ++i)
22914     if (*(data + i) != *(data2 + i))
22915       exit (1);
22916
22917   /* Finally, make sure that changes to the mapped area do not
22918      percolate back to the file as seen by read().  (This is a bug on
22919      some variants of i386 svr4.0.)  */
22920   for (i = 0; i < pagesize; ++i)
22921     *(data2 + i) = *(data2 + i) + 1;
22922   data3 = (char *) malloc (pagesize);
22923   if (!data3)
22924     exit (1);
22925   if (read (fd, data3, pagesize) != pagesize)
22926     exit (1);
22927   for (i = 0; i < pagesize; ++i)
22928     if (*(data + i) != *(data3 + i))
22929       exit (1);
22930   close (fd);
22931   exit (0);
22932 }
22933 _ACEOF
22934 rm -f conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936   (eval $ac_link) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941   (eval $ac_try) 2>&5
22942   ac_status=$?
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); }; }; then
22945   ac_cv_func_mmap_fixed_mapped=yes
22946 else
22947   echo "$as_me: program exited with status $ac_status" >&5
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951 ( exit $ac_status )
22952 ac_cv_func_mmap_fixed_mapped=no
22953 fi
22954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22955 fi
22956 fi
22957 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22958 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22959 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22960
22961 cat >>confdefs.h <<\_ACEOF
22962 #define HAVE_MMAP 1
22963 _ACEOF
22964
22965 fi
22966 rm -f conftest.mmap
22967
22968 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22969 then
22970         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22971 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22972 fi
22973 echo "$as_me:$LINENO: checking for mmap of files" >&5
22974 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22975 if test "${ac_cv_func_mmap_file+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978
22979
22980   ac_ext=c
22981 ac_cpp='$CPP $CPPFLAGS'
22982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22985
22986   if test "$cross_compiling" = yes; then
22987   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22988 See \`config.log' for more details." >&5
22989 echo "$as_me: error: cannot run test program while cross compiling
22990 See \`config.log' for more details." >&2;}
22991    { (exit 1); exit 1; }; }
22992 else
22993   cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h.  */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h.  */
22999
23000 #ifdef HAVE_SYS_TYPES_H
23001 #include <sys/types.h>
23002 #endif
23003
23004 #ifdef HAVE_SYS_MMAN_H
23005 #include <sys/mman.h>
23006 #endif
23007
23008 #ifdef HAVE_FCNTL_H
23009 #include <fcntl.h>
23010 #endif
23011
23012   int fd;
23013   int main () {
23014   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
23015 _ACEOF
23016 rm -f conftest$ac_exeext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23018   (eval $ac_link) 2>&5
23019   ac_status=$?
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023   (eval $ac_try) 2>&5
23024   ac_status=$?
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); }; }; then
23027   ac_cv_func_mmap_file=yes
23028 else
23029   echo "$as_me: program exited with status $ac_status" >&5
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033 ( exit $ac_status )
23034 ac_cv_func_mmap_file=no
23035 fi
23036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23037 fi
23038   ac_ext=c
23039 ac_cpp='$CPP $CPPFLAGS'
23040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23043
23044
23045 fi
23046 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23047 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23048 if test "$ac_cv_func_mmap_file" = yes; then
23049
23050 cat >>confdefs.h <<\_ACEOF
23051 #define HAVE_MMAP_FILE
23052 _ACEOF
23053
23054    MMAP_FILE=yes
23055
23056 fi
23057
23058 if test "$ac_cv_func_mmap_file" = "no"
23059 then
23060         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23061 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23062 fi
23063 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23064 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23065 if test "${ac_cv_header_mmap_anon+set}" = set; then
23066   echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068
23069
23070   ac_ext=c
23071 ac_cpp='$CPP $CPPFLAGS'
23072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075
23076   cat >conftest.$ac_ext <<_ACEOF
23077 /* confdefs.h.  */
23078 _ACEOF
23079 cat confdefs.h >>conftest.$ac_ext
23080 cat >>conftest.$ac_ext <<_ACEOF
23081 /* end confdefs.h.  */
23082 #include <sys/mman.h>
23083   #include <unistd.h>
23084   #include <fcntl.h>
23085 int
23086 main ()
23087 {
23088 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 rm -f conftest.$ac_objext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23095   (eval $ac_compile) 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } &&
23102          { ac_try='test -z "$ac_c_werror_flag"
23103                          || test ! -s conftest.err'
23104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105   (eval $ac_try) 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; } &&
23109          { ac_try='test -s conftest.$ac_objext'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; }; then
23115   ac_cv_header_mmap_anon=yes
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120 ac_cv_header_mmap_anon=no
23121 fi
23122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23123   ac_ext=c
23124 ac_cpp='$CPP $CPPFLAGS'
23125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23128
23129
23130 fi
23131 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23132 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23133 if test "$ac_cv_header_mmap_anon" = yes; then
23134
23135 cat >>confdefs.h <<\_ACEOF
23136 #define HAVE_MMAP_ANONYMOUS
23137 _ACEOF
23138
23139 fi
23140
23141 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23143 if test "${ac_cv_type_signal+set}" = set; then
23144   echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146   cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 #include <sys/types.h>
23153 #include <signal.h>
23154 #ifdef signal
23155 # undef signal
23156 #endif
23157 #ifdef __cplusplus
23158 extern "C" void (*signal (int, void (*)(int)))(int);
23159 #else
23160 void (*signal ()) ();
23161 #endif
23162
23163 int
23164 main ()
23165 {
23166 int i;
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173   (eval $ac_compile) 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } &&
23180          { ac_try='test -z "$ac_c_werror_flag"
23181                          || test ! -s conftest.err'
23182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183   (eval $ac_try) 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; } &&
23187          { ac_try='test -s conftest.$ac_objext'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; }; then
23193   ac_cv_type_signal=void
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198 ac_cv_type_signal=int
23199 fi
23200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23201 fi
23202 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23203 echo "${ECHO_T}$ac_cv_type_signal" >&6
23204
23205 cat >>confdefs.h <<_ACEOF
23206 #define RETSIGTYPE $ac_cv_type_signal
23207 _ACEOF
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23220 do
23221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23222 echo "$as_me:$LINENO: checking for $ac_func" >&5
23223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23224 if eval "test \"\${$as_ac_var+set}\" = set"; then
23225   echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227   cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h.  */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h.  */
23233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23235 #define $ac_func innocuous_$ac_func
23236
23237 /* System header to define __stub macros and hopefully few prototypes,
23238     which can conflict with char $ac_func (); below.
23239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240     <limits.h> exists even on freestanding compilers.  */
23241
23242 #ifdef __STDC__
23243 # include <limits.h>
23244 #else
23245 # include <assert.h>
23246 #endif
23247
23248 #undef $ac_func
23249
23250 /* Override any gcc2 internal prototype to avoid an error.  */
23251 #ifdef __cplusplus
23252 extern "C"
23253 {
23254 #endif
23255 /* We use char because int might match the return type of a gcc2
23256    builtin and then its argument prototype would still apply.  */
23257 char $ac_func ();
23258 /* The GNU C library defines this for functions which it implements
23259     to always fail with ENOSYS.  Some functions are actually named
23260     something starting with __ and the normal name is an alias.  */
23261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23262 choke me
23263 #else
23264 char (*f) () = $ac_func;
23265 #endif
23266 #ifdef __cplusplus
23267 }
23268 #endif
23269
23270 int
23271 main ()
23272 {
23273 return f != $ac_func;
23274   ;
23275   return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280   (eval $ac_link) 2>conftest.er1
23281   ac_status=$?
23282   grep -v '^ *+' conftest.er1 >conftest.err
23283   rm -f conftest.er1
23284   cat conftest.err >&5
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); } &&
23287          { ac_try='test -z "$ac_c_werror_flag"
23288                          || test ! -s conftest.err'
23289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290   (eval $ac_try) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); }; } &&
23294          { ac_try='test -s conftest$ac_exeext'
23295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); }; }; then
23300   eval "$as_ac_var=yes"
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 eval "$as_ac_var=no"
23306 fi
23307 rm -f conftest.err conftest.$ac_objext \
23308       conftest$ac_exeext conftest.$ac_ext
23309 fi
23310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23312 if test `eval echo '${'$as_ac_var'}'` = yes; then
23313   cat >>confdefs.h <<_ACEOF
23314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23315 _ACEOF
23316
23317 fi
23318 done
23319
23320 echo "$as_me:$LINENO: checking for mprotect" >&5
23321 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23322 if test "${ac_cv_func_mprotect+set}" = set; then
23323   echo $ECHO_N "(cached) $ECHO_C" >&6
23324 else
23325   cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23333 #define mprotect innocuous_mprotect
23334
23335 /* System header to define __stub macros and hopefully few prototypes,
23336     which can conflict with char mprotect (); below.
23337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23338     <limits.h> exists even on freestanding compilers.  */
23339
23340 #ifdef __STDC__
23341 # include <limits.h>
23342 #else
23343 # include <assert.h>
23344 #endif
23345
23346 #undef mprotect
23347
23348 /* Override any gcc2 internal prototype to avoid an error.  */
23349 #ifdef __cplusplus
23350 extern "C"
23351 {
23352 #endif
23353 /* We use char because int might match the return type of a gcc2
23354    builtin and then its argument prototype would still apply.  */
23355 char mprotect ();
23356 /* The GNU C library defines this for functions which it implements
23357     to always fail with ENOSYS.  Some functions are actually named
23358     something starting with __ and the normal name is an alias.  */
23359 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23360 choke me
23361 #else
23362 char (*f) () = mprotect;
23363 #endif
23364 #ifdef __cplusplus
23365 }
23366 #endif
23367
23368 int
23369 main ()
23370 {
23371 return f != mprotect;
23372   ;
23373   return 0;
23374 }
23375 _ACEOF
23376 rm -f conftest.$ac_objext conftest$ac_exeext
23377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23378   (eval $ac_link) 2>conftest.er1
23379   ac_status=$?
23380   grep -v '^ *+' conftest.er1 >conftest.err
23381   rm -f conftest.er1
23382   cat conftest.err >&5
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); } &&
23385          { ac_try='test -z "$ac_c_werror_flag"
23386                          || test ! -s conftest.err'
23387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388   (eval $ac_try) 2>&5
23389   ac_status=$?
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); }; } &&
23392          { ac_try='test -s conftest$ac_exeext'
23393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394   (eval $ac_try) 2>&5
23395   ac_status=$?
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); }; }; then
23398   ac_cv_func_mprotect=yes
23399 else
23400   echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_cv_func_mprotect=no
23404 fi
23405 rm -f conftest.err conftest.$ac_objext \
23406       conftest$ac_exeext conftest.$ac_ext
23407 fi
23408 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23409 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23410 if test $ac_cv_func_mprotect = yes; then
23411   :
23412 else
23413   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23414 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23415    { (exit 1); exit 1; }; }
23416 fi
23417
23418
23419
23420   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23421 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23422
23423
23424   ac_ext=c
23425 ac_cpp='$CPP $CPPFLAGS'
23426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23429
23430   oldcflags="$CFLAGS"
23431   CFLAGS="$CFLAGS -Wl,-R."
23432   cat >conftest.$ac_ext <<_ACEOF
23433 int main() { return 0; }
23434 _ACEOF
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23437   (eval $ac_link) 2>conftest.er1
23438   ac_status=$?
23439   grep -v '^ *+' conftest.er1 >conftest.err
23440   rm -f conftest.er1
23441   cat conftest.err >&5
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); } &&
23444          { ac_try='test -z "$ac_c_werror_flag"
23445                          || test ! -s conftest.err'
23446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447   (eval $ac_try) 2>&5
23448   ac_status=$?
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); }; } &&
23451          { ac_try='test -s conftest$ac_exeext'
23452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); }; }; then
23457   ac_cv_link_use_r=yes
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462 ac_cv_link_use_r=no
23463 fi
23464 rm -f conftest.err conftest.$ac_objext \
23465       conftest$ac_exeext conftest.$ac_ext
23466   CFLAGS="$oldcflags"
23467   ac_ext=c
23468 ac_cpp='$CPP $CPPFLAGS'
23469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23472
23473   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23474 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23475   if test "$ac_cv_link_use_r" = yes
23476   then
23477
23478 cat >>confdefs.h <<\_ACEOF
23479 #define HAVE_LINK_R 1
23480 _ACEOF
23481
23482   fi
23483
23484
23485 # Check whether --enable-optimized or --disable-optimized was given.
23486 if test "${enable_optimized+set}" = set; then
23487   enableval="$enable_optimized"
23488
23489 else
23490   enableval=no
23491 fi;
23492 if test ${enableval} = "no"
23493 then
23494         ENABLE_OPTIMIZED=
23495
23496 else
23497         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23498
23499 fi
23500
23501
23502
23503
23504  # Check whether --enable-spec95 or --disable-spec95 was given.
23505 if test "${enable_spec95+set}" = set; then
23506   enableval="$enable_spec95"
23507   checkresult=$enableval
23508 else
23509   checkresult=auto
23510 fi;
23511 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23512 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23513 case "$checkresult" in
23514 auto|yes)
23515     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23516         if test -d "$defaultdir"
23517         then
23518                 SPEC95_ROOT=$defaultdir
23519
23520                 USE_SPEC95=USE_SPEC95=1
23521
23522         checkresult="yes, found in $defaultdir"
23523     else
23524         checkresult=no
23525     fi
23526     ;;
23527 no)
23528
23529
23530     checkresult=no
23531     ;;
23532 *)  if test -d "$checkresult"
23533     then
23534         SPEC95_ROOT="$checkresult"
23535
23536         USE_SPEC95=USE_SPEC95=1
23537
23538         checkresult="yes, in $checkresult"
23539     else
23540
23541
23542         checkresult="no, not found in $checkresult"
23543     fi
23544     ;;
23545 esac
23546 echo "$as_me:$LINENO: result: $checkresult" >&5
23547 echo "${ECHO_T}$checkresult" >&6
23548
23549
23550
23551  # Check whether --enable-spec2000 or --disable-spec2000 was given.
23552 if test "${enable_spec2000+set}" = set; then
23553   enableval="$enable_spec2000"
23554   checkresult=$enableval
23555 else
23556   checkresult=auto
23557 fi;
23558 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23559 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23560 case "$checkresult" in
23561 auto|yes)
23562     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23563         if test -d "$defaultdir"
23564         then
23565                 SPEC2000_ROOT=$defaultdir
23566
23567                 USE_SPEC2000=USE_SPEC2000=1
23568
23569         checkresult="yes, found in $defaultdir"
23570     else
23571         checkresult=no
23572     fi
23573     ;;
23574 no)
23575
23576
23577     checkresult=no
23578     ;;
23579 *)  if test -d "$checkresult"
23580     then
23581         SPEC2000_ROOT="$checkresult"
23582
23583         USE_SPEC2000=USE_SPEC2000=1
23584
23585         checkresult="yes, in $checkresult"
23586     else
23587
23588
23589         checkresult="no, not found in $checkresult"
23590     fi
23591     ;;
23592 esac
23593 echo "$as_me:$LINENO: result: $checkresult" >&5
23594 echo "${ECHO_T}$checkresult" >&6
23595
23596
23597
23598  # Check whether --enable-povray or --disable-povray was given.
23599 if test "${enable_povray+set}" = set; then
23600   enableval="$enable_povray"
23601   checkresult=$enableval
23602 else
23603   checkresult=auto
23604 fi;
23605 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23606 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23607 case "$checkresult" in
23608 auto|yes)
23609     defaultdir=/home/vadve/shared/benchmarks/povray31
23610         if test -d "$defaultdir"
23611         then
23612                 POVRAY_ROOT=$defaultdir
23613
23614                 USE_POVRAY=USE_POVRAY=1
23615
23616         checkresult="yes, found in $defaultdir"
23617     else
23618         checkresult=no
23619     fi
23620     ;;
23621 no)
23622
23623
23624     checkresult=no
23625     ;;
23626 *)  if test -d "$checkresult"
23627     then
23628         POVRAY_ROOT="$checkresult"
23629
23630         USE_POVRAY=USE_POVRAY=1
23631
23632         checkresult="yes, in $checkresult"
23633     else
23634
23635
23636         checkresult="no, not found in $checkresult"
23637     fi
23638     ;;
23639 esac
23640 echo "$as_me:$LINENO: result: $checkresult" >&5
23641 echo "${ECHO_T}$checkresult" >&6
23642
23643
23644
23645 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23646 if test "${enable_precompiled_bytecode+set}" = set; then
23647   enableval="$enable_precompiled_bytecode"
23648
23649 else
23650   enableval=no
23651 fi;
23652 if test ${enableval} = "no"
23653 then
23654         UPB=
23655
23656 else
23657         UPB=USE_PRECOMPILED_BYTECODE=1
23658
23659 fi
23660
23661 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23662 if test "${enable_llc_diffs+set}" = set; then
23663   enableval="$enable_llc_diffs"
23664
23665 else
23666   enableval=yes
23667 fi;
23668 if test ${enableval} = "no"
23669 then
23670         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23671
23672 else
23673         DISABLE_LLC_DIFFS=
23674
23675 fi
23676
23677 # Check whether --enable-jit or --disable-jit was given.
23678 if test "${enable_jit+set}" = set; then
23679   enableval="$enable_jit"
23680
23681 else
23682   enableval=default
23683 fi;
23684 if test ${enableval} = "no"
23685 then
23686         JIT=
23687
23688 else
23689         case $target in
23690                 *i*86*)
23691                         JIT=TARGET_HAS_JIT=1
23692
23693                         ;;
23694                 *sparc*)
23695                         JIT=TARGET_HAS_JIT=1
23696
23697                         ;;
23698                 *)
23699                         JIT=
23700
23701                         ;;
23702         esac
23703 fi
23704
23705
23706 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23707 if test "${with_llvmgccdir+set}" = set; then
23708   withval="$with_llvmgccdir"
23709   LLVMGCCDIR=$withval
23710
23711 fi;
23712 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23713 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23714 LLVM_GCC_CHECK=no
23715 if test -d "$LLVMGCCDIR"
23716 then
23717         if test -x "$LLVMGCCDIR/bin/gcc"
23718         then
23719                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23720         fi
23721 fi
23722 llvmgccwarn=no
23723 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23724 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23725 if test "$LLVM_GCC_CHECK" = "no"
23726 then
23727     llvmgccwarn=yes
23728 fi
23729 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23730 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23731 LLVM_GCC_SANE=no
23732 if test -x "$LLVM_GCC_CHECK"
23733 then
23734         cp /dev/null conftest.c
23735     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23736         if test $? -eq 0
23737         then
23738                 LLVM_GCC_SANE=yes
23739         fi
23740         rm conftest.c
23741         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23742         LLVMCC1=$llvmcc1path
23743
23744         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23745         LLVMCC1PLUS=$llvmcc1pluspath
23746
23747 fi
23748 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23749 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23750 if test "$LLVM_GCC_SANE" = "no"
23751 then
23752         llvmgccwarn=yes
23753 fi
23754
23755
23756 # Check whether --with-bcrepos or --without-bcrepos was given.
23757 if test "${with_bcrepos+set}" = set; then
23758   withval="$with_bcrepos"
23759   BCR=$withval
23760
23761 else
23762   BCR=/home/vadve/lattner/LLVMPrograms
23763
23764 fi;
23765
23766
23767 # Check whether --with-papi or --without-papi was given.
23768 if test "${with_papi+set}" = set; then
23769   withval="$with_papi"
23770   PAPIDIR=$withval
23771
23772 else
23773   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23774
23775 fi;
23776
23777 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23778 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23779 eval "SHLIBEXT=$shrext"
23780 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23781 echo "${ECHO_T}$SHLIBEXT" >&6
23782 SHLIBEXT=$SHLIBEXT
23783
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define SHLIBEXT "$SHLIBEXT"
23787 _ACEOF
23788
23789
23790 # Translate the various configuration directories and other basic
23791 # information into substitutions that will end up in config.h.in so
23792 # that these configured values can be hard-wired into a program.
23793 eval LLVM_PREFIX="${prefix}";
23794 eval LLVM_BINDIR="${prefix}/bin";
23795 eval LLVM_LIBDIR="${prefix}/lib";
23796 eval LLVM_DATADIR="${prefix}/data";
23797 eval LLVM_DOCSDIR="${prefix}/docs";
23798 eval LLVM_ETCDIR="${prefix}/etc";
23799 eval LLVM_INCLUDEDIR="${prefix}/include";
23800 eval LLVM_INFODIR="${prefix}/info";
23801 eval LLVM_MANDIR="${prefix}/man";
23802 LLVM_CONFIGTIME=`date`
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814 cat >>confdefs.h <<_ACEOF
23815 #define LLVM_PREFIX "$LLVM_PREFIX"
23816 _ACEOF
23817
23818
23819 cat >>confdefs.h <<_ACEOF
23820 #define LLVM_BINDIR "$LLVM_BINDIR"
23821 _ACEOF
23822
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23826 _ACEOF
23827
23828
23829 cat >>confdefs.h <<_ACEOF
23830 #define LLVM_DATADIR "$LLVM_DATADIR"
23831 _ACEOF
23832
23833
23834 cat >>confdefs.h <<_ACEOF
23835 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23836 _ACEOF
23837
23838
23839 cat >>confdefs.h <<_ACEOF
23840 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23841 _ACEOF
23842
23843
23844 cat >>confdefs.h <<_ACEOF
23845 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23846 _ACEOF
23847
23848
23849 cat >>confdefs.h <<_ACEOF
23850 #define LLVM_INFODIR "$LLVM_INFODIR"
23851 _ACEOF
23852
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define LLVM_MANDIR "$LLVM_MANDIR"
23856 _ACEOF
23857
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23861 _ACEOF
23862
23863
23864 cat >confcache <<\_ACEOF
23865 # This file is a shell script that caches the results of configure
23866 # tests run on this system so they can be shared between configure
23867 # scripts and configure runs, see configure's option --config-cache.
23868 # It is not useful on other systems.  If it contains results you don't
23869 # want to keep, you may remove or edit it.
23870 #
23871 # config.status only pays attention to the cache file if you give it
23872 # the --recheck option to rerun configure.
23873 #
23874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23876 # following values.
23877
23878 _ACEOF
23879
23880 # The following way of writing the cache mishandles newlines in values,
23881 # but we know of no workaround that is simple, portable, and efficient.
23882 # So, don't put newlines in cache variables' values.
23883 # Ultrix sh set writes to stderr and can't be redirected directly,
23884 # and sets the high bit in the cache file unless we assign to the vars.
23885 {
23886   (set) 2>&1 |
23887     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23888     *ac_space=\ *)
23889       # `set' does not quote correctly, so add quotes (double-quote
23890       # substitution turns \\\\ into \\, and sed turns \\ into \).
23891       sed -n \
23892         "s/'/'\\\\''/g;
23893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23894       ;;
23895     *)
23896       # `set' quotes correctly as required by POSIX, so do not add quotes.
23897       sed -n \
23898         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23899       ;;
23900     esac;
23901 } |
23902   sed '
23903      t clear
23904      : clear
23905      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23906      t end
23907      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23908      : end' >>confcache
23909 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23910   if test -w $cache_file; then
23911     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23912     cat confcache >$cache_file
23913   else
23914     echo "not updating unwritable cache $cache_file"
23915   fi
23916 fi
23917 rm -f confcache
23918
23919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23920 # Let make expand exec_prefix.
23921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23922
23923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23925 # trailing colons and then remove the whole line if VPATH becomes empty
23926 # (actually we leave an empty line to preserve line numbers).
23927 if test "x$srcdir" = x.; then
23928   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23929 s/:*\$(srcdir):*/:/;
23930 s/:*\${srcdir}:*/:/;
23931 s/:*@srcdir@:*/:/;
23932 s/^\([^=]*=[     ]*\):*/\1/;
23933 s/:*$//;
23934 s/^[^=]*=[       ]*$//;
23935 }'
23936 fi
23937
23938 DEFS=-DHAVE_CONFIG_H
23939
23940 ac_libobjs=
23941 ac_ltlibobjs=
23942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23943   # 1. Remove the extension, and $U if already installed.
23944   ac_i=`echo "$ac_i" |
23945          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23946   # 2. Add them.
23947   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23948   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23949 done
23950 LIBOBJS=$ac_libobjs
23951
23952 LTLIBOBJS=$ac_ltlibobjs
23953
23954
23955
23956 : ${CONFIG_STATUS=./config.status}
23957 ac_clean_files_save=$ac_clean_files
23958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23961 cat >$CONFIG_STATUS <<_ACEOF
23962 #! $SHELL
23963 # Generated by $as_me.
23964 # Run this file to recreate the current configuration.
23965 # Compiler output produced by configure, useful for debugging
23966 # configure, is in config.log if it exists.
23967
23968 debug=false
23969 ac_cs_recheck=false
23970 ac_cs_silent=false
23971 SHELL=\${CONFIG_SHELL-$SHELL}
23972 _ACEOF
23973
23974 cat >>$CONFIG_STATUS <<\_ACEOF
23975 ## --------------------- ##
23976 ## M4sh Initialization.  ##
23977 ## --------------------- ##
23978
23979 # Be Bourne compatible
23980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23981   emulate sh
23982   NULLCMD=:
23983   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23984   # is contrary to our usage.  Disable this feature.
23985   alias -g '${1+"$@"}'='"$@"'
23986 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23987   set -o posix
23988 fi
23989 DUALCASE=1; export DUALCASE # for MKS sh
23990
23991 # Support unset when possible.
23992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23993   as_unset=unset
23994 else
23995   as_unset=false
23996 fi
23997
23998
23999 # Work around bugs in pre-3.0 UWIN ksh.
24000 $as_unset ENV MAIL MAILPATH
24001 PS1='$ '
24002 PS2='> '
24003 PS4='+ '
24004
24005 # NLS nuisances.
24006 for as_var in \
24007   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24008   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24009   LC_TELEPHONE LC_TIME
24010 do
24011   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24012     eval $as_var=C; export $as_var
24013   else
24014     $as_unset $as_var
24015   fi
24016 done
24017
24018 # Required to use basename.
24019 if expr a : '\(a\)' >/dev/null 2>&1; then
24020   as_expr=expr
24021 else
24022   as_expr=false
24023 fi
24024
24025 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24026   as_basename=basename
24027 else
24028   as_basename=false
24029 fi
24030
24031
24032 # Name of the executable.
24033 as_me=`$as_basename "$0" ||
24034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24035          X"$0" : 'X\(//\)$' \| \
24036          X"$0" : 'X\(/\)$' \| \
24037          .     : '\(.\)' 2>/dev/null ||
24038 echo X/"$0" |
24039     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24040           /^X\/\(\/\/\)$/{ s//\1/; q; }
24041           /^X\/\(\/\).*/{ s//\1/; q; }
24042           s/.*/./; q'`
24043
24044
24045 # PATH needs CR, and LINENO needs CR and PATH.
24046 # Avoid depending upon Character Ranges.
24047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24050 as_cr_digits='0123456789'
24051 as_cr_alnum=$as_cr_Letters$as_cr_digits
24052
24053 # The user is always right.
24054 if test "${PATH_SEPARATOR+set}" != set; then
24055   echo "#! /bin/sh" >conf$$.sh
24056   echo  "exit 0"   >>conf$$.sh
24057   chmod +x conf$$.sh
24058   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24059     PATH_SEPARATOR=';'
24060   else
24061     PATH_SEPARATOR=:
24062   fi
24063   rm -f conf$$.sh
24064 fi
24065
24066
24067   as_lineno_1=$LINENO
24068   as_lineno_2=$LINENO
24069   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24070   test "x$as_lineno_1" != "x$as_lineno_2" &&
24071   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24072   # Find who we are.  Look in the path if we contain no path at all
24073   # relative or not.
24074   case $0 in
24075     *[\\/]* ) as_myself=$0 ;;
24076     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24077 for as_dir in $PATH
24078 do
24079   IFS=$as_save_IFS
24080   test -z "$as_dir" && as_dir=.
24081   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24082 done
24083
24084        ;;
24085   esac
24086   # We did not find ourselves, most probably we were run as `sh COMMAND'
24087   # in which case we are not to be found in the path.
24088   if test "x$as_myself" = x; then
24089     as_myself=$0
24090   fi
24091   if test ! -f "$as_myself"; then
24092     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24093 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24094    { (exit 1); exit 1; }; }
24095   fi
24096   case $CONFIG_SHELL in
24097   '')
24098     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24100 do
24101   IFS=$as_save_IFS
24102   test -z "$as_dir" && as_dir=.
24103   for as_base in sh bash ksh sh5; do
24104          case $as_dir in
24105          /*)
24106            if ("$as_dir/$as_base" -c '
24107   as_lineno_1=$LINENO
24108   as_lineno_2=$LINENO
24109   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24110   test "x$as_lineno_1" != "x$as_lineno_2" &&
24111   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24112              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24113              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24114              CONFIG_SHELL=$as_dir/$as_base
24115              export CONFIG_SHELL
24116              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24117            fi;;
24118          esac
24119        done
24120 done
24121 ;;
24122   esac
24123
24124   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24125   # uniformly replaced by the line number.  The first 'sed' inserts a
24126   # line-number line before each line; the second 'sed' does the real
24127   # work.  The second script uses 'N' to pair each line-number line
24128   # with the numbered line, and appends trailing '-' during
24129   # substitution so that $LINENO is not a special case at line end.
24130   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24131   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24132   sed '=' <$as_myself |
24133     sed '
24134       N
24135       s,$,-,
24136       : loop
24137       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24138       t loop
24139       s,-$,,
24140       s,^['$as_cr_digits']*\n,,
24141     ' >$as_me.lineno &&
24142   chmod +x $as_me.lineno ||
24143     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24144 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24145    { (exit 1); exit 1; }; }
24146
24147   # Don't try to exec as it changes $[0], causing all sort of problems
24148   # (the dirname of $[0] is not the place where we might find the
24149   # original and so on.  Autoconf is especially sensible to this).
24150   . ./$as_me.lineno
24151   # Exit status is that of the last command.
24152   exit
24153 }
24154
24155
24156 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24157   *c*,-n*) ECHO_N= ECHO_C='
24158 ' ECHO_T='      ' ;;
24159   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24160   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24161 esac
24162
24163 if expr a : '\(a\)' >/dev/null 2>&1; then
24164   as_expr=expr
24165 else
24166   as_expr=false
24167 fi
24168
24169 rm -f conf$$ conf$$.exe conf$$.file
24170 echo >conf$$.file
24171 if ln -s conf$$.file conf$$ 2>/dev/null; then
24172   # We could just check for DJGPP; but this test a) works b) is more generic
24173   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24174   if test -f conf$$.exe; then
24175     # Don't use ln at all; we don't have any links
24176     as_ln_s='cp -p'
24177   else
24178     as_ln_s='ln -s'
24179   fi
24180 elif ln conf$$.file conf$$ 2>/dev/null; then
24181   as_ln_s=ln
24182 else
24183   as_ln_s='cp -p'
24184 fi
24185 rm -f conf$$ conf$$.exe conf$$.file
24186
24187 if mkdir -p . 2>/dev/null; then
24188   as_mkdir_p=:
24189 else
24190   test -d ./-p && rmdir ./-p
24191   as_mkdir_p=false
24192 fi
24193
24194 as_executable_p="test -f"
24195
24196 # Sed expression to map a string onto a valid CPP name.
24197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24198
24199 # Sed expression to map a string onto a valid variable name.
24200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24201
24202
24203 # IFS
24204 # We need space, tab and new line, in precisely that order.
24205 as_nl='
24206 '
24207 IFS="   $as_nl"
24208
24209 # CDPATH.
24210 $as_unset CDPATH
24211
24212 exec 6>&1
24213
24214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24215 # report actual input values of CONFIG_FILES etc. instead of their
24216 # values after options handling.  Logging --version etc. is OK.
24217 exec 5>>config.log
24218 {
24219   echo
24220   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24221 ## Running $as_me. ##
24222 _ASBOX
24223 } >&5
24224 cat >&5 <<_CSEOF
24225
24226 This file was extended by LLVM $as_me 1.4, which was
24227 generated by GNU Autoconf 2.59.  Invocation command line was
24228
24229   CONFIG_FILES    = $CONFIG_FILES
24230   CONFIG_HEADERS  = $CONFIG_HEADERS
24231   CONFIG_LINKS    = $CONFIG_LINKS
24232   CONFIG_COMMANDS = $CONFIG_COMMANDS
24233   $ $0 $@
24234
24235 _CSEOF
24236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24237 echo >&5
24238 _ACEOF
24239
24240 # Files that config.status was made for.
24241 if test -n "$ac_config_files"; then
24242   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24243 fi
24244
24245 if test -n "$ac_config_headers"; then
24246   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24247 fi
24248
24249 if test -n "$ac_config_links"; then
24250   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24251 fi
24252
24253 if test -n "$ac_config_commands"; then
24254   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24255 fi
24256
24257 cat >>$CONFIG_STATUS <<\_ACEOF
24258
24259 ac_cs_usage="\
24260 \`$as_me' instantiates files from templates according to the
24261 current configuration.
24262
24263 Usage: $0 [OPTIONS] [FILE]...
24264
24265   -h, --help       print this help, then exit
24266   -V, --version    print version number, then exit
24267   -q, --quiet      do not print progress messages
24268   -d, --debug      don't remove temporary files
24269       --recheck    update $as_me by reconfiguring in the same conditions
24270   --file=FILE[:TEMPLATE]
24271                    instantiate the configuration file FILE
24272   --header=FILE[:TEMPLATE]
24273                    instantiate the configuration header FILE
24274
24275 Configuration files:
24276 $config_files
24277
24278 Configuration headers:
24279 $config_headers
24280
24281 Configuration links:
24282 $config_links
24283
24284 Configuration commands:
24285 $config_commands
24286
24287 Report bugs to <bug-autoconf@gnu.org>."
24288 _ACEOF
24289
24290 cat >>$CONFIG_STATUS <<_ACEOF
24291 ac_cs_version="\\
24292 LLVM config.status 1.4
24293 configured by $0, generated by GNU Autoconf 2.59,
24294   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24295
24296 Copyright (C) 2003 Free Software Foundation, Inc.
24297 This config.status script is free software; the Free Software Foundation
24298 gives unlimited permission to copy, distribute and modify it."
24299 srcdir=$srcdir
24300 INSTALL="$INSTALL"
24301 _ACEOF
24302
24303 cat >>$CONFIG_STATUS <<\_ACEOF
24304 # If no file are specified by the user, then we need to provide default
24305 # value.  By we need to know if files were specified by the user.
24306 ac_need_defaults=:
24307 while test $# != 0
24308 do
24309   case $1 in
24310   --*=*)
24311     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24312     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24313     ac_shift=:
24314     ;;
24315   -*)
24316     ac_option=$1
24317     ac_optarg=$2
24318     ac_shift=shift
24319     ;;
24320   *) # This is not an option, so the user has probably given explicit
24321      # arguments.
24322      ac_option=$1
24323      ac_need_defaults=false;;
24324   esac
24325
24326   case $ac_option in
24327   # Handling of the options.
24328 _ACEOF
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24330   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24331     ac_cs_recheck=: ;;
24332   --version | --vers* | -V )
24333     echo "$ac_cs_version"; exit 0 ;;
24334   --he | --h)
24335     # Conflict between --help and --header
24336     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24337 Try \`$0 --help' for more information." >&5
24338 echo "$as_me: error: ambiguous option: $1
24339 Try \`$0 --help' for more information." >&2;}
24340    { (exit 1); exit 1; }; };;
24341   --help | --hel | -h )
24342     echo "$ac_cs_usage"; exit 0 ;;
24343   --debug | --d* | -d )
24344     debug=: ;;
24345   --file | --fil | --fi | --f )
24346     $ac_shift
24347     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24348     ac_need_defaults=false;;
24349   --header | --heade | --head | --hea )
24350     $ac_shift
24351     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24352     ac_need_defaults=false;;
24353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24354   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24355     ac_cs_silent=: ;;
24356
24357   # This is an error.
24358   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24359 Try \`$0 --help' for more information." >&5
24360 echo "$as_me: error: unrecognized option: $1
24361 Try \`$0 --help' for more information." >&2;}
24362    { (exit 1); exit 1; }; } ;;
24363
24364   *) ac_config_targets="$ac_config_targets $1" ;;
24365
24366   esac
24367   shift
24368 done
24369
24370 ac_configure_extra_args=
24371
24372 if $ac_cs_silent; then
24373   exec 6>/dev/null
24374   ac_configure_extra_args="$ac_configure_extra_args --silent"
24375 fi
24376
24377 _ACEOF
24378 cat >>$CONFIG_STATUS <<_ACEOF
24379 if \$ac_cs_recheck; then
24380   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24381   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24382 fi
24383
24384 _ACEOF
24385
24386 cat >>$CONFIG_STATUS <<_ACEOF
24387 #
24388 # INIT-COMMANDS section.
24389 #
24390
24391 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24392 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24393 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24395 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24398 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24399 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24439 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24440 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24441 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24442
24443 _ACEOF
24444
24445
24446
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24448 for ac_config_target in $ac_config_targets
24449 do
24450   case "$ac_config_target" in
24451   # Handling of arguments.
24452   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24453   "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24454   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24455   "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24456   "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24457   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24458   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24459   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24460   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24461   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24462   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24463   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24464   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24465   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24466   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24467   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24468   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24469   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24470   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24471   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24472   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24473   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24474   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24475   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24476   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24477   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24478   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24479   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24480   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24481   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24482   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24483   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24484   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24485   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24486   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24487   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24488   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24489   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24490   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24491   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24492   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24493   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24494   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24495   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24496   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24497   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24498   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24499   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24500   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24501   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24502   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24503   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24504   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24505   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24506   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24507   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24508   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24509   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24510   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24511   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24512 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24513    { (exit 1); exit 1; }; };;
24514   esac
24515 done
24516
24517 # If the user did not use the arguments to specify the items to instantiate,
24518 # then the envvar interface is used.  Set only those that are not.
24519 # We use the long form for the default assignment because of an extremely
24520 # bizarre bug on SunOS 4.1.3.
24521 if $ac_need_defaults; then
24522   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24523   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24524   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24525   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24526 fi
24527
24528 # Have a temporary directory for convenience.  Make it in the build tree
24529 # simply because there is no reason to put it here, and in addition,
24530 # creating and moving files from /tmp can sometimes cause problems.
24531 # Create a temporary directory, and hook for its removal unless debugging.
24532 $debug ||
24533 {
24534   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24535   trap '{ (exit 1); exit 1; }' 1 2 13 15
24536 }
24537
24538 # Create a (secure) tmp directory for tmp files.
24539
24540 {
24541   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24542   test -n "$tmp" && test -d "$tmp"
24543 }  ||
24544 {
24545   tmp=./confstat$$-$RANDOM
24546   (umask 077 && mkdir $tmp)
24547 } ||
24548 {
24549    echo "$me: cannot create a temporary directory in ." >&2
24550    { (exit 1); exit 1; }
24551 }
24552
24553 _ACEOF
24554
24555 cat >>$CONFIG_STATUS <<_ACEOF
24556
24557 #
24558 # CONFIG_FILES section.
24559 #
24560
24561 # No need to generate the scripts if there are no CONFIG_FILES.
24562 # This happens for instance when ./config.status config.h
24563 if test -n "\$CONFIG_FILES"; then
24564   # Protect against being on the right side of a sed subst in config.status.
24565   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24566    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24567 s,@SHELL@,$SHELL,;t t
24568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24574 s,@exec_prefix@,$exec_prefix,;t t
24575 s,@prefix@,$prefix,;t t
24576 s,@program_transform_name@,$program_transform_name,;t t
24577 s,@bindir@,$bindir,;t t
24578 s,@sbindir@,$sbindir,;t t
24579 s,@libexecdir@,$libexecdir,;t t
24580 s,@datadir@,$datadir,;t t
24581 s,@sysconfdir@,$sysconfdir,;t t
24582 s,@sharedstatedir@,$sharedstatedir,;t t
24583 s,@localstatedir@,$localstatedir,;t t
24584 s,@libdir@,$libdir,;t t
24585 s,@includedir@,$includedir,;t t
24586 s,@oldincludedir@,$oldincludedir,;t t
24587 s,@infodir@,$infodir,;t t
24588 s,@mandir@,$mandir,;t t
24589 s,@build_alias@,$build_alias,;t t
24590 s,@host_alias@,$host_alias,;t t
24591 s,@target_alias@,$target_alias,;t t
24592 s,@DEFS@,$DEFS,;t t
24593 s,@ECHO_C@,$ECHO_C,;t t
24594 s,@ECHO_N@,$ECHO_N,;t t
24595 s,@ECHO_T@,$ECHO_T,;t t
24596 s,@LIBS@,$LIBS,;t t
24597 s,@subdirs@,$subdirs,;t t
24598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24601 s,@build@,$build,;t t
24602 s,@build_cpu@,$build_cpu,;t t
24603 s,@build_vendor@,$build_vendor,;t t
24604 s,@build_os@,$build_os,;t t
24605 s,@host@,$host,;t t
24606 s,@host_cpu@,$host_cpu,;t t
24607 s,@host_vendor@,$host_vendor,;t t
24608 s,@host_os@,$host_os,;t t
24609 s,@target@,$target,;t t
24610 s,@target_cpu@,$target_cpu,;t t
24611 s,@target_vendor@,$target_vendor,;t t
24612 s,@target_os@,$target_os,;t t
24613 s,@OS@,$OS,;t t
24614 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24615 s,@ARCH@,$ARCH,;t t
24616 s,@CXX@,$CXX,;t t
24617 s,@CXXFLAGS@,$CXXFLAGS,;t t
24618 s,@LDFLAGS@,$LDFLAGS,;t t
24619 s,@CPPFLAGS@,$CPPFLAGS,;t t
24620 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24621 s,@EXEEXT@,$EXEEXT,;t t
24622 s,@OBJEXT@,$OBJEXT,;t t
24623 s,@CC@,$CC,;t t
24624 s,@CFLAGS@,$CFLAGS,;t t
24625 s,@ac_ct_CC@,$ac_ct_CC,;t t
24626 s,@CPP@,$CPP,;t t
24627 s,@ifGNUmake@,$ifGNUmake,;t t
24628 s,@LEX@,$LEX,;t t
24629 s,@LEXLIB@,$LEXLIB,;t t
24630 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24631 s,@YACC@,$YACC,;t t
24632 s,@BISON@,$BISON,;t t
24633 s,@EGREP@,$EGREP,;t t
24634 s,@LN_S@,$LN_S,;t t
24635 s,@ECHO@,$ECHO,;t t
24636 s,@AR@,$AR,;t t
24637 s,@ac_ct_AR@,$ac_ct_AR,;t t
24638 s,@RANLIB@,$RANLIB,;t t
24639 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24640 s,@STRIP@,$STRIP,;t t
24641 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24642 s,@CXXCPP@,$CXXCPP,;t t
24643 s,@F77@,$F77,;t t
24644 s,@FFLAGS@,$FFLAGS,;t t
24645 s,@ac_ct_F77@,$ac_ct_F77,;t t
24646 s,@LIBTOOL@,$LIBTOOL,;t t
24647 s,@DOT@,$DOT,;t t
24648 s,@ETAGS@,$ETAGS,;t t
24649 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24650 s,@PYTHON@,$PYTHON,;t t
24651 s,@QMTEST@,$QMTEST,;t t
24652 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24653 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24654 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24655 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24656 s,@ENDIAN@,$ENDIAN,;t t
24657 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24658 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24659 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24660 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24661 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24662 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24663 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24664 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24665 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24666 s,@ALLOCA@,$ALLOCA,;t t
24667 s,@MMAP_FILE@,$MMAP_FILE,;t t
24668 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24669 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24670 s,@USE_SPEC95@,$USE_SPEC95,;t t
24671 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24672 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24673 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24674 s,@USE_POVRAY@,$USE_POVRAY,;t t
24675 s,@UPB@,$UPB,;t t
24676 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24677 s,@JIT@,$JIT,;t t
24678 s,@LLVMCC1@,$LLVMCC1,;t t
24679 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24680 s,@BCR@,$BCR,;t t
24681 s,@PAPIDIR@,$PAPIDIR,;t t
24682 s,@SHLIBEXT@,$SHLIBEXT,;t t
24683 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24684 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24685 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24686 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24687 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24688 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24689 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24690 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24691 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24692 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24693 s,@LIBOBJS@,$LIBOBJS,;t t
24694 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24695 CEOF
24696
24697 _ACEOF
24698
24699   cat >>$CONFIG_STATUS <<\_ACEOF
24700   # Split the substitutions into bite-sized pieces for seds with
24701   # small command number limits, like on Digital OSF/1 and HP-UX.
24702   ac_max_sed_lines=48
24703   ac_sed_frag=1 # Number of current file.
24704   ac_beg=1 # First line for current file.
24705   ac_end=$ac_max_sed_lines # Line after last line for current file.
24706   ac_more_lines=:
24707   ac_sed_cmds=
24708   while $ac_more_lines; do
24709     if test $ac_beg -gt 1; then
24710       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24711     else
24712       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24713     fi
24714     if test ! -s $tmp/subs.frag; then
24715       ac_more_lines=false
24716     else
24717       # The purpose of the label and of the branching condition is to
24718       # speed up the sed processing (if there are no `@' at all, there
24719       # is no need to browse any of the substitutions).
24720       # These are the two extra sed commands mentioned above.
24721       (echo ':t
24722   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24723       if test -z "$ac_sed_cmds"; then
24724         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24725       else
24726         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24727       fi
24728       ac_sed_frag=`expr $ac_sed_frag + 1`
24729       ac_beg=$ac_end
24730       ac_end=`expr $ac_end + $ac_max_sed_lines`
24731     fi
24732   done
24733   if test -z "$ac_sed_cmds"; then
24734     ac_sed_cmds=cat
24735   fi
24736 fi # test -n "$CONFIG_FILES"
24737
24738 _ACEOF
24739 cat >>$CONFIG_STATUS <<\_ACEOF
24740 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24741   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24742   case $ac_file in
24743   - | *:- | *:-:* ) # input from stdin
24744         cat >$tmp/stdin
24745         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24746         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24747   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24749   * )   ac_file_in=$ac_file.in ;;
24750   esac
24751
24752   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24753   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24755          X"$ac_file" : 'X\(//\)[^/]' \| \
24756          X"$ac_file" : 'X\(//\)$' \| \
24757          X"$ac_file" : 'X\(/\)' \| \
24758          .     : '\(.\)' 2>/dev/null ||
24759 echo X"$ac_file" |
24760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24762           /^X\(\/\/\)$/{ s//\1/; q; }
24763           /^X\(\/\).*/{ s//\1/; q; }
24764           s/.*/./; q'`
24765   { if $as_mkdir_p; then
24766     mkdir -p "$ac_dir"
24767   else
24768     as_dir="$ac_dir"
24769     as_dirs=
24770     while test ! -d "$as_dir"; do
24771       as_dirs="$as_dir $as_dirs"
24772       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24774          X"$as_dir" : 'X\(//\)[^/]' \| \
24775          X"$as_dir" : 'X\(//\)$' \| \
24776          X"$as_dir" : 'X\(/\)' \| \
24777          .     : '\(.\)' 2>/dev/null ||
24778 echo X"$as_dir" |
24779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24781           /^X\(\/\/\)$/{ s//\1/; q; }
24782           /^X\(\/\).*/{ s//\1/; q; }
24783           s/.*/./; q'`
24784     done
24785     test ! -n "$as_dirs" || mkdir $as_dirs
24786   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24788    { (exit 1); exit 1; }; }; }
24789
24790   ac_builddir=.
24791
24792 if test "$ac_dir" != .; then
24793   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24794   # A "../" for each directory in $ac_dir_suffix.
24795   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24796 else
24797   ac_dir_suffix= ac_top_builddir=
24798 fi
24799
24800 case $srcdir in
24801   .)  # No --srcdir option.  We are building in place.
24802     ac_srcdir=.
24803     if test -z "$ac_top_builddir"; then
24804        ac_top_srcdir=.
24805     else
24806        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24807     fi ;;
24808   [\\/]* | ?:[\\/]* )  # Absolute path.
24809     ac_srcdir=$srcdir$ac_dir_suffix;
24810     ac_top_srcdir=$srcdir ;;
24811   *) # Relative path.
24812     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24813     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24814 esac
24815
24816 # Do not use `cd foo && pwd` to compute absolute paths, because
24817 # the directories may not exist.
24818 case `pwd` in
24819 .) ac_abs_builddir="$ac_dir";;
24820 *)
24821   case "$ac_dir" in
24822   .) ac_abs_builddir=`pwd`;;
24823   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24824   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24825   esac;;
24826 esac
24827 case $ac_abs_builddir in
24828 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24829 *)
24830   case ${ac_top_builddir}. in
24831   .) ac_abs_top_builddir=$ac_abs_builddir;;
24832   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24833   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24834   esac;;
24835 esac
24836 case $ac_abs_builddir in
24837 .) ac_abs_srcdir=$ac_srcdir;;
24838 *)
24839   case $ac_srcdir in
24840   .) ac_abs_srcdir=$ac_abs_builddir;;
24841   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24842   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24843   esac;;
24844 esac
24845 case $ac_abs_builddir in
24846 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24847 *)
24848   case $ac_top_srcdir in
24849   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24850   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24851   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24852   esac;;
24853 esac
24854
24855
24856   case $INSTALL in
24857   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24858   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24859   esac
24860
24861   if test x"$ac_file" != x-; then
24862     { echo "$as_me:$LINENO: creating $ac_file" >&5
24863 echo "$as_me: creating $ac_file" >&6;}
24864     rm -f "$ac_file"
24865   fi
24866   # Let's still pretend it is `configure' which instantiates (i.e., don't
24867   # use $as_me), people would be surprised to read:
24868   #    /* config.h.  Generated by config.status.  */
24869   if test x"$ac_file" = x-; then
24870     configure_input=
24871   else
24872     configure_input="$ac_file.  "
24873   fi
24874   configure_input=$configure_input"Generated from `echo $ac_file_in |
24875                                      sed 's,.*/,,'` by configure."
24876
24877   # First look for the input files in the build tree, otherwise in the
24878   # src tree.
24879   ac_file_inputs=`IFS=:
24880     for f in $ac_file_in; do
24881       case $f in
24882       -) echo $tmp/stdin ;;
24883       [\\/$]*)
24884          # Absolute (can't be DOS-style, as IFS=:)
24885          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24886 echo "$as_me: error: cannot find input file: $f" >&2;}
24887    { (exit 1); exit 1; }; }
24888          echo "$f";;
24889       *) # Relative
24890          if test -f "$f"; then
24891            # Build tree
24892            echo "$f"
24893          elif test -f "$srcdir/$f"; then
24894            # Source tree
24895            echo "$srcdir/$f"
24896          else
24897            # /dev/null tree
24898            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24899 echo "$as_me: error: cannot find input file: $f" >&2;}
24900    { (exit 1); exit 1; }; }
24901          fi;;
24902       esac
24903     done` || { (exit 1); exit 1; }
24904 _ACEOF
24905 cat >>$CONFIG_STATUS <<_ACEOF
24906   sed "$ac_vpsub
24907 $extrasub
24908 _ACEOF
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24910 :t
24911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24912 s,@configure_input@,$configure_input,;t t
24913 s,@srcdir@,$ac_srcdir,;t t
24914 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24915 s,@top_srcdir@,$ac_top_srcdir,;t t
24916 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24917 s,@builddir@,$ac_builddir,;t t
24918 s,@abs_builddir@,$ac_abs_builddir,;t t
24919 s,@top_builddir@,$ac_top_builddir,;t t
24920 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24921 s,@INSTALL@,$ac_INSTALL,;t t
24922 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24923   rm -f $tmp/stdin
24924   if test x"$ac_file" != x-; then
24925     mv $tmp/out $ac_file
24926   else
24927     cat $tmp/out
24928     rm -f $tmp/out
24929   fi
24930
24931 done
24932 _ACEOF
24933 cat >>$CONFIG_STATUS <<\_ACEOF
24934
24935 #
24936 # CONFIG_HEADER section.
24937 #
24938
24939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24941 #
24942 # ac_d sets the value in "#define NAME VALUE" lines.
24943 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24944 ac_dB='[         ].*$,\1#\2'
24945 ac_dC=' '
24946 ac_dD=',;t'
24947 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24948 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24949 ac_uB='$,\1#\2define\3'
24950 ac_uC=' '
24951 ac_uD=',;t'
24952
24953 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24954   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24955   case $ac_file in
24956   - | *:- | *:-:* ) # input from stdin
24957         cat >$tmp/stdin
24958         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24960   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24961         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24962   * )   ac_file_in=$ac_file.in ;;
24963   esac
24964
24965   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24966 echo "$as_me: creating $ac_file" >&6;}
24967
24968   # First look for the input files in the build tree, otherwise in the
24969   # src tree.
24970   ac_file_inputs=`IFS=:
24971     for f in $ac_file_in; do
24972       case $f in
24973       -) echo $tmp/stdin ;;
24974       [\\/$]*)
24975          # Absolute (can't be DOS-style, as IFS=:)
24976          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24977 echo "$as_me: error: cannot find input file: $f" >&2;}
24978    { (exit 1); exit 1; }; }
24979          # Do quote $f, to prevent DOS paths from being IFS'd.
24980          echo "$f";;
24981       *) # Relative
24982          if test -f "$f"; then
24983            # Build tree
24984            echo "$f"
24985          elif test -f "$srcdir/$f"; then
24986            # Source tree
24987            echo "$srcdir/$f"
24988          else
24989            # /dev/null tree
24990            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24991 echo "$as_me: error: cannot find input file: $f" >&2;}
24992    { (exit 1); exit 1; }; }
24993          fi;;
24994       esac
24995     done` || { (exit 1); exit 1; }
24996   # Remove the trailing spaces.
24997   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24998
24999 _ACEOF
25000
25001 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25002 # `conftest.undefs', that substitutes the proper values into
25003 # config.h.in to produce config.h.  The first handles `#define'
25004 # templates, and the second `#undef' templates.
25005 # And first: Protect against being on the right side of a sed subst in
25006 # config.status.  Protect against being in an unquoted here document
25007 # in config.status.
25008 rm -f conftest.defines conftest.undefs
25009 # Using a here document instead of a string reduces the quoting nightmare.
25010 # Putting comments in sed scripts is not portable.
25011 #
25012 # `end' is used to avoid that the second main sed command (meant for
25013 # 0-ary CPP macros) applies to n-ary macro definitions.
25014 # See the Autoconf documentation for `clear'.
25015 cat >confdef2sed.sed <<\_ACEOF
25016 s/[\\&,]/\\&/g
25017 s,[\\$`],\\&,g
25018 t clear
25019 : clear
25020 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25021 t end
25022 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25023 : end
25024 _ACEOF
25025 # If some macros were called several times there might be several times
25026 # the same #defines, which is useless.  Nevertheless, we may not want to
25027 # sort them, since we want the *last* AC-DEFINE to be honored.
25028 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25029 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25030 rm -f confdef2sed.sed
25031
25032 # This sed command replaces #undef with comments.  This is necessary, for
25033 # example, in the case of _POSIX_SOURCE, which is predefined and required
25034 # on some systems where configure will not decide to define it.
25035 cat >>conftest.undefs <<\_ACEOF
25036 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25037 _ACEOF
25038
25039 # Break up conftest.defines because some shells have a limit on the size
25040 # of here documents, and old seds have small limits too (100 cmds).
25041 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25042 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25043 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25044 echo '  :' >>$CONFIG_STATUS
25045 rm -f conftest.tail
25046 while grep . conftest.defines >/dev/null
25047 do
25048   # Write a limited-size here document to $tmp/defines.sed.
25049   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25050   # Speed up: don't consider the non `#define' lines.
25051   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25052   # Work around the forget-to-reset-the-flag bug.
25053   echo 't clr' >>$CONFIG_STATUS
25054   echo ': clr' >>$CONFIG_STATUS
25055   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25056   echo 'CEOF
25057   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25058   rm -f $tmp/in
25059   mv $tmp/out $tmp/in
25060 ' >>$CONFIG_STATUS
25061   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25062   rm -f conftest.defines
25063   mv conftest.tail conftest.defines
25064 done
25065 rm -f conftest.defines
25066 echo '  fi # grep' >>$CONFIG_STATUS
25067 echo >>$CONFIG_STATUS
25068
25069 # Break up conftest.undefs because some shells have a limit on the size
25070 # of here documents, and old seds have small limits too (100 cmds).
25071 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25072 rm -f conftest.tail
25073 while grep . conftest.undefs >/dev/null
25074 do
25075   # Write a limited-size here document to $tmp/undefs.sed.
25076   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25077   # Speed up: don't consider the non `#undef'
25078   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25079   # Work around the forget-to-reset-the-flag bug.
25080   echo 't clr' >>$CONFIG_STATUS
25081   echo ': clr' >>$CONFIG_STATUS
25082   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25083   echo 'CEOF
25084   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25085   rm -f $tmp/in
25086   mv $tmp/out $tmp/in
25087 ' >>$CONFIG_STATUS
25088   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25089   rm -f conftest.undefs
25090   mv conftest.tail conftest.undefs
25091 done
25092 rm -f conftest.undefs
25093
25094 cat >>$CONFIG_STATUS <<\_ACEOF
25095   # Let's still pretend it is `configure' which instantiates (i.e., don't
25096   # use $as_me), people would be surprised to read:
25097   #    /* config.h.  Generated by config.status.  */
25098   if test x"$ac_file" = x-; then
25099     echo "/* Generated by configure.  */" >$tmp/config.h
25100   else
25101     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25102   fi
25103   cat $tmp/in >>$tmp/config.h
25104   rm -f $tmp/in
25105   if test x"$ac_file" != x-; then
25106     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25107       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25108 echo "$as_me: $ac_file is unchanged" >&6;}
25109     else
25110       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25112          X"$ac_file" : 'X\(//\)[^/]' \| \
25113          X"$ac_file" : 'X\(//\)$' \| \
25114          X"$ac_file" : 'X\(/\)' \| \
25115          .     : '\(.\)' 2>/dev/null ||
25116 echo X"$ac_file" |
25117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25119           /^X\(\/\/\)$/{ s//\1/; q; }
25120           /^X\(\/\).*/{ s//\1/; q; }
25121           s/.*/./; q'`
25122       { if $as_mkdir_p; then
25123     mkdir -p "$ac_dir"
25124   else
25125     as_dir="$ac_dir"
25126     as_dirs=
25127     while test ! -d "$as_dir"; do
25128       as_dirs="$as_dir $as_dirs"
25129       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131          X"$as_dir" : 'X\(//\)[^/]' \| \
25132          X"$as_dir" : 'X\(//\)$' \| \
25133          X"$as_dir" : 'X\(/\)' \| \
25134          .     : '\(.\)' 2>/dev/null ||
25135 echo X"$as_dir" |
25136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25137           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25138           /^X\(\/\/\)$/{ s//\1/; q; }
25139           /^X\(\/\).*/{ s//\1/; q; }
25140           s/.*/./; q'`
25141     done
25142     test ! -n "$as_dirs" || mkdir $as_dirs
25143   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25145    { (exit 1); exit 1; }; }; }
25146
25147       rm -f $ac_file
25148       mv $tmp/config.h $ac_file
25149     fi
25150   else
25151     cat $tmp/config.h
25152     rm -f $tmp/config.h
25153   fi
25154 done
25155 _ACEOF
25156 cat >>$CONFIG_STATUS <<\_ACEOF
25157
25158 #
25159 # CONFIG_LINKS section.
25160 #
25161
25162 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25163   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25164   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25165
25166   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25167 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25168
25169   if test ! -r $srcdir/$ac_source; then
25170     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25171 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25172    { (exit 1); exit 1; }; }
25173   fi
25174   rm -f $ac_dest
25175
25176   # Make relative symlinks.
25177   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25179          X"$ac_dest" : 'X\(//\)[^/]' \| \
25180          X"$ac_dest" : 'X\(//\)$' \| \
25181          X"$ac_dest" : 'X\(/\)' \| \
25182          .     : '\(.\)' 2>/dev/null ||
25183 echo X"$ac_dest" |
25184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25185           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25186           /^X\(\/\/\)$/{ s//\1/; q; }
25187           /^X\(\/\).*/{ s//\1/; q; }
25188           s/.*/./; q'`
25189   { if $as_mkdir_p; then
25190     mkdir -p "$ac_dest_dir"
25191   else
25192     as_dir="$ac_dest_dir"
25193     as_dirs=
25194     while test ! -d "$as_dir"; do
25195       as_dirs="$as_dir $as_dirs"
25196       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25198          X"$as_dir" : 'X\(//\)[^/]' \| \
25199          X"$as_dir" : 'X\(//\)$' \| \
25200          X"$as_dir" : 'X\(/\)' \| \
25201          .     : '\(.\)' 2>/dev/null ||
25202 echo X"$as_dir" |
25203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25205           /^X\(\/\/\)$/{ s//\1/; q; }
25206           /^X\(\/\).*/{ s//\1/; q; }
25207           s/.*/./; q'`
25208     done
25209     test ! -n "$as_dirs" || mkdir $as_dirs
25210   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25211 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25212    { (exit 1); exit 1; }; }; }
25213
25214   ac_builddir=.
25215
25216 if test "$ac_dest_dir" != .; then
25217   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25218   # A "../" for each directory in $ac_dir_suffix.
25219   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25220 else
25221   ac_dir_suffix= ac_top_builddir=
25222 fi
25223
25224 case $srcdir in
25225   .)  # No --srcdir option.  We are building in place.
25226     ac_srcdir=.
25227     if test -z "$ac_top_builddir"; then
25228        ac_top_srcdir=.
25229     else
25230        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25231     fi ;;
25232   [\\/]* | ?:[\\/]* )  # Absolute path.
25233     ac_srcdir=$srcdir$ac_dir_suffix;
25234     ac_top_srcdir=$srcdir ;;
25235   *) # Relative path.
25236     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25237     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25238 esac
25239
25240 # Do not use `cd foo && pwd` to compute absolute paths, because
25241 # the directories may not exist.
25242 case `pwd` in
25243 .) ac_abs_builddir="$ac_dest_dir";;
25244 *)
25245   case "$ac_dest_dir" in
25246   .) ac_abs_builddir=`pwd`;;
25247   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25248   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25249   esac;;
25250 esac
25251 case $ac_abs_builddir in
25252 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25253 *)
25254   case ${ac_top_builddir}. in
25255   .) ac_abs_top_builddir=$ac_abs_builddir;;
25256   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25257   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25258   esac;;
25259 esac
25260 case $ac_abs_builddir in
25261 .) ac_abs_srcdir=$ac_srcdir;;
25262 *)
25263   case $ac_srcdir in
25264   .) ac_abs_srcdir=$ac_abs_builddir;;
25265   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25266   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25267   esac;;
25268 esac
25269 case $ac_abs_builddir in
25270 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25271 *)
25272   case $ac_top_srcdir in
25273   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25274   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25275   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25276   esac;;
25277 esac
25278
25279
25280   case $srcdir in
25281   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25282       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25283   esac
25284
25285   # Try a symlink, then a hard link, then a copy.
25286   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25287     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25288     cp -p $srcdir/$ac_source $ac_dest ||
25289     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25290 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25291    { (exit 1); exit 1; }; }
25292 done
25293 _ACEOF
25294 cat >>$CONFIG_STATUS <<\_ACEOF
25295
25296 #
25297 # CONFIG_COMMANDS section.
25298 #
25299 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25300   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25301   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25302   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25303 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25304          X"$ac_dest" : 'X\(//\)[^/]' \| \
25305          X"$ac_dest" : 'X\(//\)$' \| \
25306          X"$ac_dest" : 'X\(/\)' \| \
25307          .     : '\(.\)' 2>/dev/null ||
25308 echo X"$ac_dest" |
25309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25310           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25311           /^X\(\/\/\)$/{ s//\1/; q; }
25312           /^X\(\/\).*/{ s//\1/; q; }
25313           s/.*/./; q'`
25314   { if $as_mkdir_p; then
25315     mkdir -p "$ac_dir"
25316   else
25317     as_dir="$ac_dir"
25318     as_dirs=
25319     while test ! -d "$as_dir"; do
25320       as_dirs="$as_dir $as_dirs"
25321       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25323          X"$as_dir" : 'X\(//\)[^/]' \| \
25324          X"$as_dir" : 'X\(//\)$' \| \
25325          X"$as_dir" : 'X\(/\)' \| \
25326          .     : '\(.\)' 2>/dev/null ||
25327 echo X"$as_dir" |
25328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25330           /^X\(\/\/\)$/{ s//\1/; q; }
25331           /^X\(\/\).*/{ s//\1/; q; }
25332           s/.*/./; q'`
25333     done
25334     test ! -n "$as_dirs" || mkdir $as_dirs
25335   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25337    { (exit 1); exit 1; }; }; }
25338
25339   ac_builddir=.
25340
25341 if test "$ac_dir" != .; then
25342   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25343   # A "../" for each directory in $ac_dir_suffix.
25344   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25345 else
25346   ac_dir_suffix= ac_top_builddir=
25347 fi
25348
25349 case $srcdir in
25350   .)  # No --srcdir option.  We are building in place.
25351     ac_srcdir=.
25352     if test -z "$ac_top_builddir"; then
25353        ac_top_srcdir=.
25354     else
25355        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25356     fi ;;
25357   [\\/]* | ?:[\\/]* )  # Absolute path.
25358     ac_srcdir=$srcdir$ac_dir_suffix;
25359     ac_top_srcdir=$srcdir ;;
25360   *) # Relative path.
25361     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25362     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25363 esac
25364
25365 # Do not use `cd foo && pwd` to compute absolute paths, because
25366 # the directories may not exist.
25367 case `pwd` in
25368 .) ac_abs_builddir="$ac_dir";;
25369 *)
25370   case "$ac_dir" in
25371   .) ac_abs_builddir=`pwd`;;
25372   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25373   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25374   esac;;
25375 esac
25376 case $ac_abs_builddir in
25377 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25378 *)
25379   case ${ac_top_builddir}. in
25380   .) ac_abs_top_builddir=$ac_abs_builddir;;
25381   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25382   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25383   esac;;
25384 esac
25385 case $ac_abs_builddir in
25386 .) ac_abs_srcdir=$ac_srcdir;;
25387 *)
25388   case $ac_srcdir in
25389   .) ac_abs_srcdir=$ac_abs_builddir;;
25390   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25391   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25392   esac;;
25393 esac
25394 case $ac_abs_builddir in
25395 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25396 *)
25397   case $ac_top_srcdir in
25398   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25399   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25400   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25401   esac;;
25402 esac
25403
25404
25405   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25406 echo "$as_me: executing $ac_dest commands" >&6;}
25407   case $ac_dest in
25408     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25409     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25410     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25411     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25412     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25413     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25414     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25415     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25416     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25417     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25418     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25419     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25420     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25421     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25422     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25423     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25424     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25425     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25426     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25427     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25428     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25429     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25430     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25431     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25432     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25433     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25434     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25435     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25436     test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25437     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25438     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25439     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25440     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25441     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25442     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25443     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25444     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25445     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25446     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25447     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25448     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25449     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25450     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25451     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25452     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25453     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25454     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25455     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25456     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25457     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25458     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25459   esac
25460 done
25461 _ACEOF
25462
25463 cat >>$CONFIG_STATUS <<\_ACEOF
25464
25465 { (exit 0); exit 0; }
25466 _ACEOF
25467 chmod +x $CONFIG_STATUS
25468 ac_clean_files=$ac_clean_files_save
25469
25470
25471 # configure is writing to config.log, and then calls config.status.
25472 # config.status does its own redirection, appending to config.log.
25473 # Unfortunately, on DOS this fails, as config.log is still kept open
25474 # by configure, so config.status won't be able to write to it; its
25475 # output is simply discarded.  So we exec the FD to /dev/null,
25476 # effectively closing config.log, so it can be properly (re)opened and
25477 # appended to by config.status.  When coming back to configure, we
25478 # need to make the FD available again.
25479 if test "$no_create" != yes; then
25480   ac_cs_success=:
25481   ac_config_status_args=
25482   test "$silent" = yes &&
25483     ac_config_status_args="$ac_config_status_args --quiet"
25484   exec 5>/dev/null
25485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25486   exec 5>>config.log
25487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25488   # would make configure fail if this is the last instruction.
25489   $ac_cs_success || { (exit 1); exit 1; }
25490 fi
25491
25492 #
25493 # CONFIG_SUBDIRS section.
25494 #
25495 if test "$no_recursion" != yes; then
25496
25497   # Remove --cache-file and --srcdir arguments so they do not pile up.
25498   ac_sub_configure_args=
25499   ac_prev=
25500   for ac_arg in $ac_configure_args; do
25501     if test -n "$ac_prev"; then
25502       ac_prev=
25503       continue
25504     fi
25505     case $ac_arg in
25506     -cache-file | --cache-file | --cache-fil | --cache-fi \
25507     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25508       ac_prev=cache_file ;;
25509     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25510     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25511     | --c=*)
25512       ;;
25513     --config-cache | -C)
25514       ;;
25515     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25516       ac_prev=srcdir ;;
25517     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25518       ;;
25519     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25520       ac_prev=prefix ;;
25521     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25522       ;;
25523     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25524     esac
25525   done
25526
25527   # Always prepend --prefix to ensure using the same prefix
25528   # in subdir configurations.
25529   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25530
25531   ac_popdir=`pwd`
25532   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25533
25534     # Do not complain, so a configure script can configure whichever
25535     # parts of a large source tree are present.
25536     test -d $srcdir/$ac_dir || continue
25537
25538     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25539 echo "$as_me: configuring in $ac_dir" >&6;}
25540     { if $as_mkdir_p; then
25541     mkdir -p "$ac_dir"
25542   else
25543     as_dir="$ac_dir"
25544     as_dirs=
25545     while test ! -d "$as_dir"; do
25546       as_dirs="$as_dir $as_dirs"
25547       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25549          X"$as_dir" : 'X\(//\)[^/]' \| \
25550          X"$as_dir" : 'X\(//\)$' \| \
25551          X"$as_dir" : 'X\(/\)' \| \
25552          .     : '\(.\)' 2>/dev/null ||
25553 echo X"$as_dir" |
25554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25555           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25556           /^X\(\/\/\)$/{ s//\1/; q; }
25557           /^X\(\/\).*/{ s//\1/; q; }
25558           s/.*/./; q'`
25559     done
25560     test ! -n "$as_dirs" || mkdir $as_dirs
25561   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25562 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25563    { (exit 1); exit 1; }; }; }
25564
25565     ac_builddir=.
25566
25567 if test "$ac_dir" != .; then
25568   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25569   # A "../" for each directory in $ac_dir_suffix.
25570   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25571 else
25572   ac_dir_suffix= ac_top_builddir=
25573 fi
25574
25575 case $srcdir in
25576   .)  # No --srcdir option.  We are building in place.
25577     ac_srcdir=.
25578     if test -z "$ac_top_builddir"; then
25579        ac_top_srcdir=.
25580     else
25581        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25582     fi ;;
25583   [\\/]* | ?:[\\/]* )  # Absolute path.
25584     ac_srcdir=$srcdir$ac_dir_suffix;
25585     ac_top_srcdir=$srcdir ;;
25586   *) # Relative path.
25587     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25588     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25589 esac
25590
25591 # Do not use `cd foo && pwd` to compute absolute paths, because
25592 # the directories may not exist.
25593 case `pwd` in
25594 .) ac_abs_builddir="$ac_dir";;
25595 *)
25596   case "$ac_dir" in
25597   .) ac_abs_builddir=`pwd`;;
25598   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25599   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25600   esac;;
25601 esac
25602 case $ac_abs_builddir in
25603 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25604 *)
25605   case ${ac_top_builddir}. in
25606   .) ac_abs_top_builddir=$ac_abs_builddir;;
25607   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25608   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25609   esac;;
25610 esac
25611 case $ac_abs_builddir in
25612 .) ac_abs_srcdir=$ac_srcdir;;
25613 *)
25614   case $ac_srcdir in
25615   .) ac_abs_srcdir=$ac_abs_builddir;;
25616   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25617   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25618   esac;;
25619 esac
25620 case $ac_abs_builddir in
25621 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25622 *)
25623   case $ac_top_srcdir in
25624   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25625   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25626   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25627   esac;;
25628 esac
25629
25630
25631     cd $ac_dir
25632
25633     # Check for guested configure; otherwise get Cygnus style configure.
25634     if test -f $ac_srcdir/configure.gnu; then
25635       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25636     elif test -f $ac_srcdir/configure; then
25637       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25638     elif test -f $ac_srcdir/configure.in; then
25639       ac_sub_configure=$ac_configure
25640     else
25641       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25643       ac_sub_configure=
25644     fi
25645
25646     # The recursion is here.
25647     if test -n "$ac_sub_configure"; then
25648       # Make the cache file name correct relative to the subdirectory.
25649       case $cache_file in
25650       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25651       *) # Relative path.
25652         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25653       esac
25654
25655       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25656 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25657       # The eval makes quoting arguments work.
25658       eval $ac_sub_configure $ac_sub_configure_args \
25659            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25660         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25661 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25662    { (exit 1); exit 1; }; }
25663     fi
25664
25665     cd $ac_popdir
25666   done
25667 fi
25668
25669
25670 if test $llvmgccwarn = yes
25671 then
25672         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25673 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25674         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25675 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25676         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25677 echo "$as_me: WARNING: ***** " >&2;}
25678         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25679 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25680         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25681 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25682         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25683 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25684 fi
25685