Recognize Interix systems as if they were SunOS and make sure we don't
[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/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/Config/config.h"
1570
1571
1572                                                             ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/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 case $build in
1893         *-*-linux*)
1894              OS=Linux
1895
1896              platform_type="Linux"
1897              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1898              then
1899                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1900
1901              fi
1902              ;;
1903         *-*-solaris*)
1904              OS=SunOS
1905
1906              platform_type="SunOS"
1907              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1908              then
1909                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1910
1911              fi
1912              ;;
1913         *-*-cygwin*)
1914              OS=Cygwin
1915
1916              platform_type="Cygwin"
1917              ;;
1918         *-*-darwin*)
1919              OS=Darwin
1920
1921              platform_type="Darwin"
1922              ;;
1923         *-*-aix*)
1924              OS=AIX
1925
1926              platform_type="AIX"
1927              ;;
1928         *-*-interix*)
1929              OS=SunOS
1930
1931              platform_type="SunOS"
1932              ;;
1933         *-*-win32*)
1934              OS=Win32
1935
1936              platform_type="Win32"
1937              ;;
1938         *)
1939              OS=Unknown
1940
1941              platform_type="Unknown"
1942              ;;
1943 esac
1944
1945 if test $platform_type -eq "Unknown" ; then
1946   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1947 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1952
1953
1954 case $target in
1955         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1956
1957                             ;;
1958 esac
1959
1960 case $target in
1961         i*86-*)           ARCH=x86
1962
1963                           ;;
1964         sparc*-*)         ARCH=Sparc
1965
1966                           ;;
1967         powerpc*-*)       ARCH=PowerPC
1968
1969                           ;;
1970         *)                ARCH=Unknown
1971
1972                           ;;
1973 esac
1974
1975 ac_ext=cc
1976 ac_cpp='$CXXCPP $CPPFLAGS'
1977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1982   do
1983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CXX+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   if test -n "$CXX"; then
1991   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003   fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 CXX=$ac_cv_prog_CXX
2010 if test -n "$CXX"; then
2011   echo "$as_me:$LINENO: result: $CXX" >&5
2012 echo "${ECHO_T}$CXX" >&6
2013 else
2014   echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018     test -n "$CXX" && break
2019   done
2020 fi
2021 if test -z "$CXX"; then
2022   ac_ct_CXX=$CXX
2023   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2024 do
2025   # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   if test -n "$ac_ct_CXX"; then
2033   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     ac_cv_prog_ac_ct_CXX="$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048
2049 fi
2050 fi
2051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2052 if test -n "$ac_ct_CXX"; then
2053   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2054 echo "${ECHO_T}$ac_ct_CXX" >&6
2055 else
2056   echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060   test -n "$ac_ct_CXX" && break
2061 done
2062 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2063
2064   CXX=$ac_ct_CXX
2065 fi
2066
2067
2068 # Provide some information about the compiler.
2069 echo "$as_me:$LINENO:" \
2070      "checking for C++ compiler version" >&5
2071 ac_compiler=`set X $ac_compile; echo $2`
2072 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2073   (eval $ac_compiler --version </dev/null >&5) 2>&5
2074   ac_status=$?
2075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076   (exit $ac_status); }
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2078   (eval $ac_compiler -v </dev/null >&5) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2083   (eval $ac_compiler -V </dev/null >&5) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087
2088 cat >conftest.$ac_ext <<_ACEOF
2089 /* confdefs.h.  */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h.  */
2094
2095 int
2096 main ()
2097 {
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 ac_clean_files_save=$ac_clean_files
2104 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2107 # of exeext.
2108 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2109 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2110 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112   (eval $ac_link_default) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; then
2116   # Find the output, starting from the most likely.  This scheme is
2117 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118 # resort.
2119
2120 # Be careful to initialize this variable, since it used to be cached.
2121 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122 ac_cv_exeext=
2123 # b.out is created by i960 compilers.
2124 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125 do
2126   test -f "$ac_file" || continue
2127   case $ac_file in
2128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129         ;;
2130     conftest.$ac_ext )
2131         # This is the source file.
2132         ;;
2133     [ab].out )
2134         # We found the default executable, but exeext='' is most
2135         # certainly right.
2136         break;;
2137     *.* )
2138         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139         # FIXME: I believe we export ac_cv_exeext for Libtool,
2140         # but it would be cool to find out if it's true.  Does anybody
2141         # maintain Libtool? --akim.
2142         export ac_cv_exeext
2143         break;;
2144     * )
2145         break;;
2146   esac
2147 done
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: C++ compiler cannot create executables
2155 See \`config.log' for more details." >&2;}
2156    { (exit 77); exit 77; }; }
2157 fi
2158
2159 ac_exeext=$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_file" >&5
2161 echo "${ECHO_T}$ac_file" >&6
2162
2163 # Check the compiler produces executables we can run.  If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2166 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168 # If not cross compiling, check that we can run a simple program.
2169 if test "$cross_compiling" != yes; then
2170   if { ac_try='./$ac_file'
2171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172   (eval $ac_try) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; }; then
2176     cross_compiling=no
2177   else
2178     if test "$cross_compiling" = maybe; then
2179         cross_compiling=yes
2180     else
2181         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C++ compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187    { (exit 1); exit 1; }; }
2188     fi
2189   fi
2190 fi
2191 echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6
2193
2194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195 ac_clean_files=$ac_clean_files_save
2196 # Check the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6
2202
2203 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206   (eval $ac_link) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; then
2210   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2212 # work properly (i.e., refer to `conftest.exe'), while it won't with
2213 # `rm'.
2214 for ac_file in conftest.exe conftest conftest.*; do
2215   test -f "$ac_file" || continue
2216   case $ac_file in
2217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219           export ac_cv_exeext
2220           break;;
2221     * ) break;;
2222   esac
2223 done
2224 else
2225   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2238 ac_exeext=$EXEEXT
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250
2251 int
2252 main ()
2253 {
2254
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 rm -f conftest.o conftest.obj
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261   (eval $ac_compile) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; then
2265   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2266   case $ac_file in
2267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2268     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2269        break;;
2270   esac
2271 done
2272 else
2273   echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281 fi
2282
2283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 fi
2285 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286 echo "${ECHO_T}$ac_cv_objext" >&6
2287 OBJEXT=$ac_cv_objext
2288 ac_objext=$OBJEXT
2289 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2290 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2291 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304 #ifndef __GNUC__
2305        choke me
2306 #endif
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314   (eval $ac_compile) 2>conftest.er1
2315   ac_status=$?
2316   grep -v '^ *+' conftest.er1 >conftest.err
2317   rm -f conftest.er1
2318   cat conftest.err >&5
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -z "$ac_cxx_werror_flag"
2322                          || test ! -s conftest.err'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; } &&
2328          { ac_try='test -s conftest.$ac_objext'
2329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330   (eval $ac_try) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; }; then
2334   ac_compiler_gnu=yes
2335 else
2336   echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 ac_compiler_gnu=no
2340 fi
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2343
2344 fi
2345 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2346 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2347 GXX=`test $ac_compiler_gnu = yes && echo yes`
2348 ac_test_CXXFLAGS=${CXXFLAGS+set}
2349 ac_save_CXXFLAGS=$CXXFLAGS
2350 CXXFLAGS="-g"
2351 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2352 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2353 if test "${ac_cv_prog_cxx_g+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h.  */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h.  */
2362
2363 int
2364 main ()
2365 {
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373   (eval $ac_compile) 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_cxx_werror_flag"
2381                          || test ! -s conftest.err'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; }; then
2393   ac_cv_prog_cxx_g=yes
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 ac_cv_prog_cxx_g=no
2399 fi
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2403 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2404 if test "$ac_test_CXXFLAGS" = set; then
2405   CXXFLAGS=$ac_save_CXXFLAGS
2406 elif test $ac_cv_prog_cxx_g = yes; then
2407   if test "$GXX" = yes; then
2408     CXXFLAGS="-g -O2"
2409   else
2410     CXXFLAGS="-g"
2411   fi
2412 else
2413   if test "$GXX" = yes; then
2414     CXXFLAGS="-O2"
2415   else
2416     CXXFLAGS=
2417   fi
2418 fi
2419 for ac_declaration in \
2420    '' \
2421    'extern "C" void std::exit (int) throw (); using std::exit;' \
2422    'extern "C" void std::exit (int); using std::exit;' \
2423    'extern "C" void exit (int) throw ();' \
2424    'extern "C" void exit (int);' \
2425    'void exit (int);'
2426 do
2427   cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h.  */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h.  */
2433 $ac_declaration
2434 #include <stdlib.h>
2435 int
2436 main ()
2437 {
2438 exit (42);
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445   (eval $ac_compile) 2>conftest.er1
2446   ac_status=$?
2447   grep -v '^ *+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -z "$ac_cxx_werror_flag"
2453                          || test ! -s conftest.err'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; } &&
2459          { ac_try='test -s conftest.$ac_objext'
2460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; }; then
2465   :
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 continue
2471 fi
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473   cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h.  */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h.  */
2479 $ac_declaration
2480 int
2481 main ()
2482 {
2483 exit (42);
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490   (eval $ac_compile) 2>conftest.er1
2491   ac_status=$?
2492   grep -v '^ *+' conftest.er1 >conftest.err
2493   rm -f conftest.er1
2494   cat conftest.err >&5
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); } &&
2497          { ac_try='test -z "$ac_cxx_werror_flag"
2498                          || test ! -s conftest.err'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   break
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 fi
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 done
2518 rm -f conftest*
2519 if test -n "$ac_declaration"; then
2520   echo '#ifdef __cplusplus' >>confdefs.h
2521   echo $ac_declaration      >>confdefs.h
2522   echo '#endif'             >>confdefs.h
2523 fi
2524
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 if test -n "$ac_tool_prefix"; then
2537   for ac_prog in gcc
2538   do
2539     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2541 echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   if test -n "$CC"; then
2547   ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554   for ac_exec_ext in '' $ac_executable_extensions; do
2555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567   echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6
2569 else
2570   echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573
2574     test -n "$CC" && break
2575   done
2576 fi
2577 if test -z "$CC"; then
2578   ac_ct_CC=$CC
2579   for ac_prog in gcc
2580 do
2581   # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$ac_ct_CC"; then
2589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598     ac_cv_prog_ac_ct_CC="$ac_prog"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604
2605 fi
2606 fi
2607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608 if test -n "$ac_ct_CC"; then
2609   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2610 echo "${ECHO_T}$ac_ct_CC" >&6
2611 else
2612   echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2614 fi
2615
2616   test -n "$ac_ct_CC" && break
2617 done
2618
2619   CC=$ac_ct_CC
2620 fi
2621
2622
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details." >&2;}
2627    { (exit 1); exit 1; }; }
2628
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO:" \
2631      "checking for C compiler version" >&5
2632 ac_compiler=`set X $ac_compile; echo $2`
2633 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2634   (eval $ac_compiler --version </dev/null >&5) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }
2638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2639   (eval $ac_compiler -v </dev/null >&5) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }
2643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2644   (eval $ac_compiler -V </dev/null >&5) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }
2648
2649 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660
2661 int
2662 main ()
2663 {
2664 #ifndef __GNUC__
2665        choke me
2666 #endif
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>conftest.er1
2675   ac_status=$?
2676   grep -v '^ *+' conftest.er1 >conftest.err
2677   rm -f conftest.er1
2678   cat conftest.err >&5
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -z "$ac_c_werror_flag"
2682                          || test ! -s conftest.err'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; } &&
2688          { ac_try='test -s conftest.$ac_objext'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; }; then
2694   ac_compiler_gnu=yes
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 ac_compiler_gnu=no
2700 fi
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2703
2704 fi
2705 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2707 GCC=`test $ac_compiler_gnu = yes && echo yes`
2708 ac_test_CFLAGS=${CFLAGS+set}
2709 ac_save_CFLAGS=$CFLAGS
2710 CFLAGS="-g"
2711 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2713 if test "${ac_cv_prog_cc_g+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722
2723 int
2724 main ()
2725 {
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733   (eval $ac_compile) 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_c_werror_flag"
2741                          || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   ac_cv_prog_cc_g=yes
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 ac_cv_prog_cc_g=no
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 fi
2762 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2764 if test "$ac_test_CFLAGS" = set; then
2765   CFLAGS=$ac_save_CFLAGS
2766 elif test $ac_cv_prog_cc_g = yes; then
2767   if test "$GCC" = yes; then
2768     CFLAGS="-g -O2"
2769   else
2770     CFLAGS="-g"
2771   fi
2772 else
2773   if test "$GCC" = yes; then
2774     CFLAGS="-O2"
2775   else
2776     CFLAGS=
2777   fi
2778 fi
2779 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2780 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   ac_cv_prog_cc_stdc=no
2785 ac_save_CC=$CC
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h.  */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h.  */
2792 #include <stdarg.h>
2793 #include <stdio.h>
2794 #include <sys/types.h>
2795 #include <sys/stat.h>
2796 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2797 struct buf { int x; };
2798 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799 static char *e (p, i)
2800      char **p;
2801      int i;
2802 {
2803   return p[i];
2804 }
2805 static char *f (char * (*g) (char **, int), char **p, ...)
2806 {
2807   char *s;
2808   va_list v;
2809   va_start (v,p);
2810   s = g (p, va_arg (v,int));
2811   va_end (v);
2812   return s;
2813 }
2814
2815 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2816    function prototypes and stuff, but not '\xHH' hex character constants.
2817    These don't provoke an error unfortunately, instead are silently treated
2818    as 'x'.  The following induces an error, until -std1 is added to get
2819    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2820    array size at least.  It's necessary to write '\x00'==0 to get something
2821    that's true only with -std1.  */
2822 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2823
2824 int test (int i, double x);
2825 struct s1 {int (*f) (int a);};
2826 struct s2 {int (*f) (double a);};
2827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828 int argc;
2829 char **argv;
2830 int
2831 main ()
2832 {
2833 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 # Don't try gcc -ansi; that turns off useful extensions and
2839 # breaks some systems' header files.
2840 # AIX                   -qlanglvl=ansi
2841 # Ultrix and OSF/1      -std1
2842 # HP-UX 10.20 and later -Ae
2843 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2844 # SVR4                  -Xc -D__EXTENSIONS__
2845 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2846 do
2847   CC="$ac_save_CC $ac_arg"
2848   rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850   (eval $ac_compile) 2>conftest.er1
2851   ac_status=$?
2852   grep -v '^ *+' conftest.er1 >conftest.err
2853   rm -f conftest.er1
2854   cat conftest.err >&5
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); } &&
2857          { ac_try='test -z "$ac_c_werror_flag"
2858                          || test ! -s conftest.err'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; } &&
2864          { ac_try='test -s conftest.$ac_objext'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870   ac_cv_prog_cc_stdc=$ac_arg
2871 break
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 fi
2877 rm -f conftest.err conftest.$ac_objext
2878 done
2879 rm -f conftest.$ac_ext conftest.$ac_objext
2880 CC=$ac_save_CC
2881
2882 fi
2883
2884 case "x$ac_cv_prog_cc_stdc" in
2885   x|xno)
2886     echo "$as_me:$LINENO: result: none needed" >&5
2887 echo "${ECHO_T}none needed" >&6 ;;
2888   *)
2889     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2891     CC="$CC $ac_cv_prog_cc_stdc" ;;
2892 esac
2893
2894 # Some people use a C++ compiler to compile C.  Since we use `exit',
2895 # in C++ we need to declare it.  In case someone uses the same compiler
2896 # for both compiling C and C++ we need to have the C++ compiler decide
2897 # the declaration of exit, since it's the most demanding environment.
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #ifndef __cplusplus
2900   choke me
2901 #endif
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905   (eval $ac_compile) 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } &&
2912          { ac_try='test -z "$ac_c_werror_flag"
2913                          || test ! -s conftest.err'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; } &&
2919          { ac_try='test -s conftest.$ac_objext'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   for ac_declaration in \
2926    '' \
2927    'extern "C" void std::exit (int) throw (); using std::exit;' \
2928    'extern "C" void std::exit (int); using std::exit;' \
2929    'extern "C" void exit (int) throw ();' \
2930    'extern "C" void exit (int);' \
2931    'void exit (int);'
2932 do
2933   cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939 $ac_declaration
2940 #include <stdlib.h>
2941 int
2942 main ()
2943 {
2944 exit (42);
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -z "$ac_c_werror_flag"
2959                          || test ! -s conftest.err'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; } &&
2965          { ac_try='test -s conftest.$ac_objext'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   :
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 continue
2977 fi
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 $ac_declaration
2986 int
2987 main ()
2988 {
2989 exit (42);
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag"
3004                          || test ! -s conftest.err'
3005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006   (eval $ac_try) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   break
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 fi
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023 done
3024 rm -f conftest*
3025 if test -n "$ac_declaration"; then
3026   echo '#ifdef __cplusplus' >>confdefs.h
3027   echo $ac_declaration      >>confdefs.h
3028   echo '#endif'             >>confdefs.h
3029 fi
3030
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 fi
3036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_ext=c
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050 # On Suns, sometimes $CPP names a directory.
3051 if test -n "$CPP" && test -d "$CPP"; then
3052   CPP=
3053 fi
3054 if test -z "$CPP"; then
3055   if test "${ac_cv_prog_CPP+set}" = set; then
3056   echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058       # Double quotes because CPP needs to be expanded
3059     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3060     do
3061       ac_preproc_ok=false
3062 for ac_c_preproc_warn_flag in '' yes
3063 do
3064   # Use a header file that comes with gcc, so configuring glibc
3065   # with a fresh cross-compiler works.
3066   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067   # <limits.h> exists even on freestanding compilers.
3068   # On the NeXT, cc -E runs the code through the compiler's parser,
3069   # not just through cpp. "Syntax error" is here to catch this case.
3070   cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076 #ifdef __STDC__
3077 # include <limits.h>
3078 #else
3079 # include <assert.h>
3080 #endif
3081                      Syntax error
3082 _ACEOF
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } >/dev/null; then
3091   if test -s conftest.err; then
3092     ac_cpp_err=$ac_c_preproc_warn_flag
3093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094   else
3095     ac_cpp_err=
3096   fi
3097 else
3098   ac_cpp_err=yes
3099 fi
3100 if test -z "$ac_cpp_err"; then
3101   :
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106   # Broken: fails on valid input.
3107 continue
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111   # OK, works on sane cases.  Now check whether non-existent headers
3112   # can be detected and how.
3113   cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119 #include <ac_nonexistent.h>
3120 _ACEOF
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } >/dev/null; then
3129   if test -s conftest.err; then
3130     ac_cpp_err=$ac_c_preproc_warn_flag
3131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132   else
3133     ac_cpp_err=
3134   fi
3135 else
3136   ac_cpp_err=yes
3137 fi
3138 if test -z "$ac_cpp_err"; then
3139   # Broken: success on invalid input.
3140 continue
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145   # Passes both tests.
3146 ac_preproc_ok=:
3147 break
3148 fi
3149 rm -f conftest.err conftest.$ac_ext
3150
3151 done
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then
3155   break
3156 fi
3157
3158     done
3159     ac_cv_prog_CPP=$CPP
3160
3161 fi
3162   CPP=$ac_cv_prog_CPP
3163 else
3164   ac_cv_prog_CPP=$CPP
3165 fi
3166 echo "$as_me:$LINENO: result: $CPP" >&5
3167 echo "${ECHO_T}$CPP" >&6
3168 ac_preproc_ok=false
3169 for ac_c_preproc_warn_flag in '' yes
3170 do
3171   # Use a header file that comes with gcc, so configuring glibc
3172   # with a fresh cross-compiler works.
3173   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174   # <limits.h> exists even on freestanding compilers.
3175   # On the NeXT, cc -E runs the code through the compiler's parser,
3176   # not just through cpp. "Syntax error" is here to catch this case.
3177   cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183 #ifdef __STDC__
3184 # include <limits.h>
3185 #else
3186 # include <assert.h>
3187 #endif
3188                      Syntax error
3189 _ACEOF
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } >/dev/null; then
3198   if test -s conftest.err; then
3199     ac_cpp_err=$ac_c_preproc_warn_flag
3200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3201   else
3202     ac_cpp_err=
3203   fi
3204 else
3205   ac_cpp_err=yes
3206 fi
3207 if test -z "$ac_cpp_err"; then
3208   :
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213   # Broken: fails on valid input.
3214 continue
3215 fi
3216 rm -f conftest.err conftest.$ac_ext
3217
3218   # OK, works on sane cases.  Now check whether non-existent headers
3219   # can be detected and how.
3220   cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226 #include <ac_nonexistent.h>
3227 _ACEOF
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } >/dev/null; then
3236   if test -s conftest.err; then
3237     ac_cpp_err=$ac_c_preproc_warn_flag
3238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3239   else
3240     ac_cpp_err=
3241   fi
3242 else
3243   ac_cpp_err=yes
3244 fi
3245 if test -z "$ac_cpp_err"; then
3246   # Broken: success on invalid input.
3247 continue
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252   # Passes both tests.
3253 ac_preproc_ok=:
3254 break
3255 fi
3256 rm -f conftest.err conftest.$ac_ext
3257
3258 done
3259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3260 rm -f conftest.err conftest.$ac_ext
3261 if $ac_preproc_ok; then
3262   :
3263 else
3264   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3267 See \`config.log' for more details." >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276
3277
3278 if test "$GCC" != "yes"
3279 then
3280         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3281 echo "$as_me: error: gcc required but not found" >&2;}
3282    { (exit 1); exit 1; }; }
3283 fi
3284 if test "$GXX" != "yes"
3285 then
3286         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3287 echo "$as_me: error: g++ required but not found" >&2;}
3288    { (exit 1); exit 1; }; }
3289 fi
3290
3291 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3292 if test "$gccmajor" -lt "3"
3293 then
3294         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3295 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3296    { (exit 1); exit 1; }; }
3297 fi
3298
3299  echo "$as_me:$LINENO: checking for GNU make" >&5
3300 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3301 if test "${_cv_gnu_make_command+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   _cv_gnu_make_command='' ;
3305                 for a in "$MAKE" make gmake gnumake ; do
3306                         if test -z "$a" ; then continue ; fi ;
3307                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3308                                 _cv_gnu_make_command=$a ;
3309                                 break;
3310                         fi
3311                 done ;
3312
3313 fi
3314 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3315 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3316         if test  "x$_cv_gnu_make_command" != "x"  ; then
3317                 ifGNUmake='' ;
3318         else
3319                 ifGNUmake='#' ;
3320                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3321 echo "${ECHO_T}\"Not found\"" >&6;
3322         fi
3323
3324
3325 if test -z "$_cv_gnu_make_command"
3326 then
3327         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3328 echo "$as_me: error: GNU Make required but not found" >&2;}
3329    { (exit 1); exit 1; }; }
3330 fi
3331
3332
3333 echo "$as_me:$LINENO: checking " >&5
3334 echo $ECHO_N "checking ... $ECHO_C" >&6
3335 if test "${ac_cv_has_flex+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   for ac_prog in flex lex
3339 do
3340   # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_LEX+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   if test -n "$LEX"; then
3348   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_prog_LEX="$ac_prog"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364 fi
3365 fi
3366 LEX=$ac_cv_prog_LEX
3367 if test -n "$LEX"; then
3368   echo "$as_me:$LINENO: result: $LEX" >&5
3369 echo "${ECHO_T}$LEX" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375   test -n "$LEX" && break
3376 done
3377 test -n "$LEX" || LEX=":"
3378
3379 if test -z "$LEXLIB"
3380 then
3381   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3382 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3383 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   ac_check_lib_save_LIBS=$LIBS
3387 LIBS="-lfl  $LIBS"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 /* Override any gcc2 internal prototype to avoid an error.  */
3396 #ifdef __cplusplus
3397 extern "C"
3398 #endif
3399 /* We use char because int might match the return type of a gcc2
3400    builtin and then its argument prototype would still apply.  */
3401 char yywrap ();
3402 int
3403 main ()
3404 {
3405 yywrap ();
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412   (eval $ac_link) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"
3420                          || test ! -s conftest.err'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest$ac_exeext'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   ac_cv_lib_fl_yywrap=yes
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 ac_cv_lib_fl_yywrap=no
3438 fi
3439 rm -f conftest.err conftest.$ac_objext \
3440       conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3442 fi
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3444 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3445 if test $ac_cv_lib_fl_yywrap = yes; then
3446   LEXLIB="-lfl"
3447 else
3448   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3449 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3450 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   ac_check_lib_save_LIBS=$LIBS
3454 LIBS="-ll  $LIBS"
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 /* Override any gcc2 internal prototype to avoid an error.  */
3463 #ifdef __cplusplus
3464 extern "C"
3465 #endif
3466 /* We use char because int might match the return type of a gcc2
3467    builtin and then its argument prototype would still apply.  */
3468 char yywrap ();
3469 int
3470 main ()
3471 {
3472 yywrap ();
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext conftest$ac_exeext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3479   (eval $ac_link) 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } &&
3486          { ac_try='test -z "$ac_c_werror_flag"
3487                          || test ! -s conftest.err'
3488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489   (eval $ac_try) 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }; } &&
3493          { ac_try='test -s conftest$ac_exeext'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; }; then
3499   ac_cv_lib_l_yywrap=yes
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 ac_cv_lib_l_yywrap=no
3505 fi
3506 rm -f conftest.err conftest.$ac_objext \
3507       conftest$ac_exeext conftest.$ac_ext
3508 LIBS=$ac_check_lib_save_LIBS
3509 fi
3510 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3511 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3512 if test $ac_cv_lib_l_yywrap = yes; then
3513   LEXLIB="-ll"
3514 fi
3515
3516 fi
3517
3518 fi
3519
3520 if test "x$LEX" != "x:"; then
3521   echo "$as_me:$LINENO: checking lex output file root" >&5
3522 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3523 if test "${ac_cv_prog_lex_root+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   # The minimal lex program is just a single line: %%.  But some broken lexes
3527 # (Solaris, I think it was) want two %% lines, so accommodate them.
3528 cat >conftest.l <<_ACEOF
3529 %%
3530 %%
3531 _ACEOF
3532 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3533   (eval $LEX conftest.l) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }
3537 if test -f lex.yy.c; then
3538   ac_cv_prog_lex_root=lex.yy
3539 elif test -f lexyy.c; then
3540   ac_cv_prog_lex_root=lexyy
3541 else
3542   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3543 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3544    { (exit 1); exit 1; }; }
3545 fi
3546 fi
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3548 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3549 rm -f conftest.l
3550 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3551
3552 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3553 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3554 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   # POSIX says lex can declare yytext either as a pointer or an array; the
3558 # default is implementation-dependent. Figure out which it is, since
3559 # not all implementations provide the %pointer and %array declarations.
3560 ac_cv_prog_lex_yytext_pointer=no
3561 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3562 ac_save_LIBS=$LIBS
3563 LIBS="$LIBS $LEXLIB"
3564 cat >conftest.$ac_ext <<_ACEOF
3565 `cat $LEX_OUTPUT_ROOT.c`
3566 _ACEOF
3567 rm -f conftest.$ac_objext conftest$ac_exeext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3569   (eval $ac_link) 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_c_werror_flag"
3577                          || test ! -s conftest.err'
3578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; } &&
3583          { ac_try='test -s conftest$ac_exeext'
3584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585   (eval $ac_try) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; }; then
3589   ac_cv_prog_lex_yytext_pointer=yes
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 fi
3595 rm -f conftest.err conftest.$ac_objext \
3596       conftest$ac_exeext conftest.$ac_ext
3597 LIBS=$ac_save_LIBS
3598 rm -f "${LEX_OUTPUT_ROOT}.c"
3599
3600 fi
3601 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3602 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3603 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define YYTEXT_POINTER 1
3607 _ACEOF
3608
3609 fi
3610
3611 fi
3612
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3615 echo "${ECHO_T}$ac_cv_has_flex" >&6
3616 if test "$LEX" != "flex"; then
3617   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3618 echo "$as_me: error: flex not found but required" >&2;}
3619    { (exit 1); exit 1; }; }
3620 fi
3621
3622 echo "$as_me:$LINENO: checking " >&5
3623 echo $ECHO_N "checking ... $ECHO_C" >&6
3624 if test "${ac_cv_has_bison+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   for ac_prog in 'bison -y' byacc
3628 do
3629   # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy $ac_prog; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_prog_YACC+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   if test -n "$YACC"; then
3637   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644   for ac_exec_ext in '' $ac_executable_extensions; do
3645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646     ac_cv_prog_YACC="$ac_prog"
3647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648     break 2
3649   fi
3650 done
3651 done
3652
3653 fi
3654 fi
3655 YACC=$ac_cv_prog_YACC
3656 if test -n "$YACC"; then
3657   echo "$as_me:$LINENO: result: $YACC" >&5
3658 echo "${ECHO_T}$YACC" >&6
3659 else
3660   echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664   test -n "$YACC" && break
3665 done
3666 test -n "$YACC" || YACC="yacc"
3667
3668
3669 fi
3670 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3671 echo "${ECHO_T}$ac_cv_has_bison" >&6
3672 if test "$YACC" != "bison -y"; then
3673   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3674 echo "$as_me: error: bison not found but required" >&2;}
3675    { (exit 1); exit 1; }; }
3676 else
3677   BISON=bison
3678
3679 fi
3680
3681 # Check whether --enable-shared or --disable-shared was given.
3682 if test "${enable_shared+set}" = set; then
3683   enableval="$enable_shared"
3684   p=${PACKAGE-default}
3685     case $enableval in
3686     yes) enable_shared=yes ;;
3687     no) enable_shared=no ;;
3688     *)
3689       enable_shared=no
3690       # Look at the argument we got.  We use all the common list separators.
3691       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3692       for pkg in $enableval; do
3693         IFS="$lt_save_ifs"
3694         if test "X$pkg" = "X$p"; then
3695           enable_shared=yes
3696         fi
3697       done
3698       IFS="$lt_save_ifs"
3699       ;;
3700     esac
3701 else
3702   enable_shared=yes
3703 fi;
3704
3705 # Check whether --enable-static or --disable-static was given.
3706 if test "${enable_static+set}" = set; then
3707   enableval="$enable_static"
3708   p=${PACKAGE-default}
3709     case $enableval in
3710     yes) enable_static=yes ;;
3711     no) enable_static=no ;;
3712     *)
3713      enable_static=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_static=yes
3720         fi
3721       done
3722       IFS="$lt_save_ifs"
3723       ;;
3724     esac
3725 else
3726   enable_static=yes
3727 fi;
3728
3729 # Check whether --enable-fast-install or --disable-fast-install was given.
3730 if test "${enable_fast_install+set}" = set; then
3731   enableval="$enable_fast_install"
3732   p=${PACKAGE-default}
3733     case $enableval in
3734     yes) enable_fast_install=yes ;;
3735     no) enable_fast_install=no ;;
3736     *)
3737       enable_fast_install=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_fast_install=yes
3744         fi
3745       done
3746       IFS="$lt_save_ifs"
3747       ;;
3748     esac
3749 else
3750   enable_fast_install=yes
3751 fi;
3752
3753 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3754 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3755 if test "${lt_cv_path_SED+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   # Loop through the user's path and test for sed and gsed.
3759 # Then use that list of sed's as ones to test for truncation.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for lt_ac_prog in sed gsed; do
3766     for ac_exec_ext in '' $ac_executable_extensions; do
3767       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3768         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3769       fi
3770     done
3771   done
3772 done
3773 lt_ac_max=0
3774 lt_ac_count=0
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3778   test ! -f $lt_ac_sed && break
3779   cat /dev/null > conftest.in
3780   lt_ac_count=0
3781   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3782   # Check for GNU sed and select it if it is found.
3783   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3784     lt_cv_path_SED=$lt_ac_sed
3785     break
3786   fi
3787   while true; do
3788     cat conftest.in conftest.in >conftest.tmp
3789     mv conftest.tmp conftest.in
3790     cp conftest.in conftest.nl
3791     echo >>conftest.nl
3792     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3793     cmp -s conftest.out conftest.nl || break
3794     # 10000 chars as input seems more than enough
3795     test $lt_ac_count -gt 10 && break
3796     lt_ac_count=`expr $lt_ac_count + 1`
3797     if test $lt_ac_count -gt $lt_ac_max; then
3798       lt_ac_max=$lt_ac_count
3799       lt_cv_path_SED=$lt_ac_sed
3800     fi
3801   done
3802 done
3803 SED=$lt_cv_path_SED
3804
3805 fi
3806
3807 echo "$as_me:$LINENO: result: $SED" >&5
3808 echo "${ECHO_T}$SED" >&6
3809
3810 echo "$as_me:$LINENO: checking for egrep" >&5
3811 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3812 if test "${ac_cv_prog_egrep+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3816     then ac_cv_prog_egrep='grep -E'
3817     else ac_cv_prog_egrep='egrep'
3818     fi
3819 fi
3820 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3821 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3822  EGREP=$ac_cv_prog_egrep
3823
3824
3825
3826 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3827 if test "${with_gnu_ld+set}" = set; then
3828   withval="$with_gnu_ld"
3829   test "$withval" = no || with_gnu_ld=yes
3830 else
3831   with_gnu_ld=no
3832 fi;
3833 ac_prog=ld
3834 if test "$GCC" = yes; then
3835   # Check if gcc -print-prog-name=ld gives a path.
3836   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3837 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3838   case $host in
3839   *-*-mingw*)
3840     # gcc leaves a trailing carriage return which upsets mingw
3841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3842   *)
3843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3844   esac
3845   case $ac_prog in
3846     # Accept absolute paths.
3847     [\\/]* | ?:[\\/]*)
3848       re_direlt='/[^/][^/]*/\.\./'
3849       # Canonicalize the path of ld
3850       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3851       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3852         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3853       done
3854       test -z "$LD" && LD="$ac_prog"
3855       ;;
3856   "")
3857     # If it fails, then pretend we aren't using GCC.
3858     ac_prog=ld
3859     ;;
3860   *)
3861     # If it is relative, then search for the first ld in PATH.
3862     with_gnu_ld=unknown
3863     ;;
3864   esac
3865 elif test "$with_gnu_ld" = yes; then
3866   echo "$as_me:$LINENO: checking for GNU ld" >&5
3867 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3868 else
3869   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3870 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3871 fi
3872 if test "${lt_cv_path_LD+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   if test -z "$LD"; then
3876   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3877   for ac_dir in $PATH; do
3878     IFS="$lt_save_ifs"
3879     test -z "$ac_dir" && ac_dir=.
3880     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3881       lt_cv_path_LD="$ac_dir/$ac_prog"
3882       # Check to see if the program is GNU ld.  I'd rather use --version,
3883       # but apparently some GNU ld's only accept -v.
3884       # Break only if it was the GNU/non-GNU ld that we prefer.
3885       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3886       *GNU* | *'with BFD'*)
3887         test "$with_gnu_ld" != no && break
3888         ;;
3889       *)
3890         test "$with_gnu_ld" != yes && break
3891         ;;
3892       esac
3893     fi
3894   done
3895   IFS="$lt_save_ifs"
3896 else
3897   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3898 fi
3899 fi
3900
3901 LD="$lt_cv_path_LD"
3902 if test -n "$LD"; then
3903   echo "$as_me:$LINENO: result: $LD" >&5
3904 echo "${ECHO_T}$LD" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3910 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3911    { (exit 1); exit 1; }; }
3912 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3913 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3914 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3918 case `"$LD" -v 2>&1 </dev/null` in
3919 *GNU* | *'with BFD'*)
3920   lt_cv_prog_gnu_ld=yes
3921   ;;
3922 *)
3923   lt_cv_prog_gnu_ld=no
3924   ;;
3925 esac
3926 fi
3927 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3928 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3929 with_gnu_ld=$lt_cv_prog_gnu_ld
3930
3931
3932 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3933 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3934 if test "${lt_cv_ld_reload_flag+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   lt_cv_ld_reload_flag='-r'
3938 fi
3939 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3940 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3941 reload_flag=$lt_cv_ld_reload_flag
3942 case $reload_flag in
3943 "" | " "*) ;;
3944 *) reload_flag=" $reload_flag" ;;
3945 esac
3946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3947
3948 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3949 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3950 if test "${lt_cv_path_NM+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   if test -n "$NM"; then
3954   # Let the user override the test.
3955   lt_cv_path_NM="$NM"
3956 else
3957   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3958   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3959     IFS="$lt_save_ifs"
3960     test -z "$ac_dir" && ac_dir=.
3961     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3962     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3963       # Check to see if the nm accepts a BSD-compat flag.
3964       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3965       #   nm: unknown option "B" ignored
3966       # Tru64's nm complains that /dev/null is an invalid object file
3967       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3968       */dev/null* | *'Invalid file or object type'*)
3969         lt_cv_path_NM="$tmp_nm -B"
3970         break
3971         ;;
3972       *)
3973         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3974         */dev/null*)
3975           lt_cv_path_NM="$tmp_nm -p"
3976           break
3977           ;;
3978         *)
3979           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3980           continue # so that we can try to find one that supports BSD flags
3981           ;;
3982         esac
3983       esac
3984     fi
3985   done
3986   IFS="$lt_save_ifs"
3987   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3988 fi
3989 fi
3990 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3991 echo "${ECHO_T}$lt_cv_path_NM" >&6
3992 NM="$lt_cv_path_NM"
3993
3994 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3995 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3996 LN_S=$as_ln_s
3997 if test "$LN_S" = "ln -s"; then
3998   echo "$as_me:$LINENO: result: yes" >&5
3999 echo "${ECHO_T}yes" >&6
4000 else
4001   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4002 echo "${ECHO_T}no, using $LN_S" >&6
4003 fi
4004
4005 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4006 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4007 if test "${lt_cv_deplibs_check_method+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   lt_cv_file_magic_cmd='$MAGIC_CMD'
4011 lt_cv_file_magic_test_file=
4012 lt_cv_deplibs_check_method='unknown'
4013 # Need to set the preceding variable on all platforms that support
4014 # interlibrary dependencies.
4015 # 'none' -- dependencies not supported.
4016 # `unknown' -- same as none, but documents that we really don't know.
4017 # 'pass_all' -- all dependencies passed with no checks.
4018 # 'test_compile' -- check by making test program.
4019 # 'file_magic [[regex]]' -- check by looking for files in library path
4020 # which responds to the $file_magic_cmd with a given extended regex.
4021 # If you have `file' or equivalent on your system and you're not sure
4022 # whether `pass_all' will *always* work, you probably want this one.
4023
4024 case $host_os in
4025 aix4* | aix5*)
4026   lt_cv_deplibs_check_method=pass_all
4027   ;;
4028
4029 beos*)
4030   lt_cv_deplibs_check_method=pass_all
4031   ;;
4032
4033 bsdi4*)
4034   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4035   lt_cv_file_magic_cmd='/usr/bin/file -L'
4036   lt_cv_file_magic_test_file=/shlib/libc.so
4037   ;;
4038
4039 cygwin* | mingw* | pw32*)
4040   # win32_libid is a shell function defined in ltmain.sh
4041   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4042   lt_cv_file_magic_cmd='win32_libid'
4043   ;;
4044
4045 darwin* | rhapsody*)
4046   # this will be overwritten by pass_all, but leave it in just in case
4047   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4048   lt_cv_file_magic_cmd='/usr/bin/file -L'
4049   case "$host_os" in
4050   rhapsody* | darwin1.[012])
4051     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4052     ;;
4053   *) # Darwin 1.3 on
4054     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4055     ;;
4056   esac
4057   lt_cv_deplibs_check_method=pass_all
4058   ;;
4059
4060 freebsd*)
4061   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4062     case $host_cpu in
4063     i*86 )
4064       # Not sure whether the presence of OpenBSD here was a mistake.
4065       # Let's accept both of them until this is cleared up.
4066       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4067       lt_cv_file_magic_cmd=/usr/bin/file
4068       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4069       ;;
4070     esac
4071   else
4072     lt_cv_deplibs_check_method=pass_all
4073   fi
4074   ;;
4075
4076 gnu*)
4077   lt_cv_deplibs_check_method=pass_all
4078   ;;
4079
4080 hpux10.20* | hpux11*)
4081   lt_cv_file_magic_cmd=/usr/bin/file
4082   case "$host_cpu" in
4083   ia64*)
4084     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4085     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4086     ;;
4087   hppa*64*)
4088     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]'
4089     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4090     ;;
4091   *)
4092     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4093     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4094     ;;
4095   esac
4096   ;;
4097
4098 irix5* | irix6* | nonstopux*)
4099   case $host_os in
4100   irix5* | nonstopux*)
4101     # this will be overridden with pass_all, but let us keep it just in case
4102     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4103     ;;
4104   *)
4105     case $LD in
4106     *-32|*"-32 ") libmagic=32-bit;;
4107     *-n32|*"-n32 ") libmagic=N32;;
4108     *-64|*"-64 ") libmagic=64-bit;;
4109     *) libmagic=never-match;;
4110     esac
4111     # this will be overridden with pass_all, but let us keep it just in case
4112     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4113     ;;
4114   esac
4115   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4116   lt_cv_deplibs_check_method=pass_all
4117   ;;
4118
4119 # This must be Linux ELF.
4120 linux*)
4121   case $host_cpu in
4122   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4123     lt_cv_deplibs_check_method=pass_all ;;
4124   *)
4125     # glibc up to 2.1.1 does not perform some relocations on ARM
4126     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4127   esac
4128   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4129   ;;
4130
4131 netbsd*)
4132   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4134   else
4135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4136   fi
4137   ;;
4138
4139 newos6*)
4140   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4141   lt_cv_file_magic_cmd=/usr/bin/file
4142   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4143   ;;
4144
4145 nto-qnx)
4146   lt_cv_deplibs_check_method=unknown
4147   ;;
4148
4149 openbsd*)
4150   lt_cv_file_magic_cmd=/usr/bin/file
4151   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4152   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4153     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4154   else
4155     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4156   fi
4157   ;;
4158
4159 osf3* | osf4* | osf5*)
4160   # this will be overridden with pass_all, but let us keep it just in case
4161   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4162   lt_cv_file_magic_test_file=/shlib/libc.so
4163   lt_cv_deplibs_check_method=pass_all
4164   ;;
4165
4166 sco3.2v5*)
4167   lt_cv_deplibs_check_method=pass_all
4168   ;;
4169
4170 solaris*)
4171   lt_cv_deplibs_check_method=pass_all
4172   lt_cv_file_magic_test_file=/lib/libc.so
4173   ;;
4174
4175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4176   case $host_vendor in
4177   motorola)
4178     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]'
4179     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4180     ;;
4181   ncr)
4182     lt_cv_deplibs_check_method=pass_all
4183     ;;
4184   sequent)
4185     lt_cv_file_magic_cmd='/bin/file'
4186     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4187     ;;
4188   sni)
4189     lt_cv_file_magic_cmd='/bin/file'
4190     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4191     lt_cv_file_magic_test_file=/lib/libc.so
4192     ;;
4193   siemens)
4194     lt_cv_deplibs_check_method=pass_all
4195     ;;
4196   esac
4197   ;;
4198
4199 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4200   lt_cv_deplibs_check_method=pass_all
4201   ;;
4202 esac
4203
4204 fi
4205 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4206 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4207 file_magic_cmd=$lt_cv_file_magic_cmd
4208 deplibs_check_method=$lt_cv_deplibs_check_method
4209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4210
4211
4212
4213
4214 # If no C compiler was specified, use CC.
4215 LTCC=${LTCC-"$CC"}
4216
4217 # Allow CC to be a program name with arguments.
4218 compiler=$CC
4219
4220 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4221 if test "${enable_libtool_lock+set}" = set; then
4222   enableval="$enable_libtool_lock"
4223
4224 fi;
4225 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4226
4227 # Some flags need to be propagated to the compiler or linker for good
4228 # libtool support.
4229 case $host in
4230 ia64-*-hpux*)
4231   # Find out which ABI we are using.
4232   echo 'int i;' > conftest.$ac_ext
4233   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234   (eval $ac_compile) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; then
4238     case `/usr/bin/file conftest.$ac_objext` in
4239     *ELF-32*)
4240       HPUX_IA64_MODE="32"
4241       ;;
4242     *ELF-64*)
4243       HPUX_IA64_MODE="64"
4244       ;;
4245     esac
4246   fi
4247   rm -rf conftest*
4248   ;;
4249 *-*-irix6*)
4250   # Find out which ABI we are using.
4251   echo '#line 4251 "configure"' > conftest.$ac_ext
4252   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253   (eval $ac_compile) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; then
4257    if test "$lt_cv_prog_gnu_ld" = yes; then
4258     case `/usr/bin/file conftest.$ac_objext` in
4259     *32-bit*)
4260       LD="${LD-ld} -melf32bsmip"
4261       ;;
4262     *N32*)
4263       LD="${LD-ld} -melf32bmipn32"
4264       ;;
4265     *64-bit*)
4266       LD="${LD-ld} -melf64bmip"
4267       ;;
4268     esac
4269    else
4270     case `/usr/bin/file conftest.$ac_objext` in
4271     *32-bit*)
4272       LD="${LD-ld} -32"
4273       ;;
4274     *N32*)
4275       LD="${LD-ld} -n32"
4276       ;;
4277     *64-bit*)
4278       LD="${LD-ld} -64"
4279       ;;
4280     esac
4281    fi
4282   fi
4283   rm -rf conftest*
4284   ;;
4285
4286 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4287   # Find out which ABI we are using.
4288   echo 'int i;' > conftest.$ac_ext
4289   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290   (eval $ac_compile) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; then
4294     case "`/usr/bin/file conftest.o`" in
4295     *32-bit*)
4296       case $host in
4297         x86_64-*linux*)
4298           LD="${LD-ld} -m elf_i386"
4299           ;;
4300         ppc64-*linux*)
4301           LD="${LD-ld} -m elf32ppclinux"
4302           ;;
4303         s390x-*linux*)
4304           LD="${LD-ld} -m elf_s390"
4305           ;;
4306         sparc64-*linux*)
4307           LD="${LD-ld} -m elf32_sparc"
4308           ;;
4309       esac
4310       ;;
4311     *64-bit*)
4312       case $host in
4313         x86_64-*linux*)
4314           LD="${LD-ld} -m elf_x86_64"
4315           ;;
4316         ppc*-*linux*|powerpc*-*linux*)
4317           LD="${LD-ld} -m elf64ppc"
4318           ;;
4319         s390*-*linux*)
4320           LD="${LD-ld} -m elf64_s390"
4321           ;;
4322         sparc*-*linux*)
4323           LD="${LD-ld} -m elf64_sparc"
4324           ;;
4325       esac
4326       ;;
4327     esac
4328   fi
4329   rm -rf conftest*
4330   ;;
4331
4332 *-*-sco3.2v5*)
4333   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4334   SAVE_CFLAGS="$CFLAGS"
4335   CFLAGS="$CFLAGS -belf"
4336   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4337 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4338 if test "${lt_cv_cc_needs_belf+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347      cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353
4354 int
4355 main ()
4356 {
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364   (eval $ac_link) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag"
4372                          || test ! -s conftest.err'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest$ac_exeext'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; }; then
4384   lt_cv_cc_needs_belf=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 lt_cv_cc_needs_belf=no
4390 fi
4391 rm -f conftest.err conftest.$ac_objext \
4392       conftest$ac_exeext conftest.$ac_ext
4393      ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
4399 fi
4400 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4401 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4402   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4403     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4404     CFLAGS="$SAVE_CFLAGS"
4405   fi
4406   ;;
4407
4408 esac
4409
4410 need_locks="$enable_libtool_lock"
4411
4412
4413
4414 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4415 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4416 if test "${ac_cv_header_stdc+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h.  */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h.  */
4425 #include <stdlib.h>
4426 #include <stdarg.h>
4427 #include <string.h>
4428 #include <float.h>
4429
4430 int
4431 main ()
4432 {
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440   (eval $ac_compile) 2>conftest.er1
4441   ac_status=$?
4442   grep -v '^ *+' conftest.er1 >conftest.err
4443   rm -f conftest.er1
4444   cat conftest.err >&5
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } &&
4447          { ac_try='test -z "$ac_c_werror_flag"
4448                          || test ! -s conftest.err'
4449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450   (eval $ac_try) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; } &&
4454          { ac_try='test -s conftest.$ac_objext'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460   ac_cv_header_stdc=yes
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_cv_header_stdc=no
4466 fi
4467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4468
4469 if test $ac_cv_header_stdc = yes; then
4470   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 #include <string.h>
4478
4479 _ACEOF
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481   $EGREP "memchr" >/dev/null 2>&1; then
4482   :
4483 else
4484   ac_cv_header_stdc=no
4485 fi
4486 rm -f conftest*
4487
4488 fi
4489
4490 if test $ac_cv_header_stdc = yes; then
4491   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 #include <stdlib.h>
4499
4500 _ACEOF
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502   $EGREP "free" >/dev/null 2>&1; then
4503   :
4504 else
4505   ac_cv_header_stdc=no
4506 fi
4507 rm -f conftest*
4508
4509 fi
4510
4511 if test $ac_cv_header_stdc = yes; then
4512   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513   if test "$cross_compiling" = yes; then
4514   :
4515 else
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 <ctype.h>
4523 #if ((' ' & 0x0FF) == 0x020)
4524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526 #else
4527 # define ISLOWER(c) \
4528                    (('a' <= (c) && (c) <= 'i') \
4529                      || ('j' <= (c) && (c) <= 'r') \
4530                      || ('s' <= (c) && (c) <= 'z'))
4531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532 #endif
4533
4534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535 int
4536 main ()
4537 {
4538   int i;
4539   for (i = 0; i < 256; i++)
4540     if (XOR (islower (i), ISLOWER (i))
4541         || toupper (i) != TOUPPER (i))
4542       exit(2);
4543   exit (0);
4544 }
4545 _ACEOF
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548   (eval $ac_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   :
4558 else
4559   echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ( exit $ac_status )
4564 ac_cv_header_stdc=no
4565 fi
4566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 fi
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4572 if test $ac_cv_header_stdc = yes; then
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4576 _ACEOF
4577
4578 fi
4579
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591                   inttypes.h stdint.h unistd.h
4592 do
4593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605 $ac_includes_default
4606
4607 #include <$ac_header>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } &&
4618          { ac_try='test -z "$ac_c_werror_flag"
4619                          || test ! -s conftest.err'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; } &&
4625          { ac_try='test -s conftest.$ac_objext'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   eval "$as_ac_Header=yes"
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 eval "$as_ac_Header=no"
4637 fi
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 fi
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643   cat >>confdefs.h <<_ACEOF
4644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 _ACEOF
4646
4647 fi
4648
4649 done
4650
4651
4652
4653 for ac_header in dlfcn.h
4654 do
4655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4657   echo "$as_me:$LINENO: checking for $ac_header" >&5
4658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 fi
4662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4664 else
4665   # Is the header compilable?
4666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 $ac_includes_default
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679   (eval $ac_compile) 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } &&
4686          { ac_try='test -z "$ac_c_werror_flag"
4687                          || test ! -s conftest.err'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_header_compiler=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 ac_header_compiler=no
4705 fi
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4708 echo "${ECHO_T}$ac_header_compiler" >&6
4709
4710 # Is the header present?
4711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719 #include <$ac_header>
4720 _ACEOF
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } >/dev/null; then
4729   if test -s conftest.err; then
4730     ac_cpp_err=$ac_c_preproc_warn_flag
4731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4732   else
4733     ac_cpp_err=
4734   fi
4735 else
4736   ac_cpp_err=yes
4737 fi
4738 if test -z "$ac_cpp_err"; then
4739   ac_header_preproc=yes
4740 else
4741   echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744   ac_header_preproc=no
4745 fi
4746 rm -f conftest.err conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4748 echo "${ECHO_T}$ac_header_preproc" >&6
4749
4750 # So?  What about this header?
4751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4752   yes:no: )
4753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4757     ac_header_preproc=yes
4758     ;;
4759   no:yes:* )
4760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4772     (
4773       cat <<\_ASBOX
4774 ## ----------------------------------- ##
4775 ## Report this to llvmbugs@cs.uiuc.edu ##
4776 ## ----------------------------------- ##
4777 _ASBOX
4778     ) |
4779       sed "s/^/$as_me: WARNING:     /" >&2
4780     ;;
4781 esac
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   eval "$as_ac_Header=\$ac_header_preproc"
4788 fi
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791
4792 fi
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794   cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796 _ACEOF
4797
4798 fi
4799
4800 done
4801
4802 ac_ext=cc
4803 ac_cpp='$CXXCPP $CPPFLAGS'
4804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4807 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4808 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4809 if test -z "$CXXCPP"; then
4810   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813       # Double quotes because CXXCPP needs to be expanded
4814     for CXXCPP in "$CXX -E" "/lib/cpp"
4815     do
4816       ac_preproc_ok=false
4817 for ac_cxx_preproc_warn_flag in '' yes
4818 do
4819   # Use a header file that comes with gcc, so configuring glibc
4820   # with a fresh cross-compiler works.
4821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822   # <limits.h> exists even on freestanding compilers.
4823   # On the NeXT, cc -E runs the code through the compiler's parser,
4824   # not just through cpp. "Syntax error" is here to catch this case.
4825   cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831 #ifdef __STDC__
4832 # include <limits.h>
4833 #else
4834 # include <assert.h>
4835 #endif
4836                      Syntax error
4837 _ACEOF
4838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } >/dev/null; then
4846   if test -s conftest.err; then
4847     ac_cpp_err=$ac_cxx_preproc_warn_flag
4848     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4849   else
4850     ac_cpp_err=
4851   fi
4852 else
4853   ac_cpp_err=yes
4854 fi
4855 if test -z "$ac_cpp_err"; then
4856   :
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861   # Broken: fails on valid input.
4862 continue
4863 fi
4864 rm -f conftest.err conftest.$ac_ext
4865
4866   # OK, works on sane cases.  Now check whether non-existent headers
4867   # can be detected and how.
4868   cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874 #include <ac_nonexistent.h>
4875 _ACEOF
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878   ac_status=$?
4879   grep -v '^ *+' conftest.er1 >conftest.err
4880   rm -f conftest.er1
4881   cat conftest.err >&5
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } >/dev/null; then
4884   if test -s conftest.err; then
4885     ac_cpp_err=$ac_cxx_preproc_warn_flag
4886     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4887   else
4888     ac_cpp_err=
4889   fi
4890 else
4891   ac_cpp_err=yes
4892 fi
4893 if test -z "$ac_cpp_err"; then
4894   # Broken: success on invalid input.
4895 continue
4896 else
4897   echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900   # Passes both tests.
4901 ac_preproc_ok=:
4902 break
4903 fi
4904 rm -f conftest.err conftest.$ac_ext
4905
4906 done
4907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908 rm -f conftest.err conftest.$ac_ext
4909 if $ac_preproc_ok; then
4910   break
4911 fi
4912
4913     done
4914     ac_cv_prog_CXXCPP=$CXXCPP
4915
4916 fi
4917   CXXCPP=$ac_cv_prog_CXXCPP
4918 else
4919   ac_cv_prog_CXXCPP=$CXXCPP
4920 fi
4921 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4922 echo "${ECHO_T}$CXXCPP" >&6
4923 ac_preproc_ok=false
4924 for ac_cxx_preproc_warn_flag in '' yes
4925 do
4926   # Use a header file that comes with gcc, so configuring glibc
4927   # with a fresh cross-compiler works.
4928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929   # <limits.h> exists even on freestanding compilers.
4930   # On the NeXT, cc -E runs the code through the compiler's parser,
4931   # not just through cpp. "Syntax error" is here to catch this case.
4932   cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943                      Syntax error
4944 _ACEOF
4945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } >/dev/null; then
4953   if test -s conftest.err; then
4954     ac_cpp_err=$ac_cxx_preproc_warn_flag
4955     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4956   else
4957     ac_cpp_err=
4958   fi
4959 else
4960   ac_cpp_err=yes
4961 fi
4962 if test -z "$ac_cpp_err"; then
4963   :
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4967
4968   # Broken: fails on valid input.
4969 continue
4970 fi
4971 rm -f conftest.err conftest.$ac_ext
4972
4973   # OK, works on sane cases.  Now check whether non-existent headers
4974   # can be detected and how.
4975   cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 #include <ac_nonexistent.h>
4982 _ACEOF
4983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } >/dev/null; then
4991   if test -s conftest.err; then
4992     ac_cpp_err=$ac_cxx_preproc_warn_flag
4993     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4994   else
4995     ac_cpp_err=
4996   fi
4997 else
4998   ac_cpp_err=yes
4999 fi
5000 if test -z "$ac_cpp_err"; then
5001   # Broken: success on invalid input.
5002 continue
5003 else
5004   echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007   # Passes both tests.
5008 ac_preproc_ok=:
5009 break
5010 fi
5011 rm -f conftest.err conftest.$ac_ext
5012
5013 done
5014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015 rm -f conftest.err conftest.$ac_ext
5016 if $ac_preproc_ok; then
5017   :
5018 else
5019   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5020 See \`config.log' for more details." >&5
5021 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5022 See \`config.log' for more details." >&2;}
5023    { (exit 1); exit 1; }; }
5024 fi
5025
5026 ac_ext=cc
5027 ac_cpp='$CXXCPP $CPPFLAGS'
5028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031
5032
5033 ac_ext=f
5034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5037 if test -n "$ac_tool_prefix"; then
5038   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5039   do
5040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_F77+set}" = set; then
5045   echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047   if test -n "$F77"; then
5048   ac_cv_prog_F77="$F77" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055   for ac_exec_ext in '' $ac_executable_extensions; do
5056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062 done
5063
5064 fi
5065 fi
5066 F77=$ac_cv_prog_F77
5067 if test -n "$F77"; then
5068   echo "$as_me:$LINENO: result: $F77" >&5
5069 echo "${ECHO_T}$F77" >&6
5070 else
5071   echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5073 fi
5074
5075     test -n "$F77" && break
5076   done
5077 fi
5078 if test -z "$F77"; then
5079   ac_ct_F77=$F77
5080   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5081 do
5082   # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   if test -n "$ac_ct_F77"; then
5090   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097   for ac_exec_ext in '' $ac_executable_extensions; do
5098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_prog_ac_ct_F77="$ac_prog"
5100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104 done
5105
5106 fi
5107 fi
5108 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5109 if test -n "$ac_ct_F77"; then
5110   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5111 echo "${ECHO_T}$ac_ct_F77" >&6
5112 else
5113   echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 fi
5116
5117   test -n "$ac_ct_F77" && break
5118 done
5119
5120   F77=$ac_ct_F77
5121 fi
5122
5123
5124 # Provide some information about the compiler.
5125 echo "$as_me:5125:" \
5126      "checking for Fortran 77 compiler version" >&5
5127 ac_compiler=`set X $ac_compile; echo $2`
5128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5129   (eval $ac_compiler --version </dev/null >&5) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); }
5133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5134   (eval $ac_compiler -v </dev/null >&5) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }
5138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5139   (eval $ac_compiler -V </dev/null >&5) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }
5143 rm -f a.out
5144
5145 # If we don't use `.F' as extension, the preprocessor is not run on the
5146 # input file.  (Note that this only needs to work for GNU compilers.)
5147 ac_save_ext=$ac_ext
5148 ac_ext=F
5149 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5150 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5151 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5152   echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154   cat >conftest.$ac_ext <<_ACEOF
5155       program main
5156 #ifndef __GNUC__
5157        choke me
5158 #endif
5159
5160       end
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164   (eval $ac_compile) 2>conftest.er1
5165   ac_status=$?
5166   grep -v '^ *+' conftest.er1 >conftest.err
5167   rm -f conftest.er1
5168   cat conftest.err >&5
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -z "$ac_f77_werror_flag"
5172                          || test ! -s conftest.err'
5173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174   (eval $ac_try) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; } &&
5178          { ac_try='test -s conftest.$ac_objext'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; }; then
5184   ac_compiler_gnu=yes
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_compiler_gnu=no
5190 fi
5191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5192 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5193
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5196 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5197 ac_ext=$ac_save_ext
5198 ac_test_FFLAGS=${FFLAGS+set}
5199 ac_save_FFLAGS=$FFLAGS
5200 FFLAGS=
5201 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5202 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5203 if test "${ac_cv_prog_f77_g+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   FFLAGS=-g
5207 cat >conftest.$ac_ext <<_ACEOF
5208       program main
5209
5210       end
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214   (eval $ac_compile) 2>conftest.er1
5215   ac_status=$?
5216   grep -v '^ *+' conftest.er1 >conftest.err
5217   rm -f conftest.er1
5218   cat conftest.err >&5
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); } &&
5221          { ac_try='test -z "$ac_f77_werror_flag"
5222                          || test ! -s conftest.err'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; } &&
5228          { ac_try='test -s conftest.$ac_objext'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; }; then
5234   ac_cv_prog_f77_g=yes
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 ac_cv_prog_f77_g=no
5240 fi
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242
5243 fi
5244 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5245 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5246 if test "$ac_test_FFLAGS" = set; then
5247   FFLAGS=$ac_save_FFLAGS
5248 elif test $ac_cv_prog_f77_g = yes; then
5249   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5250     FFLAGS="-g -O2"
5251   else
5252     FFLAGS="-g"
5253   fi
5254 else
5255   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5256     FFLAGS="-O2"
5257   else
5258     FFLAGS=
5259   fi
5260 fi
5261
5262 G77=`test $ac_compiler_gnu = yes && echo yes`
5263 ac_ext=c
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268
5269
5270
5271 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5272
5273 # find the maximum length of command line arguments
5274 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5275 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5276 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279     i=0
5280   testring="ABCD"
5281
5282   case $build_os in
5283   msdosdjgpp*)
5284     # On DJGPP, this test can blow up pretty badly due to problems in libc
5285     # (any single argument exceeding 2000 bytes causes a buffer overrun
5286     # during glob expansion).  Even if it were fixed, the result of this
5287     # check would be larger than it should be.
5288     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5289     ;;
5290
5291   gnu*)
5292     # Under GNU Hurd, this test is not required because there is
5293     # no limit to the length of command line arguments.
5294     # Libtool will interpret -1 as no limit whatsoever
5295     lt_cv_sys_max_cmd_len=-1;
5296     ;;
5297
5298   cygwin* | mingw*)
5299     # On Win9x/ME, this test blows up -- it succeeds, but takes
5300     # about 5 minutes as the teststring grows exponentially.
5301     # Worse, since 9x/ME are not pre-emptively multitasking,
5302     # you end up with a "frozen" computer, even though with patience
5303     # the test eventually succeeds (with a max line length of 256k).
5304     # Instead, let's just punt: use the minimum linelength reported by
5305     # all of the supported platforms: 8192 (on NT/2K/XP).
5306     lt_cv_sys_max_cmd_len=8192;
5307     ;;
5308
5309  *)
5310     # If test is not a shell built-in, we'll probably end up computing a
5311     # maximum length that is only half of the actual maximum length, but
5312     # we can't tell.
5313     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5314                = "XX$testring") >/dev/null 2>&1 &&
5315             new_result=`expr "X$testring" : ".*" 2>&1` &&
5316             lt_cv_sys_max_cmd_len=$new_result &&
5317             test $i != 17 # 1/2 MB should be enough
5318     do
5319       i=`expr $i + 1`
5320       testring=$testring$testring
5321     done
5322     testring=
5323     # Add a significant safety factor because C++ compilers can tack on massive
5324     # amounts of additional arguments before passing them to the linker.
5325     # It appears as though 1/2 is a usable value.
5326     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5327     ;;
5328   esac
5329
5330 fi
5331
5332 if test -n $lt_cv_sys_max_cmd_len ; then
5333   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5334 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5335 else
5336   echo "$as_me:$LINENO: result: none" >&5
5337 echo "${ECHO_T}none" >&6
5338 fi
5339
5340
5341
5342
5343 # Check for command to grab the raw symbol name followed by C symbol from nm.
5344 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5345 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5346 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349
5350 # These are sane defaults that work on at least a few old systems.
5351 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5352
5353 # Character class describing NM global symbol codes.
5354 symcode='[BCDEGRST]'
5355
5356 # Regexp to match symbols that can be accessed directly from C.
5357 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5358
5359 # Transform the above into a raw symbol and a C symbol.
5360 symxfrm='\1 \2\3 \3'
5361
5362 # Transform an extracted symbol line into a proper C declaration
5363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5364
5365 # Transform an extracted symbol line into symbol name and symbol address
5366 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'"
5367
5368 # Define system-specific variables.
5369 case $host_os in
5370 aix*)
5371   symcode='[BCDT]'
5372   ;;
5373 cygwin* | mingw* | pw32*)
5374   symcode='[ABCDGISTW]'
5375   ;;
5376 hpux*) # Its linker distinguishes data from code symbols
5377   if test "$host_cpu" = ia64; then
5378     symcode='[ABCDEGRST]'
5379   fi
5380   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5381   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'"
5382   ;;
5383 irix* | nonstopux*)
5384   symcode='[BCDEGRST]'
5385   ;;
5386 osf*)
5387   symcode='[BCDEGQRST]'
5388   ;;
5389 solaris* | sysv5*)
5390   symcode='[BDT]'
5391   ;;
5392 sysv4)
5393   symcode='[DFNSTU]'
5394   ;;
5395 esac
5396
5397 # Handle CRLF in mingw tool chain
5398 opt_cr=
5399 case $build_os in
5400 mingw*)
5401   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5402   ;;
5403 esac
5404
5405 # If we're using GNU nm, then use its standard symbol codes.
5406 case `$NM -V 2>&1` in
5407 *GNU* | *'with BFD'*)
5408   symcode='[ABCDGISTW]' ;;
5409 esac
5410
5411 # Try without a prefix undercore, then with it.
5412 for ac_symprfx in "" "_"; do
5413
5414   # Write the raw and C identifiers.
5415   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5416
5417   # Check to see that the pipe works correctly.
5418   pipe_works=no
5419
5420   rm -f conftest*
5421   cat > conftest.$ac_ext <<EOF
5422 #ifdef __cplusplus
5423 extern "C" {
5424 #endif
5425 char nm_test_var;
5426 void nm_test_func(){}
5427 #ifdef __cplusplus
5428 }
5429 #endif
5430 int main(){nm_test_var='a';nm_test_func();return(0);}
5431 EOF
5432
5433   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434   (eval $ac_compile) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; then
5438     # Now try to grab the symbols.
5439     nlist=conftest.nm
5440     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5441   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } && test -s "$nlist"; then
5445       # Try sorting and uniquifying the output.
5446       if sort "$nlist" | uniq > "$nlist"T; then
5447         mv -f "$nlist"T "$nlist"
5448       else
5449         rm -f "$nlist"T
5450       fi
5451
5452       # Make sure that we snagged all the symbols we need.
5453       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5454         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5455           cat <<EOF > conftest.$ac_ext
5456 #ifdef __cplusplus
5457 extern "C" {
5458 #endif
5459
5460 EOF
5461           # Now generate the symbol file.
5462           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5463
5464           cat <<EOF >> conftest.$ac_ext
5465 #if defined (__STDC__) && __STDC__
5466 # define lt_ptr_t void *
5467 #else
5468 # define lt_ptr_t char *
5469 # define const
5470 #endif
5471
5472 /* The mapping between symbol names and symbols. */
5473 const struct {
5474   const char *name;
5475   lt_ptr_t address;
5476 }
5477 lt_preloaded_symbols[] =
5478 {
5479 EOF
5480           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5481           cat <<\EOF >> conftest.$ac_ext
5482   {0, (lt_ptr_t) 0}
5483 };
5484
5485 #ifdef __cplusplus
5486 }
5487 #endif
5488 EOF
5489           # Now try linking the two files.
5490           mv conftest.$ac_objext conftstm.$ac_objext
5491           lt_save_LIBS="$LIBS"
5492           lt_save_CFLAGS="$CFLAGS"
5493           LIBS="conftstm.$ac_objext"
5494           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5495           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496   (eval $ac_link) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5500             pipe_works=yes
5501           fi
5502           LIBS="$lt_save_LIBS"
5503           CFLAGS="$lt_save_CFLAGS"
5504         else
5505           echo "cannot find nm_test_func in $nlist" >&5
5506         fi
5507       else
5508         echo "cannot find nm_test_var in $nlist" >&5
5509       fi
5510     else
5511       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5512     fi
5513   else
5514     echo "$progname: failed program was:" >&5
5515     cat conftest.$ac_ext >&5
5516   fi
5517   rm -f conftest* conftst*
5518
5519   # Do not use the global_symbol_pipe unless it works.
5520   if test "$pipe_works" = yes; then
5521     break
5522   else
5523     lt_cv_sys_global_symbol_pipe=
5524   fi
5525 done
5526
5527 fi
5528
5529 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5530   lt_cv_sys_global_symbol_to_cdecl=
5531 fi
5532 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5533   echo "$as_me:$LINENO: result: failed" >&5
5534 echo "${ECHO_T}failed" >&6
5535 else
5536   echo "$as_me:$LINENO: result: ok" >&5
5537 echo "${ECHO_T}ok" >&6
5538 fi
5539
5540 echo "$as_me:$LINENO: checking for objdir" >&5
5541 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5542 if test "${lt_cv_objdir+set}" = set; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   rm -f .libs 2>/dev/null
5546 mkdir .libs 2>/dev/null
5547 if test -d .libs; then
5548   lt_cv_objdir=.libs
5549 else
5550   # MS-DOS does not allow filenames that begin with a dot.
5551   lt_cv_objdir=_libs
5552 fi
5553 rmdir .libs 2>/dev/null
5554 fi
5555 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5556 echo "${ECHO_T}$lt_cv_objdir" >&6
5557 objdir=$lt_cv_objdir
5558
5559
5560
5561
5562
5563 case $host_os in
5564 aix3*)
5565   # AIX sometimes has problems with the GCC collect2 program.  For some
5566   # reason, if we set the COLLECT_NAMES environment variable, the problems
5567   # vanish in a puff of smoke.
5568   if test "X${COLLECT_NAMES+set}" != Xset; then
5569     COLLECT_NAMES=
5570     export COLLECT_NAMES
5571   fi
5572   ;;
5573 esac
5574
5575 # Sed substitution that helps us do robust quoting.  It backslashifies
5576 # metacharacters that are still active within double-quoted strings.
5577 Xsed='sed -e s/^X//'
5578 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5579
5580 # Same as above, but do not quote variable references.
5581 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5582
5583 # Sed substitution to delay expansion of an escaped shell variable in a
5584 # double_quote_subst'ed string.
5585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5586
5587 # Sed substitution to avoid accidental globbing in evaled expressions
5588 no_glob_subst='s/\*/\\\*/g'
5589
5590 # Constants:
5591 rm="rm -f"
5592
5593 # Global variables:
5594 default_ofile=mklib
5595 can_build_shared=yes
5596
5597 # All known linkers require a `.a' archive for static linking (except M$VC,
5598 # which needs '.lib').
5599 libext=a
5600 ltmain="$ac_aux_dir/ltmain.sh"
5601 ofile="$default_ofile"
5602 with_gnu_ld="$lt_cv_prog_gnu_ld"
5603
5604 if test -n "$ac_tool_prefix"; then
5605   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}ar; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_AR+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$AR"; then
5613   ac_cv_prog_AR="$AR" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_AR="${ac_tool_prefix}ar"
5623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627 done
5628
5629 fi
5630 fi
5631 AR=$ac_cv_prog_AR
5632 if test -n "$AR"; then
5633   echo "$as_me:$LINENO: result: $AR" >&5
5634 echo "${ECHO_T}$AR" >&6
5635 else
5636   echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5638 fi
5639
5640 fi
5641 if test -z "$ac_cv_prog_AR"; then
5642   ac_ct_AR=$AR
5643   # Extract the first word of "ar", so it can be a program name with args.
5644 set dummy ar; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   if test -n "$ac_ct_AR"; then
5651   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658   for ac_exec_ext in '' $ac_executable_extensions; do
5659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_ac_ct_AR="ar"
5661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665 done
5666
5667   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5668 fi
5669 fi
5670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5671 if test -n "$ac_ct_AR"; then
5672   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5673 echo "${ECHO_T}$ac_ct_AR" >&6
5674 else
5675   echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677 fi
5678
5679   AR=$ac_ct_AR
5680 else
5681   AR="$ac_cv_prog_AR"
5682 fi
5683
5684 if test -n "$ac_tool_prefix"; then
5685   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_RANLIB+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$RANLIB"; then
5693   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700   for ac_exec_ext in '' $ac_executable_extensions; do
5701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707 done
5708
5709 fi
5710 fi
5711 RANLIB=$ac_cv_prog_RANLIB
5712 if test -n "$RANLIB"; then
5713   echo "$as_me:$LINENO: result: $RANLIB" >&5
5714 echo "${ECHO_T}$RANLIB" >&6
5715 else
5716   echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718 fi
5719
5720 fi
5721 if test -z "$ac_cv_prog_RANLIB"; then
5722   ac_ct_RANLIB=$RANLIB
5723   # Extract the first word of "ranlib", so it can be a program name with args.
5724 set dummy ranlib; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   if test -n "$ac_ct_RANLIB"; then
5731   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738   for ac_exec_ext in '' $ac_executable_extensions; do
5739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_prog_ac_ct_RANLIB="ranlib"
5741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745 done
5746
5747   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5748 fi
5749 fi
5750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5751 if test -n "$ac_ct_RANLIB"; then
5752   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5753 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759   RANLIB=$ac_ct_RANLIB
5760 else
5761   RANLIB="$ac_cv_prog_RANLIB"
5762 fi
5763
5764 if test -n "$ac_tool_prefix"; then
5765   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_STRIP+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$STRIP"; then
5773   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789 fi
5790 fi
5791 STRIP=$ac_cv_prog_STRIP
5792 if test -n "$STRIP"; then
5793   echo "$as_me:$LINENO: result: $STRIP" >&5
5794 echo "${ECHO_T}$STRIP" >&6
5795 else
5796   echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798 fi
5799
5800 fi
5801 if test -z "$ac_cv_prog_STRIP"; then
5802   ac_ct_STRIP=$STRIP
5803   # Extract the first word of "strip", so it can be a program name with args.
5804 set dummy strip; ac_word=$2
5805 echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if test -n "$ac_ct_STRIP"; then
5811   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820     ac_cv_prog_ac_ct_STRIP="strip"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826
5827   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5828 fi
5829 fi
5830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5831 if test -n "$ac_ct_STRIP"; then
5832   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5833 echo "${ECHO_T}$ac_ct_STRIP" >&6
5834 else
5835   echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839   STRIP=$ac_ct_STRIP
5840 else
5841   STRIP="$ac_cv_prog_STRIP"
5842 fi
5843
5844
5845 old_CC="$CC"
5846 old_CFLAGS="$CFLAGS"
5847
5848 # Set sane defaults for various variables
5849 test -z "$AR" && AR=ar
5850 test -z "$AR_FLAGS" && AR_FLAGS=cru
5851 test -z "$AS" && AS=as
5852 test -z "$CC" && CC=cc
5853 test -z "$LTCC" && LTCC=$CC
5854 test -z "$DLLTOOL" && DLLTOOL=dlltool
5855 test -z "$LD" && LD=ld
5856 test -z "$LN_S" && LN_S="ln -s"
5857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5858 test -z "$NM" && NM=nm
5859 test -z "$SED" && SED=sed
5860 test -z "$OBJDUMP" && OBJDUMP=objdump
5861 test -z "$RANLIB" && RANLIB=:
5862 test -z "$STRIP" && STRIP=:
5863 test -z "$ac_objext" && ac_objext=o
5864
5865 # Determine commands to create old-style static archives.
5866 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5867 old_postinstall_cmds='chmod 644 $oldlib'
5868 old_postuninstall_cmds=
5869
5870 if test -n "$RANLIB"; then
5871   case $host_os in
5872   openbsd*)
5873     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5874     ;;
5875   *)
5876     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5877     ;;
5878   esac
5879   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5880 fi
5881
5882 # Only perform the check for file, if the check method requires it
5883 case $deplibs_check_method in
5884 file_magic*)
5885   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5886     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5887 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   case $MAGIC_CMD in
5892 [\\/*] |  ?:[\\/]*)
5893   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5894   ;;
5895 *)
5896   lt_save_MAGIC_CMD="$MAGIC_CMD"
5897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5898   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5899   for ac_dir in $ac_dummy; do
5900     IFS="$lt_save_ifs"
5901     test -z "$ac_dir" && ac_dir=.
5902     if test -f $ac_dir/${ac_tool_prefix}file; then
5903       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5904       if test -n "$file_magic_test_file"; then
5905         case $deplibs_check_method in
5906         "file_magic "*)
5907           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5908           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5910             $EGREP "$file_magic_regex" > /dev/null; then
5911             :
5912           else
5913             cat <<EOF 1>&2
5914
5915 *** Warning: the command libtool uses to detect shared libraries,
5916 *** $file_magic_cmd, produces output that libtool cannot recognize.
5917 *** The result is that libtool may fail to recognize shared libraries
5918 *** as such.  This will affect the creation of libtool libraries that
5919 *** depend on shared libraries, but programs linked with such libtool
5920 *** libraries will work regardless of this problem.  Nevertheless, you
5921 *** may want to report the problem to your system manager and/or to
5922 *** bug-libtool@gnu.org
5923
5924 EOF
5925           fi ;;
5926         esac
5927       fi
5928       break
5929     fi
5930   done
5931   IFS="$lt_save_ifs"
5932   MAGIC_CMD="$lt_save_MAGIC_CMD"
5933   ;;
5934 esac
5935 fi
5936
5937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5938 if test -n "$MAGIC_CMD"; then
5939   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5940 echo "${ECHO_T}$MAGIC_CMD" >&6
5941 else
5942   echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5944 fi
5945
5946 if test -z "$lt_cv_path_MAGIC_CMD"; then
5947   if test -n "$ac_tool_prefix"; then
5948     echo "$as_me:$LINENO: checking for file" >&5
5949 echo $ECHO_N "checking for file... $ECHO_C" >&6
5950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   case $MAGIC_CMD in
5954 [\\/*] |  ?:[\\/]*)
5955   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5956   ;;
5957 *)
5958   lt_save_MAGIC_CMD="$MAGIC_CMD"
5959   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5960   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5961   for ac_dir in $ac_dummy; do
5962     IFS="$lt_save_ifs"
5963     test -z "$ac_dir" && ac_dir=.
5964     if test -f $ac_dir/file; then
5965       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5966       if test -n "$file_magic_test_file"; then
5967         case $deplibs_check_method in
5968         "file_magic "*)
5969           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5970           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5972             $EGREP "$file_magic_regex" > /dev/null; then
5973             :
5974           else
5975             cat <<EOF 1>&2
5976
5977 *** Warning: the command libtool uses to detect shared libraries,
5978 *** $file_magic_cmd, produces output that libtool cannot recognize.
5979 *** The result is that libtool may fail to recognize shared libraries
5980 *** as such.  This will affect the creation of libtool libraries that
5981 *** depend on shared libraries, but programs linked with such libtool
5982 *** libraries will work regardless of this problem.  Nevertheless, you
5983 *** may want to report the problem to your system manager and/or to
5984 *** bug-libtool@gnu.org
5985
5986 EOF
5987           fi ;;
5988         esac
5989       fi
5990       break
5991     fi
5992   done
5993   IFS="$lt_save_ifs"
5994   MAGIC_CMD="$lt_save_MAGIC_CMD"
5995   ;;
5996 esac
5997 fi
5998
5999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6000 if test -n "$MAGIC_CMD"; then
6001   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6002 echo "${ECHO_T}$MAGIC_CMD" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   else
6009     MAGIC_CMD=:
6010   fi
6011 fi
6012
6013   fi
6014   ;;
6015 esac
6016
6017 enable_dlopen=no
6018 enable_win32_dll=no
6019
6020 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6021 if test "${enable_libtool_lock+set}" = set; then
6022   enableval="$enable_libtool_lock"
6023
6024 fi;
6025 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6026
6027
6028 # Check whether --with-pic or --without-pic was given.
6029 if test "${with_pic+set}" = set; then
6030   withval="$with_pic"
6031   pic_mode="$withval"
6032 else
6033   pic_mode=default
6034 fi;
6035 test -z "$pic_mode" && pic_mode=default
6036
6037 # Use C for the default configuration in the libtool script
6038 tagname=
6039 lt_save_CC="$CC"
6040 ac_ext=c
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046
6047 # Source file extension for C test sources.
6048 ac_ext=c
6049
6050 # Object file extension for compiled C test sources.
6051 objext=o
6052 objext=$objext
6053
6054 # Code to be used in simple compile tests
6055 lt_simple_compile_test_code="int some_variable = 0;\n"
6056
6057 # Code to be used in simple link tests
6058 lt_simple_link_test_code='int main(){return(0);}\n'
6059
6060
6061 # If no C compiler was specified, use CC.
6062 LTCC=${LTCC-"$CC"}
6063
6064 # Allow CC to be a program name with arguments.
6065 compiler=$CC
6066
6067
6068 #
6069 # Check for any special shared library compilation flags.
6070 #
6071 lt_prog_cc_shlib=
6072 if test "$GCC" = no; then
6073   case $host_os in
6074   sco3.2v5*)
6075     lt_prog_cc_shlib='-belf'
6076     ;;
6077   esac
6078 fi
6079 if test -n "$lt_prog_cc_shlib"; then
6080   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6081 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6082   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6083   else
6084     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6085 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6086     lt_cv_prog_cc_can_build_shared=no
6087   fi
6088 fi
6089
6090
6091 #
6092 # Check to make sure the static flag actually works.
6093 #
6094 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6095 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6096 if test "${lt_prog_compiler_static_works+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   lt_prog_compiler_static_works=no
6100    save_LDFLAGS="$LDFLAGS"
6101    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6102    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6103    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6104      # The compiler can only warn and ignore the option if not recognized
6105      # So say no if there are warnings
6106      if test -s conftest.err; then
6107        # Append any errors to the config.log.
6108        cat conftest.err 1>&5
6109      else
6110        lt_prog_compiler_static_works=yes
6111      fi
6112    fi
6113    $rm conftest*
6114    LDFLAGS="$save_LDFLAGS"
6115
6116 fi
6117 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6118 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6119
6120 if test x"$lt_prog_compiler_static_works" = xyes; then
6121     :
6122 else
6123     lt_prog_compiler_static=
6124 fi
6125
6126
6127
6128 ## CAVEAT EMPTOR:
6129 ## There is no encapsulation within the following macros, do not change
6130 ## the running order or otherwise move them around unless you know exactly
6131 ## what you are doing...
6132
6133 lt_prog_compiler_no_builtin_flag=
6134
6135 if test "$GCC" = yes; then
6136   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6137
6138   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6139 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6140 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   lt_cv_prog_compiler_rtti_exceptions=no
6144   ac_outfile=conftest.$ac_objext
6145    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6146    lt_compiler_flag="-fno-rtti -fno-exceptions"
6147    # Insert the option either (1) after the last *FLAGS variable, or
6148    # (2) before a word containing "conftest.", or (3) at the end.
6149    # Note that $ac_compile itself does not contain backslashes and begins
6150    # with a dollar sign (not a hyphen), so the echo should work correctly.
6151    # The option is referenced via a variable to avoid confusing sed.
6152    lt_compile=`echo "$ac_compile" | $SED \
6153    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6155    -e 's:$: $lt_compiler_flag:'`
6156    (eval echo "\"\$as_me:6156: $lt_compile\"" >&5)
6157    (eval "$lt_compile" 2>conftest.err)
6158    ac_status=$?
6159    cat conftest.err >&5
6160    echo "$as_me:6160: \$? = $ac_status" >&5
6161    if (exit $ac_status) && test -s "$ac_outfile"; then
6162      # The compiler can only warn and ignore the option if not recognized
6163      # So say no if there are warnings
6164      if test ! -s conftest.err; then
6165        lt_cv_prog_compiler_rtti_exceptions=yes
6166      fi
6167    fi
6168    $rm conftest*
6169
6170 fi
6171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6172 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6173
6174 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6175     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6176 else
6177     :
6178 fi
6179
6180 fi
6181
6182 lt_prog_compiler_wl=
6183 lt_prog_compiler_pic=
6184 lt_prog_compiler_static=
6185
6186 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6187 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6188
6189   if test "$GCC" = yes; then
6190     lt_prog_compiler_wl='-Wl,'
6191     lt_prog_compiler_static='-static'
6192
6193     case $host_os in
6194       aix*)
6195       # All AIX code is PIC.
6196       if test "$host_cpu" = ia64; then
6197         # AIX 5 now supports IA64 processor
6198         lt_prog_compiler_static='-Bstatic'
6199       fi
6200       ;;
6201
6202     amigaos*)
6203       # FIXME: we need at least 68020 code to build shared libraries, but
6204       # adding the `-m68020' flag to GCC prevents building anything better,
6205       # like `-m68040'.
6206       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6207       ;;
6208
6209     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6210       # PIC is the default for these OSes.
6211       ;;
6212
6213     mingw* | pw32* | os2*)
6214       # This hack is so that the source file can tell whether it is being
6215       # built for inclusion in a dll (and should export symbols for example).
6216       lt_prog_compiler_pic='-DDLL_EXPORT'
6217       ;;
6218
6219     darwin* | rhapsody*)
6220       # PIC is the default on this platform
6221       # Common symbols not allowed in MH_DYLIB files
6222       lt_prog_compiler_pic='-fno-common'
6223       ;;
6224
6225     msdosdjgpp*)
6226       # Just because we use GCC doesn't mean we suddenly get shared libraries
6227       # on systems that don't support them.
6228       lt_prog_compiler_can_build_shared=no
6229       enable_shared=no
6230       ;;
6231
6232     sysv4*MP*)
6233       if test -d /usr/nec; then
6234         lt_prog_compiler_pic=-Kconform_pic
6235       fi
6236       ;;
6237
6238     hpux*)
6239       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6240       # not for PA HP-UX.
6241       case "$host_cpu" in
6242       hppa*64*|ia64*)
6243         # +Z the default
6244         ;;
6245       *)
6246         lt_prog_compiler_pic='-fPIC'
6247         ;;
6248       esac
6249       ;;
6250
6251     *)
6252       lt_prog_compiler_pic='-fPIC'
6253       ;;
6254     esac
6255   else
6256     # PORTME Check for flag to pass linker flags through the system compiler.
6257     case $host_os in
6258     aix*)
6259       lt_prog_compiler_wl='-Wl,'
6260       if test "$host_cpu" = ia64; then
6261         # AIX 5 now supports IA64 processor
6262         lt_prog_compiler_static='-Bstatic'
6263       else
6264         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6265       fi
6266       ;;
6267
6268     mingw* | pw32* | os2*)
6269       # This hack is so that the source file can tell whether it is being
6270       # built for inclusion in a dll (and should export symbols for example).
6271       lt_prog_compiler_pic='-DDLL_EXPORT'
6272       ;;
6273
6274     hpux9* | hpux10* | hpux11*)
6275       lt_prog_compiler_wl='-Wl,'
6276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6277       # not for PA HP-UX.
6278       case "$host_cpu" in
6279       hppa*64*|ia64*)
6280         # +Z the default
6281         ;;
6282       *)
6283         lt_prog_compiler_pic='+Z'
6284         ;;
6285       esac
6286       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6287       lt_prog_compiler_static='${wl}-a ${wl}archive'
6288       ;;
6289
6290     irix5* | irix6* | nonstopux*)
6291       lt_prog_compiler_wl='-Wl,'
6292       # PIC (with -KPIC) is the default.
6293       lt_prog_compiler_static='-non_shared'
6294       ;;
6295
6296     newsos6)
6297       lt_prog_compiler_pic='-KPIC'
6298       lt_prog_compiler_static='-Bstatic'
6299       ;;
6300
6301     linux*)
6302       case $CC in
6303       icc|ecc)
6304         lt_prog_compiler_wl='-Wl,'
6305         lt_prog_compiler_pic='-KPIC'
6306         lt_prog_compiler_static='-static'
6307         ;;
6308       ccc)
6309         lt_prog_compiler_wl='-Wl,'
6310         # All Alpha code is PIC.
6311         lt_prog_compiler_static='-non_shared'
6312         ;;
6313       esac
6314       ;;
6315
6316     osf3* | osf4* | osf5*)
6317       lt_prog_compiler_wl='-Wl,'
6318       # All OSF/1 code is PIC.
6319       lt_prog_compiler_static='-non_shared'
6320       ;;
6321
6322     sco3.2v5*)
6323       lt_prog_compiler_pic='-Kpic'
6324       lt_prog_compiler_static='-dn'
6325       ;;
6326
6327     solaris*)
6328       lt_prog_compiler_wl='-Wl,'
6329       lt_prog_compiler_pic='-KPIC'
6330       lt_prog_compiler_static='-Bstatic'
6331       ;;
6332
6333     sunos4*)
6334       lt_prog_compiler_wl='-Qoption ld '
6335       lt_prog_compiler_pic='-PIC'
6336       lt_prog_compiler_static='-Bstatic'
6337       ;;
6338
6339     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6340       lt_prog_compiler_wl='-Wl,'
6341       lt_prog_compiler_pic='-KPIC'
6342       lt_prog_compiler_static='-Bstatic'
6343       ;;
6344
6345     sysv4*MP*)
6346       if test -d /usr/nec ;then
6347         lt_prog_compiler_pic='-Kconform_pic'
6348         lt_prog_compiler_static='-Bstatic'
6349       fi
6350       ;;
6351
6352     uts4*)
6353       lt_prog_compiler_pic='-pic'
6354       lt_prog_compiler_static='-Bstatic'
6355       ;;
6356
6357     *)
6358       lt_prog_compiler_can_build_shared=no
6359       ;;
6360     esac
6361   fi
6362
6363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6364 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6365
6366 #
6367 # Check to make sure the PIC flag actually works.
6368 #
6369 if test -n "$lt_prog_compiler_pic"; then
6370   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6371 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6372 if test "${lt_prog_compiler_pic_works+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   lt_prog_compiler_pic_works=no
6376   ac_outfile=conftest.$ac_objext
6377    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6378    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6379    # Insert the option either (1) after the last *FLAGS variable, or
6380    # (2) before a word containing "conftest.", or (3) at the end.
6381    # Note that $ac_compile itself does not contain backslashes and begins
6382    # with a dollar sign (not a hyphen), so the echo should work correctly.
6383    # The option is referenced via a variable to avoid confusing sed.
6384    lt_compile=`echo "$ac_compile" | $SED \
6385    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6387    -e 's:$: $lt_compiler_flag:'`
6388    (eval echo "\"\$as_me:6388: $lt_compile\"" >&5)
6389    (eval "$lt_compile" 2>conftest.err)
6390    ac_status=$?
6391    cat conftest.err >&5
6392    echo "$as_me:6392: \$? = $ac_status" >&5
6393    if (exit $ac_status) && test -s "$ac_outfile"; then
6394      # The compiler can only warn and ignore the option if not recognized
6395      # So say no if there are warnings
6396      if test ! -s conftest.err; then
6397        lt_prog_compiler_pic_works=yes
6398      fi
6399    fi
6400    $rm conftest*
6401
6402 fi
6403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6404 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6405
6406 if test x"$lt_prog_compiler_pic_works" = xyes; then
6407     case $lt_prog_compiler_pic in
6408      "" | " "*) ;;
6409      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6410      esac
6411 else
6412     lt_prog_compiler_pic=
6413      lt_prog_compiler_can_build_shared=no
6414 fi
6415
6416 fi
6417 case "$host_os" in
6418   # For platforms which do not support PIC, -DPIC is meaningless:
6419   *djgpp*)
6420     lt_prog_compiler_pic=
6421     ;;
6422   *)
6423     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6424     ;;
6425 esac
6426
6427 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6428 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6429 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   lt_cv_prog_compiler_c_o=no
6433    $rm -r conftest 2>/dev/null
6434    mkdir conftest
6435    cd conftest
6436    mkdir out
6437    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6438
6439    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6440    # that will create temporary files in the current directory regardless of
6441    # the output directory.  Thus, making CWD read-only will cause this test
6442    # to fail, enabling locking or at least warning the user not to do parallel
6443    # builds.
6444    chmod -w .
6445
6446    lt_compiler_flag="-o out/conftest2.$ac_objext"
6447    # Insert the option either (1) after the last *FLAGS variable, or
6448    # (2) before a word containing "conftest.", or (3) at the end.
6449    # Note that $ac_compile itself does not contain backslashes and begins
6450    # with a dollar sign (not a hyphen), so the echo should work correctly.
6451    lt_compile=`echo "$ac_compile" | $SED \
6452    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6454    -e 's:$: $lt_compiler_flag:'`
6455    (eval echo "\"\$as_me:6455: $lt_compile\"" >&5)
6456    (eval "$lt_compile" 2>out/conftest.err)
6457    ac_status=$?
6458    cat out/conftest.err >&5
6459    echo "$as_me:6459: \$? = $ac_status" >&5
6460    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6461    then
6462      # The compiler can only warn and ignore the option if not recognized
6463      # So say no if there are warnings
6464      if test ! -s out/conftest.err; then
6465        lt_cv_prog_compiler_c_o=yes
6466      fi
6467    fi
6468    chmod u+w .
6469    $rm conftest* out/*
6470    rmdir out
6471    cd ..
6472    rmdir conftest
6473    $rm conftest*
6474
6475 fi
6476 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6478
6479
6480 hard_links="nottested"
6481 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6482   # do not overwrite the value of need_locks provided by the user
6483   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6485   hard_links=yes
6486   $rm conftest*
6487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6488   touch conftest.a
6489   ln conftest.a conftest.b 2>&5 || hard_links=no
6490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6491   echo "$as_me:$LINENO: result: $hard_links" >&5
6492 echo "${ECHO_T}$hard_links" >&6
6493   if test "$hard_links" = no; then
6494     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6496     need_locks=warn
6497   fi
6498 else
6499   need_locks=no
6500 fi
6501
6502 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6504
6505   runpath_var=
6506   allow_undefined_flag=
6507   enable_shared_with_static_runtimes=no
6508   archive_cmds=
6509   archive_expsym_cmds=
6510   old_archive_From_new_cmds=
6511   old_archive_from_expsyms_cmds=
6512   export_dynamic_flag_spec=
6513   whole_archive_flag_spec=
6514   thread_safe_flag_spec=
6515   hardcode_libdir_flag_spec=
6516   hardcode_libdir_flag_spec_ld=
6517   hardcode_libdir_separator=
6518   hardcode_direct=no
6519   hardcode_minus_L=no
6520   hardcode_shlibpath_var=unsupported
6521   link_all_deplibs=unknown
6522   hardcode_automatic=no
6523   module_cmds=
6524   module_expsym_cmds=
6525   always_export_symbols=no
6526   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6527   # include_expsyms should be a list of space-separated symbols to be *always*
6528   # included in the symbol list
6529   include_expsyms=
6530   # exclude_expsyms can be an extended regexp of symbols to exclude
6531   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6532   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6533   # as well as any symbol that contains `d'.
6534   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6535   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6536   # platforms (ab)use it in PIC code, but their linkers get confused if
6537   # the symbol is explicitly referenced.  Since portable code cannot
6538   # rely on this symbol name, it's probably fine to never include it in
6539   # preloaded symbol tables.
6540   extract_expsyms_cmds=
6541
6542   case $host_os in
6543   cygwin* | mingw* | pw32*)
6544     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6545     # When not using gcc, we currently assume that we are using
6546     # Microsoft Visual C++.
6547     if test "$GCC" != yes; then
6548       with_gnu_ld=no
6549     fi
6550     ;;
6551   openbsd*)
6552     with_gnu_ld=no
6553     ;;
6554   esac
6555
6556   ld_shlibs=yes
6557   if test "$with_gnu_ld" = yes; then
6558     # If archive_cmds runs LD, not CC, wlarc should be empty
6559     wlarc='${wl}'
6560
6561     # See if GNU ld supports shared libraries.
6562     case $host_os in
6563     aix3* | aix4* | aix5*)
6564       # On AIX/PPC, the GNU linker is very broken
6565       if test "$host_cpu" != ia64; then
6566         ld_shlibs=no
6567         cat <<EOF 1>&2
6568
6569 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6570 *** to be unable to reliably create shared libraries on AIX.
6571 *** Therefore, libtool is disabling shared libraries support.  If you
6572 *** really care for shared libraries, you may want to modify your PATH
6573 *** so that a non-GNU linker is found, and then restart.
6574
6575 EOF
6576       fi
6577       ;;
6578
6579     amigaos*)
6580       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)'
6581       hardcode_libdir_flag_spec='-L$libdir'
6582       hardcode_minus_L=yes
6583
6584       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6585       # that the semantics of dynamic libraries on AmigaOS, at least up
6586       # to version 4, is to share data among multiple programs linked
6587       # with the same dynamic library.  Since this doesn't match the
6588       # behavior of shared libraries on other platforms, we can't use
6589       # them.
6590       ld_shlibs=no
6591       ;;
6592
6593     beos*)
6594       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6595         allow_undefined_flag=unsupported
6596         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6597         # support --undefined.  This deserves some investigation.  FIXME
6598         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6599       else
6600         ld_shlibs=no
6601       fi
6602       ;;
6603
6604     cygwin* | mingw* | pw32*)
6605       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6606       # as there is no search path for DLLs.
6607       hardcode_libdir_flag_spec='-L$libdir'
6608       allow_undefined_flag=unsupported
6609       always_export_symbols=no
6610       enable_shared_with_static_runtimes=yes
6611       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6612
6613       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6614         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6615         # If the export-symbols file already is a .def file (1st line
6616         # is EXPORTS), use it as is; otherwise, prepend...
6617         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6618           cp $export_symbols $output_objdir/$soname.def;
6619         else
6620           echo EXPORTS > $output_objdir/$soname.def;
6621           cat $export_symbols >> $output_objdir/$soname.def;
6622         fi~
6623         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6624       else
6625         ld_shlibs=no
6626       fi
6627       ;;
6628
6629     netbsd*)
6630       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6631         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6632         wlarc=
6633       else
6634         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6636       fi
6637       ;;
6638
6639     solaris* | sysv5*)
6640       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6641         ld_shlibs=no
6642         cat <<EOF 1>&2
6643
6644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6645 *** create shared libraries on Solaris systems.  Therefore, libtool
6646 *** is disabling shared libraries support.  We urge you to upgrade GNU
6647 *** binutils to release 2.9.1 or newer.  Another option is to modify
6648 *** your PATH or compiler configuration so that the native linker is
6649 *** used, and then restart.
6650
6651 EOF
6652       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6655       else
6656         ld_shlibs=no
6657       fi
6658       ;;
6659
6660     sunos4*)
6661       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6662       wlarc=
6663       hardcode_direct=yes
6664       hardcode_shlibpath_var=no
6665       ;;
6666
6667     *)
6668       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6671       else
6672         ld_shlibs=no
6673       fi
6674       ;;
6675     esac
6676
6677     if test "$ld_shlibs" = yes; then
6678       runpath_var=LD_RUN_PATH
6679       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6680       export_dynamic_flag_spec='${wl}--export-dynamic'
6681       # ancient GNU ld didn't support --whole-archive et. al.
6682       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6683         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6684       else
6685         whole_archive_flag_spec=
6686       fi
6687     fi
6688   else
6689     # PORTME fill in a description of your system's linker (not GNU ld)
6690     case $host_os in
6691     aix3*)
6692       allow_undefined_flag=unsupported
6693       always_export_symbols=yes
6694       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'
6695       # Note: this linker hardcodes the directories in LIBPATH if there
6696       # are no directories specified by -L.
6697       hardcode_minus_L=yes
6698       if test "$GCC" = yes && test -z "$link_static_flag"; then
6699         # Neither direct hardcoding nor static linking is supported with a
6700         # broken collect2.
6701         hardcode_direct=unsupported
6702       fi
6703       ;;
6704
6705     aix4* | aix5*)
6706       if test "$host_cpu" = ia64; then
6707         # On IA64, the linker does run time linking by default, so we don't
6708         # have to do anything special.
6709         aix_use_runtimelinking=no
6710         exp_sym_flag='-Bexport'
6711         no_entry_flag=""
6712       else
6713         # If we're using GNU nm, then we don't want the "-C" option.
6714         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6715         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6716           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'
6717         else
6718           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'
6719         fi
6720         aix_use_runtimelinking=no
6721
6722         # Test if we are trying to use run time linking or normal
6723         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6724         # need to do runtime linking.
6725         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6726           for ld_flag in $LDFLAGS; do
6727           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6728             aix_use_runtimelinking=yes
6729             break
6730           fi
6731           done
6732         esac
6733
6734         exp_sym_flag='-bexport'
6735         no_entry_flag='-bnoentry'
6736       fi
6737
6738       # When large executables or shared objects are built, AIX ld can
6739       # have problems creating the table of contents.  If linking a library
6740       # or program results in "error TOC overflow" add -mminimal-toc to
6741       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6742       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6743
6744       archive_cmds=''
6745       hardcode_direct=yes
6746       hardcode_libdir_separator=':'
6747       link_all_deplibs=yes
6748
6749       if test "$GCC" = yes; then
6750         case $host_os in aix4.012|aix4.012.*)
6751         # We only want to do this on AIX 4.2 and lower, the check
6752         # below for broken collect2 doesn't work under 4.3+
6753           collect2name=`${CC} -print-prog-name=collect2`
6754           if test -f "$collect2name" && \
6755            strings "$collect2name" | grep resolve_lib_name >/dev/null
6756           then
6757           # We have reworked collect2
6758           hardcode_direct=yes
6759           else
6760           # We have old collect2
6761           hardcode_direct=unsupported
6762           # It fails to find uninstalled libraries when the uninstalled
6763           # path is not listed in the libpath.  Setting hardcode_minus_L
6764           # to unsupported forces relinking
6765           hardcode_minus_L=yes
6766           hardcode_libdir_flag_spec='-L$libdir'
6767           hardcode_libdir_separator=
6768           fi
6769         esac
6770         shared_flag='-shared'
6771       else
6772         # not using gcc
6773         if test "$host_cpu" = ia64; then
6774         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6775         # chokes on -Wl,-G. The following line is correct:
6776           shared_flag='-G'
6777         else
6778         if test "$aix_use_runtimelinking" = yes; then
6779             shared_flag='${wl}-G'
6780           else
6781             shared_flag='${wl}-bM:SRE'
6782         fi
6783         fi
6784       fi
6785
6786       # It seems that -bexpall does not export symbols beginning with
6787       # underscore (_), so it is better to generate a list of symbols to export.
6788       always_export_symbols=yes
6789       if test "$aix_use_runtimelinking" = yes; then
6790         # Warning - without using the other runtime loading flags (-brtl),
6791         # -berok will link without error, but may produce a broken library.
6792         allow_undefined_flag='-berok'
6793        # Determine the default libpath from the value encoded in an empty executable.
6794        cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800
6801 int
6802 main ()
6803 {
6804
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811   (eval $ac_link) 2>conftest.er1
6812   ac_status=$?
6813   grep -v '^ *+' conftest.er1 >conftest.err
6814   rm -f conftest.er1
6815   cat conftest.err >&5
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); } &&
6818          { ac_try='test -z "$ac_c_werror_flag"
6819                          || test ! -s conftest.err'
6820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821   (eval $ac_try) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); }; } &&
6825          { ac_try='test -s conftest$ac_exeext'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; }; then
6831
6832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6833 }'`
6834 # Check for a 64-bit object if we didn't find anything.
6835 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; }
6836 }'`; fi
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 fi
6842 rm -f conftest.err conftest.$ac_objext \
6843       conftest$ac_exeext conftest.$ac_ext
6844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6845
6846        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847         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"
6848        else
6849         if test "$host_cpu" = ia64; then
6850           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6851           allow_undefined_flag="-z nodefs"
6852           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"
6853         else
6854          # Determine the default libpath from the value encoded in an empty executable.
6855          cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861
6862 int
6863 main ()
6864 {
6865
6866   ;
6867   return 0;
6868 }
6869 _ACEOF
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872   (eval $ac_link) 2>conftest.er1
6873   ac_status=$?
6874   grep -v '^ *+' conftest.er1 >conftest.err
6875   rm -f conftest.er1
6876   cat conftest.err >&5
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -z "$ac_c_werror_flag"
6880                          || test ! -s conftest.err'
6881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882   (eval $ac_try) 2>&5
6883   ac_status=$?
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); }; } &&
6886          { ac_try='test -s conftest$ac_exeext'
6887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888   (eval $ac_try) 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); }; }; then
6892
6893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6894 }'`
6895 # Check for a 64-bit object if we didn't find anything.
6896 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; }
6897 }'`; fi
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 fi
6903 rm -f conftest.err conftest.$ac_objext \
6904       conftest$ac_exeext conftest.$ac_ext
6905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6906
6907          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6908           # Warning - without using the other run time loading flags,
6909           # -berok will link without error, but may produce a broken library.
6910           no_undefined_flag=' ${wl}-bernotok'
6911           allow_undefined_flag=' ${wl}-berok'
6912           # -bexpall does not export symbols beginning with underscore (_)
6913           always_export_symbols=yes
6914           # Exported symbols can be pulled into shared objects from archives
6915           whole_archive_flag_spec=' '
6916           archive_cmds_need_lc=yes
6917           # This is similar to how AIX traditionally builds it's shared libraries.
6918           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'
6919         fi
6920       fi
6921       ;;
6922
6923     amigaos*)
6924       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)'
6925       hardcode_libdir_flag_spec='-L$libdir'
6926       hardcode_minus_L=yes
6927       # see comment about different semantics on the GNU ld section
6928       ld_shlibs=no
6929       ;;
6930
6931     bsdi4*)
6932       export_dynamic_flag_spec=-rdynamic
6933       ;;
6934
6935     cygwin* | mingw* | pw32*)
6936       # When not using gcc, we currently assume that we are using
6937       # Microsoft Visual C++.
6938       # hardcode_libdir_flag_spec is actually meaningless, as there is
6939       # no search path for DLLs.
6940       hardcode_libdir_flag_spec=' '
6941       allow_undefined_flag=unsupported
6942       # Tell ltmain to make .lib files, not .a files.
6943       libext=lib
6944       # Tell ltmain to make .dll files, not .so files.
6945       shrext=".dll"
6946       # FIXME: Setting linknames here is a bad hack.
6947       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6948       # The linker will automatically build a .lib file if we build a DLL.
6949       old_archive_From_new_cmds='true'
6950       # FIXME: Should let the user specify the lib program.
6951       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6952       fix_srcfile_path='`cygpath -w "$srcfile"`'
6953       enable_shared_with_static_runtimes=yes
6954       ;;
6955
6956     darwin* | rhapsody*)
6957     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6958       archive_cmds_need_lc=no
6959       case "$host_os" in
6960       rhapsody* | darwin1.[012])
6961         allow_undefined_flag='-undefined suppress'
6962         ;;
6963       *) # Darwin 1.3 on
6964         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6965         ;;
6966       esac
6967       # FIXME: Relying on posixy $() will cause problems for
6968       #        cross-compilation, but unfortunately the echo tests do not
6969       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6970       #        `"' quotes if we put them in here... so don't!
6971         lt_int_apple_cc_single_mod=no
6972         output_verbose_link_cmd='echo'
6973         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6974           lt_int_apple_cc_single_mod=yes
6975         fi
6976         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6977           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6978         else
6979         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'
6980       fi
6981       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6982       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6983         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6984           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}'
6985         else
6986           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}'
6987         fi
6988           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}'
6989       hardcode_direct=no
6990       hardcode_automatic=yes
6991       hardcode_shlibpath_var=unsupported
6992       whole_archive_flag_spec='-all_load $convenience'
6993       link_all_deplibs=yes
6994     fi
6995       ;;
6996
6997     dgux*)
6998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6999       hardcode_libdir_flag_spec='-L$libdir'
7000       hardcode_shlibpath_var=no
7001       ;;
7002
7003     freebsd1*)
7004       ld_shlibs=no
7005       ;;
7006
7007     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7008     # support.  Future versions do this automatically, but an explicit c++rt0.o
7009     # does not break anything, and helps significantly (at the cost of a little
7010     # extra space).
7011     freebsd2.2*)
7012       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7013       hardcode_libdir_flag_spec='-R$libdir'
7014       hardcode_direct=yes
7015       hardcode_shlibpath_var=no
7016       ;;
7017
7018     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7019     freebsd2*)
7020       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7021       hardcode_direct=yes
7022       hardcode_minus_L=yes
7023       hardcode_shlibpath_var=no
7024       ;;
7025
7026     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7027     freebsd*)
7028       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7029       hardcode_libdir_flag_spec='-R$libdir'
7030       hardcode_direct=yes
7031       hardcode_shlibpath_var=no
7032       ;;
7033
7034     hpux9*)
7035       if test "$GCC" = yes; then
7036         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'
7037       else
7038         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'
7039       fi
7040       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7041       hardcode_libdir_separator=:
7042       hardcode_direct=yes
7043
7044       # hardcode_minus_L: Not really in the search PATH,
7045       # but as the default location of the library.
7046       hardcode_minus_L=yes
7047       export_dynamic_flag_spec='${wl}-E'
7048       ;;
7049
7050     hpux10* | hpux11*)
7051       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7052         case "$host_cpu" in
7053         hppa*64*|ia64*)
7054           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7055           ;;
7056         *)
7057           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7058           ;;
7059         esac
7060       else
7061         case "$host_cpu" in
7062         hppa*64*|ia64*)
7063           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7064           ;;
7065         *)
7066           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7067           ;;
7068         esac
7069       fi
7070       if test "$with_gnu_ld" = no; then
7071         case "$host_cpu" in
7072         hppa*64*)
7073           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7074           hardcode_libdir_flag_spec_ld='+b $libdir'
7075           hardcode_libdir_separator=:
7076           hardcode_direct=no
7077           hardcode_shlibpath_var=no
7078           ;;
7079         ia64*)
7080           hardcode_libdir_flag_spec='-L$libdir'
7081           hardcode_direct=no
7082           hardcode_shlibpath_var=no
7083
7084           # hardcode_minus_L: Not really in the search PATH,
7085           # but as the default location of the library.
7086           hardcode_minus_L=yes
7087           ;;
7088         *)
7089           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7090           hardcode_libdir_separator=:
7091           hardcode_direct=yes
7092           export_dynamic_flag_spec='${wl}-E'
7093
7094           # hardcode_minus_L: Not really in the search PATH,
7095           # but as the default location of the library.
7096           hardcode_minus_L=yes
7097           ;;
7098         esac
7099       fi
7100       ;;
7101
7102     irix5* | irix6* | nonstopux*)
7103       if test "$GCC" = yes; then
7104         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'
7105       else
7106         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'
7107         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7108       fi
7109       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7110       hardcode_libdir_separator=:
7111       link_all_deplibs=yes
7112       ;;
7113
7114     netbsd*)
7115       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7116         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7117       else
7118         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7119       fi
7120       hardcode_libdir_flag_spec='-R$libdir'
7121       hardcode_direct=yes
7122       hardcode_shlibpath_var=no
7123       ;;
7124
7125     newsos6)
7126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127       hardcode_direct=yes
7128       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7129       hardcode_libdir_separator=:
7130       hardcode_shlibpath_var=no
7131       ;;
7132
7133     openbsd*)
7134       hardcode_direct=yes
7135       hardcode_shlibpath_var=no
7136       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7137         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7138         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139         export_dynamic_flag_spec='${wl}-E'
7140       else
7141        case $host_os in
7142          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144            hardcode_libdir_flag_spec='-R$libdir'
7145            ;;
7146          *)
7147            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149            ;;
7150        esac
7151       fi
7152       ;;
7153
7154     os2*)
7155       hardcode_libdir_flag_spec='-L$libdir'
7156       hardcode_minus_L=yes
7157       allow_undefined_flag=unsupported
7158       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'
7159       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7160       ;;
7161
7162     osf3*)
7163       if test "$GCC" = yes; then
7164         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165         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'
7166       else
7167         allow_undefined_flag=' -expect_unresolved \*'
7168         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'
7169       fi
7170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171       hardcode_libdir_separator=:
7172       ;;
7173
7174     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7175       if test "$GCC" = yes; then
7176         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177         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'
7178         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179       else
7180         allow_undefined_flag=' -expect_unresolved \*'
7181         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'
7182         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7183         $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'
7184
7185         # Both c and cxx compiler support -rpath directly
7186         hardcode_libdir_flag_spec='-rpath $libdir'
7187       fi
7188       hardcode_libdir_separator=:
7189       ;;
7190
7191     sco3.2v5*)
7192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193       hardcode_shlibpath_var=no
7194       export_dynamic_flag_spec='${wl}-Bexport'
7195       runpath_var=LD_RUN_PATH
7196       hardcode_runpath_var=yes
7197       ;;
7198
7199     solaris*)
7200       no_undefined_flag=' -z text'
7201       if test "$GCC" = yes; then
7202         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7204           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7205       else
7206         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7207         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7208         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7209       fi
7210       hardcode_libdir_flag_spec='-R$libdir'
7211       hardcode_shlibpath_var=no
7212       case $host_os in
7213       solaris2.[0-5] | solaris2.[0-5].*) ;;
7214       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7216       esac
7217       link_all_deplibs=yes
7218       ;;
7219
7220     sunos4*)
7221       if test "x$host_vendor" = xsequent; then
7222         # Use $CC to link under sequent, because it throws in some extra .o
7223         # files that make .init and .fini sections work.
7224         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7225       else
7226         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7227       fi
7228       hardcode_libdir_flag_spec='-L$libdir'
7229       hardcode_direct=yes
7230       hardcode_minus_L=yes
7231       hardcode_shlibpath_var=no
7232       ;;
7233
7234     sysv4)
7235       case $host_vendor in
7236         sni)
7237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238           hardcode_direct=yes # is this really true???
7239         ;;
7240         siemens)
7241           ## LD is ld it makes a PLAMLIB
7242           ## CC just makes a GrossModule.
7243           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244           reload_cmds='$CC -r -o $output$reload_objs'
7245           hardcode_direct=no
7246         ;;
7247         motorola)
7248           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7250         ;;
7251       esac
7252       runpath_var='LD_RUN_PATH'
7253       hardcode_shlibpath_var=no
7254       ;;
7255
7256     sysv4.3*)
7257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258       hardcode_shlibpath_var=no
7259       export_dynamic_flag_spec='-Bexport'
7260       ;;
7261
7262     sysv4*MP*)
7263       if test -d /usr/nec; then
7264         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265         hardcode_shlibpath_var=no
7266         runpath_var=LD_RUN_PATH
7267         hardcode_runpath_var=yes
7268         ld_shlibs=yes
7269       fi
7270       ;;
7271
7272     sysv4.2uw2*)
7273       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7274       hardcode_direct=yes
7275       hardcode_minus_L=no
7276       hardcode_shlibpath_var=no
7277       hardcode_runpath_var=yes
7278       runpath_var=LD_RUN_PATH
7279       ;;
7280
7281    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7282       no_undefined_flag='${wl}-z ${wl}text'
7283       if test "$GCC" = yes; then
7284         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7285       else
7286         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7287       fi
7288       runpath_var='LD_RUN_PATH'
7289       hardcode_shlibpath_var=no
7290       ;;
7291
7292     sysv5*)
7293       no_undefined_flag=' -z text'
7294       # $CC -shared without GNU ld will not create a library from C++
7295       # object files and a static libstdc++, better avoid it by now
7296       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7298                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7299       hardcode_libdir_flag_spec=
7300       hardcode_shlibpath_var=no
7301       runpath_var='LD_RUN_PATH'
7302       ;;
7303
7304     uts4*)
7305       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306       hardcode_libdir_flag_spec='-L$libdir'
7307       hardcode_shlibpath_var=no
7308       ;;
7309
7310     *)
7311       ld_shlibs=no
7312       ;;
7313     esac
7314   fi
7315
7316 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7317 echo "${ECHO_T}$ld_shlibs" >&6
7318 test "$ld_shlibs" = no && can_build_shared=no
7319
7320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7321 if test "$GCC" = yes; then
7322   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7323 fi
7324
7325 #
7326 # Do we need to explicitly link libc?
7327 #
7328 case "x$archive_cmds_need_lc" in
7329 x|xyes)
7330   # Assume -lc should be added
7331   archive_cmds_need_lc=yes
7332
7333   if test "$enable_shared" = yes && test "$GCC" = yes; then
7334     case $archive_cmds in
7335     *'~'*)
7336       # FIXME: we may have to deal with multi-command sequences.
7337       ;;
7338     '$CC '*)
7339       # Test whether the compiler implicitly links with -lc since on some
7340       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7341       # to ld, don't add -lc before -lgcc.
7342       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7343 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7344       $rm conftest*
7345       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7346
7347       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348   (eval $ac_compile) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } 2>conftest.err; then
7352         soname=conftest
7353         lib=conftest
7354         libobjs=conftest.$ac_objext
7355         deplibs=
7356         wl=$lt_prog_compiler_wl
7357         compiler_flags=-v
7358         linker_flags=-v
7359         verstring=
7360         output_objdir=.
7361         libname=conftest
7362         lt_save_allow_undefined_flag=$allow_undefined_flag
7363         allow_undefined_flag=
7364         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7365   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }
7369         then
7370           archive_cmds_need_lc=no
7371         else
7372           archive_cmds_need_lc=yes
7373         fi
7374         allow_undefined_flag=$lt_save_allow_undefined_flag
7375       else
7376         cat conftest.err 1>&5
7377       fi
7378       $rm conftest*
7379       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7380 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7381       ;;
7382     esac
7383   fi
7384   ;;
7385 esac
7386
7387 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7388 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7389 hardcode_action=
7390 if test -n "$hardcode_libdir_flag_spec" || \
7391    test -n "$runpath_var " || \
7392    test "X$hardcode_automatic"="Xyes" ; then
7393
7394   # We can hardcode non-existant directories.
7395   if test "$hardcode_direct" != no &&
7396      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7397      # have to relink, otherwise we might link with an installed library
7398      # when we should be linking with a yet-to-be-installed one
7399      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7400      test "$hardcode_minus_L" != no; then
7401     # Linking always hardcodes the temporary library directory.
7402     hardcode_action=relink
7403   else
7404     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7405     hardcode_action=immediate
7406   fi
7407 else
7408   # We cannot hardcode anything, or else we can only hardcode existing
7409   # directories.
7410   hardcode_action=unsupported
7411 fi
7412 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7413 echo "${ECHO_T}$hardcode_action" >&6
7414
7415 if test "$hardcode_action" = relink; then
7416   # Fast installation is not supported
7417   enable_fast_install=no
7418 elif test "$shlibpath_overrides_runpath" = yes ||
7419      test "$enable_shared" = no; then
7420   # Fast installation is not necessary
7421   enable_fast_install=needless
7422 fi
7423
7424 striplib=
7425 old_striplib=
7426 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7427 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7428 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7429   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7430   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7431   echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6
7433 else
7434 # FIXME - insert some real tests, host_os isn't really good enough
7435   case $host_os in
7436    darwin*)
7437        if test -n "$STRIP" ; then
7438          striplib="$STRIP -x"
7439          echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7441        else
7442   echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7444 fi
7445        ;;
7446    *)
7447   echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7449     ;;
7450   esac
7451 fi
7452
7453 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7454 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7455 library_names_spec=
7456 libname_spec='lib$name'
7457 soname_spec=
7458 shrext=".so"
7459 postinstall_cmds=
7460 postuninstall_cmds=
7461 finish_cmds=
7462 finish_eval=
7463 shlibpath_var=
7464 shlibpath_overrides_runpath=unknown
7465 version_type=none
7466 dynamic_linker="$host_os ld.so"
7467 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7468 if test "$GCC" = yes; then
7469   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7470   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7471     # if the path contains ";" then we assume it to be the separator
7472     # otherwise default to the standard path separator (i.e. ":") - it is
7473     # assumed that no part of a normal pathname contains ";" but that should
7474     # okay in the real world where ";" in dirpaths is itself problematic.
7475     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7476   else
7477     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7478   fi
7479 else
7480   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7481 fi
7482 need_lib_prefix=unknown
7483 hardcode_into_libs=no
7484
7485 # when you set need_version to no, make sure it does not cause -set_version
7486 # flags to be left without arguments
7487 need_version=unknown
7488
7489 case $host_os in
7490 aix3*)
7491   version_type=linux
7492   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7493   shlibpath_var=LIBPATH
7494
7495   # AIX 3 has no versioning support, so we append a major version to the name.
7496   soname_spec='${libname}${release}${shared_ext}$major'
7497   ;;
7498
7499 aix4* | aix5*)
7500   version_type=linux
7501   need_lib_prefix=no
7502   need_version=no
7503   hardcode_into_libs=yes
7504   if test "$host_cpu" = ia64; then
7505     # AIX 5 supports IA64
7506     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7507     shlibpath_var=LD_LIBRARY_PATH
7508   else
7509     # With GCC up to 2.95.x, collect2 would create an import file
7510     # for dependence libraries.  The import file would start with
7511     # the line `#! .'.  This would cause the generated library to
7512     # depend on `.', always an invalid library.  This was fixed in
7513     # development snapshots of GCC prior to 3.0.
7514     case $host_os in
7515       aix4 | aix4.[01] | aix4.[01].*)
7516       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7517            echo ' yes '
7518            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7519         :
7520       else
7521         can_build_shared=no
7522       fi
7523       ;;
7524     esac
7525     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7526     # soname into executable. Probably we can add versioning support to
7527     # collect2, so additional links can be useful in future.
7528     if test "$aix_use_runtimelinking" = yes; then
7529       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7530       # instead of lib<name>.a to let people know that these are not
7531       # typical AIX shared libraries.
7532       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7533     else
7534       # We preserve .a as extension for shared libraries through AIX4.2
7535       # and later when we are not doing run time linking.
7536       library_names_spec='${libname}${release}.a $libname.a'
7537       soname_spec='${libname}${release}${shared_ext}$major'
7538     fi
7539     shlibpath_var=LIBPATH
7540   fi
7541   ;;
7542
7543 amigaos*)
7544   library_names_spec='$libname.ixlibrary $libname.a'
7545   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7546   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'
7547   ;;
7548
7549 beos*)
7550   library_names_spec='${libname}${shared_ext}'
7551   dynamic_linker="$host_os ld.so"
7552   shlibpath_var=LIBRARY_PATH
7553   ;;
7554
7555 bsdi4*)
7556   version_type=linux
7557   need_version=no
7558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559   soname_spec='${libname}${release}${shared_ext}$major'
7560   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7561   shlibpath_var=LD_LIBRARY_PATH
7562   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7563   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7564   # the default ld.so.conf also contains /usr/contrib/lib and
7565   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7566   # libtool to hard-code these into programs
7567   ;;
7568
7569 cygwin* | mingw* | pw32*)
7570   version_type=windows
7571   shrext=".dll"
7572   need_version=no
7573   need_lib_prefix=no
7574
7575   case $GCC,$host_os in
7576   yes,cygwin* | yes,mingw* | yes,pw32*)
7577     library_names_spec='$libname.dll.a'
7578     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7579     postinstall_cmds='base_file=`basename \${file}`~
7580       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7581       dldir=$destdir/`dirname \$dlpath`~
7582       test -d \$dldir || mkdir -p \$dldir~
7583       $install_prog $dir/$dlname \$dldir/$dlname'
7584     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7585       dlpath=$dir/\$dldll~
7586        $rm \$dlpath'
7587     shlibpath_overrides_runpath=yes
7588
7589     case $host_os in
7590     cygwin*)
7591       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7592       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7593       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7594       ;;
7595     mingw*)
7596       # MinGW DLLs use traditional 'lib' prefix
7597       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7598       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7600         # It is most probably a Windows format PATH printed by
7601         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7602         # path with ; separators, and with drive letters. We can handle the
7603         # drive letters (cygwin fileutils understands them), so leave them,
7604         # especially as we might pass files found there to a mingw objdump,
7605         # which wouldn't understand a cygwinified path. Ahh.
7606         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7607       else
7608         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7609       fi
7610       ;;
7611     pw32*)
7612       # pw32 DLLs use 'pw' prefix rather than 'lib'
7613       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7614       ;;
7615     esac
7616     ;;
7617
7618   *)
7619     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7620     ;;
7621   esac
7622   dynamic_linker='Win32 ld.exe'
7623   # FIXME: first we should search . and the directory the executable is in
7624   shlibpath_var=PATH
7625   ;;
7626
7627 darwin* | rhapsody*)
7628   dynamic_linker="$host_os dyld"
7629   version_type=darwin
7630   need_lib_prefix=no
7631   need_version=no
7632   # FIXME: Relying on posixy $() will cause problems for
7633   #        cross-compilation, but unfortunately the echo tests do not
7634   #        yet detect zsh echo's removal of \ escapes.
7635   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7636   soname_spec='${libname}${release}${major}$shared_ext'
7637   shlibpath_overrides_runpath=yes
7638   shlibpath_var=DYLD_LIBRARY_PATH
7639   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7640   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7641   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7642   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"`
7643   fi
7644   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7645   ;;
7646
7647 dgux*)
7648   version_type=linux
7649   need_lib_prefix=no
7650   need_version=no
7651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7652   soname_spec='${libname}${release}${shared_ext}$major'
7653   shlibpath_var=LD_LIBRARY_PATH
7654   ;;
7655
7656 freebsd1*)
7657   dynamic_linker=no
7658   ;;
7659
7660 freebsd*)
7661   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7662   version_type=freebsd-$objformat
7663   case $version_type in
7664     freebsd-elf*)
7665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7666       need_version=no
7667       need_lib_prefix=no
7668       ;;
7669     freebsd-*)
7670       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7671       need_version=yes
7672       ;;
7673   esac
7674   shlibpath_var=LD_LIBRARY_PATH
7675   case $host_os in
7676   freebsd2*)
7677     shlibpath_overrides_runpath=yes
7678     ;;
7679   freebsd3.01* | freebsdelf3.01*)
7680     shlibpath_overrides_runpath=yes
7681     hardcode_into_libs=yes
7682     ;;
7683   *) # from 3.2 on
7684     shlibpath_overrides_runpath=no
7685     hardcode_into_libs=yes
7686     ;;
7687   esac
7688   ;;
7689
7690 gnu*)
7691   version_type=linux
7692   need_lib_prefix=no
7693   need_version=no
7694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7695   soname_spec='${libname}${release}${shared_ext}$major'
7696   shlibpath_var=LD_LIBRARY_PATH
7697   hardcode_into_libs=yes
7698   ;;
7699
7700 hpux9* | hpux10* | hpux11*)
7701   # Give a soname corresponding to the major version so that dld.sl refuses to
7702   # link against other versions.
7703   version_type=sunos
7704   need_lib_prefix=no
7705   need_version=no
7706   case "$host_cpu" in
7707   ia64*)
7708     shrext='.so'
7709     hardcode_into_libs=yes
7710     dynamic_linker="$host_os dld.so"
7711     shlibpath_var=LD_LIBRARY_PATH
7712     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7714     soname_spec='${libname}${release}${shared_ext}$major'
7715     if test "X$HPUX_IA64_MODE" = X32; then
7716       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7717     else
7718       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7719     fi
7720     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7721     ;;
7722    hppa*64*)
7723      shrext='.sl'
7724      hardcode_into_libs=yes
7725      dynamic_linker="$host_os dld.sl"
7726      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7727      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7728      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7729      soname_spec='${libname}${release}${shared_ext}$major'
7730      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7731      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7732      ;;
7733    *)
7734     shrext='.sl'
7735     dynamic_linker="$host_os dld.sl"
7736     shlibpath_var=SHLIB_PATH
7737     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7739     soname_spec='${libname}${release}${shared_ext}$major'
7740     ;;
7741   esac
7742   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7743   postinstall_cmds='chmod 555 $lib'
7744   ;;
7745
7746 irix5* | irix6* | nonstopux*)
7747   case $host_os in
7748     nonstopux*) version_type=nonstopux ;;
7749     *)
7750         if test "$lt_cv_prog_gnu_ld" = yes; then
7751                 version_type=linux
7752         else
7753                 version_type=irix
7754         fi ;;
7755   esac
7756   need_lib_prefix=no
7757   need_version=no
7758   soname_spec='${libname}${release}${shared_ext}$major'
7759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7760   case $host_os in
7761   irix5* | nonstopux*)
7762     libsuff= shlibsuff=
7763     ;;
7764   *)
7765     case $LD in # libtool.m4 will add one of these switches to LD
7766     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7767       libsuff= shlibsuff= libmagic=32-bit;;
7768     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7769       libsuff=32 shlibsuff=N32 libmagic=N32;;
7770     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7771       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7772     *) libsuff= shlibsuff= libmagic=never-match;;
7773     esac
7774     ;;
7775   esac
7776   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7777   shlibpath_overrides_runpath=no
7778   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7779   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7780   hardcode_into_libs=yes
7781   ;;
7782
7783 # No shared lib support for Linux oldld, aout, or coff.
7784 linux*oldld* | linux*aout* | linux*coff*)
7785   dynamic_linker=no
7786   ;;
7787
7788 # This must be Linux ELF.
7789 linux*)
7790   version_type=linux
7791   need_lib_prefix=no
7792   need_version=no
7793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794   soname_spec='${libname}${release}${shared_ext}$major'
7795   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7796   shlibpath_var=LD_LIBRARY_PATH
7797   shlibpath_overrides_runpath=no
7798   # This implies no fast_install, which is unacceptable.
7799   # Some rework will be needed to allow for fast_install
7800   # before this can be enabled.
7801   hardcode_into_libs=yes
7802
7803   # We used to test for /lib/ld.so.1 and disable shared libraries on
7804   # powerpc, because MkLinux only supported shared libraries with the
7805   # GNU dynamic linker.  Since this was broken with cross compilers,
7806   # most powerpc-linux boxes support dynamic linking these days and
7807   # people can always --disable-shared, the test was removed, and we
7808   # assume the GNU/Linux dynamic linker is in use.
7809   dynamic_linker='GNU/Linux ld.so'
7810   ;;
7811
7812 netbsd*)
7813   version_type=sunos
7814   need_lib_prefix=no
7815   need_version=no
7816   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7818     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7819     dynamic_linker='NetBSD (a.out) ld.so'
7820   else
7821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7822     soname_spec='${libname}${release}${shared_ext}$major'
7823     dynamic_linker='NetBSD ld.elf_so'
7824   fi
7825   shlibpath_var=LD_LIBRARY_PATH
7826   shlibpath_overrides_runpath=yes
7827   hardcode_into_libs=yes
7828   ;;
7829
7830 newsos6)
7831   version_type=linux
7832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833   shlibpath_var=LD_LIBRARY_PATH
7834   shlibpath_overrides_runpath=yes
7835   ;;
7836
7837 nto-qnx)
7838   version_type=linux
7839   need_lib_prefix=no
7840   need_version=no
7841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842   soname_spec='${libname}${release}${shared_ext}$major'
7843   shlibpath_var=LD_LIBRARY_PATH
7844   shlibpath_overrides_runpath=yes
7845   ;;
7846
7847 openbsd*)
7848   version_type=sunos
7849   need_lib_prefix=no
7850   need_version=no
7851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7853   shlibpath_var=LD_LIBRARY_PATH
7854   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7855     case $host_os in
7856       openbsd2.[89] | openbsd2.[89].*)
7857         shlibpath_overrides_runpath=no
7858         ;;
7859       *)
7860         shlibpath_overrides_runpath=yes
7861         ;;
7862       esac
7863   else
7864     shlibpath_overrides_runpath=yes
7865   fi
7866   ;;
7867
7868 os2*)
7869   libname_spec='$name'
7870   shrext=".dll"
7871   need_lib_prefix=no
7872   library_names_spec='$libname${shared_ext} $libname.a'
7873   dynamic_linker='OS/2 ld.exe'
7874   shlibpath_var=LIBPATH
7875   ;;
7876
7877 osf3* | osf4* | osf5*)
7878   version_type=osf
7879   need_lib_prefix=no
7880   need_version=no
7881   soname_spec='${libname}${release}${shared_ext}$major'
7882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7883   shlibpath_var=LD_LIBRARY_PATH
7884   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7885   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7886   ;;
7887
7888 sco3.2v5*)
7889   version_type=osf
7890   soname_spec='${libname}${release}${shared_ext}$major'
7891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892   shlibpath_var=LD_LIBRARY_PATH
7893   ;;
7894
7895 solaris*)
7896   version_type=linux
7897   need_lib_prefix=no
7898   need_version=no
7899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900   soname_spec='${libname}${release}${shared_ext}$major'
7901   shlibpath_var=LD_LIBRARY_PATH
7902   shlibpath_overrides_runpath=yes
7903   hardcode_into_libs=yes
7904   # ldd complains unless libraries are executable
7905   postinstall_cmds='chmod +x $lib'
7906   ;;
7907
7908 sunos4*)
7909   version_type=sunos
7910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7911   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7912   shlibpath_var=LD_LIBRARY_PATH
7913   shlibpath_overrides_runpath=yes
7914   if test "$with_gnu_ld" = yes; then
7915     need_lib_prefix=no
7916   fi
7917   need_version=yes
7918   ;;
7919
7920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7921   version_type=linux
7922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923   soname_spec='${libname}${release}${shared_ext}$major'
7924   shlibpath_var=LD_LIBRARY_PATH
7925   case $host_vendor in
7926     sni)
7927       shlibpath_overrides_runpath=no
7928       need_lib_prefix=no
7929       export_dynamic_flag_spec='${wl}-Blargedynsym'
7930       runpath_var=LD_RUN_PATH
7931       ;;
7932     siemens)
7933       need_lib_prefix=no
7934       ;;
7935     motorola)
7936       need_lib_prefix=no
7937       need_version=no
7938       shlibpath_overrides_runpath=no
7939       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7940       ;;
7941   esac
7942   ;;
7943
7944 sysv4*MP*)
7945   if test -d /usr/nec ;then
7946     version_type=linux
7947     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7948     soname_spec='$libname${shared_ext}.$major'
7949     shlibpath_var=LD_LIBRARY_PATH
7950   fi
7951   ;;
7952
7953 uts4*)
7954   version_type=linux
7955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956   soname_spec='${libname}${release}${shared_ext}$major'
7957   shlibpath_var=LD_LIBRARY_PATH
7958   ;;
7959
7960 *)
7961   dynamic_linker=no
7962   ;;
7963 esac
7964 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7965 echo "${ECHO_T}$dynamic_linker" >&6
7966 test "$dynamic_linker" = no && can_build_shared=no
7967
7968 if test "x$enable_dlopen" != xyes; then
7969   enable_dlopen=unknown
7970   enable_dlopen_self=unknown
7971   enable_dlopen_self_static=unknown
7972 else
7973   lt_cv_dlopen=no
7974   lt_cv_dlopen_libs=
7975
7976   case $host_os in
7977   beos*)
7978     lt_cv_dlopen="load_add_on"
7979     lt_cv_dlopen_libs=
7980     lt_cv_dlopen_self=yes
7981     ;;
7982
7983   mingw* | pw32*)
7984     lt_cv_dlopen="LoadLibrary"
7985     lt_cv_dlopen_libs=
7986    ;;
7987
7988   cygwin*)
7989     lt_cv_dlopen="dlopen"
7990     lt_cv_dlopen_libs=
7991    ;;
7992
7993   darwin*)
7994   # if libdl is installed we need to link against it
7995     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   ac_check_lib_save_LIBS=$LIBS
8001 LIBS="-ldl  $LIBS"
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008
8009 /* Override any gcc2 internal prototype to avoid an error.  */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014    builtin and then its argument prototype would still apply.  */
8015 char dlopen ();
8016 int
8017 main ()
8018 {
8019 dlopen ();
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026   (eval $ac_link) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"
8034                          || test ! -s conftest.err'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; } &&
8040          { ac_try='test -s conftest$ac_exeext'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046   ac_cv_lib_dl_dlopen=yes
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_lib_dl_dlopen=no
8052 fi
8053 rm -f conftest.err conftest.$ac_objext \
8054       conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8059 if test $ac_cv_lib_dl_dlopen = yes; then
8060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8061 else
8062
8063     lt_cv_dlopen="dyld"
8064     lt_cv_dlopen_libs=
8065     lt_cv_dlopen_self=yes
8066
8067 fi
8068
8069    ;;
8070
8071   *)
8072     echo "$as_me:$LINENO: checking for shl_load" >&5
8073 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8074 if test "${ac_cv_func_shl_load+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h.  */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h.  */
8083 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8085 #define shl_load innocuous_shl_load
8086
8087 /* System header to define __stub macros and hopefully few prototypes,
8088     which can conflict with char shl_load (); below.
8089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8090     <limits.h> exists even on freestanding compilers.  */
8091
8092 #ifdef __STDC__
8093 # include <limits.h>
8094 #else
8095 # include <assert.h>
8096 #endif
8097
8098 #undef shl_load
8099
8100 /* Override any gcc2 internal prototype to avoid an error.  */
8101 #ifdef __cplusplus
8102 extern "C"
8103 {
8104 #endif
8105 /* We use char because int might match the return type of a gcc2
8106    builtin and then its argument prototype would still apply.  */
8107 char shl_load ();
8108 /* The GNU C library defines this for functions which it implements
8109     to always fail with ENOSYS.  Some functions are actually named
8110     something starting with __ and the normal name is an alias.  */
8111 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8112 choke me
8113 #else
8114 char (*f) () = shl_load;
8115 #endif
8116 #ifdef __cplusplus
8117 }
8118 #endif
8119
8120 int
8121 main ()
8122 {
8123 return f != shl_load;
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130   (eval $ac_link) 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -z "$ac_c_werror_flag"
8138                          || test ! -s conftest.err'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; } &&
8144          { ac_try='test -s conftest$ac_exeext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   ac_cv_func_shl_load=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_cv_func_shl_load=no
8156 fi
8157 rm -f conftest.err conftest.$ac_objext \
8158       conftest$ac_exeext conftest.$ac_ext
8159 fi
8160 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8161 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8162 if test $ac_cv_func_shl_load = yes; then
8163   lt_cv_dlopen="shl_load"
8164 else
8165   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8166 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8167 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-ldld  $LIBS"
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178
8179 /* Override any gcc2 internal prototype to avoid an error.  */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 /* We use char because int might match the return type of a gcc2
8184    builtin and then its argument prototype would still apply.  */
8185 char shl_load ();
8186 int
8187 main ()
8188 {
8189 shl_load ();
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196   (eval $ac_link) 2>conftest.er1
8197   ac_status=$?
8198   grep -v '^ *+' conftest.er1 >conftest.err
8199   rm -f conftest.er1
8200   cat conftest.err >&5
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); } &&
8203          { ac_try='test -z "$ac_c_werror_flag"
8204                          || test ! -s conftest.err'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; } &&
8210          { ac_try='test -s conftest$ac_exeext'
8211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212   (eval $ac_try) 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; }; then
8216   ac_cv_lib_dld_shl_load=yes
8217 else
8218   echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 ac_cv_lib_dld_shl_load=no
8222 fi
8223 rm -f conftest.err conftest.$ac_objext \
8224       conftest$ac_exeext conftest.$ac_ext
8225 LIBS=$ac_check_lib_save_LIBS
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8228 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8229 if test $ac_cv_lib_dld_shl_load = yes; then
8230   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8231 else
8232   echo "$as_me:$LINENO: checking for dlopen" >&5
8233 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8234 if test "${ac_cv_func_dlopen+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8245 #define dlopen innocuous_dlopen
8246
8247 /* System header to define __stub macros and hopefully few prototypes,
8248     which can conflict with char dlopen (); below.
8249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8250     <limits.h> exists even on freestanding compilers.  */
8251
8252 #ifdef __STDC__
8253 # include <limits.h>
8254 #else
8255 # include <assert.h>
8256 #endif
8257
8258 #undef dlopen
8259
8260 /* Override any gcc2 internal prototype to avoid an error.  */
8261 #ifdef __cplusplus
8262 extern "C"
8263 {
8264 #endif
8265 /* We use char because int might match the return type of a gcc2
8266    builtin and then its argument prototype would still apply.  */
8267 char dlopen ();
8268 /* The GNU C library defines this for functions which it implements
8269     to always fail with ENOSYS.  Some functions are actually named
8270     something starting with __ and the normal name is an alias.  */
8271 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8272 choke me
8273 #else
8274 char (*f) () = dlopen;
8275 #endif
8276 #ifdef __cplusplus
8277 }
8278 #endif
8279
8280 int
8281 main ()
8282 {
8283 return f != dlopen;
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290   (eval $ac_link) 2>conftest.er1
8291   ac_status=$?
8292   grep -v '^ *+' conftest.er1 >conftest.err
8293   rm -f conftest.er1
8294   cat conftest.err >&5
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } &&
8297          { ac_try='test -z "$ac_c_werror_flag"
8298                          || test ! -s conftest.err'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; } &&
8304          { ac_try='test -s conftest$ac_exeext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_cv_func_dlopen=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_func_dlopen=no
8316 fi
8317 rm -f conftest.err conftest.$ac_objext \
8318       conftest$ac_exeext conftest.$ac_ext
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8321 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8322 if test $ac_cv_func_dlopen = yes; then
8323   lt_cv_dlopen="dlopen"
8324 else
8325   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8326 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8327 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   ac_check_lib_save_LIBS=$LIBS
8331 LIBS="-ldl  $LIBS"
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338
8339 /* Override any gcc2 internal prototype to avoid an error.  */
8340 #ifdef __cplusplus
8341 extern "C"
8342 #endif
8343 /* We use char because int might match the return type of a gcc2
8344    builtin and then its argument prototype would still apply.  */
8345 char dlopen ();
8346 int
8347 main ()
8348 {
8349 dlopen ();
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag"
8364                          || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   ac_cv_lib_dl_dlopen=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 ac_cv_lib_dl_dlopen=no
8382 fi
8383 rm -f conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8389 if test $ac_cv_lib_dl_dlopen = yes; then
8390   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8391 else
8392   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8393 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8394 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   ac_check_lib_save_LIBS=$LIBS
8398 LIBS="-lsvld  $LIBS"
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405
8406 /* Override any gcc2 internal prototype to avoid an error.  */
8407 #ifdef __cplusplus
8408 extern "C"
8409 #endif
8410 /* We use char because int might match the return type of a gcc2
8411    builtin and then its argument prototype would still apply.  */
8412 char dlopen ();
8413 int
8414 main ()
8415 {
8416 dlopen ();
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423   (eval $ac_link) 2>conftest.er1
8424   ac_status=$?
8425   grep -v '^ *+' conftest.er1 >conftest.err
8426   rm -f conftest.er1
8427   cat conftest.err >&5
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } &&
8430          { ac_try='test -z "$ac_c_werror_flag"
8431                          || test ! -s conftest.err'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_lib_svld_dlopen=yes
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 ac_cv_lib_svld_dlopen=no
8449 fi
8450 rm -f conftest.err conftest.$ac_objext \
8451       conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8453 fi
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8455 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8456 if test $ac_cv_lib_svld_dlopen = yes; then
8457   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8458 else
8459   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8460 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8461 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   ac_check_lib_save_LIBS=$LIBS
8465 LIBS="-ldld  $LIBS"
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478    builtin and then its argument prototype would still apply.  */
8479 char dld_link ();
8480 int
8481 main ()
8482 {
8483 dld_link ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490   (eval $ac_link) 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -z "$ac_c_werror_flag"
8498                          || test ! -s conftest.err'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; } &&
8504          { ac_try='test -s conftest$ac_exeext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_cv_lib_dld_dld_link=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_cv_lib_dld_dld_link=no
8516 fi
8517 rm -f conftest.err conftest.$ac_objext \
8518       conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8520 fi
8521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8522 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8523 if test $ac_cv_lib_dld_dld_link = yes; then
8524   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8525 fi
8526
8527
8528 fi
8529
8530
8531 fi
8532
8533
8534 fi
8535
8536
8537 fi
8538
8539
8540 fi
8541
8542     ;;
8543   esac
8544
8545   if test "x$lt_cv_dlopen" != xno; then
8546     enable_dlopen=yes
8547   else
8548     enable_dlopen=no
8549   fi
8550
8551   case $lt_cv_dlopen in
8552   dlopen)
8553     save_CPPFLAGS="$CPPFLAGS"
8554     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8555
8556     save_LDFLAGS="$LDFLAGS"
8557     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8558
8559     save_LIBS="$LIBS"
8560     LIBS="$lt_cv_dlopen_libs $LIBS"
8561
8562     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8563 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8564 if test "${lt_cv_dlopen_self+set}" = set; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567           if test "$cross_compiling" = yes; then :
8568   lt_cv_dlopen_self=cross
8569 else
8570   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8571   lt_status=$lt_dlunknown
8572   cat > conftest.$ac_ext <<EOF
8573 #line 8573 "configure"
8574 #include "confdefs.h"
8575
8576 #if HAVE_DLFCN_H
8577 #include <dlfcn.h>
8578 #endif
8579
8580 #include <stdio.h>
8581
8582 #ifdef RTLD_GLOBAL
8583 #  define LT_DLGLOBAL           RTLD_GLOBAL
8584 #else
8585 #  ifdef DL_GLOBAL
8586 #    define LT_DLGLOBAL         DL_GLOBAL
8587 #  else
8588 #    define LT_DLGLOBAL         0
8589 #  endif
8590 #endif
8591
8592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8593    find out it does not work in some platform. */
8594 #ifndef LT_DLLAZY_OR_NOW
8595 #  ifdef RTLD_LAZY
8596 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8597 #  else
8598 #    ifdef DL_LAZY
8599 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8600 #    else
8601 #      ifdef RTLD_NOW
8602 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8603 #      else
8604 #        ifdef DL_NOW
8605 #          define LT_DLLAZY_OR_NOW      DL_NOW
8606 #        else
8607 #          define LT_DLLAZY_OR_NOW      0
8608 #        endif
8609 #      endif
8610 #    endif
8611 #  endif
8612 #endif
8613
8614 #ifdef __cplusplus
8615 extern "C" void exit (int);
8616 #endif
8617
8618 void fnord() { int i=42;}
8619 int main ()
8620 {
8621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8622   int status = $lt_dlunknown;
8623
8624   if (self)
8625     {
8626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8627       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8628       /* dlclose (self); */
8629     }
8630
8631     exit (status);
8632 }
8633 EOF
8634   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635   (eval $ac_link) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8639     (./conftest; exit; ) 2>/dev/null
8640     lt_status=$?
8641     case x$lt_status in
8642       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8643       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8644       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8645     esac
8646   else :
8647     # compilation failed
8648     lt_cv_dlopen_self=no
8649   fi
8650 fi
8651 rm -fr conftest*
8652
8653
8654 fi
8655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8656 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8657
8658     if test "x$lt_cv_dlopen_self" = xyes; then
8659       LDFLAGS="$LDFLAGS $link_static_flag"
8660       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8661 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8662 if test "${lt_cv_dlopen_self_static+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665           if test "$cross_compiling" = yes; then :
8666   lt_cv_dlopen_self_static=cross
8667 else
8668   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8669   lt_status=$lt_dlunknown
8670   cat > conftest.$ac_ext <<EOF
8671 #line 8671 "configure"
8672 #include "confdefs.h"
8673
8674 #if HAVE_DLFCN_H
8675 #include <dlfcn.h>
8676 #endif
8677
8678 #include <stdio.h>
8679
8680 #ifdef RTLD_GLOBAL
8681 #  define LT_DLGLOBAL           RTLD_GLOBAL
8682 #else
8683 #  ifdef DL_GLOBAL
8684 #    define LT_DLGLOBAL         DL_GLOBAL
8685 #  else
8686 #    define LT_DLGLOBAL         0
8687 #  endif
8688 #endif
8689
8690 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8691    find out it does not work in some platform. */
8692 #ifndef LT_DLLAZY_OR_NOW
8693 #  ifdef RTLD_LAZY
8694 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8695 #  else
8696 #    ifdef DL_LAZY
8697 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8698 #    else
8699 #      ifdef RTLD_NOW
8700 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8701 #      else
8702 #        ifdef DL_NOW
8703 #          define LT_DLLAZY_OR_NOW      DL_NOW
8704 #        else
8705 #          define LT_DLLAZY_OR_NOW      0
8706 #        endif
8707 #      endif
8708 #    endif
8709 #  endif
8710 #endif
8711
8712 #ifdef __cplusplus
8713 extern "C" void exit (int);
8714 #endif
8715
8716 void fnord() { int i=42;}
8717 int main ()
8718 {
8719   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8720   int status = $lt_dlunknown;
8721
8722   if (self)
8723     {
8724       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8725       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8726       /* dlclose (self); */
8727     }
8728
8729     exit (status);
8730 }
8731 EOF
8732   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733   (eval $ac_link) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8737     (./conftest; exit; ) 2>/dev/null
8738     lt_status=$?
8739     case x$lt_status in
8740       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8741       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8742       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8743     esac
8744   else :
8745     # compilation failed
8746     lt_cv_dlopen_self_static=no
8747   fi
8748 fi
8749 rm -fr conftest*
8750
8751
8752 fi
8753 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8754 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8755     fi
8756
8757     CPPFLAGS="$save_CPPFLAGS"
8758     LDFLAGS="$save_LDFLAGS"
8759     LIBS="$save_LIBS"
8760     ;;
8761   esac
8762
8763   case $lt_cv_dlopen_self in
8764   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8765   *) enable_dlopen_self=unknown ;;
8766   esac
8767
8768   case $lt_cv_dlopen_self_static in
8769   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8770   *) enable_dlopen_self_static=unknown ;;
8771   esac
8772 fi
8773
8774
8775 # Report which librarie types wil actually be built
8776 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8777 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8778 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8779 echo "${ECHO_T}$can_build_shared" >&6
8780
8781 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8782 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8783 test "$can_build_shared" = "no" && enable_shared=no
8784
8785 # On AIX, shared libraries and static libraries use the same namespace, and
8786 # are all built from PIC.
8787 case "$host_os" in
8788 aix3*)
8789   test "$enable_shared" = yes && enable_static=no
8790   if test -n "$RANLIB"; then
8791     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8792     postinstall_cmds='$RANLIB $lib'
8793   fi
8794   ;;
8795
8796 aix4*)
8797   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8798     test "$enable_shared" = yes && enable_static=no
8799   fi
8800   ;;
8801   darwin* | rhapsody*)
8802   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8803     archive_cmds_need_lc=no
8804     case "$host_os" in
8805     rhapsody* | darwin1.[012])
8806       allow_undefined_flag='-undefined suppress'
8807       ;;
8808     *) # Darwin 1.3 on
8809       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8810       ;;
8811     esac
8812     # FIXME: Relying on posixy $() will cause problems for
8813     #        cross-compilation, but unfortunately the echo tests do not
8814     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8815     #          `"' quotes if we put them in here... so don't!
8816                 output_verbose_link_cmd='echo'
8817     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8818     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8819     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8820                   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}'
8821                   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}'
8822     hardcode_direct=no
8823     hardcode_automatic=yes
8824     hardcode_shlibpath_var=unsupported
8825     whole_archive_flag_spec='-all_load $convenience'
8826     link_all_deplibs=yes
8827     fi
8828     ;;
8829 esac
8830 echo "$as_me:$LINENO: result: $enable_shared" >&5
8831 echo "${ECHO_T}$enable_shared" >&6
8832
8833 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8835 # Make sure either enable_shared or enable_static is yes.
8836 test "$enable_shared" = yes || enable_static=yes
8837 echo "$as_me:$LINENO: result: $enable_static" >&5
8838 echo "${ECHO_T}$enable_static" >&6
8839
8840 # The else clause should only fire when bootstrapping the
8841 # libtool distribution, otherwise you forgot to ship ltmain.sh
8842 # with your package, and you will get complaints that there are
8843 # no rules to generate ltmain.sh.
8844 if test -f "$ltmain"; then
8845   # See if we are running on zsh, and set the options which allow our commands through
8846   # without removal of \ escapes.
8847   if test -n "${ZSH_VERSION+set}" ; then
8848     setopt NO_GLOB_SUBST
8849   fi
8850   # Now quote all the things that may contain metacharacters while being
8851   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8852   # variables and quote the copies for generation of the libtool script.
8853   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8854     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8855     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8856     deplibs_check_method reload_flag reload_cmds need_locks \
8857     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8858     lt_cv_sys_global_symbol_to_c_name_address \
8859     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8860     old_postinstall_cmds old_postuninstall_cmds \
8861     compiler \
8862     CC \
8863     LD \
8864     lt_prog_compiler_wl \
8865     lt_prog_compiler_pic \
8866     lt_prog_compiler_static \
8867     lt_prog_compiler_no_builtin_flag \
8868     export_dynamic_flag_spec \
8869     thread_safe_flag_spec \
8870     whole_archive_flag_spec \
8871     enable_shared_with_static_runtimes \
8872     old_archive_cmds \
8873     old_archive_from_new_cmds \
8874     predep_objects \
8875     postdep_objects \
8876     predeps \
8877     postdeps \
8878     compiler_lib_search_path \
8879     archive_cmds \
8880     archive_expsym_cmds \
8881     postinstall_cmds \
8882     postuninstall_cmds \
8883     old_archive_from_expsyms_cmds \
8884     allow_undefined_flag \
8885     no_undefined_flag \
8886     export_symbols_cmds \
8887     hardcode_libdir_flag_spec \
8888     hardcode_libdir_flag_spec_ld \
8889     hardcode_libdir_separator \
8890     hardcode_automatic \
8891     module_cmds \
8892     module_expsym_cmds \
8893     lt_cv_prog_compiler_c_o \
8894     exclude_expsyms \
8895     include_expsyms; do
8896
8897     case $var in
8898     old_archive_cmds | \
8899     old_archive_from_new_cmds | \
8900     archive_cmds | \
8901     archive_expsym_cmds | \
8902     module_cmds | \
8903     module_expsym_cmds | \
8904     old_archive_from_expsyms_cmds | \
8905     export_symbols_cmds | \
8906     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8907     postinstall_cmds | postuninstall_cmds | \
8908     old_postinstall_cmds | old_postuninstall_cmds | \
8909     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8910       # Double-quote double-evaled strings.
8911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8912       ;;
8913     *)
8914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8915       ;;
8916     esac
8917   done
8918
8919   case $lt_echo in
8920   *'\$0 --fallback-echo"')
8921     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8922     ;;
8923   esac
8924
8925 cfgfile="${ofile}T"
8926   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8927   $rm -f "$cfgfile"
8928   { echo "$as_me:$LINENO: creating $ofile" >&5
8929 echo "$as_me: creating $ofile" >&6;}
8930
8931   cat <<__EOF__ >> "$cfgfile"
8932 #! $SHELL
8933
8934 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8935 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8936 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8937 #
8938 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8939 # Free Software Foundation, Inc.
8940 #
8941 # This file is part of GNU Libtool:
8942 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8943 #
8944 # This program is free software; you can redistribute it and/or modify
8945 # it under the terms of the GNU General Public License as published by
8946 # the Free Software Foundation; either version 2 of the License, or
8947 # (at your option) any later version.
8948 #
8949 # This program is distributed in the hope that it will be useful, but
8950 # WITHOUT ANY WARRANTY; without even the implied warranty of
8951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8952 # General Public License for more details.
8953 #
8954 # You should have received a copy of the GNU General Public License
8955 # along with this program; if not, write to the Free Software
8956 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8957 #
8958 # As a special exception to the GNU General Public License, if you
8959 # distribute this file as part of a program that contains a
8960 # configuration script generated by Autoconf, you may include it under
8961 # the same distribution terms that you use for the rest of that program.
8962
8963 # A sed program that does not truncate output.
8964 SED=$lt_SED
8965
8966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8967 Xsed="$SED -e s/^X//"
8968
8969 # The HP-UX ksh and POSIX shell print the target directory to stdout
8970 # if CDPATH is set.
8971 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8972
8973 # The names of the tagged configurations supported by this script.
8974 available_tags=
8975
8976 # ### BEGIN LIBTOOL CONFIG
8977
8978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8979
8980 # Shell to use when invoking shell scripts.
8981 SHELL=$lt_SHELL
8982
8983 # Whether or not to build shared libraries.
8984 build_libtool_libs=$enable_shared
8985
8986 # Whether or not to build static libraries.
8987 build_old_libs=$enable_static
8988
8989 # Whether or not to add -lc for building shared libraries.
8990 build_libtool_need_lc=$archive_cmds_need_lc
8991
8992 # Whether or not to disallow shared libs when runtime libs are static
8993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8994
8995 # Whether or not to optimize for fast installation.
8996 fast_install=$enable_fast_install
8997
8998 # The host system.
8999 host_alias=$host_alias
9000 host=$host
9001
9002 # An echo program that does not interpret backslashes.
9003 echo=$lt_echo
9004
9005 # The archiver.
9006 AR=$lt_AR
9007 AR_FLAGS=$lt_AR_FLAGS
9008
9009 # A C compiler.
9010 LTCC=$lt_LTCC
9011
9012 # A language-specific compiler.
9013 CC=$lt_compiler
9014
9015 # Is the compiler the GNU C compiler?
9016 with_gcc=$GCC
9017
9018 # An ERE matcher.
9019 EGREP=$lt_EGREP
9020
9021 # The linker used to build libraries.
9022 LD=$lt_LD
9023
9024 # Whether we need hard or soft links.
9025 LN_S=$lt_LN_S
9026
9027 # A BSD-compatible nm program.
9028 NM=$lt_NM
9029
9030 # A symbol stripping program
9031 STRIP=$STRIP
9032
9033 # Used to examine libraries when file_magic_cmd begins "file"
9034 MAGIC_CMD=$MAGIC_CMD
9035
9036 # Used on cygwin: DLL creation program.
9037 DLLTOOL="$DLLTOOL"
9038
9039 # Used on cygwin: object dumper.
9040 OBJDUMP="$OBJDUMP"
9041
9042 # Used on cygwin: assembler.
9043 AS="$AS"
9044
9045 # The name of the directory that contains temporary libtool files.
9046 objdir=$objdir
9047
9048 # How to create reloadable object files.
9049 reload_flag=$lt_reload_flag
9050 reload_cmds=$lt_reload_cmds
9051
9052 # How to pass a linker flag through the compiler.
9053 wl=$lt_lt_prog_compiler_wl
9054
9055 # Object file suffix (normally "o").
9056 objext="$ac_objext"
9057
9058 # Old archive suffix (normally "a").
9059 libext="$libext"
9060
9061 # Shared library suffix (normally ".so").
9062 shrext='$shrext'
9063
9064 # Executable file suffix (normally "").
9065 exeext="$exeext"
9066
9067 # Additional compiler flags for building library objects.
9068 pic_flag=$lt_lt_prog_compiler_pic
9069 pic_mode=$pic_mode
9070
9071 # What is the maximum length of a command?
9072 max_cmd_len=$lt_cv_sys_max_cmd_len
9073
9074 # Does compiler simultaneously support -c and -o options?
9075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9076
9077 # Must we lock files when doing compilation ?
9078 need_locks=$lt_need_locks
9079
9080 # Do we need the lib prefix for modules?
9081 need_lib_prefix=$need_lib_prefix
9082
9083 # Do we need a version for libraries?
9084 need_version=$need_version
9085
9086 # Whether dlopen is supported.
9087 dlopen_support=$enable_dlopen
9088
9089 # Whether dlopen of programs is supported.
9090 dlopen_self=$enable_dlopen_self
9091
9092 # Whether dlopen of statically linked programs is supported.
9093 dlopen_self_static=$enable_dlopen_self_static
9094
9095 # Compiler flag to prevent dynamic linking.
9096 link_static_flag=$lt_lt_prog_compiler_static
9097
9098 # Compiler flag to turn off builtin functions.
9099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9100
9101 # Compiler flag to allow reflexive dlopens.
9102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9103
9104 # Compiler flag to generate shared objects directly from archives.
9105 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9106
9107 # Compiler flag to generate thread-safe objects.
9108 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9109
9110 # Library versioning type.
9111 version_type=$version_type
9112
9113 # Format of library name prefix.
9114 libname_spec=$lt_libname_spec
9115
9116 # List of archive names.  First name is the real one, the rest are links.
9117 # The last name is the one that the linker finds with -lNAME.
9118 library_names_spec=$lt_library_names_spec
9119
9120 # The coded name of the library, if different from the real name.
9121 soname_spec=$lt_soname_spec
9122
9123 # Commands used to build and install an old-style archive.
9124 RANLIB=$lt_RANLIB
9125 old_archive_cmds=$lt_old_archive_cmds
9126 old_postinstall_cmds=$lt_old_postinstall_cmds
9127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9128
9129 # Create an old-style archive from a shared archive.
9130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9131
9132 # Create a temporary old-style archive to link instead of a shared archive.
9133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9134
9135 # Commands used to build and install a shared archive.
9136 archive_cmds=$lt_archive_cmds
9137 archive_expsym_cmds=$lt_archive_expsym_cmds
9138 postinstall_cmds=$lt_postinstall_cmds
9139 postuninstall_cmds=$lt_postuninstall_cmds
9140
9141 # Commands used to build a loadable module (assumed same as above if empty)
9142 module_cmds=$lt_module_cmds
9143 module_expsym_cmds=$lt_module_expsym_cmds
9144
9145 # Commands to strip libraries.
9146 old_striplib=$lt_old_striplib
9147 striplib=$lt_striplib
9148
9149 # Dependencies to place before the objects being linked to create a
9150 # shared library.
9151 predep_objects=$lt_predep_objects
9152
9153 # Dependencies to place after the objects being linked to create a
9154 # shared library.
9155 postdep_objects=$lt_postdep_objects
9156
9157 # Dependencies to place before the objects being linked to create a
9158 # shared library.
9159 predeps=$lt_predeps
9160
9161 # Dependencies to place after the objects being linked to create a
9162 # shared library.
9163 postdeps=$lt_postdeps
9164
9165 # The library search path used internally by the compiler when linking
9166 # a shared library.
9167 compiler_lib_search_path=$lt_compiler_lib_search_path
9168
9169 # Method to check whether dependent libraries are shared objects.
9170 deplibs_check_method=$lt_deplibs_check_method
9171
9172 # Command to use when deplibs_check_method == file_magic.
9173 file_magic_cmd=$lt_file_magic_cmd
9174
9175 # Flag that allows shared libraries with undefined symbols to be built.
9176 allow_undefined_flag=$lt_allow_undefined_flag
9177
9178 # Flag that forces no undefined symbols.
9179 no_undefined_flag=$lt_no_undefined_flag
9180
9181 # Commands used to finish a libtool library installation in a directory.
9182 finish_cmds=$lt_finish_cmds
9183
9184 # Same as above, but a single script fragment to be evaled but not shown.
9185 finish_eval=$lt_finish_eval
9186
9187 # Take the output of nm and produce a listing of raw symbols and C names.
9188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9189
9190 # Transform the output of nm in a proper C declaration
9191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9192
9193 # Transform the output of nm in a C name address pair
9194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9195
9196 # This is the shared library runtime path variable.
9197 runpath_var=$runpath_var
9198
9199 # This is the shared library path variable.
9200 shlibpath_var=$shlibpath_var
9201
9202 # Is shlibpath searched before the hard-coded library search path?
9203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9204
9205 # How to hardcode a shared library path into an executable.
9206 hardcode_action=$hardcode_action
9207
9208 # Whether we should hardcode library paths into libraries.
9209 hardcode_into_libs=$hardcode_into_libs
9210
9211 # Flag to hardcode \$libdir into a binary during linking.
9212 # This must work even if \$libdir does not exist.
9213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9214
9215 # If ld is used when linking, flag to hardcode \$libdir into
9216 # a binary during linking. This must work even if \$libdir does
9217 # not exist.
9218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9219
9220 # Whether we need a single -rpath flag with a separated argument.
9221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9222
9223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9224 # resulting binary.
9225 hardcode_direct=$hardcode_direct
9226
9227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9228 # resulting binary.
9229 hardcode_minus_L=$hardcode_minus_L
9230
9231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9232 # the resulting binary.
9233 hardcode_shlibpath_var=$hardcode_shlibpath_var
9234
9235 # Set to yes if building a shared library automatically hardcodes DIR into the library
9236 # and all subsequent libraries and executables linked against it.
9237 hardcode_automatic=$hardcode_automatic
9238
9239 # Variables whose values should be saved in libtool wrapper scripts and
9240 # restored at relink time.
9241 variables_saved_for_relink="$variables_saved_for_relink"
9242
9243 # Whether libtool must link a program against all its dependency libraries.
9244 link_all_deplibs=$link_all_deplibs
9245
9246 # Compile-time system search path for libraries
9247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9248
9249 # Run-time system search path for libraries
9250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9251
9252 # Fix the shell variable \$srcfile for the compiler.
9253 fix_srcfile_path="$fix_srcfile_path"
9254
9255 # Set to yes if exported symbols are required.
9256 always_export_symbols=$always_export_symbols
9257
9258 # The commands to list exported symbols.
9259 export_symbols_cmds=$lt_export_symbols_cmds
9260
9261 # The commands to extract the exported symbol list from a shared archive.
9262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9263
9264 # Symbols that should not be listed in the preloaded symbols.
9265 exclude_expsyms=$lt_exclude_expsyms
9266
9267 # Symbols that must always be exported.
9268 include_expsyms=$lt_include_expsyms
9269
9270 # ### END LIBTOOL CONFIG
9271
9272 __EOF__
9273
9274
9275   case $host_os in
9276   aix3*)
9277     cat <<\EOF >> "$cfgfile"
9278
9279 # AIX sometimes has problems with the GCC collect2 program.  For some
9280 # reason, if we set the COLLECT_NAMES environment variable, the problems
9281 # vanish in a puff of smoke.
9282 if test "X${COLLECT_NAMES+set}" != Xset; then
9283   COLLECT_NAMES=
9284   export COLLECT_NAMES
9285 fi
9286 EOF
9287     ;;
9288   esac
9289
9290   # We use sed instead of cat because bash on DJGPP gets confused if
9291   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9292   # text mode, it properly converts lines to CR/LF.  This bash problem
9293   # is reportedly fixed, but why not run on old versions too?
9294   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9295
9296   mv -f "$cfgfile" "$ofile" || \
9297     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9298   chmod +x "$ofile"
9299
9300 else
9301   # If there is no Makefile yet, we rely on a make rule to execute
9302   # `config.status --recheck' to rerun these tests and create the
9303   # libtool script then.
9304   test -f Makefile && make "$ltmain"
9305 fi
9306
9307
9308 ac_ext=c
9309 ac_cpp='$CPP $CPPFLAGS'
9310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9313
9314 CC="$lt_save_CC"
9315
9316
9317 # Check whether --with-tags or --without-tags was given.
9318 if test "${with_tags+set}" = set; then
9319   withval="$with_tags"
9320   tagnames="$withval"
9321 fi;
9322
9323 if test -f "$ltmain" && test -n "$tagnames"; then
9324   if test ! -f "${ofile}"; then
9325     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9326 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9327   fi
9328
9329   if test -z "$LTCC"; then
9330     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9331     if test -z "$LTCC"; then
9332       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9333 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9334     else
9335       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9336 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9337     fi
9338   fi
9339
9340   # Extract list of available tagged configurations in $ofile.
9341   # Note that this assumes the entire list is on one line.
9342   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9343
9344   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9345   for tagname in $tagnames; do
9346     IFS="$lt_save_ifs"
9347     # Check whether tagname contains only valid characters
9348     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9349     "") ;;
9350     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9351 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9352    { (exit 1); exit 1; }; }
9353         ;;
9354     esac
9355
9356     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9357     then
9358       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9359 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9360    { (exit 1); exit 1; }; }
9361     fi
9362
9363     # Update the list of available tags.
9364     if test -n "$tagname"; then
9365       echo appending configuration tag \"$tagname\" to $ofile
9366
9367       case $tagname in
9368       CXX)
9369         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9370           ac_ext=cc
9371 ac_cpp='$CXXCPP $CPPFLAGS'
9372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9375
9376
9377
9378
9379 archive_cmds_need_lc_CXX=no
9380 allow_undefined_flag_CXX=
9381 always_export_symbols_CXX=no
9382 archive_expsym_cmds_CXX=
9383 export_dynamic_flag_spec_CXX=
9384 hardcode_direct_CXX=no
9385 hardcode_libdir_flag_spec_CXX=
9386 hardcode_libdir_flag_spec_ld_CXX=
9387 hardcode_libdir_separator_CXX=
9388 hardcode_minus_L_CXX=no
9389 hardcode_automatic_CXX=no
9390 module_cmds_CXX=
9391 module_expsym_cmds_CXX=
9392 link_all_deplibs_CXX=unknown
9393 old_archive_cmds_CXX=$old_archive_cmds
9394 no_undefined_flag_CXX=
9395 whole_archive_flag_spec_CXX=
9396 enable_shared_with_static_runtimes_CXX=no
9397
9398 # Dependencies to place before and after the object being linked:
9399 predep_objects_CXX=
9400 postdep_objects_CXX=
9401 predeps_CXX=
9402 postdeps_CXX=
9403 compiler_lib_search_path_CXX=
9404
9405 # Source file extension for C++ test sources.
9406 ac_ext=cc
9407
9408 # Object file extension for compiled C++ test sources.
9409 objext=o
9410 objext_CXX=$objext
9411
9412 # Code to be used in simple compile tests
9413 lt_simple_compile_test_code="int some_variable = 0;\n"
9414
9415 # Code to be used in simple link tests
9416 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9417
9418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9419
9420 # If no C compiler was specified, use CC.
9421 LTCC=${LTCC-"$CC"}
9422
9423 # Allow CC to be a program name with arguments.
9424 compiler=$CC
9425
9426
9427 # Allow CC to be a program name with arguments.
9428 lt_save_CC=$CC
9429 lt_save_LD=$LD
9430 lt_save_GCC=$GCC
9431 GCC=$GXX
9432 lt_save_with_gnu_ld=$with_gnu_ld
9433 lt_save_path_LD=$lt_cv_path_LD
9434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9435   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9436 else
9437   unset lt_cv_prog_gnu_ld
9438 fi
9439 if test -n "${lt_cv_path_LDCXX+set}"; then
9440   lt_cv_path_LD=$lt_cv_path_LDCXX
9441 else
9442   unset lt_cv_path_LD
9443 fi
9444 test -z "${LDCXX+set}" || LD=$LDCXX
9445 CC=${CXX-"c++"}
9446 compiler=$CC
9447 compiler_CXX=$CC
9448 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9449
9450 # We don't want -fno-exception wen compiling C++ code, so set the
9451 # no_builtin_flag separately
9452 if test "$GXX" = yes; then
9453   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9454 else
9455   lt_prog_compiler_no_builtin_flag_CXX=
9456 fi
9457
9458 if test "$GXX" = yes; then
9459   # Set up default GNU C++ configuration
9460
9461
9462 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9463 if test "${with_gnu_ld+set}" = set; then
9464   withval="$with_gnu_ld"
9465   test "$withval" = no || with_gnu_ld=yes
9466 else
9467   with_gnu_ld=no
9468 fi;
9469 ac_prog=ld
9470 if test "$GCC" = yes; then
9471   # Check if gcc -print-prog-name=ld gives a path.
9472   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9474   case $host in
9475   *-*-mingw*)
9476     # gcc leaves a trailing carriage return which upsets mingw
9477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9478   *)
9479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9480   esac
9481   case $ac_prog in
9482     # Accept absolute paths.
9483     [\\/]* | ?:[\\/]*)
9484       re_direlt='/[^/][^/]*/\.\./'
9485       # Canonicalize the path of ld
9486       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9487       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9488         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9489       done
9490       test -z "$LD" && LD="$ac_prog"
9491       ;;
9492   "")
9493     # If it fails, then pretend we aren't using GCC.
9494     ac_prog=ld
9495     ;;
9496   *)
9497     # If it is relative, then search for the first ld in PATH.
9498     with_gnu_ld=unknown
9499     ;;
9500   esac
9501 elif test "$with_gnu_ld" = yes; then
9502   echo "$as_me:$LINENO: checking for GNU ld" >&5
9503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9504 else
9505   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9507 fi
9508 if test "${lt_cv_path_LD+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   if test -z "$LD"; then
9512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9513   for ac_dir in $PATH; do
9514     IFS="$lt_save_ifs"
9515     test -z "$ac_dir" && ac_dir=.
9516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9517       lt_cv_path_LD="$ac_dir/$ac_prog"
9518       # Check to see if the program is GNU ld.  I'd rather use --version,
9519       # but apparently some GNU ld's only accept -v.
9520       # Break only if it was the GNU/non-GNU ld that we prefer.
9521       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9522       *GNU* | *'with BFD'*)
9523         test "$with_gnu_ld" != no && break
9524         ;;
9525       *)
9526         test "$with_gnu_ld" != yes && break
9527         ;;
9528       esac
9529     fi
9530   done
9531   IFS="$lt_save_ifs"
9532 else
9533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9534 fi
9535 fi
9536
9537 LD="$lt_cv_path_LD"
9538 if test -n "$LD"; then
9539   echo "$as_me:$LINENO: result: $LD" >&5
9540 echo "${ECHO_T}$LD" >&6
9541 else
9542   echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9544 fi
9545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9547    { (exit 1); exit 1; }; }
9548 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9554 case `"$LD" -v 2>&1 </dev/null` in
9555 *GNU* | *'with BFD'*)
9556   lt_cv_prog_gnu_ld=yes
9557   ;;
9558 *)
9559   lt_cv_prog_gnu_ld=no
9560   ;;
9561 esac
9562 fi
9563 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9565 with_gnu_ld=$lt_cv_prog_gnu_ld
9566
9567
9568
9569   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9570   # archiving commands below assume that GNU ld is being used.
9571   if test "$with_gnu_ld" = yes; then
9572     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573     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'
9574
9575     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9576     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9577
9578     # If archive_cmds runs LD, not CC, wlarc should be empty
9579     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9580     #     investigate it a little bit more. (MM)
9581     wlarc='${wl}'
9582
9583     # ancient GNU ld didn't support --whole-archive et. al.
9584     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9585         grep 'no-whole-archive' > /dev/null; then
9586       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9587     else
9588       whole_archive_flag_spec_CXX=
9589     fi
9590   else
9591     with_gnu_ld=no
9592     wlarc=
9593
9594     # A generic and very simple default shared library creation
9595     # command for GNU C++ for the case where it uses the native
9596     # linker, instead of GNU ld.  If possible, this setting should
9597     # overridden to take advantage of the native linker features on
9598     # the platform it is being used on.
9599     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9600   fi
9601
9602   # Commands to make compiler produce verbose output that lists
9603   # what "hidden" libraries, object files and flags are used when
9604   # linking a shared library.
9605   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9606
9607 else
9608   GXX=no
9609   with_gnu_ld=no
9610   wlarc=
9611 fi
9612
9613 # PORTME: fill in a description of your system's C++ link characteristics
9614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9616 ld_shlibs_CXX=yes
9617 case $host_os in
9618   aix3*)
9619     # FIXME: insert proper C++ library support
9620     ld_shlibs_CXX=no
9621     ;;
9622   aix4* | aix5*)
9623     if test "$host_cpu" = ia64; then
9624       # On IA64, the linker does run time linking by default, so we don't
9625       # have to do anything special.
9626       aix_use_runtimelinking=no
9627       exp_sym_flag='-Bexport'
9628       no_entry_flag=""
9629     else
9630       aix_use_runtimelinking=no
9631
9632       # Test if we are trying to use run time linking or normal
9633       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9634       # need to do runtime linking.
9635       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9636         for ld_flag in $LDFLAGS; do
9637           case $ld_flag in
9638           *-brtl*)
9639             aix_use_runtimelinking=yes
9640             break
9641             ;;
9642           esac
9643         done
9644       esac
9645
9646       exp_sym_flag='-bexport'
9647       no_entry_flag='-bnoentry'
9648     fi
9649
9650     # When large executables or shared objects are built, AIX ld can
9651     # have problems creating the table of contents.  If linking a library
9652     # or program results in "error TOC overflow" add -mminimal-toc to
9653     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9654     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9655
9656     archive_cmds_CXX=''
9657     hardcode_direct_CXX=yes
9658     hardcode_libdir_separator_CXX=':'
9659     link_all_deplibs_CXX=yes
9660
9661     if test "$GXX" = yes; then
9662       case $host_os in aix4.012|aix4.012.*)
9663       # We only want to do this on AIX 4.2 and lower, the check
9664       # below for broken collect2 doesn't work under 4.3+
9665         collect2name=`${CC} -print-prog-name=collect2`
9666         if test -f "$collect2name" && \
9667            strings "$collect2name" | grep resolve_lib_name >/dev/null
9668         then
9669           # We have reworked collect2
9670           hardcode_direct_CXX=yes
9671         else
9672           # We have old collect2
9673           hardcode_direct_CXX=unsupported
9674           # It fails to find uninstalled libraries when the uninstalled
9675           # path is not listed in the libpath.  Setting hardcode_minus_L
9676           # to unsupported forces relinking
9677           hardcode_minus_L_CXX=yes
9678           hardcode_libdir_flag_spec_CXX='-L$libdir'
9679           hardcode_libdir_separator_CXX=
9680         fi
9681       esac
9682       shared_flag='-shared'
9683     else
9684       # not using gcc
9685       if test "$host_cpu" = ia64; then
9686         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9687         # chokes on -Wl,-G. The following line is correct:
9688         shared_flag='-G'
9689       else
9690         if test "$aix_use_runtimelinking" = yes; then
9691           shared_flag='${wl}-G'
9692         else
9693           shared_flag='${wl}-bM:SRE'
9694         fi
9695       fi
9696     fi
9697
9698     # It seems that -bexpall does not export symbols beginning with
9699     # underscore (_), so it is better to generate a list of symbols to export.
9700     always_export_symbols_CXX=yes
9701     if test "$aix_use_runtimelinking" = yes; then
9702       # Warning - without using the other runtime loading flags (-brtl),
9703       # -berok will link without error, but may produce a broken library.
9704       allow_undefined_flag_CXX='-berok'
9705       # Determine the default libpath from the value encoded in an empty executable.
9706       cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 int
9714 main ()
9715 {
9716
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723   (eval $ac_link) 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -z "$ac_cxx_werror_flag"
9731                          || test ! -s conftest.err'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; } &&
9737          { ac_try='test -s conftest$ac_exeext'
9738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739   (eval $ac_try) 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); }; }; then
9743
9744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9745 }'`
9746 # Check for a 64-bit object if we didn't find anything.
9747 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; }
9748 }'`; fi
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 fi
9754 rm -f conftest.err conftest.$ac_objext \
9755       conftest$ac_exeext conftest.$ac_ext
9756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9757
9758       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9759
9760       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"
9761      else
9762       if test "$host_cpu" = ia64; then
9763         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9764         allow_undefined_flag_CXX="-z nodefs"
9765         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"
9766       else
9767         # Determine the default libpath from the value encoded in an empty executable.
9768         cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h.  */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h.  */
9774
9775 int
9776 main ()
9777 {
9778
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785   (eval $ac_link) 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -z "$ac_cxx_werror_flag"
9793                          || test ! -s conftest.err'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; } &&
9799          { ac_try='test -s conftest$ac_exeext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805
9806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9807 }'`
9808 # Check for a 64-bit object if we didn't find anything.
9809 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; }
9810 }'`; fi
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 fi
9816 rm -f conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext conftest.$ac_ext
9818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9819
9820         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9821         # Warning - without using the other run time loading flags,
9822         # -berok will link without error, but may produce a broken library.
9823         no_undefined_flag_CXX=' ${wl}-bernotok'
9824         allow_undefined_flag_CXX=' ${wl}-berok'
9825         # -bexpall does not export symbols beginning with underscore (_)
9826         always_export_symbols_CXX=yes
9827         # Exported symbols can be pulled into shared objects from archives
9828         whole_archive_flag_spec_CXX=' '
9829         archive_cmds_need_lc_CXX=yes
9830         # This is similar to how AIX traditionally builds it's shared libraries.
9831         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'
9832       fi
9833     fi
9834     ;;
9835   chorus*)
9836     case $cc_basename in
9837       *)
9838         # FIXME: insert proper C++ library support
9839         ld_shlibs_CXX=no
9840         ;;
9841     esac
9842     ;;
9843
9844   cygwin* | mingw* | pw32*)
9845     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9846     # as there is no search path for DLLs.
9847     hardcode_libdir_flag_spec_CXX='-L$libdir'
9848     allow_undefined_flag_CXX=unsupported
9849     always_export_symbols_CXX=no
9850     enable_shared_with_static_runtimes_CXX=yes
9851
9852     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9853       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'
9854       # If the export-symbols file already is a .def file (1st line
9855       # is EXPORTS), use it as is; otherwise, prepend...
9856       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857         cp $export_symbols $output_objdir/$soname.def;
9858       else
9859         echo EXPORTS > $output_objdir/$soname.def;
9860         cat $export_symbols >> $output_objdir/$soname.def;
9861       fi~
9862       $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'
9863     else
9864       ld_shlibs_CXX=no
9865     fi
9866   ;;
9867
9868   darwin* | rhapsody*)
9869    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9870     archive_cmds_need_lc_CXX=no
9871     case "$host_os" in
9872     rhapsody* | darwin1.[012])
9873       allow_undefined_flag_CXX='-undefined suppress'
9874       ;;
9875     *) # Darwin 1.3 on
9876       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9877       ;;
9878     esac
9879         lt_int_apple_cc_single_mod=no
9880         output_verbose_link_cmd='echo'
9881         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9882           lt_int_apple_cc_single_mod=yes
9883         fi
9884         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9885           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9886         else
9887         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'
9888       fi
9889       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9890
9891     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9892       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9893         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}'
9894       else
9895         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}'
9896       fi
9897         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}'
9898     hardcode_direct_CXX=no
9899     hardcode_automatic_CXX=yes
9900     hardcode_shlibpath_var_CXX=unsupported
9901     whole_archive_flag_spec_CXX='-all_load $convenience'
9902     link_all_deplibs_CXX=yes
9903    fi
9904     ;;
9905
9906   dgux*)
9907     case $cc_basename in
9908       ec++)
9909         # FIXME: insert proper C++ library support
9910         ld_shlibs_CXX=no
9911         ;;
9912       ghcx)
9913         # Green Hills C++ Compiler
9914         # FIXME: insert proper C++ library support
9915         ld_shlibs_CXX=no
9916         ;;
9917       *)
9918         # FIXME: insert proper C++ library support
9919         ld_shlibs_CXX=no
9920         ;;
9921     esac
9922     ;;
9923   freebsd12*)
9924     # C++ shared libraries reported to be fairly broken before switch to ELF
9925     ld_shlibs_CXX=no
9926     ;;
9927   freebsd-elf*)
9928     archive_cmds_need_lc_CXX=no
9929     ;;
9930   freebsd*)
9931     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9932     # conventions
9933     ld_shlibs_CXX=yes
9934     ;;
9935   gnu*)
9936     ;;
9937   hpux9*)
9938     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939     hardcode_libdir_separator_CXX=:
9940     export_dynamic_flag_spec_CXX='${wl}-E'
9941     hardcode_direct_CXX=yes
9942     hardcode_minus_L_CXX=yes # Not in the search PATH,
9943                                 # but as the default
9944                                 # location of the library.
9945
9946     case $cc_basename in
9947     CC)
9948       # FIXME: insert proper C++ library support
9949       ld_shlibs_CXX=no
9950       ;;
9951     aCC)
9952       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'
9953       # Commands to make compiler produce verbose output that lists
9954       # what "hidden" libraries, object files and flags are used when
9955       # linking a shared library.
9956       #
9957       # There doesn't appear to be a way to prevent this compiler from
9958       # explicitly linking system object files so we need to strip them
9959       # from the output so that they don't get included in the library
9960       # dependencies.
9961       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'
9962       ;;
9963     *)
9964       if test "$GXX" = yes; then
9965         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'
9966       else
9967         # FIXME: insert proper C++ library support
9968         ld_shlibs_CXX=no
9969       fi
9970       ;;
9971     esac
9972     ;;
9973   hpux10*|hpux11*)
9974     if test $with_gnu_ld = no; then
9975       case "$host_cpu" in
9976       hppa*64*)
9977         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9978         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9979         hardcode_libdir_separator_CXX=:
9980         ;;
9981       ia64*)
9982         hardcode_libdir_flag_spec_CXX='-L$libdir'
9983         ;;
9984       *)
9985         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9986         hardcode_libdir_separator_CXX=:
9987         export_dynamic_flag_spec_CXX='${wl}-E'
9988         ;;
9989       esac
9990     fi
9991     case "$host_cpu" in
9992     hppa*64*)
9993       hardcode_direct_CXX=no
9994       hardcode_shlibpath_var_CXX=no
9995       ;;
9996     ia64*)
9997       hardcode_direct_CXX=no
9998       hardcode_shlibpath_var_CXX=no
9999       hardcode_minus_L_CXX=yes # Not in the search PATH,
10000                                               # but as the default
10001                                               # location of the library.
10002       ;;
10003     *)
10004       hardcode_direct_CXX=yes
10005       hardcode_minus_L_CXX=yes # Not in the search PATH,
10006                                               # but as the default
10007                                               # location of the library.
10008       ;;
10009     esac
10010
10011     case $cc_basename in
10012       CC)
10013         # FIXME: insert proper C++ library support
10014         ld_shlibs_CXX=no
10015         ;;
10016       aCC)
10017         case "$host_cpu" in
10018         hppa*64*|ia64*)
10019           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10020           ;;
10021         *)
10022           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10023           ;;
10024         esac
10025         # Commands to make compiler produce verbose output that lists
10026         # what "hidden" libraries, object files and flags are used when
10027         # linking a shared library.
10028         #
10029         # There doesn't appear to be a way to prevent this compiler from
10030         # explicitly linking system object files so we need to strip them
10031         # from the output so that they don't get included in the library
10032         # dependencies.
10033         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'
10034         ;;
10035       *)
10036         if test "$GXX" = yes; then
10037           if test $with_gnu_ld = no; then
10038             case "$host_cpu" in
10039             ia64*|hppa*64*)
10040               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10041               ;;
10042             *)
10043               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'
10044               ;;
10045             esac
10046           fi
10047         else
10048           # FIXME: insert proper C++ library support
10049           ld_shlibs_CXX=no
10050         fi
10051         ;;
10052     esac
10053     ;;
10054   irix5* | irix6*)
10055     case $cc_basename in
10056       CC)
10057         # SGI C++
10058         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'
10059
10060         # Archives containing C++ object files must be created using
10061         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10062         # necessary to make sure instantiated templates are included
10063         # in the archive.
10064         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10065         ;;
10066       *)
10067         if test "$GXX" = yes; then
10068           if test "$with_gnu_ld" = no; then
10069             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'
10070           else
10071             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'
10072           fi
10073         fi
10074         link_all_deplibs_CXX=yes
10075         ;;
10076     esac
10077     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10078     hardcode_libdir_separator_CXX=:
10079     ;;
10080   linux*)
10081     case $cc_basename in
10082       KCC)
10083         # Kuck and Associates, Inc. (KAI) C++ Compiler
10084
10085         # KCC will only create a shared library if the output file
10086         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10087         # to its proper name (with version) after linking.
10088         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'
10089         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'
10090         # Commands to make compiler produce verbose output that lists
10091         # what "hidden" libraries, object files and flags are used when
10092         # linking a shared library.
10093         #
10094         # There doesn't appear to be a way to prevent this compiler from
10095         # explicitly linking system object files so we need to strip them
10096         # from the output so that they don't get included in the library
10097         # dependencies.
10098         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'
10099
10100         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10101         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10102
10103         # Archives containing C++ object files must be created using
10104         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10105         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10106         ;;
10107       icpc)
10108         # Intel C++
10109         with_gnu_ld=yes
10110         archive_cmds_need_lc_CXX=no
10111         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112         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'
10113         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10114         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10115         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10116         ;;
10117       cxx)
10118         # Compaq C++
10119         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120         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'
10121
10122         runpath_var=LD_RUN_PATH
10123         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10124         hardcode_libdir_separator_CXX=:
10125
10126         # Commands to make compiler produce verbose output that lists
10127         # what "hidden" libraries, object files and flags are used when
10128         # linking a shared library.
10129         #
10130         # There doesn't appear to be a way to prevent this compiler from
10131         # explicitly linking system object files so we need to strip them
10132         # from the output so that they don't get included in the library
10133         # dependencies.
10134         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'
10135         ;;
10136     esac
10137     ;;
10138   lynxos*)
10139     # FIXME: insert proper C++ library support
10140     ld_shlibs_CXX=no
10141     ;;
10142   m88k*)
10143     # FIXME: insert proper C++ library support
10144     ld_shlibs_CXX=no
10145     ;;
10146   mvs*)
10147     case $cc_basename in
10148       cxx)
10149         # FIXME: insert proper C++ library support
10150         ld_shlibs_CXX=no
10151         ;;
10152       *)
10153         # FIXME: insert proper C++ library support
10154         ld_shlibs_CXX=no
10155         ;;
10156     esac
10157     ;;
10158   netbsd*)
10159     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10160       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10161       wlarc=
10162       hardcode_libdir_flag_spec_CXX='-R$libdir'
10163       hardcode_direct_CXX=yes
10164       hardcode_shlibpath_var_CXX=no
10165     fi
10166     # Workaround some broken pre-1.5 toolchains
10167     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10168     ;;
10169   osf3*)
10170     case $cc_basename in
10171       KCC)
10172         # Kuck and Associates, Inc. (KAI) C++ Compiler
10173
10174         # KCC will only create a shared library if the output file
10175         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10176         # to its proper name (with version) after linking.
10177         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'
10178
10179         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180         hardcode_libdir_separator_CXX=:
10181
10182         # Archives containing C++ object files must be created using
10183         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10184         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10185
10186         ;;
10187       RCC)
10188         # Rational C++ 2.4.1
10189         # FIXME: insert proper C++ library support
10190         ld_shlibs_CXX=no
10191         ;;
10192       cxx)
10193         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194         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'
10195
10196         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197         hardcode_libdir_separator_CXX=:
10198
10199         # Commands to make compiler produce verbose output that lists
10200         # what "hidden" libraries, object files and flags are used when
10201         # linking a shared library.
10202         #
10203         # There doesn't appear to be a way to prevent this compiler from
10204         # explicitly linking system object files so we need to strip them
10205         # from the output so that they don't get included in the library
10206         # dependencies.
10207         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'
10208         ;;
10209       *)
10210         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10211           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10212           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'
10213
10214           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10215           hardcode_libdir_separator_CXX=:
10216
10217           # Commands to make compiler produce verbose output that lists
10218           # what "hidden" libraries, object files and flags are used when
10219           # linking a shared library.
10220           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10221
10222         else
10223           # FIXME: insert proper C++ library support
10224           ld_shlibs_CXX=no
10225         fi
10226         ;;
10227     esac
10228     ;;
10229   osf4* | osf5*)
10230     case $cc_basename in
10231       KCC)
10232         # Kuck and Associates, Inc. (KAI) C++ Compiler
10233
10234         # KCC will only create a shared library if the output file
10235         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10236         # to its proper name (with version) after linking.
10237         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'
10238
10239         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240         hardcode_libdir_separator_CXX=:
10241
10242         # Archives containing C++ object files must be created using
10243         # the KAI C++ compiler.
10244         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10245         ;;
10246       RCC)
10247         # Rational C++ 2.4.1
10248         # FIXME: insert proper C++ library support
10249         ld_shlibs_CXX=no
10250         ;;
10251       cxx)
10252         allow_undefined_flag_CXX=' -expect_unresolved \*'
10253         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'
10254         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10255           echo "-hidden">> $lib.exp~
10256           $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~
10257           $rm $lib.exp'
10258
10259         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10260         hardcode_libdir_separator_CXX=:
10261
10262         # Commands to make compiler produce verbose output that lists
10263         # what "hidden" libraries, object files and flags are used when
10264         # linking a shared library.
10265         #
10266         # There doesn't appear to be a way to prevent this compiler from
10267         # explicitly linking system object files so we need to strip them
10268         # from the output so that they don't get included in the library
10269         # dependencies.
10270         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'
10271         ;;
10272       *)
10273         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10274           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10275          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'
10276
10277           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10278           hardcode_libdir_separator_CXX=:
10279
10280           # Commands to make compiler produce verbose output that lists
10281           # what "hidden" libraries, object files and flags are used when
10282           # linking a shared library.
10283           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10284
10285         else
10286           # FIXME: insert proper C++ library support
10287           ld_shlibs_CXX=no
10288         fi
10289         ;;
10290     esac
10291     ;;
10292   psos*)
10293     # FIXME: insert proper C++ library support
10294     ld_shlibs_CXX=no
10295     ;;
10296   sco*)
10297     archive_cmds_need_lc_CXX=no
10298     case $cc_basename in
10299       CC)
10300         # FIXME: insert proper C++ library support
10301         ld_shlibs_CXX=no
10302         ;;
10303       *)
10304         # FIXME: insert proper C++ library support
10305         ld_shlibs_CXX=no
10306         ;;
10307     esac
10308     ;;
10309   sunos4*)
10310     case $cc_basename in
10311       CC)
10312         # Sun C++ 4.x
10313         # FIXME: insert proper C++ library support
10314         ld_shlibs_CXX=no
10315         ;;
10316       lcc)
10317         # Lucid
10318         # FIXME: insert proper C++ library support
10319         ld_shlibs_CXX=no
10320         ;;
10321       *)
10322         # FIXME: insert proper C++ library support
10323         ld_shlibs_CXX=no
10324         ;;
10325     esac
10326     ;;
10327   solaris*)
10328     case $cc_basename in
10329       CC)
10330         # Sun C++ 4.2, 5.x and Centerline C++
10331         no_undefined_flag_CXX=' -zdefs'
10332         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10333         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334         $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'
10335
10336         hardcode_libdir_flag_spec_CXX='-R$libdir'
10337         hardcode_shlibpath_var_CXX=no
10338         case $host_os in
10339           solaris2.0-5 | solaris2.0-5.*) ;;
10340           *)
10341             # The C++ compiler is used as linker so we must use $wl
10342             # flag to pass the commands to the underlying system
10343             # linker.
10344             # Supported since Solaris 2.6 (maybe 2.5.1?)
10345             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10346             ;;
10347         esac
10348         link_all_deplibs_CXX=yes
10349
10350         # Commands to make compiler produce verbose output that lists
10351         # what "hidden" libraries, object files and flags are used when
10352         # linking a shared library.
10353         #
10354         # There doesn't appear to be a way to prevent this compiler from
10355         # explicitly linking system object files so we need to strip them
10356         # from the output so that they don't get included in the library
10357         # dependencies.
10358         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'
10359
10360         # Archives containing C++ object files must be created using
10361         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10362         # necessary to make sure instantiated templates are included
10363         # in the archive.
10364         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10365         ;;
10366       gcx)
10367         # Green Hills C++ Compiler
10368         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10369
10370         # The C++ compiler must be used to create the archive.
10371         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10372         ;;
10373       *)
10374         # GNU C++ compiler with Solaris linker
10375         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10376           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10377           if $CC --version | grep -v '^2\.7' > /dev/null; then
10378             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10381
10382             # Commands to make compiler produce verbose output that lists
10383             # what "hidden" libraries, object files and flags are used when
10384             # linking a shared library.
10385             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10386           else
10387             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10388             # platform.
10389             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10390             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10392
10393             # Commands to make compiler produce verbose output that lists
10394             # what "hidden" libraries, object files and flags are used when
10395             # linking a shared library.
10396             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10397           fi
10398
10399           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10400         fi
10401         ;;
10402     esac
10403     ;;
10404   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10405     archive_cmds_need_lc_CXX=no
10406     ;;
10407   tandem*)
10408     case $cc_basename in
10409       NCC)
10410         # NonStop-UX NCC 3.20
10411         # FIXME: insert proper C++ library support
10412         ld_shlibs_CXX=no
10413         ;;
10414       *)
10415         # FIXME: insert proper C++ library support
10416         ld_shlibs_CXX=no
10417         ;;
10418     esac
10419     ;;
10420   vxworks*)
10421     # FIXME: insert proper C++ library support
10422     ld_shlibs_CXX=no
10423     ;;
10424   *)
10425     # FIXME: insert proper C++ library support
10426     ld_shlibs_CXX=no
10427     ;;
10428 esac
10429 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10430 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10431 test "$ld_shlibs_CXX" = no && can_build_shared=no
10432
10433 GCC_CXX="$GXX"
10434 LD_CXX="$LD"
10435
10436 ## CAVEAT EMPTOR:
10437 ## There is no encapsulation within the following macros, do not change
10438 ## the running order or otherwise move them around unless you know exactly
10439 ## what you are doing...
10440
10441 cat > conftest.$ac_ext <<EOF
10442 class Foo
10443 {
10444 public:
10445   Foo (void) { a = 0; }
10446 private:
10447   int a;
10448 };
10449 EOF
10450
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452   (eval $ac_compile) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; then
10456   # Parse the compiler output and extract the necessary
10457   # objects, libraries and library flags.
10458
10459   # Sentinel used to keep track of whether or not we are before
10460   # the conftest object file.
10461   pre_test_object_deps_done=no
10462
10463   # The `*' in the case matches for architectures that use `case' in
10464   # $output_verbose_cmd can trigger glob expansion during the loop
10465   # eval without this substitution.
10466   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10467
10468   for p in `eval $output_verbose_link_cmd`; do
10469     case $p in
10470
10471     -L* | -R* | -l*)
10472        # Some compilers place space between "-{L,R}" and the path.
10473        # Remove the space.
10474        if test $p = "-L" \
10475           || test $p = "-R"; then
10476          prev=$p
10477          continue
10478        else
10479          prev=
10480        fi
10481
10482        if test "$pre_test_object_deps_done" = no; then
10483          case $p in
10484          -L* | -R*)
10485            # Internal compiler library paths should come after those
10486            # provided the user.  The postdeps already come after the
10487            # user supplied libs so there is no need to process them.
10488            if test -z "$compiler_lib_search_path_CXX"; then
10489              compiler_lib_search_path_CXX="${prev}${p}"
10490            else
10491              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10492            fi
10493            ;;
10494          # The "-l" case would never come before the object being
10495          # linked, so don't bother handling this case.
10496          esac
10497        else
10498          if test -z "$postdeps_CXX"; then
10499            postdeps_CXX="${prev}${p}"
10500          else
10501            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10502          fi
10503        fi
10504        ;;
10505
10506     *.$objext)
10507        # This assumes that the test object file only shows up
10508        # once in the compiler output.
10509        if test "$p" = "conftest.$objext"; then
10510          pre_test_object_deps_done=yes
10511          continue
10512        fi
10513
10514        if test "$pre_test_object_deps_done" = no; then
10515          if test -z "$predep_objects_CXX"; then
10516            predep_objects_CXX="$p"
10517          else
10518            predep_objects_CXX="$predep_objects_CXX $p"
10519          fi
10520        else
10521          if test -z "$postdep_objects_CXX"; then
10522            postdep_objects_CXX="$p"
10523          else
10524            postdep_objects_CXX="$postdep_objects_CXX $p"
10525          fi
10526        fi
10527        ;;
10528
10529     *) ;; # Ignore the rest.
10530
10531     esac
10532   done
10533
10534   # Clean up.
10535   rm -f a.out a.exe
10536 else
10537   echo "libtool.m4: error: problem compiling CXX test program"
10538 fi
10539
10540 $rm -f confest.$objext
10541
10542 case " $postdeps_CXX " in
10543 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10544 esac
10545
10546 lt_prog_compiler_wl_CXX=
10547 lt_prog_compiler_pic_CXX=
10548 lt_prog_compiler_static_CXX=
10549
10550 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10551 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10552
10553   # C++ specific cases for pic, static, wl, etc.
10554   if test "$GXX" = yes; then
10555     lt_prog_compiler_wl_CXX='-Wl,'
10556     lt_prog_compiler_static_CXX='-static'
10557
10558     case $host_os in
10559     aix*)
10560       # All AIX code is PIC.
10561       if test "$host_cpu" = ia64; then
10562         # AIX 5 now supports IA64 processor
10563         lt_prog_compiler_static_CXX='-Bstatic'
10564       fi
10565       ;;
10566     amigaos*)
10567       # FIXME: we need at least 68020 code to build shared libraries, but
10568       # adding the `-m68020' flag to GCC prevents building anything better,
10569       # like `-m68040'.
10570       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10571       ;;
10572     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10573       # PIC is the default for these OSes.
10574       ;;
10575     mingw* | os2* | pw32*)
10576       # This hack is so that the source file can tell whether it is being
10577       # built for inclusion in a dll (and should export symbols for example).
10578       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10579       ;;
10580     darwin* | rhapsody*)
10581       # PIC is the default on this platform
10582       # Common symbols not allowed in MH_DYLIB files
10583       lt_prog_compiler_pic_CXX='-fno-common'
10584       ;;
10585     *djgpp*)
10586       # DJGPP does not support shared libraries at all
10587       lt_prog_compiler_pic_CXX=
10588       ;;
10589     sysv4*MP*)
10590       if test -d /usr/nec; then
10591         lt_prog_compiler_pic_CXX=-Kconform_pic
10592       fi
10593       ;;
10594     hpux*)
10595       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10596       # not for PA HP-UX.
10597       case "$host_cpu" in
10598       hppa*64*|ia64*)
10599         ;;
10600       *)
10601         lt_prog_compiler_pic_CXX='-fPIC'
10602         ;;
10603       esac
10604       ;;
10605     *)
10606       lt_prog_compiler_pic_CXX='-fPIC'
10607       ;;
10608     esac
10609   else
10610     case $host_os in
10611       aix4* | aix5*)
10612         # All AIX code is PIC.
10613         if test "$host_cpu" = ia64; then
10614           # AIX 5 now supports IA64 processor
10615           lt_prog_compiler_static_CXX='-Bstatic'
10616         else
10617           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10618         fi
10619         ;;
10620       chorus*)
10621         case $cc_basename in
10622         cxch68)
10623           # Green Hills C++ Compiler
10624           # _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"
10625           ;;
10626         esac
10627         ;;
10628       dgux*)
10629         case $cc_basename in
10630           ec++)
10631             lt_prog_compiler_pic_CXX='-KPIC'
10632             ;;
10633           ghcx)
10634             # Green Hills C++ Compiler
10635             lt_prog_compiler_pic_CXX='-pic'
10636             ;;
10637           *)
10638             ;;
10639         esac
10640         ;;
10641       freebsd*)
10642         # FreeBSD uses GNU C++
10643         ;;
10644       hpux9* | hpux10* | hpux11*)
10645         case $cc_basename in
10646           CC)
10647             lt_prog_compiler_wl_CXX='-Wl,'
10648             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649             if test "$host_cpu" != ia64; then
10650               lt_prog_compiler_pic_CXX='+Z'
10651             fi
10652             ;;
10653           aCC)
10654             lt_prog_compiler_wl_CXX='-Wl,'
10655             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10656             case "$host_cpu" in
10657             hppa*64*|ia64*)
10658               # +Z the default
10659               ;;
10660             *)
10661               lt_prog_compiler_pic_CXX='+Z'
10662               ;;
10663             esac
10664             ;;
10665           *)
10666             ;;
10667         esac
10668         ;;
10669       irix5* | irix6* | nonstopux*)
10670         case $cc_basename in
10671           CC)
10672             lt_prog_compiler_wl_CXX='-Wl,'
10673             lt_prog_compiler_static_CXX='-non_shared'
10674             # CC pic flag -KPIC is the default.
10675             ;;
10676           *)
10677             ;;
10678         esac
10679         ;;
10680       linux*)
10681         case $cc_basename in
10682           KCC)
10683             # KAI C++ Compiler
10684             lt_prog_compiler_wl_CXX='--backend -Wl,'
10685             lt_prog_compiler_pic_CXX='-fPIC'
10686             ;;
10687           icpc)
10688             # Intel C++
10689             lt_prog_compiler_wl_CXX='-Wl,'
10690             lt_prog_compiler_pic_CXX='-KPIC'
10691             lt_prog_compiler_static_CXX='-static'
10692             ;;
10693           cxx)
10694             # Compaq C++
10695             # Make sure the PIC flag is empty.  It appears that all Alpha
10696             # Linux and Compaq Tru64 Unix objects are PIC.
10697             lt_prog_compiler_pic_CXX=
10698             lt_prog_compiler_static_CXX='-non_shared'
10699             ;;
10700           *)
10701             ;;
10702         esac
10703         ;;
10704       lynxos*)
10705         ;;
10706       m88k*)
10707         ;;
10708       mvs*)
10709         case $cc_basename in
10710           cxx)
10711             lt_prog_compiler_pic_CXX='-W c,exportall'
10712             ;;
10713           *)
10714             ;;
10715         esac
10716         ;;
10717       netbsd*)
10718         ;;
10719       osf3* | osf4* | osf5*)
10720         case $cc_basename in
10721           KCC)
10722             lt_prog_compiler_wl_CXX='--backend -Wl,'
10723             ;;
10724           RCC)
10725             # Rational C++ 2.4.1
10726             lt_prog_compiler_pic_CXX='-pic'
10727             ;;
10728           cxx)
10729             # Digital/Compaq C++
10730             lt_prog_compiler_wl_CXX='-Wl,'
10731             # Make sure the PIC flag is empty.  It appears that all Alpha
10732             # Linux and Compaq Tru64 Unix objects are PIC.
10733             lt_prog_compiler_pic_CXX=
10734             lt_prog_compiler_static_CXX='-non_shared'
10735             ;;
10736           *)
10737             ;;
10738         esac
10739         ;;
10740       psos*)
10741         ;;
10742       sco*)
10743         case $cc_basename in
10744           CC)
10745             lt_prog_compiler_pic_CXX='-fPIC'
10746             ;;
10747           *)
10748             ;;
10749         esac
10750         ;;
10751       solaris*)
10752         case $cc_basename in
10753           CC)
10754             # Sun C++ 4.2, 5.x and Centerline C++
10755             lt_prog_compiler_pic_CXX='-KPIC'
10756             lt_prog_compiler_static_CXX='-Bstatic'
10757             lt_prog_compiler_wl_CXX='-Qoption ld '
10758             ;;
10759           gcx)
10760             # Green Hills C++ Compiler
10761             lt_prog_compiler_pic_CXX='-PIC'
10762             ;;
10763           *)
10764             ;;
10765         esac
10766         ;;
10767       sunos4*)
10768         case $cc_basename in
10769           CC)
10770             # Sun C++ 4.x
10771             lt_prog_compiler_pic_CXX='-pic'
10772             lt_prog_compiler_static_CXX='-Bstatic'
10773             ;;
10774           lcc)
10775             # Lucid
10776             lt_prog_compiler_pic_CXX='-pic'
10777             ;;
10778           *)
10779             ;;
10780         esac
10781         ;;
10782       tandem*)
10783         case $cc_basename in
10784           NCC)
10785             # NonStop-UX NCC 3.20
10786             lt_prog_compiler_pic_CXX='-KPIC'
10787             ;;
10788           *)
10789             ;;
10790         esac
10791         ;;
10792       unixware*)
10793         ;;
10794       vxworks*)
10795         ;;
10796       *)
10797         lt_prog_compiler_can_build_shared_CXX=no
10798         ;;
10799     esac
10800   fi
10801
10802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10803 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10804
10805 #
10806 # Check to make sure the PIC flag actually works.
10807 #
10808 if test -n "$lt_prog_compiler_pic_CXX"; then
10809   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10811 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   lt_prog_compiler_pic_works_CXX=no
10815   ac_outfile=conftest.$ac_objext
10816    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10817    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10818    # Insert the option either (1) after the last *FLAGS variable, or
10819    # (2) before a word containing "conftest.", or (3) at the end.
10820    # Note that $ac_compile itself does not contain backslashes and begins
10821    # with a dollar sign (not a hyphen), so the echo should work correctly.
10822    # The option is referenced via a variable to avoid confusing sed.
10823    lt_compile=`echo "$ac_compile" | $SED \
10824    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10826    -e 's:$: $lt_compiler_flag:'`
10827    (eval echo "\"\$as_me:10827: $lt_compile\"" >&5)
10828    (eval "$lt_compile" 2>conftest.err)
10829    ac_status=$?
10830    cat conftest.err >&5
10831    echo "$as_me:10831: \$? = $ac_status" >&5
10832    if (exit $ac_status) && test -s "$ac_outfile"; then
10833      # The compiler can only warn and ignore the option if not recognized
10834      # So say no if there are warnings
10835      if test ! -s conftest.err; then
10836        lt_prog_compiler_pic_works_CXX=yes
10837      fi
10838    fi
10839    $rm conftest*
10840
10841 fi
10842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10843 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10844
10845 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10846     case $lt_prog_compiler_pic_CXX in
10847      "" | " "*) ;;
10848      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10849      esac
10850 else
10851     lt_prog_compiler_pic_CXX=
10852      lt_prog_compiler_can_build_shared_CXX=no
10853 fi
10854
10855 fi
10856 case "$host_os" in
10857   # For platforms which do not support PIC, -DPIC is meaningless:
10858   *djgpp*)
10859     lt_prog_compiler_pic_CXX=
10860     ;;
10861   *)
10862     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10863     ;;
10864 esac
10865
10866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   lt_cv_prog_compiler_c_o_CXX=no
10872    $rm -r conftest 2>/dev/null
10873    mkdir conftest
10874    cd conftest
10875    mkdir out
10876    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10877
10878    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10879    # that will create temporary files in the current directory regardless of
10880    # the output directory.  Thus, making CWD read-only will cause this test
10881    # to fail, enabling locking or at least warning the user not to do parallel
10882    # builds.
10883    chmod -w .
10884
10885    lt_compiler_flag="-o out/conftest2.$ac_objext"
10886    # Insert the option either (1) after the last *FLAGS variable, or
10887    # (2) before a word containing "conftest.", or (3) at the end.
10888    # Note that $ac_compile itself does not contain backslashes and begins
10889    # with a dollar sign (not a hyphen), so the echo should work correctly.
10890    lt_compile=`echo "$ac_compile" | $SED \
10891    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893    -e 's:$: $lt_compiler_flag:'`
10894    (eval echo "\"\$as_me:10894: $lt_compile\"" >&5)
10895    (eval "$lt_compile" 2>out/conftest.err)
10896    ac_status=$?
10897    cat out/conftest.err >&5
10898    echo "$as_me:10898: \$? = $ac_status" >&5
10899    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10900    then
10901      # The compiler can only warn and ignore the option if not recognized
10902      # So say no if there are warnings
10903      if test ! -s out/conftest.err; then
10904        lt_cv_prog_compiler_c_o_CXX=yes
10905      fi
10906    fi
10907    chmod u+w .
10908    $rm conftest* out/*
10909    rmdir out
10910    cd ..
10911    rmdir conftest
10912    $rm conftest*
10913
10914 fi
10915 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10917
10918
10919 hard_links="nottested"
10920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10921   # do not overwrite the value of need_locks provided by the user
10922   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10924   hard_links=yes
10925   $rm conftest*
10926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10927   touch conftest.a
10928   ln conftest.a conftest.b 2>&5 || hard_links=no
10929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10930   echo "$as_me:$LINENO: result: $hard_links" >&5
10931 echo "${ECHO_T}$hard_links" >&6
10932   if test "$hard_links" = no; then
10933     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10935     need_locks=warn
10936   fi
10937 else
10938   need_locks=no
10939 fi
10940
10941 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10943
10944   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945   case $host_os in
10946   aix4* | aix5*)
10947     # If we're using GNU nm, then we don't want the "-C" option.
10948     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10949     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10950       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'
10951     else
10952       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'
10953     fi
10954     ;;
10955   pw32*)
10956     export_symbols_cmds_CXX="$ltdll_cmds"
10957   ;;
10958   cygwin* | mingw*)
10959     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10960   ;;
10961   *)
10962     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10963   ;;
10964   esac
10965
10966 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10967 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10968 test "$ld_shlibs_CXX" = no && can_build_shared=no
10969
10970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10971 if test "$GCC" = yes; then
10972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10973 fi
10974
10975 #
10976 # Do we need to explicitly link libc?
10977 #
10978 case "x$archive_cmds_need_lc_CXX" in
10979 x|xyes)
10980   # Assume -lc should be added
10981   archive_cmds_need_lc_CXX=yes
10982
10983   if test "$enable_shared" = yes && test "$GCC" = yes; then
10984     case $archive_cmds_CXX in
10985     *'~'*)
10986       # FIXME: we may have to deal with multi-command sequences.
10987       ;;
10988     '$CC '*)
10989       # Test whether the compiler implicitly links with -lc since on some
10990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10991       # to ld, don't add -lc before -lgcc.
10992       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10994       $rm conftest*
10995       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10996
10997       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998   (eval $ac_compile) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } 2>conftest.err; then
11002         soname=conftest
11003         lib=conftest
11004         libobjs=conftest.$ac_objext
11005         deplibs=
11006         wl=$lt_prog_compiler_wl_CXX
11007         compiler_flags=-v
11008         linker_flags=-v
11009         verstring=
11010         output_objdir=.
11011         libname=conftest
11012         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11013         allow_undefined_flag_CXX=
11014         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11015   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }
11019         then
11020           archive_cmds_need_lc_CXX=no
11021         else
11022           archive_cmds_need_lc_CXX=yes
11023         fi
11024         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11025       else
11026         cat conftest.err 1>&5
11027       fi
11028       $rm conftest*
11029       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11030 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11031       ;;
11032     esac
11033   fi
11034   ;;
11035 esac
11036
11037 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11038 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11039 hardcode_action_CXX=
11040 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11041    test -n "$runpath_var CXX" || \
11042    test "X$hardcode_automatic_CXX"="Xyes" ; then
11043
11044   # We can hardcode non-existant directories.
11045   if test "$hardcode_direct_CXX" != no &&
11046      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11047      # have to relink, otherwise we might link with an installed library
11048      # when we should be linking with a yet-to-be-installed one
11049      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11050      test "$hardcode_minus_L_CXX" != no; then
11051     # Linking always hardcodes the temporary library directory.
11052     hardcode_action_CXX=relink
11053   else
11054     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11055     hardcode_action_CXX=immediate
11056   fi
11057 else
11058   # We cannot hardcode anything, or else we can only hardcode existing
11059   # directories.
11060   hardcode_action_CXX=unsupported
11061 fi
11062 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11063 echo "${ECHO_T}$hardcode_action_CXX" >&6
11064
11065 if test "$hardcode_action_CXX" = relink; then
11066   # Fast installation is not supported
11067   enable_fast_install=no
11068 elif test "$shlibpath_overrides_runpath" = yes ||
11069      test "$enable_shared" = no; then
11070   # Fast installation is not necessary
11071   enable_fast_install=needless
11072 fi
11073
11074 striplib=
11075 old_striplib=
11076 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11077 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11078 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11079   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081   echo "$as_me:$LINENO: result: yes" >&5
11082 echo "${ECHO_T}yes" >&6
11083 else
11084 # FIXME - insert some real tests, host_os isn't really good enough
11085   case $host_os in
11086    darwin*)
11087        if test -n "$STRIP" ; then
11088          striplib="$STRIP -x"
11089          echo "$as_me:$LINENO: result: yes" >&5
11090 echo "${ECHO_T}yes" >&6
11091        else
11092   echo "$as_me:$LINENO: result: no" >&5
11093 echo "${ECHO_T}no" >&6
11094 fi
11095        ;;
11096    *)
11097   echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6
11099     ;;
11100   esac
11101 fi
11102
11103 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11105 library_names_spec=
11106 libname_spec='lib$name'
11107 soname_spec=
11108 shrext=".so"
11109 postinstall_cmds=
11110 postuninstall_cmds=
11111 finish_cmds=
11112 finish_eval=
11113 shlibpath_var=
11114 shlibpath_overrides_runpath=unknown
11115 version_type=none
11116 dynamic_linker="$host_os ld.so"
11117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118 if test "$GCC" = yes; then
11119   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11120   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11121     # if the path contains ";" then we assume it to be the separator
11122     # otherwise default to the standard path separator (i.e. ":") - it is
11123     # assumed that no part of a normal pathname contains ";" but that should
11124     # okay in the real world where ";" in dirpaths is itself problematic.
11125     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11126   else
11127     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11128   fi
11129 else
11130   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11131 fi
11132 need_lib_prefix=unknown
11133 hardcode_into_libs=no
11134
11135 # when you set need_version to no, make sure it does not cause -set_version
11136 # flags to be left without arguments
11137 need_version=unknown
11138
11139 case $host_os in
11140 aix3*)
11141   version_type=linux
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11143   shlibpath_var=LIBPATH
11144
11145   # AIX 3 has no versioning support, so we append a major version to the name.
11146   soname_spec='${libname}${release}${shared_ext}$major'
11147   ;;
11148
11149 aix4* | aix5*)
11150   version_type=linux
11151   need_lib_prefix=no
11152   need_version=no
11153   hardcode_into_libs=yes
11154   if test "$host_cpu" = ia64; then
11155     # AIX 5 supports IA64
11156     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11157     shlibpath_var=LD_LIBRARY_PATH
11158   else
11159     # With GCC up to 2.95.x, collect2 would create an import file
11160     # for dependence libraries.  The import file would start with
11161     # the line `#! .'.  This would cause the generated library to
11162     # depend on `.', always an invalid library.  This was fixed in
11163     # development snapshots of GCC prior to 3.0.
11164     case $host_os in
11165       aix4 | aix4.[01] | aix4.[01].*)
11166       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167            echo ' yes '
11168            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11169         :
11170       else
11171         can_build_shared=no
11172       fi
11173       ;;
11174     esac
11175     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11176     # soname into executable. Probably we can add versioning support to
11177     # collect2, so additional links can be useful in future.
11178     if test "$aix_use_runtimelinking" = yes; then
11179       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11180       # instead of lib<name>.a to let people know that these are not
11181       # typical AIX shared libraries.
11182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183     else
11184       # We preserve .a as extension for shared libraries through AIX4.2
11185       # and later when we are not doing run time linking.
11186       library_names_spec='${libname}${release}.a $libname.a'
11187       soname_spec='${libname}${release}${shared_ext}$major'
11188     fi
11189     shlibpath_var=LIBPATH
11190   fi
11191   ;;
11192
11193 amigaos*)
11194   library_names_spec='$libname.ixlibrary $libname.a'
11195   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196   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'
11197   ;;
11198
11199 beos*)
11200   library_names_spec='${libname}${shared_ext}'
11201   dynamic_linker="$host_os ld.so"
11202   shlibpath_var=LIBRARY_PATH
11203   ;;
11204
11205 bsdi4*)
11206   version_type=linux
11207   need_version=no
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11213   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11214   # the default ld.so.conf also contains /usr/contrib/lib and
11215   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11216   # libtool to hard-code these into programs
11217   ;;
11218
11219 cygwin* | mingw* | pw32*)
11220   version_type=windows
11221   shrext=".dll"
11222   need_version=no
11223   need_lib_prefix=no
11224
11225   case $GCC,$host_os in
11226   yes,cygwin* | yes,mingw* | yes,pw32*)
11227     library_names_spec='$libname.dll.a'
11228     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229     postinstall_cmds='base_file=`basename \${file}`~
11230       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11231       dldir=$destdir/`dirname \$dlpath`~
11232       test -d \$dldir || mkdir -p \$dldir~
11233       $install_prog $dir/$dlname \$dldir/$dlname'
11234     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235       dlpath=$dir/\$dldll~
11236        $rm \$dlpath'
11237     shlibpath_overrides_runpath=yes
11238
11239     case $host_os in
11240     cygwin*)
11241       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11244       ;;
11245     mingw*)
11246       # MinGW DLLs use traditional 'lib' prefix
11247       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11250         # It is most probably a Windows format PATH printed by
11251         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11252         # path with ; separators, and with drive letters. We can handle the
11253         # drive letters (cygwin fileutils understands them), so leave them,
11254         # especially as we might pass files found there to a mingw objdump,
11255         # which wouldn't understand a cygwinified path. Ahh.
11256         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11257       else
11258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11259       fi
11260       ;;
11261     pw32*)
11262       # pw32 DLLs use 'pw' prefix rather than 'lib'
11263       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11264       ;;
11265     esac
11266     ;;
11267
11268   *)
11269     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11270     ;;
11271   esac
11272   dynamic_linker='Win32 ld.exe'
11273   # FIXME: first we should search . and the directory the executable is in
11274   shlibpath_var=PATH
11275   ;;
11276
11277 darwin* | rhapsody*)
11278   dynamic_linker="$host_os dyld"
11279   version_type=darwin
11280   need_lib_prefix=no
11281   need_version=no
11282   # FIXME: Relying on posixy $() will cause problems for
11283   #        cross-compilation, but unfortunately the echo tests do not
11284   #        yet detect zsh echo's removal of \ escapes.
11285   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11286   soname_spec='${libname}${release}${major}$shared_ext'
11287   shlibpath_overrides_runpath=yes
11288   shlibpath_var=DYLD_LIBRARY_PATH
11289   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11290   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11291   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11292   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"`
11293   fi
11294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11295   ;;
11296
11297 dgux*)
11298   version_type=linux
11299   need_lib_prefix=no
11300   need_version=no
11301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11302   soname_spec='${libname}${release}${shared_ext}$major'
11303   shlibpath_var=LD_LIBRARY_PATH
11304   ;;
11305
11306 freebsd1*)
11307   dynamic_linker=no
11308   ;;
11309
11310 freebsd*)
11311   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11312   version_type=freebsd-$objformat
11313   case $version_type in
11314     freebsd-elf*)
11315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11316       need_version=no
11317       need_lib_prefix=no
11318       ;;
11319     freebsd-*)
11320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11321       need_version=yes
11322       ;;
11323   esac
11324   shlibpath_var=LD_LIBRARY_PATH
11325   case $host_os in
11326   freebsd2*)
11327     shlibpath_overrides_runpath=yes
11328     ;;
11329   freebsd3.01* | freebsdelf3.01*)
11330     shlibpath_overrides_runpath=yes
11331     hardcode_into_libs=yes
11332     ;;
11333   *) # from 3.2 on
11334     shlibpath_overrides_runpath=no
11335     hardcode_into_libs=yes
11336     ;;
11337   esac
11338   ;;
11339
11340 gnu*)
11341   version_type=linux
11342   need_lib_prefix=no
11343   need_version=no
11344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11345   soname_spec='${libname}${release}${shared_ext}$major'
11346   shlibpath_var=LD_LIBRARY_PATH
11347   hardcode_into_libs=yes
11348   ;;
11349
11350 hpux9* | hpux10* | hpux11*)
11351   # Give a soname corresponding to the major version so that dld.sl refuses to
11352   # link against other versions.
11353   version_type=sunos
11354   need_lib_prefix=no
11355   need_version=no
11356   case "$host_cpu" in
11357   ia64*)
11358     shrext='.so'
11359     hardcode_into_libs=yes
11360     dynamic_linker="$host_os dld.so"
11361     shlibpath_var=LD_LIBRARY_PATH
11362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364     soname_spec='${libname}${release}${shared_ext}$major'
11365     if test "X$HPUX_IA64_MODE" = X32; then
11366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11367     else
11368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369     fi
11370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371     ;;
11372    hppa*64*)
11373      shrext='.sl'
11374      hardcode_into_libs=yes
11375      dynamic_linker="$host_os dld.sl"
11376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379      soname_spec='${libname}${release}${shared_ext}$major'
11380      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11382      ;;
11383    *)
11384     shrext='.sl'
11385     dynamic_linker="$host_os dld.sl"
11386     shlibpath_var=SHLIB_PATH
11387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389     soname_spec='${libname}${release}${shared_ext}$major'
11390     ;;
11391   esac
11392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11393   postinstall_cmds='chmod 555 $lib'
11394   ;;
11395
11396 irix5* | irix6* | nonstopux*)
11397   case $host_os in
11398     nonstopux*) version_type=nonstopux ;;
11399     *)
11400         if test "$lt_cv_prog_gnu_ld" = yes; then
11401                 version_type=linux
11402         else
11403                 version_type=irix
11404         fi ;;
11405   esac
11406   need_lib_prefix=no
11407   need_version=no
11408   soname_spec='${libname}${release}${shared_ext}$major'
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11410   case $host_os in
11411   irix5* | nonstopux*)
11412     libsuff= shlibsuff=
11413     ;;
11414   *)
11415     case $LD in # libtool.m4 will add one of these switches to LD
11416     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417       libsuff= shlibsuff= libmagic=32-bit;;
11418     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419       libsuff=32 shlibsuff=N32 libmagic=N32;;
11420     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422     *) libsuff= shlibsuff= libmagic=never-match;;
11423     esac
11424     ;;
11425   esac
11426   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427   shlibpath_overrides_runpath=no
11428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11430   hardcode_into_libs=yes
11431   ;;
11432
11433 # No shared lib support for Linux oldld, aout, or coff.
11434 linux*oldld* | linux*aout* | linux*coff*)
11435   dynamic_linker=no
11436   ;;
11437
11438 # This must be Linux ELF.
11439 linux*)
11440   version_type=linux
11441   need_lib_prefix=no
11442   need_version=no
11443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444   soname_spec='${libname}${release}${shared_ext}$major'
11445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11446   shlibpath_var=LD_LIBRARY_PATH
11447   shlibpath_overrides_runpath=no
11448   # This implies no fast_install, which is unacceptable.
11449   # Some rework will be needed to allow for fast_install
11450   # before this can be enabled.
11451   hardcode_into_libs=yes
11452
11453   # We used to test for /lib/ld.so.1 and disable shared libraries on
11454   # powerpc, because MkLinux only supported shared libraries with the
11455   # GNU dynamic linker.  Since this was broken with cross compilers,
11456   # most powerpc-linux boxes support dynamic linking these days and
11457   # people can always --disable-shared, the test was removed, and we
11458   # assume the GNU/Linux dynamic linker is in use.
11459   dynamic_linker='GNU/Linux ld.so'
11460   ;;
11461
11462 netbsd*)
11463   version_type=sunos
11464   need_lib_prefix=no
11465   need_version=no
11466   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469     dynamic_linker='NetBSD (a.out) ld.so'
11470   else
11471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11472     soname_spec='${libname}${release}${shared_ext}$major'
11473     dynamic_linker='NetBSD ld.elf_so'
11474   fi
11475   shlibpath_var=LD_LIBRARY_PATH
11476   shlibpath_overrides_runpath=yes
11477   hardcode_into_libs=yes
11478   ;;
11479
11480 newsos6)
11481   version_type=linux
11482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483   shlibpath_var=LD_LIBRARY_PATH
11484   shlibpath_overrides_runpath=yes
11485   ;;
11486
11487 nto-qnx)
11488   version_type=linux
11489   need_lib_prefix=no
11490   need_version=no
11491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492   soname_spec='${libname}${release}${shared_ext}$major'
11493   shlibpath_var=LD_LIBRARY_PATH
11494   shlibpath_overrides_runpath=yes
11495   ;;
11496
11497 openbsd*)
11498   version_type=sunos
11499   need_lib_prefix=no
11500   need_version=no
11501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503   shlibpath_var=LD_LIBRARY_PATH
11504   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505     case $host_os in
11506       openbsd2.[89] | openbsd2.[89].*)
11507         shlibpath_overrides_runpath=no
11508         ;;
11509       *)
11510         shlibpath_overrides_runpath=yes
11511         ;;
11512       esac
11513   else
11514     shlibpath_overrides_runpath=yes
11515   fi
11516   ;;
11517
11518 os2*)
11519   libname_spec='$name'
11520   shrext=".dll"
11521   need_lib_prefix=no
11522   library_names_spec='$libname${shared_ext} $libname.a'
11523   dynamic_linker='OS/2 ld.exe'
11524   shlibpath_var=LIBPATH
11525   ;;
11526
11527 osf3* | osf4* | osf5*)
11528   version_type=osf
11529   need_lib_prefix=no
11530   need_version=no
11531   soname_spec='${libname}${release}${shared_ext}$major'
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11536   ;;
11537
11538 sco3.2v5*)
11539   version_type=osf
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   ;;
11544
11545 solaris*)
11546   version_type=linux
11547   need_lib_prefix=no
11548   need_version=no
11549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550   soname_spec='${libname}${release}${shared_ext}$major'
11551   shlibpath_var=LD_LIBRARY_PATH
11552   shlibpath_overrides_runpath=yes
11553   hardcode_into_libs=yes
11554   # ldd complains unless libraries are executable
11555   postinstall_cmds='chmod +x $lib'
11556   ;;
11557
11558 sunos4*)
11559   version_type=sunos
11560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11562   shlibpath_var=LD_LIBRARY_PATH
11563   shlibpath_overrides_runpath=yes
11564   if test "$with_gnu_ld" = yes; then
11565     need_lib_prefix=no
11566   fi
11567   need_version=yes
11568   ;;
11569
11570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11571   version_type=linux
11572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573   soname_spec='${libname}${release}${shared_ext}$major'
11574   shlibpath_var=LD_LIBRARY_PATH
11575   case $host_vendor in
11576     sni)
11577       shlibpath_overrides_runpath=no
11578       need_lib_prefix=no
11579       export_dynamic_flag_spec='${wl}-Blargedynsym'
11580       runpath_var=LD_RUN_PATH
11581       ;;
11582     siemens)
11583       need_lib_prefix=no
11584       ;;
11585     motorola)
11586       need_lib_prefix=no
11587       need_version=no
11588       shlibpath_overrides_runpath=no
11589       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590       ;;
11591   esac
11592   ;;
11593
11594 sysv4*MP*)
11595   if test -d /usr/nec ;then
11596     version_type=linux
11597     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598     soname_spec='$libname${shared_ext}.$major'
11599     shlibpath_var=LD_LIBRARY_PATH
11600   fi
11601   ;;
11602
11603 uts4*)
11604   version_type=linux
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   ;;
11609
11610 *)
11611   dynamic_linker=no
11612   ;;
11613 esac
11614 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11615 echo "${ECHO_T}$dynamic_linker" >&6
11616 test "$dynamic_linker" = no && can_build_shared=no
11617
11618 if test "x$enable_dlopen" != xyes; then
11619   enable_dlopen=unknown
11620   enable_dlopen_self=unknown
11621   enable_dlopen_self_static=unknown
11622 else
11623   lt_cv_dlopen=no
11624   lt_cv_dlopen_libs=
11625
11626   case $host_os in
11627   beos*)
11628     lt_cv_dlopen="load_add_on"
11629     lt_cv_dlopen_libs=
11630     lt_cv_dlopen_self=yes
11631     ;;
11632
11633   mingw* | pw32*)
11634     lt_cv_dlopen="LoadLibrary"
11635     lt_cv_dlopen_libs=
11636    ;;
11637
11638   cygwin*)
11639     lt_cv_dlopen="dlopen"
11640     lt_cv_dlopen_libs=
11641    ;;
11642
11643   darwin*)
11644   # if libdl is installed we need to link against it
11645     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ldl  $LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658
11659 /* Override any gcc2 internal prototype to avoid an error.  */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 /* We use char because int might match the return type of a gcc2
11664    builtin and then its argument prototype would still apply.  */
11665 char dlopen ();
11666 int
11667 main ()
11668 {
11669 dlopen ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676   (eval $ac_link) 2>conftest.er1
11677   ac_status=$?
11678   grep -v '^ *+' conftest.er1 >conftest.err
11679   rm -f conftest.er1
11680   cat conftest.err >&5
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } &&
11683          { ac_try='test -z "$ac_cxx_werror_flag"
11684                          || test ! -s conftest.err'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; } &&
11690          { ac_try='test -s conftest$ac_exeext'
11691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692   (eval $ac_try) 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); }; }; then
11696   ac_cv_lib_dl_dlopen=yes
11697 else
11698   echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701 ac_cv_lib_dl_dlopen=no
11702 fi
11703 rm -f conftest.err conftest.$ac_objext \
11704       conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11708 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11709 if test $ac_cv_lib_dl_dlopen = yes; then
11710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11711 else
11712
11713     lt_cv_dlopen="dyld"
11714     lt_cv_dlopen_libs=
11715     lt_cv_dlopen_self=yes
11716
11717 fi
11718
11719    ;;
11720
11721   *)
11722     echo "$as_me:$LINENO: checking for shl_load" >&5
11723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11724 if test "${ac_cv_func_shl_load+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h.  */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h.  */
11733 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11735 #define shl_load innocuous_shl_load
11736
11737 /* System header to define __stub macros and hopefully few prototypes,
11738     which can conflict with char shl_load (); below.
11739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740     <limits.h> exists even on freestanding compilers.  */
11741
11742 #ifdef __STDC__
11743 # include <limits.h>
11744 #else
11745 # include <assert.h>
11746 #endif
11747
11748 #undef shl_load
11749
11750 /* Override any gcc2 internal prototype to avoid an error.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 {
11754 #endif
11755 /* We use char because int might match the return type of a gcc2
11756    builtin and then its argument prototype would still apply.  */
11757 char shl_load ();
11758 /* The GNU C library defines this for functions which it implements
11759     to always fail with ENOSYS.  Some functions are actually named
11760     something starting with __ and the normal name is an alias.  */
11761 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11762 choke me
11763 #else
11764 char (*f) () = shl_load;
11765 #endif
11766 #ifdef __cplusplus
11767 }
11768 #endif
11769
11770 int
11771 main ()
11772 {
11773 return f != shl_load;
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780   (eval $ac_link) 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -z "$ac_cxx_werror_flag"
11788                          || test ! -s conftest.err'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; } &&
11794          { ac_try='test -s conftest$ac_exeext'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   ac_cv_func_shl_load=yes
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_cv_func_shl_load=no
11806 fi
11807 rm -f conftest.err conftest.$ac_objext \
11808       conftest$ac_exeext conftest.$ac_ext
11809 fi
11810 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11811 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11812 if test $ac_cv_func_shl_load = yes; then
11813   lt_cv_dlopen="shl_load"
11814 else
11815   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11818   echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820   ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-ldld  $LIBS"
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828
11829 /* Override any gcc2 internal prototype to avoid an error.  */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 /* We use char because int might match the return type of a gcc2
11834    builtin and then its argument prototype would still apply.  */
11835 char shl_load ();
11836 int
11837 main ()
11838 {
11839 shl_load ();
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846   (eval $ac_link) 2>conftest.er1
11847   ac_status=$?
11848   grep -v '^ *+' conftest.er1 >conftest.err
11849   rm -f conftest.er1
11850   cat conftest.err >&5
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -z "$ac_cxx_werror_flag"
11854                          || test ! -s conftest.err'
11855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856   (eval $ac_try) 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; } &&
11860          { ac_try='test -s conftest$ac_exeext'
11861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862   (eval $ac_try) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; }; then
11866   ac_cv_lib_dld_shl_load=yes
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 ac_cv_lib_dld_shl_load=no
11872 fi
11873 rm -f conftest.err conftest.$ac_objext \
11874       conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11878 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11879 if test $ac_cv_lib_dld_shl_load = yes; then
11880   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11881 else
11882   echo "$as_me:$LINENO: checking for dlopen" >&5
11883 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11884 if test "${ac_cv_func_dlopen+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11895 #define dlopen innocuous_dlopen
11896
11897 /* System header to define __stub macros and hopefully few prototypes,
11898     which can conflict with char dlopen (); below.
11899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900     <limits.h> exists even on freestanding compilers.  */
11901
11902 #ifdef __STDC__
11903 # include <limits.h>
11904 #else
11905 # include <assert.h>
11906 #endif
11907
11908 #undef dlopen
11909
11910 /* Override any gcc2 internal prototype to avoid an error.  */
11911 #ifdef __cplusplus
11912 extern "C"
11913 {
11914 #endif
11915 /* We use char because int might match the return type of a gcc2
11916    builtin and then its argument prototype would still apply.  */
11917 char dlopen ();
11918 /* The GNU C library defines this for functions which it implements
11919     to always fail with ENOSYS.  Some functions are actually named
11920     something starting with __ and the normal name is an alias.  */
11921 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11922 choke me
11923 #else
11924 char (*f) () = dlopen;
11925 #endif
11926 #ifdef __cplusplus
11927 }
11928 #endif
11929
11930 int
11931 main ()
11932 {
11933 return f != dlopen;
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940   (eval $ac_link) 2>conftest.er1
11941   ac_status=$?
11942   grep -v '^ *+' conftest.er1 >conftest.err
11943   rm -f conftest.er1
11944   cat conftest.err >&5
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -z "$ac_cxx_werror_flag"
11948                          || test ! -s conftest.err'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_func_dlopen=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_func_dlopen=no
11966 fi
11967 rm -f conftest.err conftest.$ac_objext \
11968       conftest$ac_exeext conftest.$ac_ext
11969 fi
11970 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11971 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11972 if test $ac_cv_func_dlopen = yes; then
11973   lt_cv_dlopen="dlopen"
11974 else
11975   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11976 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl  $LIBS"
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988
11989 /* Override any gcc2 internal prototype to avoid an error.  */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 /* We use char because int might match the return type of a gcc2
11994    builtin and then its argument prototype would still apply.  */
11995 char dlopen ();
11996 int
11997 main ()
11998 {
11999 dlopen ();
12000   ;
12001   return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006   (eval $ac_link) 2>conftest.er1
12007   ac_status=$?
12008   grep -v '^ *+' conftest.er1 >conftest.err
12009   rm -f conftest.er1
12010   cat conftest.err >&5
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } &&
12013          { ac_try='test -z "$ac_cxx_werror_flag"
12014                          || test ! -s conftest.err'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; } &&
12020          { ac_try='test -s conftest$ac_exeext'
12021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022   (eval $ac_try) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; }; then
12026   ac_cv_lib_dl_dlopen=yes
12027 else
12028   echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ac_cv_lib_dl_dlopen=no
12032 fi
12033 rm -f conftest.err conftest.$ac_objext \
12034       conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12036 fi
12037 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12039 if test $ac_cv_lib_dl_dlopen = yes; then
12040   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12041 else
12042   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lsvld  $LIBS"
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055
12056 /* Override any gcc2 internal prototype to avoid an error.  */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 /* We use char because int might match the return type of a gcc2
12061    builtin and then its argument prototype would still apply.  */
12062 char dlopen ();
12063 int
12064 main ()
12065 {
12066 dlopen ();
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073   (eval $ac_link) 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -z "$ac_cxx_werror_flag"
12081                          || test ! -s conftest.err'
12082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083   (eval $ac_try) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; } &&
12087          { ac_try='test -s conftest$ac_exeext'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   ac_cv_lib_svld_dlopen=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_cv_lib_svld_dlopen=no
12099 fi
12100 rm -f conftest.err conftest.$ac_objext \
12101       conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12103 fi
12104 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12105 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12106 if test $ac_cv_lib_svld_dlopen = yes; then
12107   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12108 else
12109   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12110 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12111 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-ldld  $LIBS"
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122
12123 /* Override any gcc2 internal prototype to avoid an error.  */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 /* We use char because int might match the return type of a gcc2
12128    builtin and then its argument prototype would still apply.  */
12129 char dld_link ();
12130 int
12131 main ()
12132 {
12133 dld_link ();
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140   (eval $ac_link) 2>conftest.er1
12141   ac_status=$?
12142   grep -v '^ *+' conftest.er1 >conftest.err
12143   rm -f conftest.er1
12144   cat conftest.err >&5
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } &&
12147          { ac_try='test -z "$ac_cxx_werror_flag"
12148                          || test ! -s conftest.err'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; } &&
12154          { ac_try='test -s conftest$ac_exeext'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   ac_cv_lib_dld_dld_link=yes
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 ac_cv_lib_dld_dld_link=no
12166 fi
12167 rm -f conftest.err conftest.$ac_objext \
12168       conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12170 fi
12171 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12172 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12173 if test $ac_cv_lib_dld_dld_link = yes; then
12174   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12175 fi
12176
12177
12178 fi
12179
12180
12181 fi
12182
12183
12184 fi
12185
12186
12187 fi
12188
12189
12190 fi
12191
12192     ;;
12193   esac
12194
12195   if test "x$lt_cv_dlopen" != xno; then
12196     enable_dlopen=yes
12197   else
12198     enable_dlopen=no
12199   fi
12200
12201   case $lt_cv_dlopen in
12202   dlopen)
12203     save_CPPFLAGS="$CPPFLAGS"
12204     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12205
12206     save_LDFLAGS="$LDFLAGS"
12207     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12208
12209     save_LIBS="$LIBS"
12210     LIBS="$lt_cv_dlopen_libs $LIBS"
12211
12212     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12213 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12214 if test "${lt_cv_dlopen_self+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217           if test "$cross_compiling" = yes; then :
12218   lt_cv_dlopen_self=cross
12219 else
12220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221   lt_status=$lt_dlunknown
12222   cat > conftest.$ac_ext <<EOF
12223 #line 12223 "configure"
12224 #include "confdefs.h"
12225
12226 #if HAVE_DLFCN_H
12227 #include <dlfcn.h>
12228 #endif
12229
12230 #include <stdio.h>
12231
12232 #ifdef RTLD_GLOBAL
12233 #  define LT_DLGLOBAL           RTLD_GLOBAL
12234 #else
12235 #  ifdef DL_GLOBAL
12236 #    define LT_DLGLOBAL         DL_GLOBAL
12237 #  else
12238 #    define LT_DLGLOBAL         0
12239 #  endif
12240 #endif
12241
12242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243    find out it does not work in some platform. */
12244 #ifndef LT_DLLAZY_OR_NOW
12245 #  ifdef RTLD_LAZY
12246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12247 #  else
12248 #    ifdef DL_LAZY
12249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12250 #    else
12251 #      ifdef RTLD_NOW
12252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12253 #      else
12254 #        ifdef DL_NOW
12255 #          define LT_DLLAZY_OR_NOW      DL_NOW
12256 #        else
12257 #          define LT_DLLAZY_OR_NOW      0
12258 #        endif
12259 #      endif
12260 #    endif
12261 #  endif
12262 #endif
12263
12264 #ifdef __cplusplus
12265 extern "C" void exit (int);
12266 #endif
12267
12268 void fnord() { int i=42;}
12269 int main ()
12270 {
12271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272   int status = $lt_dlunknown;
12273
12274   if (self)
12275     {
12276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12277       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278       /* dlclose (self); */
12279     }
12280
12281     exit (status);
12282 }
12283 EOF
12284   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285   (eval $ac_link) 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12289     (./conftest; exit; ) 2>/dev/null
12290     lt_status=$?
12291     case x$lt_status in
12292       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12293       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12294       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12295     esac
12296   else :
12297     # compilation failed
12298     lt_cv_dlopen_self=no
12299   fi
12300 fi
12301 rm -fr conftest*
12302
12303
12304 fi
12305 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12306 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12307
12308     if test "x$lt_cv_dlopen_self" = xyes; then
12309       LDFLAGS="$LDFLAGS $link_static_flag"
12310       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12311 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12312 if test "${lt_cv_dlopen_self_static+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315           if test "$cross_compiling" = yes; then :
12316   lt_cv_dlopen_self_static=cross
12317 else
12318   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319   lt_status=$lt_dlunknown
12320   cat > conftest.$ac_ext <<EOF
12321 #line 12321 "configure"
12322 #include "confdefs.h"
12323
12324 #if HAVE_DLFCN_H
12325 #include <dlfcn.h>
12326 #endif
12327
12328 #include <stdio.h>
12329
12330 #ifdef RTLD_GLOBAL
12331 #  define LT_DLGLOBAL           RTLD_GLOBAL
12332 #else
12333 #  ifdef DL_GLOBAL
12334 #    define LT_DLGLOBAL         DL_GLOBAL
12335 #  else
12336 #    define LT_DLGLOBAL         0
12337 #  endif
12338 #endif
12339
12340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341    find out it does not work in some platform. */
12342 #ifndef LT_DLLAZY_OR_NOW
12343 #  ifdef RTLD_LAZY
12344 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12345 #  else
12346 #    ifdef DL_LAZY
12347 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12348 #    else
12349 #      ifdef RTLD_NOW
12350 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12351 #      else
12352 #        ifdef DL_NOW
12353 #          define LT_DLLAZY_OR_NOW      DL_NOW
12354 #        else
12355 #          define LT_DLLAZY_OR_NOW      0
12356 #        endif
12357 #      endif
12358 #    endif
12359 #  endif
12360 #endif
12361
12362 #ifdef __cplusplus
12363 extern "C" void exit (int);
12364 #endif
12365
12366 void fnord() { int i=42;}
12367 int main ()
12368 {
12369   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370   int status = $lt_dlunknown;
12371
12372   if (self)
12373     {
12374       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12375       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12376       /* dlclose (self); */
12377     }
12378
12379     exit (status);
12380 }
12381 EOF
12382   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383   (eval $ac_link) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12387     (./conftest; exit; ) 2>/dev/null
12388     lt_status=$?
12389     case x$lt_status in
12390       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12391       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12392       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12393     esac
12394   else :
12395     # compilation failed
12396     lt_cv_dlopen_self_static=no
12397   fi
12398 fi
12399 rm -fr conftest*
12400
12401
12402 fi
12403 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12404 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12405     fi
12406
12407     CPPFLAGS="$save_CPPFLAGS"
12408     LDFLAGS="$save_LDFLAGS"
12409     LIBS="$save_LIBS"
12410     ;;
12411   esac
12412
12413   case $lt_cv_dlopen_self in
12414   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12415   *) enable_dlopen_self=unknown ;;
12416   esac
12417
12418   case $lt_cv_dlopen_self_static in
12419   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12420   *) enable_dlopen_self_static=unknown ;;
12421   esac
12422 fi
12423
12424
12425 # The else clause should only fire when bootstrapping the
12426 # libtool distribution, otherwise you forgot to ship ltmain.sh
12427 # with your package, and you will get complaints that there are
12428 # no rules to generate ltmain.sh.
12429 if test -f "$ltmain"; then
12430   # See if we are running on zsh, and set the options which allow our commands through
12431   # without removal of \ escapes.
12432   if test -n "${ZSH_VERSION+set}" ; then
12433     setopt NO_GLOB_SUBST
12434   fi
12435   # Now quote all the things that may contain metacharacters while being
12436   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12437   # variables and quote the copies for generation of the libtool script.
12438   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12439     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12440     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12441     deplibs_check_method reload_flag reload_cmds need_locks \
12442     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12443     lt_cv_sys_global_symbol_to_c_name_address \
12444     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12445     old_postinstall_cmds old_postuninstall_cmds \
12446     compiler_CXX \
12447     CC_CXX \
12448     LD_CXX \
12449     lt_prog_compiler_wl_CXX \
12450     lt_prog_compiler_pic_CXX \
12451     lt_prog_compiler_static_CXX \
12452     lt_prog_compiler_no_builtin_flag_CXX \
12453     export_dynamic_flag_spec_CXX \
12454     thread_safe_flag_spec_CXX \
12455     whole_archive_flag_spec_CXX \
12456     enable_shared_with_static_runtimes_CXX \
12457     old_archive_cmds_CXX \
12458     old_archive_from_new_cmds_CXX \
12459     predep_objects_CXX \
12460     postdep_objects_CXX \
12461     predeps_CXX \
12462     postdeps_CXX \
12463     compiler_lib_search_path_CXX \
12464     archive_cmds_CXX \
12465     archive_expsym_cmds_CXX \
12466     postinstall_cmds_CXX \
12467     postuninstall_cmds_CXX \
12468     old_archive_from_expsyms_cmds_CXX \
12469     allow_undefined_flag_CXX \
12470     no_undefined_flag_CXX \
12471     export_symbols_cmds_CXX \
12472     hardcode_libdir_flag_spec_CXX \
12473     hardcode_libdir_flag_spec_ld_CXX \
12474     hardcode_libdir_separator_CXX \
12475     hardcode_automatic_CXX \
12476     module_cmds_CXX \
12477     module_expsym_cmds_CXX \
12478     lt_cv_prog_compiler_c_o_CXX \
12479     exclude_expsyms_CXX \
12480     include_expsyms_CXX; do
12481
12482     case $var in
12483     old_archive_cmds_CXX | \
12484     old_archive_from_new_cmds_CXX | \
12485     archive_cmds_CXX | \
12486     archive_expsym_cmds_CXX | \
12487     module_cmds_CXX | \
12488     module_expsym_cmds_CXX | \
12489     old_archive_from_expsyms_cmds_CXX | \
12490     export_symbols_cmds_CXX | \
12491     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12492     postinstall_cmds | postuninstall_cmds | \
12493     old_postinstall_cmds | old_postuninstall_cmds | \
12494     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12495       # Double-quote double-evaled strings.
12496       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12497       ;;
12498     *)
12499       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12500       ;;
12501     esac
12502   done
12503
12504   case $lt_echo in
12505   *'\$0 --fallback-echo"')
12506     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12507     ;;
12508   esac
12509
12510 cfgfile="$ofile"
12511
12512   cat <<__EOF__ >> "$cfgfile"
12513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12514
12515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12516
12517 # Shell to use when invoking shell scripts.
12518 SHELL=$lt_SHELL
12519
12520 # Whether or not to build shared libraries.
12521 build_libtool_libs=$enable_shared
12522
12523 # Whether or not to build static libraries.
12524 build_old_libs=$enable_static
12525
12526 # Whether or not to add -lc for building shared libraries.
12527 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12528
12529 # Whether or not to disallow shared libs when runtime libs are static
12530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12531
12532 # Whether or not to optimize for fast installation.
12533 fast_install=$enable_fast_install
12534
12535 # The host system.
12536 host_alias=$host_alias
12537 host=$host
12538
12539 # An echo program that does not interpret backslashes.
12540 echo=$lt_echo
12541
12542 # The archiver.
12543 AR=$lt_AR
12544 AR_FLAGS=$lt_AR_FLAGS
12545
12546 # A C compiler.
12547 LTCC=$lt_LTCC
12548
12549 # A language-specific compiler.
12550 CC=$lt_compiler_CXX
12551
12552 # Is the compiler the GNU C compiler?
12553 with_gcc=$GCC_CXX
12554
12555 # An ERE matcher.
12556 EGREP=$lt_EGREP
12557
12558 # The linker used to build libraries.
12559 LD=$lt_LD_CXX
12560
12561 # Whether we need hard or soft links.
12562 LN_S=$lt_LN_S
12563
12564 # A BSD-compatible nm program.
12565 NM=$lt_NM
12566
12567 # A symbol stripping program
12568 STRIP=$STRIP
12569
12570 # Used to examine libraries when file_magic_cmd begins "file"
12571 MAGIC_CMD=$MAGIC_CMD
12572
12573 # Used on cygwin: DLL creation program.
12574 DLLTOOL="$DLLTOOL"
12575
12576 # Used on cygwin: object dumper.
12577 OBJDUMP="$OBJDUMP"
12578
12579 # Used on cygwin: assembler.
12580 AS="$AS"
12581
12582 # The name of the directory that contains temporary libtool files.
12583 objdir=$objdir
12584
12585 # How to create reloadable object files.
12586 reload_flag=$lt_reload_flag
12587 reload_cmds=$lt_reload_cmds
12588
12589 # How to pass a linker flag through the compiler.
12590 wl=$lt_lt_prog_compiler_wl_CXX
12591
12592 # Object file suffix (normally "o").
12593 objext="$ac_objext"
12594
12595 # Old archive suffix (normally "a").
12596 libext="$libext"
12597
12598 # Shared library suffix (normally ".so").
12599 shrext='$shrext'
12600
12601 # Executable file suffix (normally "").
12602 exeext="$exeext"
12603
12604 # Additional compiler flags for building library objects.
12605 pic_flag=$lt_lt_prog_compiler_pic_CXX
12606 pic_mode=$pic_mode
12607
12608 # What is the maximum length of a command?
12609 max_cmd_len=$lt_cv_sys_max_cmd_len
12610
12611 # Does compiler simultaneously support -c and -o options?
12612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12613
12614 # Must we lock files when doing compilation ?
12615 need_locks=$lt_need_locks
12616
12617 # Do we need the lib prefix for modules?
12618 need_lib_prefix=$need_lib_prefix
12619
12620 # Do we need a version for libraries?
12621 need_version=$need_version
12622
12623 # Whether dlopen is supported.
12624 dlopen_support=$enable_dlopen
12625
12626 # Whether dlopen of programs is supported.
12627 dlopen_self=$enable_dlopen_self
12628
12629 # Whether dlopen of statically linked programs is supported.
12630 dlopen_self_static=$enable_dlopen_self_static
12631
12632 # Compiler flag to prevent dynamic linking.
12633 link_static_flag=$lt_lt_prog_compiler_static_CXX
12634
12635 # Compiler flag to turn off builtin functions.
12636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12637
12638 # Compiler flag to allow reflexive dlopens.
12639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12640
12641 # Compiler flag to generate shared objects directly from archives.
12642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12643
12644 # Compiler flag to generate thread-safe objects.
12645 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12646
12647 # Library versioning type.
12648 version_type=$version_type
12649
12650 # Format of library name prefix.
12651 libname_spec=$lt_libname_spec
12652
12653 # List of archive names.  First name is the real one, the rest are links.
12654 # The last name is the one that the linker finds with -lNAME.
12655 library_names_spec=$lt_library_names_spec
12656
12657 # The coded name of the library, if different from the real name.
12658 soname_spec=$lt_soname_spec
12659
12660 # Commands used to build and install an old-style archive.
12661 RANLIB=$lt_RANLIB
12662 old_archive_cmds=$lt_old_archive_cmds_CXX
12663 old_postinstall_cmds=$lt_old_postinstall_cmds
12664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12665
12666 # Create an old-style archive from a shared archive.
12667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12668
12669 # Create a temporary old-style archive to link instead of a shared archive.
12670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12671
12672 # Commands used to build and install a shared archive.
12673 archive_cmds=$lt_archive_cmds_CXX
12674 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12675 postinstall_cmds=$lt_postinstall_cmds
12676 postuninstall_cmds=$lt_postuninstall_cmds
12677
12678 # Commands used to build a loadable module (assumed same as above if empty)
12679 module_cmds=$lt_module_cmds_CXX
12680 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12681
12682 # Commands to strip libraries.
12683 old_striplib=$lt_old_striplib
12684 striplib=$lt_striplib
12685
12686 # Dependencies to place before the objects being linked to create a
12687 # shared library.
12688 predep_objects=$lt_predep_objects_CXX
12689
12690 # Dependencies to place after the objects being linked to create a
12691 # shared library.
12692 postdep_objects=$lt_postdep_objects_CXX
12693
12694 # Dependencies to place before the objects being linked to create a
12695 # shared library.
12696 predeps=$lt_predeps_CXX
12697
12698 # Dependencies to place after the objects being linked to create a
12699 # shared library.
12700 postdeps=$lt_postdeps_CXX
12701
12702 # The library search path used internally by the compiler when linking
12703 # a shared library.
12704 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12705
12706 # Method to check whether dependent libraries are shared objects.
12707 deplibs_check_method=$lt_deplibs_check_method
12708
12709 # Command to use when deplibs_check_method == file_magic.
12710 file_magic_cmd=$lt_file_magic_cmd
12711
12712 # Flag that allows shared libraries with undefined symbols to be built.
12713 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12714
12715 # Flag that forces no undefined symbols.
12716 no_undefined_flag=$lt_no_undefined_flag_CXX
12717
12718 # Commands used to finish a libtool library installation in a directory.
12719 finish_cmds=$lt_finish_cmds
12720
12721 # Same as above, but a single script fragment to be evaled but not shown.
12722 finish_eval=$lt_finish_eval
12723
12724 # Take the output of nm and produce a listing of raw symbols and C names.
12725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12726
12727 # Transform the output of nm in a proper C declaration
12728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12729
12730 # Transform the output of nm in a C name address pair
12731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12732
12733 # This is the shared library runtime path variable.
12734 runpath_var=$runpath_var
12735
12736 # This is the shared library path variable.
12737 shlibpath_var=$shlibpath_var
12738
12739 # Is shlibpath searched before the hard-coded library search path?
12740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12741
12742 # How to hardcode a shared library path into an executable.
12743 hardcode_action=$hardcode_action_CXX
12744
12745 # Whether we should hardcode library paths into libraries.
12746 hardcode_into_libs=$hardcode_into_libs
12747
12748 # Flag to hardcode \$libdir into a binary during linking.
12749 # This must work even if \$libdir does not exist.
12750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12751
12752 # If ld is used when linking, flag to hardcode \$libdir into
12753 # a binary during linking. This must work even if \$libdir does
12754 # not exist.
12755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12756
12757 # Whether we need a single -rpath flag with a separated argument.
12758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12759
12760 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12761 # resulting binary.
12762 hardcode_direct=$hardcode_direct_CXX
12763
12764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12765 # resulting binary.
12766 hardcode_minus_L=$hardcode_minus_L_CXX
12767
12768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12769 # the resulting binary.
12770 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12771
12772 # Set to yes if building a shared library automatically hardcodes DIR into the library
12773 # and all subsequent libraries and executables linked against it.
12774 hardcode_automatic=$hardcode_automatic_CXX
12775
12776 # Variables whose values should be saved in libtool wrapper scripts and
12777 # restored at relink time.
12778 variables_saved_for_relink="$variables_saved_for_relink"
12779
12780 # Whether libtool must link a program against all its dependency libraries.
12781 link_all_deplibs=$link_all_deplibs_CXX
12782
12783 # Compile-time system search path for libraries
12784 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12785
12786 # Run-time system search path for libraries
12787 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12788
12789 # Fix the shell variable \$srcfile for the compiler.
12790 fix_srcfile_path="$fix_srcfile_path_CXX"
12791
12792 # Set to yes if exported symbols are required.
12793 always_export_symbols=$always_export_symbols_CXX
12794
12795 # The commands to list exported symbols.
12796 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12797
12798 # The commands to extract the exported symbol list from a shared archive.
12799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12800
12801 # Symbols that should not be listed in the preloaded symbols.
12802 exclude_expsyms=$lt_exclude_expsyms_CXX
12803
12804 # Symbols that must always be exported.
12805 include_expsyms=$lt_include_expsyms_CXX
12806
12807 # ### END LIBTOOL TAG CONFIG: $tagname
12808
12809 __EOF__
12810
12811
12812 else
12813   # If there is no Makefile yet, we rely on a make rule to execute
12814   # `config.status --recheck' to rerun these tests and create the
12815   # libtool script then.
12816   test -f Makefile && make "$ltmain"
12817 fi
12818
12819
12820 ac_ext=c
12821 ac_cpp='$CPP $CPPFLAGS'
12822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12825
12826 CC=$lt_save_CC
12827 LDCXX=$LD
12828 LD=$lt_save_LD
12829 GCC=$lt_save_GCC
12830 with_gnu_ldcxx=$with_gnu_ld
12831 with_gnu_ld=$lt_save_with_gnu_ld
12832 lt_cv_path_LDCXX=$lt_cv_path_LD
12833 lt_cv_path_LD=$lt_save_path_LD
12834 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12835 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12836
12837         else
12838           tagname=""
12839         fi
12840         ;;
12841
12842       F77)
12843         if test -n "$F77" && test "X$F77" != "Xno"; then
12844
12845 ac_ext=f
12846 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12847 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12849
12850
12851 archive_cmds_need_lc_F77=no
12852 allow_undefined_flag_F77=
12853 always_export_symbols_F77=no
12854 archive_expsym_cmds_F77=
12855 export_dynamic_flag_spec_F77=
12856 hardcode_direct_F77=no
12857 hardcode_libdir_flag_spec_F77=
12858 hardcode_libdir_flag_spec_ld_F77=
12859 hardcode_libdir_separator_F77=
12860 hardcode_minus_L_F77=no
12861 hardcode_automatic_F77=no
12862 module_cmds_F77=
12863 module_expsym_cmds_F77=
12864 link_all_deplibs_F77=unknown
12865 old_archive_cmds_F77=$old_archive_cmds
12866 no_undefined_flag_F77=
12867 whole_archive_flag_spec_F77=
12868 enable_shared_with_static_runtimes_F77=no
12869
12870 # Source file extension for f77 test sources.
12871 ac_ext=f
12872
12873 # Object file extension for compiled f77 test sources.
12874 objext=o
12875 objext_F77=$objext
12876
12877 # Code to be used in simple compile tests
12878 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12879
12880 # Code to be used in simple link tests
12881 lt_simple_link_test_code="      program t\n      end\n"
12882
12883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12884
12885 # If no C compiler was specified, use CC.
12886 LTCC=${LTCC-"$CC"}
12887
12888 # Allow CC to be a program name with arguments.
12889 compiler=$CC
12890
12891
12892 # Allow CC to be a program name with arguments.
12893 lt_save_CC="$CC"
12894 CC=${F77-"f77"}
12895 compiler=$CC
12896 compiler_F77=$CC
12897 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12898
12899 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12900 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12901 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12902 echo "${ECHO_T}$can_build_shared" >&6
12903
12904 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12905 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12906 test "$can_build_shared" = "no" && enable_shared=no
12907
12908 # On AIX, shared libraries and static libraries use the same namespace, and
12909 # are all built from PIC.
12910 case "$host_os" in
12911 aix3*)
12912   test "$enable_shared" = yes && enable_static=no
12913   if test -n "$RANLIB"; then
12914     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12915     postinstall_cmds='$RANLIB $lib'
12916   fi
12917   ;;
12918 aix4*)
12919   test "$enable_shared" = yes && enable_static=no
12920   ;;
12921 esac
12922 echo "$as_me:$LINENO: result: $enable_shared" >&5
12923 echo "${ECHO_T}$enable_shared" >&6
12924
12925 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12926 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12927 # Make sure either enable_shared or enable_static is yes.
12928 test "$enable_shared" = yes || enable_static=yes
12929 echo "$as_me:$LINENO: result: $enable_static" >&5
12930 echo "${ECHO_T}$enable_static" >&6
12931
12932 test "$ld_shlibs_F77" = no && can_build_shared=no
12933
12934 GCC_F77="$G77"
12935 LD_F77="$LD"
12936
12937 lt_prog_compiler_wl_F77=
12938 lt_prog_compiler_pic_F77=
12939 lt_prog_compiler_static_F77=
12940
12941 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12942 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12943
12944   if test "$GCC" = yes; then
12945     lt_prog_compiler_wl_F77='-Wl,'
12946     lt_prog_compiler_static_F77='-static'
12947
12948     case $host_os in
12949       aix*)
12950       # All AIX code is PIC.
12951       if test "$host_cpu" = ia64; then
12952         # AIX 5 now supports IA64 processor
12953         lt_prog_compiler_static_F77='-Bstatic'
12954       fi
12955       ;;
12956
12957     amigaos*)
12958       # FIXME: we need at least 68020 code to build shared libraries, but
12959       # adding the `-m68020' flag to GCC prevents building anything better,
12960       # like `-m68040'.
12961       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12962       ;;
12963
12964     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12965       # PIC is the default for these OSes.
12966       ;;
12967
12968     mingw* | pw32* | os2*)
12969       # This hack is so that the source file can tell whether it is being
12970       # built for inclusion in a dll (and should export symbols for example).
12971       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12972       ;;
12973
12974     darwin* | rhapsody*)
12975       # PIC is the default on this platform
12976       # Common symbols not allowed in MH_DYLIB files
12977       lt_prog_compiler_pic_F77='-fno-common'
12978       ;;
12979
12980     msdosdjgpp*)
12981       # Just because we use GCC doesn't mean we suddenly get shared libraries
12982       # on systems that don't support them.
12983       lt_prog_compiler_can_build_shared_F77=no
12984       enable_shared=no
12985       ;;
12986
12987     sysv4*MP*)
12988       if test -d /usr/nec; then
12989         lt_prog_compiler_pic_F77=-Kconform_pic
12990       fi
12991       ;;
12992
12993     hpux*)
12994       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12995       # not for PA HP-UX.
12996       case "$host_cpu" in
12997       hppa*64*|ia64*)
12998         # +Z the default
12999         ;;
13000       *)
13001         lt_prog_compiler_pic_F77='-fPIC'
13002         ;;
13003       esac
13004       ;;
13005
13006     *)
13007       lt_prog_compiler_pic_F77='-fPIC'
13008       ;;
13009     esac
13010   else
13011     # PORTME Check for flag to pass linker flags through the system compiler.
13012     case $host_os in
13013     aix*)
13014       lt_prog_compiler_wl_F77='-Wl,'
13015       if test "$host_cpu" = ia64; then
13016         # AIX 5 now supports IA64 processor
13017         lt_prog_compiler_static_F77='-Bstatic'
13018       else
13019         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13020       fi
13021       ;;
13022
13023     mingw* | pw32* | os2*)
13024       # This hack is so that the source file can tell whether it is being
13025       # built for inclusion in a dll (and should export symbols for example).
13026       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13027       ;;
13028
13029     hpux9* | hpux10* | hpux11*)
13030       lt_prog_compiler_wl_F77='-Wl,'
13031       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13032       # not for PA HP-UX.
13033       case "$host_cpu" in
13034       hppa*64*|ia64*)
13035         # +Z the default
13036         ;;
13037       *)
13038         lt_prog_compiler_pic_F77='+Z'
13039         ;;
13040       esac
13041       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13042       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13043       ;;
13044
13045     irix5* | irix6* | nonstopux*)
13046       lt_prog_compiler_wl_F77='-Wl,'
13047       # PIC (with -KPIC) is the default.
13048       lt_prog_compiler_static_F77='-non_shared'
13049       ;;
13050
13051     newsos6)
13052       lt_prog_compiler_pic_F77='-KPIC'
13053       lt_prog_compiler_static_F77='-Bstatic'
13054       ;;
13055
13056     linux*)
13057       case $CC in
13058       icc|ecc)
13059         lt_prog_compiler_wl_F77='-Wl,'
13060         lt_prog_compiler_pic_F77='-KPIC'
13061         lt_prog_compiler_static_F77='-static'
13062         ;;
13063       ccc)
13064         lt_prog_compiler_wl_F77='-Wl,'
13065         # All Alpha code is PIC.
13066         lt_prog_compiler_static_F77='-non_shared'
13067         ;;
13068       esac
13069       ;;
13070
13071     osf3* | osf4* | osf5*)
13072       lt_prog_compiler_wl_F77='-Wl,'
13073       # All OSF/1 code is PIC.
13074       lt_prog_compiler_static_F77='-non_shared'
13075       ;;
13076
13077     sco3.2v5*)
13078       lt_prog_compiler_pic_F77='-Kpic'
13079       lt_prog_compiler_static_F77='-dn'
13080       ;;
13081
13082     solaris*)
13083       lt_prog_compiler_wl_F77='-Wl,'
13084       lt_prog_compiler_pic_F77='-KPIC'
13085       lt_prog_compiler_static_F77='-Bstatic'
13086       ;;
13087
13088     sunos4*)
13089       lt_prog_compiler_wl_F77='-Qoption ld '
13090       lt_prog_compiler_pic_F77='-PIC'
13091       lt_prog_compiler_static_F77='-Bstatic'
13092       ;;
13093
13094     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13095       lt_prog_compiler_wl_F77='-Wl,'
13096       lt_prog_compiler_pic_F77='-KPIC'
13097       lt_prog_compiler_static_F77='-Bstatic'
13098       ;;
13099
13100     sysv4*MP*)
13101       if test -d /usr/nec ;then
13102         lt_prog_compiler_pic_F77='-Kconform_pic'
13103         lt_prog_compiler_static_F77='-Bstatic'
13104       fi
13105       ;;
13106
13107     uts4*)
13108       lt_prog_compiler_pic_F77='-pic'
13109       lt_prog_compiler_static_F77='-Bstatic'
13110       ;;
13111
13112     *)
13113       lt_prog_compiler_can_build_shared_F77=no
13114       ;;
13115     esac
13116   fi
13117
13118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13119 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13120
13121 #
13122 # Check to make sure the PIC flag actually works.
13123 #
13124 if test -n "$lt_prog_compiler_pic_F77"; then
13125   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13127 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   lt_prog_compiler_pic_works_F77=no
13131   ac_outfile=conftest.$ac_objext
13132    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13133    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13134    # Insert the option either (1) after the last *FLAGS variable, or
13135    # (2) before a word containing "conftest.", or (3) at the end.
13136    # Note that $ac_compile itself does not contain backslashes and begins
13137    # with a dollar sign (not a hyphen), so the echo should work correctly.
13138    # The option is referenced via a variable to avoid confusing sed.
13139    lt_compile=`echo "$ac_compile" | $SED \
13140    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13142    -e 's:$: $lt_compiler_flag:'`
13143    (eval echo "\"\$as_me:13143: $lt_compile\"" >&5)
13144    (eval "$lt_compile" 2>conftest.err)
13145    ac_status=$?
13146    cat conftest.err >&5
13147    echo "$as_me:13147: \$? = $ac_status" >&5
13148    if (exit $ac_status) && test -s "$ac_outfile"; then
13149      # The compiler can only warn and ignore the option if not recognized
13150      # So say no if there are warnings
13151      if test ! -s conftest.err; then
13152        lt_prog_compiler_pic_works_F77=yes
13153      fi
13154    fi
13155    $rm conftest*
13156
13157 fi
13158 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13159 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13160
13161 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13162     case $lt_prog_compiler_pic_F77 in
13163      "" | " "*) ;;
13164      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13165      esac
13166 else
13167     lt_prog_compiler_pic_F77=
13168      lt_prog_compiler_can_build_shared_F77=no
13169 fi
13170
13171 fi
13172 case "$host_os" in
13173   # For platforms which do not support PIC, -DPIC is meaningless:
13174   *djgpp*)
13175     lt_prog_compiler_pic_F77=
13176     ;;
13177   *)
13178     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13179     ;;
13180 esac
13181
13182 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13184 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   lt_cv_prog_compiler_c_o_F77=no
13188    $rm -r conftest 2>/dev/null
13189    mkdir conftest
13190    cd conftest
13191    mkdir out
13192    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13193
13194    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13195    # that will create temporary files in the current directory regardless of
13196    # the output directory.  Thus, making CWD read-only will cause this test
13197    # to fail, enabling locking or at least warning the user not to do parallel
13198    # builds.
13199    chmod -w .
13200
13201    lt_compiler_flag="-o out/conftest2.$ac_objext"
13202    # Insert the option either (1) after the last *FLAGS variable, or
13203    # (2) before a word containing "conftest.", or (3) at the end.
13204    # Note that $ac_compile itself does not contain backslashes and begins
13205    # with a dollar sign (not a hyphen), so the echo should work correctly.
13206    lt_compile=`echo "$ac_compile" | $SED \
13207    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209    -e 's:$: $lt_compiler_flag:'`
13210    (eval echo "\"\$as_me:13210: $lt_compile\"" >&5)
13211    (eval "$lt_compile" 2>out/conftest.err)
13212    ac_status=$?
13213    cat out/conftest.err >&5
13214    echo "$as_me:13214: \$? = $ac_status" >&5
13215    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13216    then
13217      # The compiler can only warn and ignore the option if not recognized
13218      # So say no if there are warnings
13219      if test ! -s out/conftest.err; then
13220        lt_cv_prog_compiler_c_o_F77=yes
13221      fi
13222    fi
13223    chmod u+w .
13224    $rm conftest* out/*
13225    rmdir out
13226    cd ..
13227    rmdir conftest
13228    $rm conftest*
13229
13230 fi
13231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13233
13234
13235 hard_links="nottested"
13236 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13237   # do not overwrite the value of need_locks provided by the user
13238   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13240   hard_links=yes
13241   $rm conftest*
13242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13243   touch conftest.a
13244   ln conftest.a conftest.b 2>&5 || hard_links=no
13245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246   echo "$as_me:$LINENO: result: $hard_links" >&5
13247 echo "${ECHO_T}$hard_links" >&6
13248   if test "$hard_links" = no; then
13249     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13251     need_locks=warn
13252   fi
13253 else
13254   need_locks=no
13255 fi
13256
13257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13259
13260   runpath_var=
13261   allow_undefined_flag_F77=
13262   enable_shared_with_static_runtimes_F77=no
13263   archive_cmds_F77=
13264   archive_expsym_cmds_F77=
13265   old_archive_From_new_cmds_F77=
13266   old_archive_from_expsyms_cmds_F77=
13267   export_dynamic_flag_spec_F77=
13268   whole_archive_flag_spec_F77=
13269   thread_safe_flag_spec_F77=
13270   hardcode_libdir_flag_spec_F77=
13271   hardcode_libdir_flag_spec_ld_F77=
13272   hardcode_libdir_separator_F77=
13273   hardcode_direct_F77=no
13274   hardcode_minus_L_F77=no
13275   hardcode_shlibpath_var_F77=unsupported
13276   link_all_deplibs_F77=unknown
13277   hardcode_automatic_F77=no
13278   module_cmds_F77=
13279   module_expsym_cmds_F77=
13280   always_export_symbols_F77=no
13281   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13282   # include_expsyms should be a list of space-separated symbols to be *always*
13283   # included in the symbol list
13284   include_expsyms_F77=
13285   # exclude_expsyms can be an extended regexp of symbols to exclude
13286   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13287   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13288   # as well as any symbol that contains `d'.
13289   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13290   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13291   # platforms (ab)use it in PIC code, but their linkers get confused if
13292   # the symbol is explicitly referenced.  Since portable code cannot
13293   # rely on this symbol name, it's probably fine to never include it in
13294   # preloaded symbol tables.
13295   extract_expsyms_cmds=
13296
13297   case $host_os in
13298   cygwin* | mingw* | pw32*)
13299     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13300     # When not using gcc, we currently assume that we are using
13301     # Microsoft Visual C++.
13302     if test "$GCC" != yes; then
13303       with_gnu_ld=no
13304     fi
13305     ;;
13306   openbsd*)
13307     with_gnu_ld=no
13308     ;;
13309   esac
13310
13311   ld_shlibs_F77=yes
13312   if test "$with_gnu_ld" = yes; then
13313     # If archive_cmds runs LD, not CC, wlarc should be empty
13314     wlarc='${wl}'
13315
13316     # See if GNU ld supports shared libraries.
13317     case $host_os in
13318     aix3* | aix4* | aix5*)
13319       # On AIX/PPC, the GNU linker is very broken
13320       if test "$host_cpu" != ia64; then
13321         ld_shlibs_F77=no
13322         cat <<EOF 1>&2
13323
13324 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13325 *** to be unable to reliably create shared libraries on AIX.
13326 *** Therefore, libtool is disabling shared libraries support.  If you
13327 *** really care for shared libraries, you may want to modify your PATH
13328 *** so that a non-GNU linker is found, and then restart.
13329
13330 EOF
13331       fi
13332       ;;
13333
13334     amigaos*)
13335       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)'
13336       hardcode_libdir_flag_spec_F77='-L$libdir'
13337       hardcode_minus_L_F77=yes
13338
13339       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13340       # that the semantics of dynamic libraries on AmigaOS, at least up
13341       # to version 4, is to share data among multiple programs linked
13342       # with the same dynamic library.  Since this doesn't match the
13343       # behavior of shared libraries on other platforms, we can't use
13344       # them.
13345       ld_shlibs_F77=no
13346       ;;
13347
13348     beos*)
13349       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13350         allow_undefined_flag_F77=unsupported
13351         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13352         # support --undefined.  This deserves some investigation.  FIXME
13353         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13354       else
13355         ld_shlibs_F77=no
13356       fi
13357       ;;
13358
13359     cygwin* | mingw* | pw32*)
13360       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13361       # as there is no search path for DLLs.
13362       hardcode_libdir_flag_spec_F77='-L$libdir'
13363       allow_undefined_flag_F77=unsupported
13364       always_export_symbols_F77=no
13365       enable_shared_with_static_runtimes_F77=yes
13366       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13367
13368       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13369         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13370         # If the export-symbols file already is a .def file (1st line
13371         # is EXPORTS), use it as is; otherwise, prepend...
13372         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13373           cp $export_symbols $output_objdir/$soname.def;
13374         else
13375           echo EXPORTS > $output_objdir/$soname.def;
13376           cat $export_symbols >> $output_objdir/$soname.def;
13377         fi~
13378         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13379       else
13380         ld_shlibs=no
13381       fi
13382       ;;
13383
13384     netbsd*)
13385       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13386         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13387         wlarc=
13388       else
13389         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13391       fi
13392       ;;
13393
13394     solaris* | sysv5*)
13395       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13396         ld_shlibs_F77=no
13397         cat <<EOF 1>&2
13398
13399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13400 *** create shared libraries on Solaris systems.  Therefore, libtool
13401 *** is disabling shared libraries support.  We urge you to upgrade GNU
13402 *** binutils to release 2.9.1 or newer.  Another option is to modify
13403 *** your PATH or compiler configuration so that the native linker is
13404 *** used, and then restart.
13405
13406 EOF
13407       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13408         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13410       else
13411         ld_shlibs_F77=no
13412       fi
13413       ;;
13414
13415     sunos4*)
13416       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13417       wlarc=
13418       hardcode_direct_F77=yes
13419       hardcode_shlibpath_var_F77=no
13420       ;;
13421
13422     *)
13423       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13424         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13426       else
13427         ld_shlibs_F77=no
13428       fi
13429       ;;
13430     esac
13431
13432     if test "$ld_shlibs_F77" = yes; then
13433       runpath_var=LD_RUN_PATH
13434       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13435       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13436       # ancient GNU ld didn't support --whole-archive et. al.
13437       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13438         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13439       else
13440         whole_archive_flag_spec_F77=
13441       fi
13442     fi
13443   else
13444     # PORTME fill in a description of your system's linker (not GNU ld)
13445     case $host_os in
13446     aix3*)
13447       allow_undefined_flag_F77=unsupported
13448       always_export_symbols_F77=yes
13449       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'
13450       # Note: this linker hardcodes the directories in LIBPATH if there
13451       # are no directories specified by -L.
13452       hardcode_minus_L_F77=yes
13453       if test "$GCC" = yes && test -z "$link_static_flag"; then
13454         # Neither direct hardcoding nor static linking is supported with a
13455         # broken collect2.
13456         hardcode_direct_F77=unsupported
13457       fi
13458       ;;
13459
13460     aix4* | aix5*)
13461       if test "$host_cpu" = ia64; then
13462         # On IA64, the linker does run time linking by default, so we don't
13463         # have to do anything special.
13464         aix_use_runtimelinking=no
13465         exp_sym_flag='-Bexport'
13466         no_entry_flag=""
13467       else
13468         # If we're using GNU nm, then we don't want the "-C" option.
13469         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13470         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13471           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'
13472         else
13473           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'
13474         fi
13475         aix_use_runtimelinking=no
13476
13477         # Test if we are trying to use run time linking or normal
13478         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13479         # need to do runtime linking.
13480         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13481           for ld_flag in $LDFLAGS; do
13482           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13483             aix_use_runtimelinking=yes
13484             break
13485           fi
13486           done
13487         esac
13488
13489         exp_sym_flag='-bexport'
13490         no_entry_flag='-bnoentry'
13491       fi
13492
13493       # When large executables or shared objects are built, AIX ld can
13494       # have problems creating the table of contents.  If linking a library
13495       # or program results in "error TOC overflow" add -mminimal-toc to
13496       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13497       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13498
13499       archive_cmds_F77=''
13500       hardcode_direct_F77=yes
13501       hardcode_libdir_separator_F77=':'
13502       link_all_deplibs_F77=yes
13503
13504       if test "$GCC" = yes; then
13505         case $host_os in aix4.012|aix4.012.*)
13506         # We only want to do this on AIX 4.2 and lower, the check
13507         # below for broken collect2 doesn't work under 4.3+
13508           collect2name=`${CC} -print-prog-name=collect2`
13509           if test -f "$collect2name" && \
13510            strings "$collect2name" | grep resolve_lib_name >/dev/null
13511           then
13512           # We have reworked collect2
13513           hardcode_direct_F77=yes
13514           else
13515           # We have old collect2
13516           hardcode_direct_F77=unsupported
13517           # It fails to find uninstalled libraries when the uninstalled
13518           # path is not listed in the libpath.  Setting hardcode_minus_L
13519           # to unsupported forces relinking
13520           hardcode_minus_L_F77=yes
13521           hardcode_libdir_flag_spec_F77='-L$libdir'
13522           hardcode_libdir_separator_F77=
13523           fi
13524         esac
13525         shared_flag='-shared'
13526       else
13527         # not using gcc
13528         if test "$host_cpu" = ia64; then
13529         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13530         # chokes on -Wl,-G. The following line is correct:
13531           shared_flag='-G'
13532         else
13533         if test "$aix_use_runtimelinking" = yes; then
13534             shared_flag='${wl}-G'
13535           else
13536             shared_flag='${wl}-bM:SRE'
13537         fi
13538         fi
13539       fi
13540
13541       # It seems that -bexpall does not export symbols beginning with
13542       # underscore (_), so it is better to generate a list of symbols to export.
13543       always_export_symbols_F77=yes
13544       if test "$aix_use_runtimelinking" = yes; then
13545         # Warning - without using the other runtime loading flags (-brtl),
13546         # -berok will link without error, but may produce a broken library.
13547         allow_undefined_flag_F77='-berok'
13548        # Determine the default libpath from the value encoded in an empty executable.
13549        cat >conftest.$ac_ext <<_ACEOF
13550       program main
13551
13552       end
13553 _ACEOF
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556   (eval $ac_link) 2>conftest.er1
13557   ac_status=$?
13558   grep -v '^ *+' conftest.er1 >conftest.err
13559   rm -f conftest.er1
13560   cat conftest.err >&5
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } &&
13563          { ac_try='test -z "$ac_f77_werror_flag"
13564                          || test ! -s conftest.err'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; } &&
13570          { ac_try='test -s conftest$ac_exeext'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576
13577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13578 }'`
13579 # Check for a 64-bit object if we didn't find anything.
13580 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; }
13581 }'`; fi
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 fi
13587 rm -f conftest.err conftest.$ac_objext \
13588       conftest$ac_exeext conftest.$ac_ext
13589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13590
13591        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13592         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"
13593        else
13594         if test "$host_cpu" = ia64; then
13595           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13596           allow_undefined_flag_F77="-z nodefs"
13597           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"
13598         else
13599          # Determine the default libpath from the value encoded in an empty executable.
13600          cat >conftest.$ac_ext <<_ACEOF
13601       program main
13602
13603       end
13604 _ACEOF
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607   (eval $ac_link) 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } &&
13614          { ac_try='test -z "$ac_f77_werror_flag"
13615                          || test ! -s conftest.err'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; } &&
13621          { ac_try='test -s conftest$ac_exeext'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; }; then
13627
13628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13629 }'`
13630 # Check for a 64-bit object if we didn't find anything.
13631 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; }
13632 }'`; fi
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 fi
13638 rm -f conftest.err conftest.$ac_objext \
13639       conftest$ac_exeext conftest.$ac_ext
13640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13641
13642          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13643           # Warning - without using the other run time loading flags,
13644           # -berok will link without error, but may produce a broken library.
13645           no_undefined_flag_F77=' ${wl}-bernotok'
13646           allow_undefined_flag_F77=' ${wl}-berok'
13647           # -bexpall does not export symbols beginning with underscore (_)
13648           always_export_symbols_F77=yes
13649           # Exported symbols can be pulled into shared objects from archives
13650           whole_archive_flag_spec_F77=' '
13651           archive_cmds_need_lc_F77=yes
13652           # This is similar to how AIX traditionally builds it's shared libraries.
13653           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'
13654         fi
13655       fi
13656       ;;
13657
13658     amigaos*)
13659       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)'
13660       hardcode_libdir_flag_spec_F77='-L$libdir'
13661       hardcode_minus_L_F77=yes
13662       # see comment about different semantics on the GNU ld section
13663       ld_shlibs_F77=no
13664       ;;
13665
13666     bsdi4*)
13667       export_dynamic_flag_spec_F77=-rdynamic
13668       ;;
13669
13670     cygwin* | mingw* | pw32*)
13671       # When not using gcc, we currently assume that we are using
13672       # Microsoft Visual C++.
13673       # hardcode_libdir_flag_spec is actually meaningless, as there is
13674       # no search path for DLLs.
13675       hardcode_libdir_flag_spec_F77=' '
13676       allow_undefined_flag_F77=unsupported
13677       # Tell ltmain to make .lib files, not .a files.
13678       libext=lib
13679       # Tell ltmain to make .dll files, not .so files.
13680       shrext=".dll"
13681       # FIXME: Setting linknames here is a bad hack.
13682       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13683       # The linker will automatically build a .lib file if we build a DLL.
13684       old_archive_From_new_cmds_F77='true'
13685       # FIXME: Should let the user specify the lib program.
13686       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13687       fix_srcfile_path='`cygpath -w "$srcfile"`'
13688       enable_shared_with_static_runtimes_F77=yes
13689       ;;
13690
13691     darwin* | rhapsody*)
13692     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13693       archive_cmds_need_lc_F77=no
13694       case "$host_os" in
13695       rhapsody* | darwin1.[012])
13696         allow_undefined_flag_F77='-undefined suppress'
13697         ;;
13698       *) # Darwin 1.3 on
13699         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13700         ;;
13701       esac
13702       # FIXME: Relying on posixy $() will cause problems for
13703       #        cross-compilation, but unfortunately the echo tests do not
13704       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13705       #        `"' quotes if we put them in here... so don't!
13706         lt_int_apple_cc_single_mod=no
13707         output_verbose_link_cmd='echo'
13708         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13709           lt_int_apple_cc_single_mod=yes
13710         fi
13711         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13712           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13713         else
13714         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'
13715       fi
13716       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13717       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13718         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13719           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}'
13720         else
13721           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}'
13722         fi
13723           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}'
13724       hardcode_direct_F77=no
13725       hardcode_automatic_F77=yes
13726       hardcode_shlibpath_var_F77=unsupported
13727       whole_archive_flag_spec_F77='-all_load $convenience'
13728       link_all_deplibs_F77=yes
13729     fi
13730       ;;
13731
13732     dgux*)
13733       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13734       hardcode_libdir_flag_spec_F77='-L$libdir'
13735       hardcode_shlibpath_var_F77=no
13736       ;;
13737
13738     freebsd1*)
13739       ld_shlibs_F77=no
13740       ;;
13741
13742     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13743     # support.  Future versions do this automatically, but an explicit c++rt0.o
13744     # does not break anything, and helps significantly (at the cost of a little
13745     # extra space).
13746     freebsd2.2*)
13747       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13748       hardcode_libdir_flag_spec_F77='-R$libdir'
13749       hardcode_direct_F77=yes
13750       hardcode_shlibpath_var_F77=no
13751       ;;
13752
13753     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13754     freebsd2*)
13755       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13756       hardcode_direct_F77=yes
13757       hardcode_minus_L_F77=yes
13758       hardcode_shlibpath_var_F77=no
13759       ;;
13760
13761     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13762     freebsd*)
13763       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13764       hardcode_libdir_flag_spec_F77='-R$libdir'
13765       hardcode_direct_F77=yes
13766       hardcode_shlibpath_var_F77=no
13767       ;;
13768
13769     hpux9*)
13770       if test "$GCC" = yes; then
13771         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'
13772       else
13773         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'
13774       fi
13775       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13776       hardcode_libdir_separator_F77=:
13777       hardcode_direct_F77=yes
13778
13779       # hardcode_minus_L: Not really in the search PATH,
13780       # but as the default location of the library.
13781       hardcode_minus_L_F77=yes
13782       export_dynamic_flag_spec_F77='${wl}-E'
13783       ;;
13784
13785     hpux10* | hpux11*)
13786       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13787         case "$host_cpu" in
13788         hppa*64*|ia64*)
13789           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13790           ;;
13791         *)
13792           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13793           ;;
13794         esac
13795       else
13796         case "$host_cpu" in
13797         hppa*64*|ia64*)
13798           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13799           ;;
13800         *)
13801           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13802           ;;
13803         esac
13804       fi
13805       if test "$with_gnu_ld" = no; then
13806         case "$host_cpu" in
13807         hppa*64*)
13808           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13809           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13810           hardcode_libdir_separator_F77=:
13811           hardcode_direct_F77=no
13812           hardcode_shlibpath_var_F77=no
13813           ;;
13814         ia64*)
13815           hardcode_libdir_flag_spec_F77='-L$libdir'
13816           hardcode_direct_F77=no
13817           hardcode_shlibpath_var_F77=no
13818
13819           # hardcode_minus_L: Not really in the search PATH,
13820           # but as the default location of the library.
13821           hardcode_minus_L_F77=yes
13822           ;;
13823         *)
13824           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13825           hardcode_libdir_separator_F77=:
13826           hardcode_direct_F77=yes
13827           export_dynamic_flag_spec_F77='${wl}-E'
13828
13829           # hardcode_minus_L: Not really in the search PATH,
13830           # but as the default location of the library.
13831           hardcode_minus_L_F77=yes
13832           ;;
13833         esac
13834       fi
13835       ;;
13836
13837     irix5* | irix6* | nonstopux*)
13838       if test "$GCC" = yes; then
13839         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'
13840       else
13841         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'
13842         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13843       fi
13844       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13845       hardcode_libdir_separator_F77=:
13846       link_all_deplibs_F77=yes
13847       ;;
13848
13849     netbsd*)
13850       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13851         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13852       else
13853         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13854       fi
13855       hardcode_libdir_flag_spec_F77='-R$libdir'
13856       hardcode_direct_F77=yes
13857       hardcode_shlibpath_var_F77=no
13858       ;;
13859
13860     newsos6)
13861       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862       hardcode_direct_F77=yes
13863       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864       hardcode_libdir_separator_F77=:
13865       hardcode_shlibpath_var_F77=no
13866       ;;
13867
13868     openbsd*)
13869       hardcode_direct_F77=yes
13870       hardcode_shlibpath_var_F77=no
13871       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13872         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13873         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13874         export_dynamic_flag_spec_F77='${wl}-E'
13875       else
13876        case $host_os in
13877          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13878            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13879            hardcode_libdir_flag_spec_F77='-R$libdir'
13880            ;;
13881          *)
13882            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13883            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13884            ;;
13885        esac
13886       fi
13887       ;;
13888
13889     os2*)
13890       hardcode_libdir_flag_spec_F77='-L$libdir'
13891       hardcode_minus_L_F77=yes
13892       allow_undefined_flag_F77=unsupported
13893       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'
13894       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13895       ;;
13896
13897     osf3*)
13898       if test "$GCC" = yes; then
13899         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13900         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'
13901       else
13902         allow_undefined_flag_F77=' -expect_unresolved \*'
13903         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'
13904       fi
13905       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13906       hardcode_libdir_separator_F77=:
13907       ;;
13908
13909     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13910       if test "$GCC" = yes; then
13911         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13912         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'
13913         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13914       else
13915         allow_undefined_flag_F77=' -expect_unresolved \*'
13916         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'
13917         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~
13918         $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'
13919
13920         # Both c and cxx compiler support -rpath directly
13921         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13922       fi
13923       hardcode_libdir_separator_F77=:
13924       ;;
13925
13926     sco3.2v5*)
13927       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13928       hardcode_shlibpath_var_F77=no
13929       export_dynamic_flag_spec_F77='${wl}-Bexport'
13930       runpath_var=LD_RUN_PATH
13931       hardcode_runpath_var=yes
13932       ;;
13933
13934     solaris*)
13935       no_undefined_flag_F77=' -z text'
13936       if test "$GCC" = yes; then
13937         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13938         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13939           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13940       else
13941         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13943         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13944       fi
13945       hardcode_libdir_flag_spec_F77='-R$libdir'
13946       hardcode_shlibpath_var_F77=no
13947       case $host_os in
13948       solaris2.[0-5] | solaris2.[0-5].*) ;;
13949       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13950         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13951       esac
13952       link_all_deplibs_F77=yes
13953       ;;
13954
13955     sunos4*)
13956       if test "x$host_vendor" = xsequent; then
13957         # Use $CC to link under sequent, because it throws in some extra .o
13958         # files that make .init and .fini sections work.
13959         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13960       else
13961         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13962       fi
13963       hardcode_libdir_flag_spec_F77='-L$libdir'
13964       hardcode_direct_F77=yes
13965       hardcode_minus_L_F77=yes
13966       hardcode_shlibpath_var_F77=no
13967       ;;
13968
13969     sysv4)
13970       case $host_vendor in
13971         sni)
13972           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973           hardcode_direct_F77=yes # is this really true???
13974         ;;
13975         siemens)
13976           ## LD is ld it makes a PLAMLIB
13977           ## CC just makes a GrossModule.
13978           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13979           reload_cmds_F77='$CC -r -o $output$reload_objs'
13980           hardcode_direct_F77=no
13981         ;;
13982         motorola)
13983           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13984           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13985         ;;
13986       esac
13987       runpath_var='LD_RUN_PATH'
13988       hardcode_shlibpath_var_F77=no
13989       ;;
13990
13991     sysv4.3*)
13992       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13993       hardcode_shlibpath_var_F77=no
13994       export_dynamic_flag_spec_F77='-Bexport'
13995       ;;
13996
13997     sysv4*MP*)
13998       if test -d /usr/nec; then
13999         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000         hardcode_shlibpath_var_F77=no
14001         runpath_var=LD_RUN_PATH
14002         hardcode_runpath_var=yes
14003         ld_shlibs_F77=yes
14004       fi
14005       ;;
14006
14007     sysv4.2uw2*)
14008       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14009       hardcode_direct_F77=yes
14010       hardcode_minus_L_F77=no
14011       hardcode_shlibpath_var_F77=no
14012       hardcode_runpath_var=yes
14013       runpath_var=LD_RUN_PATH
14014       ;;
14015
14016    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14017       no_undefined_flag_F77='${wl}-z ${wl}text'
14018       if test "$GCC" = yes; then
14019         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14020       else
14021         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14022       fi
14023       runpath_var='LD_RUN_PATH'
14024       hardcode_shlibpath_var_F77=no
14025       ;;
14026
14027     sysv5*)
14028       no_undefined_flag_F77=' -z text'
14029       # $CC -shared without GNU ld will not create a library from C++
14030       # object files and a static libstdc++, better avoid it by now
14031       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14033                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14034       hardcode_libdir_flag_spec_F77=
14035       hardcode_shlibpath_var_F77=no
14036       runpath_var='LD_RUN_PATH'
14037       ;;
14038
14039     uts4*)
14040       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14041       hardcode_libdir_flag_spec_F77='-L$libdir'
14042       hardcode_shlibpath_var_F77=no
14043       ;;
14044
14045     *)
14046       ld_shlibs_F77=no
14047       ;;
14048     esac
14049   fi
14050
14051 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14052 echo "${ECHO_T}$ld_shlibs_F77" >&6
14053 test "$ld_shlibs_F77" = no && can_build_shared=no
14054
14055 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14056 if test "$GCC" = yes; then
14057   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14058 fi
14059
14060 #
14061 # Do we need to explicitly link libc?
14062 #
14063 case "x$archive_cmds_need_lc_F77" in
14064 x|xyes)
14065   # Assume -lc should be added
14066   archive_cmds_need_lc_F77=yes
14067
14068   if test "$enable_shared" = yes && test "$GCC" = yes; then
14069     case $archive_cmds_F77 in
14070     *'~'*)
14071       # FIXME: we may have to deal with multi-command sequences.
14072       ;;
14073     '$CC '*)
14074       # Test whether the compiler implicitly links with -lc since on some
14075       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14076       # to ld, don't add -lc before -lgcc.
14077       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14079       $rm conftest*
14080       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14081
14082       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083   (eval $ac_compile) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } 2>conftest.err; then
14087         soname=conftest
14088         lib=conftest
14089         libobjs=conftest.$ac_objext
14090         deplibs=
14091         wl=$lt_prog_compiler_wl_F77
14092         compiler_flags=-v
14093         linker_flags=-v
14094         verstring=
14095         output_objdir=.
14096         libname=conftest
14097         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14098         allow_undefined_flag_F77=
14099         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14100   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }
14104         then
14105           archive_cmds_need_lc_F77=no
14106         else
14107           archive_cmds_need_lc_F77=yes
14108         fi
14109         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14110       else
14111         cat conftest.err 1>&5
14112       fi
14113       $rm conftest*
14114       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14115 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14116       ;;
14117     esac
14118   fi
14119   ;;
14120 esac
14121
14122 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14124 hardcode_action_F77=
14125 if test -n "$hardcode_libdir_flag_spec_F77" || \
14126    test -n "$runpath_var F77" || \
14127    test "X$hardcode_automatic_F77"="Xyes" ; then
14128
14129   # We can hardcode non-existant directories.
14130   if test "$hardcode_direct_F77" != no &&
14131      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14132      # have to relink, otherwise we might link with an installed library
14133      # when we should be linking with a yet-to-be-installed one
14134      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14135      test "$hardcode_minus_L_F77" != no; then
14136     # Linking always hardcodes the temporary library directory.
14137     hardcode_action_F77=relink
14138   else
14139     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14140     hardcode_action_F77=immediate
14141   fi
14142 else
14143   # We cannot hardcode anything, or else we can only hardcode existing
14144   # directories.
14145   hardcode_action_F77=unsupported
14146 fi
14147 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14148 echo "${ECHO_T}$hardcode_action_F77" >&6
14149
14150 if test "$hardcode_action_F77" = relink; then
14151   # Fast installation is not supported
14152   enable_fast_install=no
14153 elif test "$shlibpath_overrides_runpath" = yes ||
14154      test "$enable_shared" = no; then
14155   # Fast installation is not necessary
14156   enable_fast_install=needless
14157 fi
14158
14159 striplib=
14160 old_striplib=
14161 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14162 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14163 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14164   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14165   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14166   echo "$as_me:$LINENO: result: yes" >&5
14167 echo "${ECHO_T}yes" >&6
14168 else
14169 # FIXME - insert some real tests, host_os isn't really good enough
14170   case $host_os in
14171    darwin*)
14172        if test -n "$STRIP" ; then
14173          striplib="$STRIP -x"
14174          echo "$as_me:$LINENO: result: yes" >&5
14175 echo "${ECHO_T}yes" >&6
14176        else
14177   echo "$as_me:$LINENO: result: no" >&5
14178 echo "${ECHO_T}no" >&6
14179 fi
14180        ;;
14181    *)
14182   echo "$as_me:$LINENO: result: no" >&5
14183 echo "${ECHO_T}no" >&6
14184     ;;
14185   esac
14186 fi
14187
14188 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14189 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14190 library_names_spec=
14191 libname_spec='lib$name'
14192 soname_spec=
14193 shrext=".so"
14194 postinstall_cmds=
14195 postuninstall_cmds=
14196 finish_cmds=
14197 finish_eval=
14198 shlibpath_var=
14199 shlibpath_overrides_runpath=unknown
14200 version_type=none
14201 dynamic_linker="$host_os ld.so"
14202 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14203 if test "$GCC" = yes; then
14204   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14205   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14206     # if the path contains ";" then we assume it to be the separator
14207     # otherwise default to the standard path separator (i.e. ":") - it is
14208     # assumed that no part of a normal pathname contains ";" but that should
14209     # okay in the real world where ";" in dirpaths is itself problematic.
14210     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14211   else
14212     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14213   fi
14214 else
14215   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14216 fi
14217 need_lib_prefix=unknown
14218 hardcode_into_libs=no
14219
14220 # when you set need_version to no, make sure it does not cause -set_version
14221 # flags to be left without arguments
14222 need_version=unknown
14223
14224 case $host_os in
14225 aix3*)
14226   version_type=linux
14227   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14228   shlibpath_var=LIBPATH
14229
14230   # AIX 3 has no versioning support, so we append a major version to the name.
14231   soname_spec='${libname}${release}${shared_ext}$major'
14232   ;;
14233
14234 aix4* | aix5*)
14235   version_type=linux
14236   need_lib_prefix=no
14237   need_version=no
14238   hardcode_into_libs=yes
14239   if test "$host_cpu" = ia64; then
14240     # AIX 5 supports IA64
14241     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14242     shlibpath_var=LD_LIBRARY_PATH
14243   else
14244     # With GCC up to 2.95.x, collect2 would create an import file
14245     # for dependence libraries.  The import file would start with
14246     # the line `#! .'.  This would cause the generated library to
14247     # depend on `.', always an invalid library.  This was fixed in
14248     # development snapshots of GCC prior to 3.0.
14249     case $host_os in
14250       aix4 | aix4.[01] | aix4.[01].*)
14251       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14252            echo ' yes '
14253            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14254         :
14255       else
14256         can_build_shared=no
14257       fi
14258       ;;
14259     esac
14260     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14261     # soname into executable. Probably we can add versioning support to
14262     # collect2, so additional links can be useful in future.
14263     if test "$aix_use_runtimelinking" = yes; then
14264       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14265       # instead of lib<name>.a to let people know that these are not
14266       # typical AIX shared libraries.
14267       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268     else
14269       # We preserve .a as extension for shared libraries through AIX4.2
14270       # and later when we are not doing run time linking.
14271       library_names_spec='${libname}${release}.a $libname.a'
14272       soname_spec='${libname}${release}${shared_ext}$major'
14273     fi
14274     shlibpath_var=LIBPATH
14275   fi
14276   ;;
14277
14278 amigaos*)
14279   library_names_spec='$libname.ixlibrary $libname.a'
14280   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14281   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'
14282   ;;
14283
14284 beos*)
14285   library_names_spec='${libname}${shared_ext}'
14286   dynamic_linker="$host_os ld.so"
14287   shlibpath_var=LIBRARY_PATH
14288   ;;
14289
14290 bsdi4*)
14291   version_type=linux
14292   need_version=no
14293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294   soname_spec='${libname}${release}${shared_ext}$major'
14295   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14296   shlibpath_var=LD_LIBRARY_PATH
14297   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14298   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14299   # the default ld.so.conf also contains /usr/contrib/lib and
14300   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14301   # libtool to hard-code these into programs
14302   ;;
14303
14304 cygwin* | mingw* | pw32*)
14305   version_type=windows
14306   shrext=".dll"
14307   need_version=no
14308   need_lib_prefix=no
14309
14310   case $GCC,$host_os in
14311   yes,cygwin* | yes,mingw* | yes,pw32*)
14312     library_names_spec='$libname.dll.a'
14313     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14314     postinstall_cmds='base_file=`basename \${file}`~
14315       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14316       dldir=$destdir/`dirname \$dlpath`~
14317       test -d \$dldir || mkdir -p \$dldir~
14318       $install_prog $dir/$dlname \$dldir/$dlname'
14319     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14320       dlpath=$dir/\$dldll~
14321        $rm \$dlpath'
14322     shlibpath_overrides_runpath=yes
14323
14324     case $host_os in
14325     cygwin*)
14326       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14327       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14328       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14329       ;;
14330     mingw*)
14331       # MinGW DLLs use traditional 'lib' prefix
14332       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14333       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14334       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14335         # It is most probably a Windows format PATH printed by
14336         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14337         # path with ; separators, and with drive letters. We can handle the
14338         # drive letters (cygwin fileutils understands them), so leave them,
14339         # especially as we might pass files found there to a mingw objdump,
14340         # which wouldn't understand a cygwinified path. Ahh.
14341         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14342       else
14343         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14344       fi
14345       ;;
14346     pw32*)
14347       # pw32 DLLs use 'pw' prefix rather than 'lib'
14348       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14349       ;;
14350     esac
14351     ;;
14352
14353   *)
14354     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14355     ;;
14356   esac
14357   dynamic_linker='Win32 ld.exe'
14358   # FIXME: first we should search . and the directory the executable is in
14359   shlibpath_var=PATH
14360   ;;
14361
14362 darwin* | rhapsody*)
14363   dynamic_linker="$host_os dyld"
14364   version_type=darwin
14365   need_lib_prefix=no
14366   need_version=no
14367   # FIXME: Relying on posixy $() will cause problems for
14368   #        cross-compilation, but unfortunately the echo tests do not
14369   #        yet detect zsh echo's removal of \ escapes.
14370   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14371   soname_spec='${libname}${release}${major}$shared_ext'
14372   shlibpath_overrides_runpath=yes
14373   shlibpath_var=DYLD_LIBRARY_PATH
14374   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14375   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14376   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14377   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"`
14378   fi
14379   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14380   ;;
14381
14382 dgux*)
14383   version_type=linux
14384   need_lib_prefix=no
14385   need_version=no
14386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14387   soname_spec='${libname}${release}${shared_ext}$major'
14388   shlibpath_var=LD_LIBRARY_PATH
14389   ;;
14390
14391 freebsd1*)
14392   dynamic_linker=no
14393   ;;
14394
14395 freebsd*)
14396   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14397   version_type=freebsd-$objformat
14398   case $version_type in
14399     freebsd-elf*)
14400       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14401       need_version=no
14402       need_lib_prefix=no
14403       ;;
14404     freebsd-*)
14405       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14406       need_version=yes
14407       ;;
14408   esac
14409   shlibpath_var=LD_LIBRARY_PATH
14410   case $host_os in
14411   freebsd2*)
14412     shlibpath_overrides_runpath=yes
14413     ;;
14414   freebsd3.01* | freebsdelf3.01*)
14415     shlibpath_overrides_runpath=yes
14416     hardcode_into_libs=yes
14417     ;;
14418   *) # from 3.2 on
14419     shlibpath_overrides_runpath=no
14420     hardcode_into_libs=yes
14421     ;;
14422   esac
14423   ;;
14424
14425 gnu*)
14426   version_type=linux
14427   need_lib_prefix=no
14428   need_version=no
14429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14430   soname_spec='${libname}${release}${shared_ext}$major'
14431   shlibpath_var=LD_LIBRARY_PATH
14432   hardcode_into_libs=yes
14433   ;;
14434
14435 hpux9* | hpux10* | hpux11*)
14436   # Give a soname corresponding to the major version so that dld.sl refuses to
14437   # link against other versions.
14438   version_type=sunos
14439   need_lib_prefix=no
14440   need_version=no
14441   case "$host_cpu" in
14442   ia64*)
14443     shrext='.so'
14444     hardcode_into_libs=yes
14445     dynamic_linker="$host_os dld.so"
14446     shlibpath_var=LD_LIBRARY_PATH
14447     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449     soname_spec='${libname}${release}${shared_ext}$major'
14450     if test "X$HPUX_IA64_MODE" = X32; then
14451       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14452     else
14453       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14454     fi
14455     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456     ;;
14457    hppa*64*)
14458      shrext='.sl'
14459      hardcode_into_libs=yes
14460      dynamic_linker="$host_os dld.sl"
14461      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14462      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14463      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464      soname_spec='${libname}${release}${shared_ext}$major'
14465      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14466      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14467      ;;
14468    *)
14469     shrext='.sl'
14470     dynamic_linker="$host_os dld.sl"
14471     shlibpath_var=SHLIB_PATH
14472     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474     soname_spec='${libname}${release}${shared_ext}$major'
14475     ;;
14476   esac
14477   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14478   postinstall_cmds='chmod 555 $lib'
14479   ;;
14480
14481 irix5* | irix6* | nonstopux*)
14482   case $host_os in
14483     nonstopux*) version_type=nonstopux ;;
14484     *)
14485         if test "$lt_cv_prog_gnu_ld" = yes; then
14486                 version_type=linux
14487         else
14488                 version_type=irix
14489         fi ;;
14490   esac
14491   need_lib_prefix=no
14492   need_version=no
14493   soname_spec='${libname}${release}${shared_ext}$major'
14494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14495   case $host_os in
14496   irix5* | nonstopux*)
14497     libsuff= shlibsuff=
14498     ;;
14499   *)
14500     case $LD in # libtool.m4 will add one of these switches to LD
14501     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14502       libsuff= shlibsuff= libmagic=32-bit;;
14503     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14504       libsuff=32 shlibsuff=N32 libmagic=N32;;
14505     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14506       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14507     *) libsuff= shlibsuff= libmagic=never-match;;
14508     esac
14509     ;;
14510   esac
14511   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14512   shlibpath_overrides_runpath=no
14513   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14514   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14515   hardcode_into_libs=yes
14516   ;;
14517
14518 # No shared lib support for Linux oldld, aout, or coff.
14519 linux*oldld* | linux*aout* | linux*coff*)
14520   dynamic_linker=no
14521   ;;
14522
14523 # This must be Linux ELF.
14524 linux*)
14525   version_type=linux
14526   need_lib_prefix=no
14527   need_version=no
14528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529   soname_spec='${libname}${release}${shared_ext}$major'
14530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14531   shlibpath_var=LD_LIBRARY_PATH
14532   shlibpath_overrides_runpath=no
14533   # This implies no fast_install, which is unacceptable.
14534   # Some rework will be needed to allow for fast_install
14535   # before this can be enabled.
14536   hardcode_into_libs=yes
14537
14538   # We used to test for /lib/ld.so.1 and disable shared libraries on
14539   # powerpc, because MkLinux only supported shared libraries with the
14540   # GNU dynamic linker.  Since this was broken with cross compilers,
14541   # most powerpc-linux boxes support dynamic linking these days and
14542   # people can always --disable-shared, the test was removed, and we
14543   # assume the GNU/Linux dynamic linker is in use.
14544   dynamic_linker='GNU/Linux ld.so'
14545   ;;
14546
14547 netbsd*)
14548   version_type=sunos
14549   need_lib_prefix=no
14550   need_version=no
14551   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14553     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14554     dynamic_linker='NetBSD (a.out) ld.so'
14555   else
14556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14557     soname_spec='${libname}${release}${shared_ext}$major'
14558     dynamic_linker='NetBSD ld.elf_so'
14559   fi
14560   shlibpath_var=LD_LIBRARY_PATH
14561   shlibpath_overrides_runpath=yes
14562   hardcode_into_libs=yes
14563   ;;
14564
14565 newsos6)
14566   version_type=linux
14567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568   shlibpath_var=LD_LIBRARY_PATH
14569   shlibpath_overrides_runpath=yes
14570   ;;
14571
14572 nto-qnx)
14573   version_type=linux
14574   need_lib_prefix=no
14575   need_version=no
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   shlibpath_overrides_runpath=yes
14580   ;;
14581
14582 openbsd*)
14583   version_type=sunos
14584   need_lib_prefix=no
14585   need_version=no
14586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588   shlibpath_var=LD_LIBRARY_PATH
14589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14590     case $host_os in
14591       openbsd2.[89] | openbsd2.[89].*)
14592         shlibpath_overrides_runpath=no
14593         ;;
14594       *)
14595         shlibpath_overrides_runpath=yes
14596         ;;
14597       esac
14598   else
14599     shlibpath_overrides_runpath=yes
14600   fi
14601   ;;
14602
14603 os2*)
14604   libname_spec='$name'
14605   shrext=".dll"
14606   need_lib_prefix=no
14607   library_names_spec='$libname${shared_ext} $libname.a'
14608   dynamic_linker='OS/2 ld.exe'
14609   shlibpath_var=LIBPATH
14610   ;;
14611
14612 osf3* | osf4* | osf5*)
14613   version_type=osf
14614   need_lib_prefix=no
14615   need_version=no
14616   soname_spec='${libname}${release}${shared_ext}$major'
14617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618   shlibpath_var=LD_LIBRARY_PATH
14619   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14620   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14621   ;;
14622
14623 sco3.2v5*)
14624   version_type=osf
14625   soname_spec='${libname}${release}${shared_ext}$major'
14626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627   shlibpath_var=LD_LIBRARY_PATH
14628   ;;
14629
14630 solaris*)
14631   version_type=linux
14632   need_lib_prefix=no
14633   need_version=no
14634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635   soname_spec='${libname}${release}${shared_ext}$major'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   shlibpath_overrides_runpath=yes
14638   hardcode_into_libs=yes
14639   # ldd complains unless libraries are executable
14640   postinstall_cmds='chmod +x $lib'
14641   ;;
14642
14643 sunos4*)
14644   version_type=sunos
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14646   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   shlibpath_overrides_runpath=yes
14649   if test "$with_gnu_ld" = yes; then
14650     need_lib_prefix=no
14651   fi
14652   need_version=yes
14653   ;;
14654
14655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14656   version_type=linux
14657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658   soname_spec='${libname}${release}${shared_ext}$major'
14659   shlibpath_var=LD_LIBRARY_PATH
14660   case $host_vendor in
14661     sni)
14662       shlibpath_overrides_runpath=no
14663       need_lib_prefix=no
14664       export_dynamic_flag_spec='${wl}-Blargedynsym'
14665       runpath_var=LD_RUN_PATH
14666       ;;
14667     siemens)
14668       need_lib_prefix=no
14669       ;;
14670     motorola)
14671       need_lib_prefix=no
14672       need_version=no
14673       shlibpath_overrides_runpath=no
14674       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14675       ;;
14676   esac
14677   ;;
14678
14679 sysv4*MP*)
14680   if test -d /usr/nec ;then
14681     version_type=linux
14682     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14683     soname_spec='$libname${shared_ext}.$major'
14684     shlibpath_var=LD_LIBRARY_PATH
14685   fi
14686   ;;
14687
14688 uts4*)
14689   version_type=linux
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691   soname_spec='${libname}${release}${shared_ext}$major'
14692   shlibpath_var=LD_LIBRARY_PATH
14693   ;;
14694
14695 *)
14696   dynamic_linker=no
14697   ;;
14698 esac
14699 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14700 echo "${ECHO_T}$dynamic_linker" >&6
14701 test "$dynamic_linker" = no && can_build_shared=no
14702
14703
14704 # The else clause should only fire when bootstrapping the
14705 # libtool distribution, otherwise you forgot to ship ltmain.sh
14706 # with your package, and you will get complaints that there are
14707 # no rules to generate ltmain.sh.
14708 if test -f "$ltmain"; then
14709   # See if we are running on zsh, and set the options which allow our commands through
14710   # without removal of \ escapes.
14711   if test -n "${ZSH_VERSION+set}" ; then
14712     setopt NO_GLOB_SUBST
14713   fi
14714   # Now quote all the things that may contain metacharacters while being
14715   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14716   # variables and quote the copies for generation of the libtool script.
14717   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14718     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14719     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14720     deplibs_check_method reload_flag reload_cmds need_locks \
14721     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14722     lt_cv_sys_global_symbol_to_c_name_address \
14723     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14724     old_postinstall_cmds old_postuninstall_cmds \
14725     compiler_F77 \
14726     CC_F77 \
14727     LD_F77 \
14728     lt_prog_compiler_wl_F77 \
14729     lt_prog_compiler_pic_F77 \
14730     lt_prog_compiler_static_F77 \
14731     lt_prog_compiler_no_builtin_flag_F77 \
14732     export_dynamic_flag_spec_F77 \
14733     thread_safe_flag_spec_F77 \
14734     whole_archive_flag_spec_F77 \
14735     enable_shared_with_static_runtimes_F77 \
14736     old_archive_cmds_F77 \
14737     old_archive_from_new_cmds_F77 \
14738     predep_objects_F77 \
14739     postdep_objects_F77 \
14740     predeps_F77 \
14741     postdeps_F77 \
14742     compiler_lib_search_path_F77 \
14743     archive_cmds_F77 \
14744     archive_expsym_cmds_F77 \
14745     postinstall_cmds_F77 \
14746     postuninstall_cmds_F77 \
14747     old_archive_from_expsyms_cmds_F77 \
14748     allow_undefined_flag_F77 \
14749     no_undefined_flag_F77 \
14750     export_symbols_cmds_F77 \
14751     hardcode_libdir_flag_spec_F77 \
14752     hardcode_libdir_flag_spec_ld_F77 \
14753     hardcode_libdir_separator_F77 \
14754     hardcode_automatic_F77 \
14755     module_cmds_F77 \
14756     module_expsym_cmds_F77 \
14757     lt_cv_prog_compiler_c_o_F77 \
14758     exclude_expsyms_F77 \
14759     include_expsyms_F77; do
14760
14761     case $var in
14762     old_archive_cmds_F77 | \
14763     old_archive_from_new_cmds_F77 | \
14764     archive_cmds_F77 | \
14765     archive_expsym_cmds_F77 | \
14766     module_cmds_F77 | \
14767     module_expsym_cmds_F77 | \
14768     old_archive_from_expsyms_cmds_F77 | \
14769     export_symbols_cmds_F77 | \
14770     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14771     postinstall_cmds | postuninstall_cmds | \
14772     old_postinstall_cmds | old_postuninstall_cmds | \
14773     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14774       # Double-quote double-evaled strings.
14775       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14776       ;;
14777     *)
14778       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14779       ;;
14780     esac
14781   done
14782
14783   case $lt_echo in
14784   *'\$0 --fallback-echo"')
14785     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14786     ;;
14787   esac
14788
14789 cfgfile="$ofile"
14790
14791   cat <<__EOF__ >> "$cfgfile"
14792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14793
14794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14795
14796 # Shell to use when invoking shell scripts.
14797 SHELL=$lt_SHELL
14798
14799 # Whether or not to build shared libraries.
14800 build_libtool_libs=$enable_shared
14801
14802 # Whether or not to build static libraries.
14803 build_old_libs=$enable_static
14804
14805 # Whether or not to add -lc for building shared libraries.
14806 build_libtool_need_lc=$archive_cmds_need_lc_F77
14807
14808 # Whether or not to disallow shared libs when runtime libs are static
14809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14810
14811 # Whether or not to optimize for fast installation.
14812 fast_install=$enable_fast_install
14813
14814 # The host system.
14815 host_alias=$host_alias
14816 host=$host
14817
14818 # An echo program that does not interpret backslashes.
14819 echo=$lt_echo
14820
14821 # The archiver.
14822 AR=$lt_AR
14823 AR_FLAGS=$lt_AR_FLAGS
14824
14825 # A C compiler.
14826 LTCC=$lt_LTCC
14827
14828 # A language-specific compiler.
14829 CC=$lt_compiler_F77
14830
14831 # Is the compiler the GNU C compiler?
14832 with_gcc=$GCC_F77
14833
14834 # An ERE matcher.
14835 EGREP=$lt_EGREP
14836
14837 # The linker used to build libraries.
14838 LD=$lt_LD_F77
14839
14840 # Whether we need hard or soft links.
14841 LN_S=$lt_LN_S
14842
14843 # A BSD-compatible nm program.
14844 NM=$lt_NM
14845
14846 # A symbol stripping program
14847 STRIP=$STRIP
14848
14849 # Used to examine libraries when file_magic_cmd begins "file"
14850 MAGIC_CMD=$MAGIC_CMD
14851
14852 # Used on cygwin: DLL creation program.
14853 DLLTOOL="$DLLTOOL"
14854
14855 # Used on cygwin: object dumper.
14856 OBJDUMP="$OBJDUMP"
14857
14858 # Used on cygwin: assembler.
14859 AS="$AS"
14860
14861 # The name of the directory that contains temporary libtool files.
14862 objdir=$objdir
14863
14864 # How to create reloadable object files.
14865 reload_flag=$lt_reload_flag
14866 reload_cmds=$lt_reload_cmds
14867
14868 # How to pass a linker flag through the compiler.
14869 wl=$lt_lt_prog_compiler_wl_F77
14870
14871 # Object file suffix (normally "o").
14872 objext="$ac_objext"
14873
14874 # Old archive suffix (normally "a").
14875 libext="$libext"
14876
14877 # Shared library suffix (normally ".so").
14878 shrext='$shrext'
14879
14880 # Executable file suffix (normally "").
14881 exeext="$exeext"
14882
14883 # Additional compiler flags for building library objects.
14884 pic_flag=$lt_lt_prog_compiler_pic_F77
14885 pic_mode=$pic_mode
14886
14887 # What is the maximum length of a command?
14888 max_cmd_len=$lt_cv_sys_max_cmd_len
14889
14890 # Does compiler simultaneously support -c and -o options?
14891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14892
14893 # Must we lock files when doing compilation ?
14894 need_locks=$lt_need_locks
14895
14896 # Do we need the lib prefix for modules?
14897 need_lib_prefix=$need_lib_prefix
14898
14899 # Do we need a version for libraries?
14900 need_version=$need_version
14901
14902 # Whether dlopen is supported.
14903 dlopen_support=$enable_dlopen
14904
14905 # Whether dlopen of programs is supported.
14906 dlopen_self=$enable_dlopen_self
14907
14908 # Whether dlopen of statically linked programs is supported.
14909 dlopen_self_static=$enable_dlopen_self_static
14910
14911 # Compiler flag to prevent dynamic linking.
14912 link_static_flag=$lt_lt_prog_compiler_static_F77
14913
14914 # Compiler flag to turn off builtin functions.
14915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14916
14917 # Compiler flag to allow reflexive dlopens.
14918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14919
14920 # Compiler flag to generate shared objects directly from archives.
14921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14922
14923 # Compiler flag to generate thread-safe objects.
14924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14925
14926 # Library versioning type.
14927 version_type=$version_type
14928
14929 # Format of library name prefix.
14930 libname_spec=$lt_libname_spec
14931
14932 # List of archive names.  First name is the real one, the rest are links.
14933 # The last name is the one that the linker finds with -lNAME.
14934 library_names_spec=$lt_library_names_spec
14935
14936 # The coded name of the library, if different from the real name.
14937 soname_spec=$lt_soname_spec
14938
14939 # Commands used to build and install an old-style archive.
14940 RANLIB=$lt_RANLIB
14941 old_archive_cmds=$lt_old_archive_cmds_F77
14942 old_postinstall_cmds=$lt_old_postinstall_cmds
14943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14944
14945 # Create an old-style archive from a shared archive.
14946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14947
14948 # Create a temporary old-style archive to link instead of a shared archive.
14949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14950
14951 # Commands used to build and install a shared archive.
14952 archive_cmds=$lt_archive_cmds_F77
14953 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14954 postinstall_cmds=$lt_postinstall_cmds
14955 postuninstall_cmds=$lt_postuninstall_cmds
14956
14957 # Commands used to build a loadable module (assumed same as above if empty)
14958 module_cmds=$lt_module_cmds_F77
14959 module_expsym_cmds=$lt_module_expsym_cmds_F77
14960
14961 # Commands to strip libraries.
14962 old_striplib=$lt_old_striplib
14963 striplib=$lt_striplib
14964
14965 # Dependencies to place before the objects being linked to create a
14966 # shared library.
14967 predep_objects=$lt_predep_objects_F77
14968
14969 # Dependencies to place after the objects being linked to create a
14970 # shared library.
14971 postdep_objects=$lt_postdep_objects_F77
14972
14973 # Dependencies to place before the objects being linked to create a
14974 # shared library.
14975 predeps=$lt_predeps_F77
14976
14977 # Dependencies to place after the objects being linked to create a
14978 # shared library.
14979 postdeps=$lt_postdeps_F77
14980
14981 # The library search path used internally by the compiler when linking
14982 # a shared library.
14983 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14984
14985 # Method to check whether dependent libraries are shared objects.
14986 deplibs_check_method=$lt_deplibs_check_method
14987
14988 # Command to use when deplibs_check_method == file_magic.
14989 file_magic_cmd=$lt_file_magic_cmd
14990
14991 # Flag that allows shared libraries with undefined symbols to be built.
14992 allow_undefined_flag=$lt_allow_undefined_flag_F77
14993
14994 # Flag that forces no undefined symbols.
14995 no_undefined_flag=$lt_no_undefined_flag_F77
14996
14997 # Commands used to finish a libtool library installation in a directory.
14998 finish_cmds=$lt_finish_cmds
14999
15000 # Same as above, but a single script fragment to be evaled but not shown.
15001 finish_eval=$lt_finish_eval
15002
15003 # Take the output of nm and produce a listing of raw symbols and C names.
15004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15005
15006 # Transform the output of nm in a proper C declaration
15007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15008
15009 # Transform the output of nm in a C name address pair
15010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15011
15012 # This is the shared library runtime path variable.
15013 runpath_var=$runpath_var
15014
15015 # This is the shared library path variable.
15016 shlibpath_var=$shlibpath_var
15017
15018 # Is shlibpath searched before the hard-coded library search path?
15019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15020
15021 # How to hardcode a shared library path into an executable.
15022 hardcode_action=$hardcode_action_F77
15023
15024 # Whether we should hardcode library paths into libraries.
15025 hardcode_into_libs=$hardcode_into_libs
15026
15027 # Flag to hardcode \$libdir into a binary during linking.
15028 # This must work even if \$libdir does not exist.
15029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15030
15031 # If ld is used when linking, flag to hardcode \$libdir into
15032 # a binary during linking. This must work even if \$libdir does
15033 # not exist.
15034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15035
15036 # Whether we need a single -rpath flag with a separated argument.
15037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15038
15039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15040 # resulting binary.
15041 hardcode_direct=$hardcode_direct_F77
15042
15043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15044 # resulting binary.
15045 hardcode_minus_L=$hardcode_minus_L_F77
15046
15047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15048 # the resulting binary.
15049 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15050
15051 # Set to yes if building a shared library automatically hardcodes DIR into the library
15052 # and all subsequent libraries and executables linked against it.
15053 hardcode_automatic=$hardcode_automatic_F77
15054
15055 # Variables whose values should be saved in libtool wrapper scripts and
15056 # restored at relink time.
15057 variables_saved_for_relink="$variables_saved_for_relink"
15058
15059 # Whether libtool must link a program against all its dependency libraries.
15060 link_all_deplibs=$link_all_deplibs_F77
15061
15062 # Compile-time system search path for libraries
15063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15064
15065 # Run-time system search path for libraries
15066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15067
15068 # Fix the shell variable \$srcfile for the compiler.
15069 fix_srcfile_path="$fix_srcfile_path_F77"
15070
15071 # Set to yes if exported symbols are required.
15072 always_export_symbols=$always_export_symbols_F77
15073
15074 # The commands to list exported symbols.
15075 export_symbols_cmds=$lt_export_symbols_cmds_F77
15076
15077 # The commands to extract the exported symbol list from a shared archive.
15078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15079
15080 # Symbols that should not be listed in the preloaded symbols.
15081 exclude_expsyms=$lt_exclude_expsyms_F77
15082
15083 # Symbols that must always be exported.
15084 include_expsyms=$lt_include_expsyms_F77
15085
15086 # ### END LIBTOOL TAG CONFIG: $tagname
15087
15088 __EOF__
15089
15090
15091 else
15092   # If there is no Makefile yet, we rely on a make rule to execute
15093   # `config.status --recheck' to rerun these tests and create the
15094   # libtool script then.
15095   test -f Makefile && make "$ltmain"
15096 fi
15097
15098
15099 ac_ext=c
15100 ac_cpp='$CPP $CPPFLAGS'
15101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15104
15105 CC="$lt_save_CC"
15106
15107         else
15108           tagname=""
15109         fi
15110         ;;
15111
15112       GCJ)
15113         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15114
15115
15116
15117 # Source file extension for Java test sources.
15118 ac_ext=java
15119
15120 # Object file extension for compiled Java test sources.
15121 objext=o
15122 objext_GCJ=$objext
15123
15124 # Code to be used in simple compile tests
15125 lt_simple_compile_test_code="class foo {}\n"
15126
15127 # Code to be used in simple link tests
15128 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15129
15130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15131
15132 # If no C compiler was specified, use CC.
15133 LTCC=${LTCC-"$CC"}
15134
15135 # Allow CC to be a program name with arguments.
15136 compiler=$CC
15137
15138
15139 # Allow CC to be a program name with arguments.
15140 lt_save_CC="$CC"
15141 CC=${GCJ-"gcj"}
15142 compiler=$CC
15143 compiler_GCJ=$CC
15144
15145 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15146 archive_cmds_need_lc_GCJ=no
15147
15148 ## CAVEAT EMPTOR:
15149 ## There is no encapsulation within the following macros, do not change
15150 ## the running order or otherwise move them around unless you know exactly
15151 ## what you are doing...
15152
15153 lt_prog_compiler_no_builtin_flag_GCJ=
15154
15155 if test "$GCC" = yes; then
15156   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15157
15158   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15159 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15160 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15161   echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163   lt_cv_prog_compiler_rtti_exceptions=no
15164   ac_outfile=conftest.$ac_objext
15165    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15166    lt_compiler_flag="-fno-rtti -fno-exceptions"
15167    # Insert the option either (1) after the last *FLAGS variable, or
15168    # (2) before a word containing "conftest.", or (3) at the end.
15169    # Note that $ac_compile itself does not contain backslashes and begins
15170    # with a dollar sign (not a hyphen), so the echo should work correctly.
15171    # The option is referenced via a variable to avoid confusing sed.
15172    lt_compile=`echo "$ac_compile" | $SED \
15173    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15174    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15175    -e 's:$: $lt_compiler_flag:'`
15176    (eval echo "\"\$as_me:15176: $lt_compile\"" >&5)
15177    (eval "$lt_compile" 2>conftest.err)
15178    ac_status=$?
15179    cat conftest.err >&5
15180    echo "$as_me:15180: \$? = $ac_status" >&5
15181    if (exit $ac_status) && test -s "$ac_outfile"; then
15182      # The compiler can only warn and ignore the option if not recognized
15183      # So say no if there are warnings
15184      if test ! -s conftest.err; then
15185        lt_cv_prog_compiler_rtti_exceptions=yes
15186      fi
15187    fi
15188    $rm conftest*
15189
15190 fi
15191 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15192 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15193
15194 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15195     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15196 else
15197     :
15198 fi
15199
15200 fi
15201
15202 lt_prog_compiler_wl_GCJ=
15203 lt_prog_compiler_pic_GCJ=
15204 lt_prog_compiler_static_GCJ=
15205
15206 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15207 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15208
15209   if test "$GCC" = yes; then
15210     lt_prog_compiler_wl_GCJ='-Wl,'
15211     lt_prog_compiler_static_GCJ='-static'
15212
15213     case $host_os in
15214       aix*)
15215       # All AIX code is PIC.
15216       if test "$host_cpu" = ia64; then
15217         # AIX 5 now supports IA64 processor
15218         lt_prog_compiler_static_GCJ='-Bstatic'
15219       fi
15220       ;;
15221
15222     amigaos*)
15223       # FIXME: we need at least 68020 code to build shared libraries, but
15224       # adding the `-m68020' flag to GCC prevents building anything better,
15225       # like `-m68040'.
15226       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15227       ;;
15228
15229     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15230       # PIC is the default for these OSes.
15231       ;;
15232
15233     mingw* | pw32* | os2*)
15234       # This hack is so that the source file can tell whether it is being
15235       # built for inclusion in a dll (and should export symbols for example).
15236       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15237       ;;
15238
15239     darwin* | rhapsody*)
15240       # PIC is the default on this platform
15241       # Common symbols not allowed in MH_DYLIB files
15242       lt_prog_compiler_pic_GCJ='-fno-common'
15243       ;;
15244
15245     msdosdjgpp*)
15246       # Just because we use GCC doesn't mean we suddenly get shared libraries
15247       # on systems that don't support them.
15248       lt_prog_compiler_can_build_shared_GCJ=no
15249       enable_shared=no
15250       ;;
15251
15252     sysv4*MP*)
15253       if test -d /usr/nec; then
15254         lt_prog_compiler_pic_GCJ=-Kconform_pic
15255       fi
15256       ;;
15257
15258     hpux*)
15259       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15260       # not for PA HP-UX.
15261       case "$host_cpu" in
15262       hppa*64*|ia64*)
15263         # +Z the default
15264         ;;
15265       *)
15266         lt_prog_compiler_pic_GCJ='-fPIC'
15267         ;;
15268       esac
15269       ;;
15270
15271     *)
15272       lt_prog_compiler_pic_GCJ='-fPIC'
15273       ;;
15274     esac
15275   else
15276     # PORTME Check for flag to pass linker flags through the system compiler.
15277     case $host_os in
15278     aix*)
15279       lt_prog_compiler_wl_GCJ='-Wl,'
15280       if test "$host_cpu" = ia64; then
15281         # AIX 5 now supports IA64 processor
15282         lt_prog_compiler_static_GCJ='-Bstatic'
15283       else
15284         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15285       fi
15286       ;;
15287
15288     mingw* | pw32* | os2*)
15289       # This hack is so that the source file can tell whether it is being
15290       # built for inclusion in a dll (and should export symbols for example).
15291       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15292       ;;
15293
15294     hpux9* | hpux10* | hpux11*)
15295       lt_prog_compiler_wl_GCJ='-Wl,'
15296       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15297       # not for PA HP-UX.
15298       case "$host_cpu" in
15299       hppa*64*|ia64*)
15300         # +Z the default
15301         ;;
15302       *)
15303         lt_prog_compiler_pic_GCJ='+Z'
15304         ;;
15305       esac
15306       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15307       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15308       ;;
15309
15310     irix5* | irix6* | nonstopux*)
15311       lt_prog_compiler_wl_GCJ='-Wl,'
15312       # PIC (with -KPIC) is the default.
15313       lt_prog_compiler_static_GCJ='-non_shared'
15314       ;;
15315
15316     newsos6)
15317       lt_prog_compiler_pic_GCJ='-KPIC'
15318       lt_prog_compiler_static_GCJ='-Bstatic'
15319       ;;
15320
15321     linux*)
15322       case $CC in
15323       icc|ecc)
15324         lt_prog_compiler_wl_GCJ='-Wl,'
15325         lt_prog_compiler_pic_GCJ='-KPIC'
15326         lt_prog_compiler_static_GCJ='-static'
15327         ;;
15328       ccc)
15329         lt_prog_compiler_wl_GCJ='-Wl,'
15330         # All Alpha code is PIC.
15331         lt_prog_compiler_static_GCJ='-non_shared'
15332         ;;
15333       esac
15334       ;;
15335
15336     osf3* | osf4* | osf5*)
15337       lt_prog_compiler_wl_GCJ='-Wl,'
15338       # All OSF/1 code is PIC.
15339       lt_prog_compiler_static_GCJ='-non_shared'
15340       ;;
15341
15342     sco3.2v5*)
15343       lt_prog_compiler_pic_GCJ='-Kpic'
15344       lt_prog_compiler_static_GCJ='-dn'
15345       ;;
15346
15347     solaris*)
15348       lt_prog_compiler_wl_GCJ='-Wl,'
15349       lt_prog_compiler_pic_GCJ='-KPIC'
15350       lt_prog_compiler_static_GCJ='-Bstatic'
15351       ;;
15352
15353     sunos4*)
15354       lt_prog_compiler_wl_GCJ='-Qoption ld '
15355       lt_prog_compiler_pic_GCJ='-PIC'
15356       lt_prog_compiler_static_GCJ='-Bstatic'
15357       ;;
15358
15359     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15360       lt_prog_compiler_wl_GCJ='-Wl,'
15361       lt_prog_compiler_pic_GCJ='-KPIC'
15362       lt_prog_compiler_static_GCJ='-Bstatic'
15363       ;;
15364
15365     sysv4*MP*)
15366       if test -d /usr/nec ;then
15367         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15368         lt_prog_compiler_static_GCJ='-Bstatic'
15369       fi
15370       ;;
15371
15372     uts4*)
15373       lt_prog_compiler_pic_GCJ='-pic'
15374       lt_prog_compiler_static_GCJ='-Bstatic'
15375       ;;
15376
15377     *)
15378       lt_prog_compiler_can_build_shared_GCJ=no
15379       ;;
15380     esac
15381   fi
15382
15383 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15384 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15385
15386 #
15387 # Check to make sure the PIC flag actually works.
15388 #
15389 if test -n "$lt_prog_compiler_pic_GCJ"; then
15390   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15391 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15392 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395   lt_prog_compiler_pic_works_GCJ=no
15396   ac_outfile=conftest.$ac_objext
15397    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15398    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15399    # Insert the option either (1) after the last *FLAGS variable, or
15400    # (2) before a word containing "conftest.", or (3) at the end.
15401    # Note that $ac_compile itself does not contain backslashes and begins
15402    # with a dollar sign (not a hyphen), so the echo should work correctly.
15403    # The option is referenced via a variable to avoid confusing sed.
15404    lt_compile=`echo "$ac_compile" | $SED \
15405    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15406    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15407    -e 's:$: $lt_compiler_flag:'`
15408    (eval echo "\"\$as_me:15408: $lt_compile\"" >&5)
15409    (eval "$lt_compile" 2>conftest.err)
15410    ac_status=$?
15411    cat conftest.err >&5
15412    echo "$as_me:15412: \$? = $ac_status" >&5
15413    if (exit $ac_status) && test -s "$ac_outfile"; then
15414      # The compiler can only warn and ignore the option if not recognized
15415      # So say no if there are warnings
15416      if test ! -s conftest.err; then
15417        lt_prog_compiler_pic_works_GCJ=yes
15418      fi
15419    fi
15420    $rm conftest*
15421
15422 fi
15423 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15424 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15425
15426 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15427     case $lt_prog_compiler_pic_GCJ in
15428      "" | " "*) ;;
15429      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15430      esac
15431 else
15432     lt_prog_compiler_pic_GCJ=
15433      lt_prog_compiler_can_build_shared_GCJ=no
15434 fi
15435
15436 fi
15437 case "$host_os" in
15438   # For platforms which do not support PIC, -DPIC is meaningless:
15439   *djgpp*)
15440     lt_prog_compiler_pic_GCJ=
15441     ;;
15442   *)
15443     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15444     ;;
15445 esac
15446
15447 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15448 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15449 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   lt_cv_prog_compiler_c_o_GCJ=no
15453    $rm -r conftest 2>/dev/null
15454    mkdir conftest
15455    cd conftest
15456    mkdir out
15457    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15458
15459    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15460    # that will create temporary files in the current directory regardless of
15461    # the output directory.  Thus, making CWD read-only will cause this test
15462    # to fail, enabling locking or at least warning the user not to do parallel
15463    # builds.
15464    chmod -w .
15465
15466    lt_compiler_flag="-o out/conftest2.$ac_objext"
15467    # Insert the option either (1) after the last *FLAGS variable, or
15468    # (2) before a word containing "conftest.", or (3) at the end.
15469    # Note that $ac_compile itself does not contain backslashes and begins
15470    # with a dollar sign (not a hyphen), so the echo should work correctly.
15471    lt_compile=`echo "$ac_compile" | $SED \
15472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15474    -e 's:$: $lt_compiler_flag:'`
15475    (eval echo "\"\$as_me:15475: $lt_compile\"" >&5)
15476    (eval "$lt_compile" 2>out/conftest.err)
15477    ac_status=$?
15478    cat out/conftest.err >&5
15479    echo "$as_me:15479: \$? = $ac_status" >&5
15480    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15481    then
15482      # The compiler can only warn and ignore the option if not recognized
15483      # So say no if there are warnings
15484      if test ! -s out/conftest.err; then
15485        lt_cv_prog_compiler_c_o_GCJ=yes
15486      fi
15487    fi
15488    chmod u+w .
15489    $rm conftest* out/*
15490    rmdir out
15491    cd ..
15492    rmdir conftest
15493    $rm conftest*
15494
15495 fi
15496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15497 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15498
15499
15500 hard_links="nottested"
15501 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15502   # do not overwrite the value of need_locks provided by the user
15503   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15505   hard_links=yes
15506   $rm conftest*
15507   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15508   touch conftest.a
15509   ln conftest.a conftest.b 2>&5 || hard_links=no
15510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15511   echo "$as_me:$LINENO: result: $hard_links" >&5
15512 echo "${ECHO_T}$hard_links" >&6
15513   if test "$hard_links" = no; then
15514     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15516     need_locks=warn
15517   fi
15518 else
15519   need_locks=no
15520 fi
15521
15522 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15523 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15524
15525   runpath_var=
15526   allow_undefined_flag_GCJ=
15527   enable_shared_with_static_runtimes_GCJ=no
15528   archive_cmds_GCJ=
15529   archive_expsym_cmds_GCJ=
15530   old_archive_From_new_cmds_GCJ=
15531   old_archive_from_expsyms_cmds_GCJ=
15532   export_dynamic_flag_spec_GCJ=
15533   whole_archive_flag_spec_GCJ=
15534   thread_safe_flag_spec_GCJ=
15535   hardcode_libdir_flag_spec_GCJ=
15536   hardcode_libdir_flag_spec_ld_GCJ=
15537   hardcode_libdir_separator_GCJ=
15538   hardcode_direct_GCJ=no
15539   hardcode_minus_L_GCJ=no
15540   hardcode_shlibpath_var_GCJ=unsupported
15541   link_all_deplibs_GCJ=unknown
15542   hardcode_automatic_GCJ=no
15543   module_cmds_GCJ=
15544   module_expsym_cmds_GCJ=
15545   always_export_symbols_GCJ=no
15546   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15547   # include_expsyms should be a list of space-separated symbols to be *always*
15548   # included in the symbol list
15549   include_expsyms_GCJ=
15550   # exclude_expsyms can be an extended regexp of symbols to exclude
15551   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15552   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15553   # as well as any symbol that contains `d'.
15554   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15555   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15556   # platforms (ab)use it in PIC code, but their linkers get confused if
15557   # the symbol is explicitly referenced.  Since portable code cannot
15558   # rely on this symbol name, it's probably fine to never include it in
15559   # preloaded symbol tables.
15560   extract_expsyms_cmds=
15561
15562   case $host_os in
15563   cygwin* | mingw* | pw32*)
15564     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15565     # When not using gcc, we currently assume that we are using
15566     # Microsoft Visual C++.
15567     if test "$GCC" != yes; then
15568       with_gnu_ld=no
15569     fi
15570     ;;
15571   openbsd*)
15572     with_gnu_ld=no
15573     ;;
15574   esac
15575
15576   ld_shlibs_GCJ=yes
15577   if test "$with_gnu_ld" = yes; then
15578     # If archive_cmds runs LD, not CC, wlarc should be empty
15579     wlarc='${wl}'
15580
15581     # See if GNU ld supports shared libraries.
15582     case $host_os in
15583     aix3* | aix4* | aix5*)
15584       # On AIX/PPC, the GNU linker is very broken
15585       if test "$host_cpu" != ia64; then
15586         ld_shlibs_GCJ=no
15587         cat <<EOF 1>&2
15588
15589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15590 *** to be unable to reliably create shared libraries on AIX.
15591 *** Therefore, libtool is disabling shared libraries support.  If you
15592 *** really care for shared libraries, you may want to modify your PATH
15593 *** so that a non-GNU linker is found, and then restart.
15594
15595 EOF
15596       fi
15597       ;;
15598
15599     amigaos*)
15600       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)'
15601       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602       hardcode_minus_L_GCJ=yes
15603
15604       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15605       # that the semantics of dynamic libraries on AmigaOS, at least up
15606       # to version 4, is to share data among multiple programs linked
15607       # with the same dynamic library.  Since this doesn't match the
15608       # behavior of shared libraries on other platforms, we can't use
15609       # them.
15610       ld_shlibs_GCJ=no
15611       ;;
15612
15613     beos*)
15614       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15615         allow_undefined_flag_GCJ=unsupported
15616         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15617         # support --undefined.  This deserves some investigation.  FIXME
15618         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15619       else
15620         ld_shlibs_GCJ=no
15621       fi
15622       ;;
15623
15624     cygwin* | mingw* | pw32*)
15625       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15626       # as there is no search path for DLLs.
15627       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15628       allow_undefined_flag_GCJ=unsupported
15629       always_export_symbols_GCJ=no
15630       enable_shared_with_static_runtimes_GCJ=yes
15631       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15632
15633       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15634         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15635         # If the export-symbols file already is a .def file (1st line
15636         # is EXPORTS), use it as is; otherwise, prepend...
15637         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15638           cp $export_symbols $output_objdir/$soname.def;
15639         else
15640           echo EXPORTS > $output_objdir/$soname.def;
15641           cat $export_symbols >> $output_objdir/$soname.def;
15642         fi~
15643         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15644       else
15645         ld_shlibs=no
15646       fi
15647       ;;
15648
15649     netbsd*)
15650       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15651         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15652         wlarc=
15653       else
15654         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15655         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15656       fi
15657       ;;
15658
15659     solaris* | sysv5*)
15660       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15661         ld_shlibs_GCJ=no
15662         cat <<EOF 1>&2
15663
15664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15665 *** create shared libraries on Solaris systems.  Therefore, libtool
15666 *** is disabling shared libraries support.  We urge you to upgrade GNU
15667 *** binutils to release 2.9.1 or newer.  Another option is to modify
15668 *** your PATH or compiler configuration so that the native linker is
15669 *** used, and then restart.
15670
15671 EOF
15672       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15673         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15675       else
15676         ld_shlibs_GCJ=no
15677       fi
15678       ;;
15679
15680     sunos4*)
15681       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15682       wlarc=
15683       hardcode_direct_GCJ=yes
15684       hardcode_shlibpath_var_GCJ=no
15685       ;;
15686
15687     *)
15688       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15689         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15691       else
15692         ld_shlibs_GCJ=no
15693       fi
15694       ;;
15695     esac
15696
15697     if test "$ld_shlibs_GCJ" = yes; then
15698       runpath_var=LD_RUN_PATH
15699       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15700       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15701       # ancient GNU ld didn't support --whole-archive et. al.
15702       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15703         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15704       else
15705         whole_archive_flag_spec_GCJ=
15706       fi
15707     fi
15708   else
15709     # PORTME fill in a description of your system's linker (not GNU ld)
15710     case $host_os in
15711     aix3*)
15712       allow_undefined_flag_GCJ=unsupported
15713       always_export_symbols_GCJ=yes
15714       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'
15715       # Note: this linker hardcodes the directories in LIBPATH if there
15716       # are no directories specified by -L.
15717       hardcode_minus_L_GCJ=yes
15718       if test "$GCC" = yes && test -z "$link_static_flag"; then
15719         # Neither direct hardcoding nor static linking is supported with a
15720         # broken collect2.
15721         hardcode_direct_GCJ=unsupported
15722       fi
15723       ;;
15724
15725     aix4* | aix5*)
15726       if test "$host_cpu" = ia64; then
15727         # On IA64, the linker does run time linking by default, so we don't
15728         # have to do anything special.
15729         aix_use_runtimelinking=no
15730         exp_sym_flag='-Bexport'
15731         no_entry_flag=""
15732       else
15733         # If we're using GNU nm, then we don't want the "-C" option.
15734         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15735         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15736           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'
15737         else
15738           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'
15739         fi
15740         aix_use_runtimelinking=no
15741
15742         # Test if we are trying to use run time linking or normal
15743         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15744         # need to do runtime linking.
15745         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15746           for ld_flag in $LDFLAGS; do
15747           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15748             aix_use_runtimelinking=yes
15749             break
15750           fi
15751           done
15752         esac
15753
15754         exp_sym_flag='-bexport'
15755         no_entry_flag='-bnoentry'
15756       fi
15757
15758       # When large executables or shared objects are built, AIX ld can
15759       # have problems creating the table of contents.  If linking a library
15760       # or program results in "error TOC overflow" add -mminimal-toc to
15761       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15762       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15763
15764       archive_cmds_GCJ=''
15765       hardcode_direct_GCJ=yes
15766       hardcode_libdir_separator_GCJ=':'
15767       link_all_deplibs_GCJ=yes
15768
15769       if test "$GCC" = yes; then
15770         case $host_os in aix4.012|aix4.012.*)
15771         # We only want to do this on AIX 4.2 and lower, the check
15772         # below for broken collect2 doesn't work under 4.3+
15773           collect2name=`${CC} -print-prog-name=collect2`
15774           if test -f "$collect2name" && \
15775            strings "$collect2name" | grep resolve_lib_name >/dev/null
15776           then
15777           # We have reworked collect2
15778           hardcode_direct_GCJ=yes
15779           else
15780           # We have old collect2
15781           hardcode_direct_GCJ=unsupported
15782           # It fails to find uninstalled libraries when the uninstalled
15783           # path is not listed in the libpath.  Setting hardcode_minus_L
15784           # to unsupported forces relinking
15785           hardcode_minus_L_GCJ=yes
15786           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787           hardcode_libdir_separator_GCJ=
15788           fi
15789         esac
15790         shared_flag='-shared'
15791       else
15792         # not using gcc
15793         if test "$host_cpu" = ia64; then
15794         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15795         # chokes on -Wl,-G. The following line is correct:
15796           shared_flag='-G'
15797         else
15798         if test "$aix_use_runtimelinking" = yes; then
15799             shared_flag='${wl}-G'
15800           else
15801             shared_flag='${wl}-bM:SRE'
15802         fi
15803         fi
15804       fi
15805
15806       # It seems that -bexpall does not export symbols beginning with
15807       # underscore (_), so it is better to generate a list of symbols to export.
15808       always_export_symbols_GCJ=yes
15809       if test "$aix_use_runtimelinking" = yes; then
15810         # Warning - without using the other runtime loading flags (-brtl),
15811         # -berok will link without error, but may produce a broken library.
15812         allow_undefined_flag_GCJ='-berok'
15813        # Determine the default libpath from the value encoded in an empty executable.
15814        cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820
15821 int
15822 main ()
15823 {
15824
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831   (eval $ac_link) 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_c_werror_flag"
15839                          || test ! -s conftest.err'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest$ac_exeext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15853 }'`
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15856 }'`; fi
15857 else
15858   echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 fi
15862 rm -f conftest.err conftest.$ac_objext \
15863       conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15867         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"
15868        else
15869         if test "$host_cpu" = ia64; then
15870           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15871           allow_undefined_flag_GCJ="-z nodefs"
15872           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"
15873         else
15874          # Determine the default libpath from the value encoded in an empty executable.
15875          cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h.  */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h.  */
15881
15882 int
15883 main ()
15884 {
15885
15886   ;
15887   return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892   (eval $ac_link) 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -z "$ac_c_werror_flag"
15900                          || test ! -s conftest.err'
15901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902   (eval $ac_try) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); }; } &&
15906          { ac_try='test -s conftest$ac_exeext'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; }; then
15912
15913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15914 }'`
15915 # Check for a 64-bit object if we didn't find anything.
15916 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; }
15917 }'`; fi
15918 else
15919   echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922 fi
15923 rm -f conftest.err conftest.$ac_objext \
15924       conftest$ac_exeext conftest.$ac_ext
15925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15926
15927          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15928           # Warning - without using the other run time loading flags,
15929           # -berok will link without error, but may produce a broken library.
15930           no_undefined_flag_GCJ=' ${wl}-bernotok'
15931           allow_undefined_flag_GCJ=' ${wl}-berok'
15932           # -bexpall does not export symbols beginning with underscore (_)
15933           always_export_symbols_GCJ=yes
15934           # Exported symbols can be pulled into shared objects from archives
15935           whole_archive_flag_spec_GCJ=' '
15936           archive_cmds_need_lc_GCJ=yes
15937           # This is similar to how AIX traditionally builds it's shared libraries.
15938           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'
15939         fi
15940       fi
15941       ;;
15942
15943     amigaos*)
15944       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)'
15945       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946       hardcode_minus_L_GCJ=yes
15947       # see comment about different semantics on the GNU ld section
15948       ld_shlibs_GCJ=no
15949       ;;
15950
15951     bsdi4*)
15952       export_dynamic_flag_spec_GCJ=-rdynamic
15953       ;;
15954
15955     cygwin* | mingw* | pw32*)
15956       # When not using gcc, we currently assume that we are using
15957       # Microsoft Visual C++.
15958       # hardcode_libdir_flag_spec is actually meaningless, as there is
15959       # no search path for DLLs.
15960       hardcode_libdir_flag_spec_GCJ=' '
15961       allow_undefined_flag_GCJ=unsupported
15962       # Tell ltmain to make .lib files, not .a files.
15963       libext=lib
15964       # Tell ltmain to make .dll files, not .so files.
15965       shrext=".dll"
15966       # FIXME: Setting linknames here is a bad hack.
15967       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15968       # The linker will automatically build a .lib file if we build a DLL.
15969       old_archive_From_new_cmds_GCJ='true'
15970       # FIXME: Should let the user specify the lib program.
15971       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15972       fix_srcfile_path='`cygpath -w "$srcfile"`'
15973       enable_shared_with_static_runtimes_GCJ=yes
15974       ;;
15975
15976     darwin* | rhapsody*)
15977     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15978       archive_cmds_need_lc_GCJ=no
15979       case "$host_os" in
15980       rhapsody* | darwin1.[012])
15981         allow_undefined_flag_GCJ='-undefined suppress'
15982         ;;
15983       *) # Darwin 1.3 on
15984         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15985         ;;
15986       esac
15987       # FIXME: Relying on posixy $() will cause problems for
15988       #        cross-compilation, but unfortunately the echo tests do not
15989       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15990       #        `"' quotes if we put them in here... so don't!
15991         lt_int_apple_cc_single_mod=no
15992         output_verbose_link_cmd='echo'
15993         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15994           lt_int_apple_cc_single_mod=yes
15995         fi
15996         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15997           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15998         else
15999         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'
16000       fi
16001       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16002       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16003         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16004           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}'
16005         else
16006           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}'
16007         fi
16008           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}'
16009       hardcode_direct_GCJ=no
16010       hardcode_automatic_GCJ=yes
16011       hardcode_shlibpath_var_GCJ=unsupported
16012       whole_archive_flag_spec_GCJ='-all_load $convenience'
16013       link_all_deplibs_GCJ=yes
16014     fi
16015       ;;
16016
16017     dgux*)
16018       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020       hardcode_shlibpath_var_GCJ=no
16021       ;;
16022
16023     freebsd1*)
16024       ld_shlibs_GCJ=no
16025       ;;
16026
16027     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16028     # support.  Future versions do this automatically, but an explicit c++rt0.o
16029     # does not break anything, and helps significantly (at the cost of a little
16030     # extra space).
16031     freebsd2.2*)
16032       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16033       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16034       hardcode_direct_GCJ=yes
16035       hardcode_shlibpath_var_GCJ=no
16036       ;;
16037
16038     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16039     freebsd2*)
16040       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16041       hardcode_direct_GCJ=yes
16042       hardcode_minus_L_GCJ=yes
16043       hardcode_shlibpath_var_GCJ=no
16044       ;;
16045
16046     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16047     freebsd*)
16048       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16049       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16050       hardcode_direct_GCJ=yes
16051       hardcode_shlibpath_var_GCJ=no
16052       ;;
16053
16054     hpux9*)
16055       if test "$GCC" = yes; then
16056         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'
16057       else
16058         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'
16059       fi
16060       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16061       hardcode_libdir_separator_GCJ=:
16062       hardcode_direct_GCJ=yes
16063
16064       # hardcode_minus_L: Not really in the search PATH,
16065       # but as the default location of the library.
16066       hardcode_minus_L_GCJ=yes
16067       export_dynamic_flag_spec_GCJ='${wl}-E'
16068       ;;
16069
16070     hpux10* | hpux11*)
16071       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16072         case "$host_cpu" in
16073         hppa*64*|ia64*)
16074           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16075           ;;
16076         *)
16077           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16078           ;;
16079         esac
16080       else
16081         case "$host_cpu" in
16082         hppa*64*|ia64*)
16083           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16084           ;;
16085         *)
16086           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16087           ;;
16088         esac
16089       fi
16090       if test "$with_gnu_ld" = no; then
16091         case "$host_cpu" in
16092         hppa*64*)
16093           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16094           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16095           hardcode_libdir_separator_GCJ=:
16096           hardcode_direct_GCJ=no
16097           hardcode_shlibpath_var_GCJ=no
16098           ;;
16099         ia64*)
16100           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101           hardcode_direct_GCJ=no
16102           hardcode_shlibpath_var_GCJ=no
16103
16104           # hardcode_minus_L: Not really in the search PATH,
16105           # but as the default location of the library.
16106           hardcode_minus_L_GCJ=yes
16107           ;;
16108         *)
16109           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16110           hardcode_libdir_separator_GCJ=:
16111           hardcode_direct_GCJ=yes
16112           export_dynamic_flag_spec_GCJ='${wl}-E'
16113
16114           # hardcode_minus_L: Not really in the search PATH,
16115           # but as the default location of the library.
16116           hardcode_minus_L_GCJ=yes
16117           ;;
16118         esac
16119       fi
16120       ;;
16121
16122     irix5* | irix6* | nonstopux*)
16123       if test "$GCC" = yes; then
16124         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'
16125       else
16126         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'
16127         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16128       fi
16129       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130       hardcode_libdir_separator_GCJ=:
16131       link_all_deplibs_GCJ=yes
16132       ;;
16133
16134     netbsd*)
16135       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16136         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16137       else
16138         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16139       fi
16140       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16141       hardcode_direct_GCJ=yes
16142       hardcode_shlibpath_var_GCJ=no
16143       ;;
16144
16145     newsos6)
16146       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147       hardcode_direct_GCJ=yes
16148       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16149       hardcode_libdir_separator_GCJ=:
16150       hardcode_shlibpath_var_GCJ=no
16151       ;;
16152
16153     openbsd*)
16154       hardcode_direct_GCJ=yes
16155       hardcode_shlibpath_var_GCJ=no
16156       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16157         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16158         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16159         export_dynamic_flag_spec_GCJ='${wl}-E'
16160       else
16161        case $host_os in
16162          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16163            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16164            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16165            ;;
16166          *)
16167            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16168            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16169            ;;
16170        esac
16171       fi
16172       ;;
16173
16174     os2*)
16175       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16176       hardcode_minus_L_GCJ=yes
16177       allow_undefined_flag_GCJ=unsupported
16178       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'
16179       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16180       ;;
16181
16182     osf3*)
16183       if test "$GCC" = yes; then
16184         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16185         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'
16186       else
16187         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16188         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'
16189       fi
16190       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16191       hardcode_libdir_separator_GCJ=:
16192       ;;
16193
16194     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16195       if test "$GCC" = yes; then
16196         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16197         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'
16198         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16199       else
16200         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16201         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'
16202         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~
16203         $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'
16204
16205         # Both c and cxx compiler support -rpath directly
16206         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16207       fi
16208       hardcode_libdir_separator_GCJ=:
16209       ;;
16210
16211     sco3.2v5*)
16212       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213       hardcode_shlibpath_var_GCJ=no
16214       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16215       runpath_var=LD_RUN_PATH
16216       hardcode_runpath_var=yes
16217       ;;
16218
16219     solaris*)
16220       no_undefined_flag_GCJ=' -z text'
16221       if test "$GCC" = yes; then
16222         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16224           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16225       else
16226         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16227         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16228         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16229       fi
16230       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16231       hardcode_shlibpath_var_GCJ=no
16232       case $host_os in
16233       solaris2.[0-5] | solaris2.[0-5].*) ;;
16234       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16235         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16236       esac
16237       link_all_deplibs_GCJ=yes
16238       ;;
16239
16240     sunos4*)
16241       if test "x$host_vendor" = xsequent; then
16242         # Use $CC to link under sequent, because it throws in some extra .o
16243         # files that make .init and .fini sections work.
16244         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16245       else
16246         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16247       fi
16248       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16249       hardcode_direct_GCJ=yes
16250       hardcode_minus_L_GCJ=yes
16251       hardcode_shlibpath_var_GCJ=no
16252       ;;
16253
16254     sysv4)
16255       case $host_vendor in
16256         sni)
16257           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258           hardcode_direct_GCJ=yes # is this really true???
16259         ;;
16260         siemens)
16261           ## LD is ld it makes a PLAMLIB
16262           ## CC just makes a GrossModule.
16263           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16264           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16265           hardcode_direct_GCJ=no
16266         ;;
16267         motorola)
16268           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16269           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16270         ;;
16271       esac
16272       runpath_var='LD_RUN_PATH'
16273       hardcode_shlibpath_var_GCJ=no
16274       ;;
16275
16276     sysv4.3*)
16277       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16278       hardcode_shlibpath_var_GCJ=no
16279       export_dynamic_flag_spec_GCJ='-Bexport'
16280       ;;
16281
16282     sysv4*MP*)
16283       if test -d /usr/nec; then
16284         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16285         hardcode_shlibpath_var_GCJ=no
16286         runpath_var=LD_RUN_PATH
16287         hardcode_runpath_var=yes
16288         ld_shlibs_GCJ=yes
16289       fi
16290       ;;
16291
16292     sysv4.2uw2*)
16293       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16294       hardcode_direct_GCJ=yes
16295       hardcode_minus_L_GCJ=no
16296       hardcode_shlibpath_var_GCJ=no
16297       hardcode_runpath_var=yes
16298       runpath_var=LD_RUN_PATH
16299       ;;
16300
16301    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16302       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16303       if test "$GCC" = yes; then
16304         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305       else
16306         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16307       fi
16308       runpath_var='LD_RUN_PATH'
16309       hardcode_shlibpath_var_GCJ=no
16310       ;;
16311
16312     sysv5*)
16313       no_undefined_flag_GCJ=' -z text'
16314       # $CC -shared without GNU ld will not create a library from C++
16315       # object files and a static libstdc++, better avoid it by now
16316       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16318                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16319       hardcode_libdir_flag_spec_GCJ=
16320       hardcode_shlibpath_var_GCJ=no
16321       runpath_var='LD_RUN_PATH'
16322       ;;
16323
16324     uts4*)
16325       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16327       hardcode_shlibpath_var_GCJ=no
16328       ;;
16329
16330     *)
16331       ld_shlibs_GCJ=no
16332       ;;
16333     esac
16334   fi
16335
16336 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16337 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16338 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16339
16340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16341 if test "$GCC" = yes; then
16342   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16343 fi
16344
16345 #
16346 # Do we need to explicitly link libc?
16347 #
16348 case "x$archive_cmds_need_lc_GCJ" in
16349 x|xyes)
16350   # Assume -lc should be added
16351   archive_cmds_need_lc_GCJ=yes
16352
16353   if test "$enable_shared" = yes && test "$GCC" = yes; then
16354     case $archive_cmds_GCJ in
16355     *'~'*)
16356       # FIXME: we may have to deal with multi-command sequences.
16357       ;;
16358     '$CC '*)
16359       # Test whether the compiler implicitly links with -lc since on some
16360       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16361       # to ld, don't add -lc before -lgcc.
16362       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16363 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16364       $rm conftest*
16365       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16366
16367       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368   (eval $ac_compile) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } 2>conftest.err; then
16372         soname=conftest
16373         lib=conftest
16374         libobjs=conftest.$ac_objext
16375         deplibs=
16376         wl=$lt_prog_compiler_wl_GCJ
16377         compiler_flags=-v
16378         linker_flags=-v
16379         verstring=
16380         output_objdir=.
16381         libname=conftest
16382         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16383         allow_undefined_flag_GCJ=
16384         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16385   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }
16389         then
16390           archive_cmds_need_lc_GCJ=no
16391         else
16392           archive_cmds_need_lc_GCJ=yes
16393         fi
16394         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16395       else
16396         cat conftest.err 1>&5
16397       fi
16398       $rm conftest*
16399       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16400 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16401       ;;
16402     esac
16403   fi
16404   ;;
16405 esac
16406
16407 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16409 hardcode_action_GCJ=
16410 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16411    test -n "$runpath_var GCJ" || \
16412    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16413
16414   # We can hardcode non-existant directories.
16415   if test "$hardcode_direct_GCJ" != no &&
16416      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16417      # have to relink, otherwise we might link with an installed library
16418      # when we should be linking with a yet-to-be-installed one
16419      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16420      test "$hardcode_minus_L_GCJ" != no; then
16421     # Linking always hardcodes the temporary library directory.
16422     hardcode_action_GCJ=relink
16423   else
16424     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16425     hardcode_action_GCJ=immediate
16426   fi
16427 else
16428   # We cannot hardcode anything, or else we can only hardcode existing
16429   # directories.
16430   hardcode_action_GCJ=unsupported
16431 fi
16432 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16433 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16434
16435 if test "$hardcode_action_GCJ" = relink; then
16436   # Fast installation is not supported
16437   enable_fast_install=no
16438 elif test "$shlibpath_overrides_runpath" = yes ||
16439      test "$enable_shared" = no; then
16440   # Fast installation is not necessary
16441   enable_fast_install=needless
16442 fi
16443
16444 striplib=
16445 old_striplib=
16446 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16447 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16448 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16449   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16450   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16451   echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6
16453 else
16454 # FIXME - insert some real tests, host_os isn't really good enough
16455   case $host_os in
16456    darwin*)
16457        if test -n "$STRIP" ; then
16458          striplib="$STRIP -x"
16459          echo "$as_me:$LINENO: result: yes" >&5
16460 echo "${ECHO_T}yes" >&6
16461        else
16462   echo "$as_me:$LINENO: result: no" >&5
16463 echo "${ECHO_T}no" >&6
16464 fi
16465        ;;
16466    *)
16467   echo "$as_me:$LINENO: result: no" >&5
16468 echo "${ECHO_T}no" >&6
16469     ;;
16470   esac
16471 fi
16472
16473 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16474 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16475 library_names_spec=
16476 libname_spec='lib$name'
16477 soname_spec=
16478 shrext=".so"
16479 postinstall_cmds=
16480 postuninstall_cmds=
16481 finish_cmds=
16482 finish_eval=
16483 shlibpath_var=
16484 shlibpath_overrides_runpath=unknown
16485 version_type=none
16486 dynamic_linker="$host_os ld.so"
16487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16488 if test "$GCC" = yes; then
16489   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16490   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16491     # if the path contains ";" then we assume it to be the separator
16492     # otherwise default to the standard path separator (i.e. ":") - it is
16493     # assumed that no part of a normal pathname contains ";" but that should
16494     # okay in the real world where ";" in dirpaths is itself problematic.
16495     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16496   else
16497     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16498   fi
16499 else
16500   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16501 fi
16502 need_lib_prefix=unknown
16503 hardcode_into_libs=no
16504
16505 # when you set need_version to no, make sure it does not cause -set_version
16506 # flags to be left without arguments
16507 need_version=unknown
16508
16509 case $host_os in
16510 aix3*)
16511   version_type=linux
16512   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16513   shlibpath_var=LIBPATH
16514
16515   # AIX 3 has no versioning support, so we append a major version to the name.
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   ;;
16518
16519 aix4* | aix5*)
16520   version_type=linux
16521   need_lib_prefix=no
16522   need_version=no
16523   hardcode_into_libs=yes
16524   if test "$host_cpu" = ia64; then
16525     # AIX 5 supports IA64
16526     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16527     shlibpath_var=LD_LIBRARY_PATH
16528   else
16529     # With GCC up to 2.95.x, collect2 would create an import file
16530     # for dependence libraries.  The import file would start with
16531     # the line `#! .'.  This would cause the generated library to
16532     # depend on `.', always an invalid library.  This was fixed in
16533     # development snapshots of GCC prior to 3.0.
16534     case $host_os in
16535       aix4 | aix4.[01] | aix4.[01].*)
16536       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16537            echo ' yes '
16538            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16539         :
16540       else
16541         can_build_shared=no
16542       fi
16543       ;;
16544     esac
16545     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16546     # soname into executable. Probably we can add versioning support to
16547     # collect2, so additional links can be useful in future.
16548     if test "$aix_use_runtimelinking" = yes; then
16549       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16550       # instead of lib<name>.a to let people know that these are not
16551       # typical AIX shared libraries.
16552       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553     else
16554       # We preserve .a as extension for shared libraries through AIX4.2
16555       # and later when we are not doing run time linking.
16556       library_names_spec='${libname}${release}.a $libname.a'
16557       soname_spec='${libname}${release}${shared_ext}$major'
16558     fi
16559     shlibpath_var=LIBPATH
16560   fi
16561   ;;
16562
16563 amigaos*)
16564   library_names_spec='$libname.ixlibrary $libname.a'
16565   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16566   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'
16567   ;;
16568
16569 beos*)
16570   library_names_spec='${libname}${shared_ext}'
16571   dynamic_linker="$host_os ld.so"
16572   shlibpath_var=LIBRARY_PATH
16573   ;;
16574
16575 bsdi4*)
16576   version_type=linux
16577   need_version=no
16578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579   soname_spec='${libname}${release}${shared_ext}$major'
16580   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16581   shlibpath_var=LD_LIBRARY_PATH
16582   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16583   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16584   # the default ld.so.conf also contains /usr/contrib/lib and
16585   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16586   # libtool to hard-code these into programs
16587   ;;
16588
16589 cygwin* | mingw* | pw32*)
16590   version_type=windows
16591   shrext=".dll"
16592   need_version=no
16593   need_lib_prefix=no
16594
16595   case $GCC,$host_os in
16596   yes,cygwin* | yes,mingw* | yes,pw32*)
16597     library_names_spec='$libname.dll.a'
16598     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16599     postinstall_cmds='base_file=`basename \${file}`~
16600       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16601       dldir=$destdir/`dirname \$dlpath`~
16602       test -d \$dldir || mkdir -p \$dldir~
16603       $install_prog $dir/$dlname \$dldir/$dlname'
16604     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16605       dlpath=$dir/\$dldll~
16606        $rm \$dlpath'
16607     shlibpath_overrides_runpath=yes
16608
16609     case $host_os in
16610     cygwin*)
16611       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16612       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16613       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16614       ;;
16615     mingw*)
16616       # MinGW DLLs use traditional 'lib' prefix
16617       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16618       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16619       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16620         # It is most probably a Windows format PATH printed by
16621         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16622         # path with ; separators, and with drive letters. We can handle the
16623         # drive letters (cygwin fileutils understands them), so leave them,
16624         # especially as we might pass files found there to a mingw objdump,
16625         # which wouldn't understand a cygwinified path. Ahh.
16626         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16627       else
16628         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16629       fi
16630       ;;
16631     pw32*)
16632       # pw32 DLLs use 'pw' prefix rather than 'lib'
16633       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16634       ;;
16635     esac
16636     ;;
16637
16638   *)
16639     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16640     ;;
16641   esac
16642   dynamic_linker='Win32 ld.exe'
16643   # FIXME: first we should search . and the directory the executable is in
16644   shlibpath_var=PATH
16645   ;;
16646
16647 darwin* | rhapsody*)
16648   dynamic_linker="$host_os dyld"
16649   version_type=darwin
16650   need_lib_prefix=no
16651   need_version=no
16652   # FIXME: Relying on posixy $() will cause problems for
16653   #        cross-compilation, but unfortunately the echo tests do not
16654   #        yet detect zsh echo's removal of \ escapes.
16655   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16656   soname_spec='${libname}${release}${major}$shared_ext'
16657   shlibpath_overrides_runpath=yes
16658   shlibpath_var=DYLD_LIBRARY_PATH
16659   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16660   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16661   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16662   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"`
16663   fi
16664   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16665   ;;
16666
16667 dgux*)
16668   version_type=linux
16669   need_lib_prefix=no
16670   need_version=no
16671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16672   soname_spec='${libname}${release}${shared_ext}$major'
16673   shlibpath_var=LD_LIBRARY_PATH
16674   ;;
16675
16676 freebsd1*)
16677   dynamic_linker=no
16678   ;;
16679
16680 freebsd*)
16681   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16682   version_type=freebsd-$objformat
16683   case $version_type in
16684     freebsd-elf*)
16685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16686       need_version=no
16687       need_lib_prefix=no
16688       ;;
16689     freebsd-*)
16690       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16691       need_version=yes
16692       ;;
16693   esac
16694   shlibpath_var=LD_LIBRARY_PATH
16695   case $host_os in
16696   freebsd2*)
16697     shlibpath_overrides_runpath=yes
16698     ;;
16699   freebsd3.01* | freebsdelf3.01*)
16700     shlibpath_overrides_runpath=yes
16701     hardcode_into_libs=yes
16702     ;;
16703   *) # from 3.2 on
16704     shlibpath_overrides_runpath=no
16705     hardcode_into_libs=yes
16706     ;;
16707   esac
16708   ;;
16709
16710 gnu*)
16711   version_type=linux
16712   need_lib_prefix=no
16713   need_version=no
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16715   soname_spec='${libname}${release}${shared_ext}$major'
16716   shlibpath_var=LD_LIBRARY_PATH
16717   hardcode_into_libs=yes
16718   ;;
16719
16720 hpux9* | hpux10* | hpux11*)
16721   # Give a soname corresponding to the major version so that dld.sl refuses to
16722   # link against other versions.
16723   version_type=sunos
16724   need_lib_prefix=no
16725   need_version=no
16726   case "$host_cpu" in
16727   ia64*)
16728     shrext='.so'
16729     hardcode_into_libs=yes
16730     dynamic_linker="$host_os dld.so"
16731     shlibpath_var=LD_LIBRARY_PATH
16732     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734     soname_spec='${libname}${release}${shared_ext}$major'
16735     if test "X$HPUX_IA64_MODE" = X32; then
16736       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16737     else
16738       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16739     fi
16740     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741     ;;
16742    hppa*64*)
16743      shrext='.sl'
16744      hardcode_into_libs=yes
16745      dynamic_linker="$host_os dld.sl"
16746      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749      soname_spec='${libname}${release}${shared_ext}$major'
16750      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16752      ;;
16753    *)
16754     shrext='.sl'
16755     dynamic_linker="$host_os dld.sl"
16756     shlibpath_var=SHLIB_PATH
16757     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759     soname_spec='${libname}${release}${shared_ext}$major'
16760     ;;
16761   esac
16762   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16763   postinstall_cmds='chmod 555 $lib'
16764   ;;
16765
16766 irix5* | irix6* | nonstopux*)
16767   case $host_os in
16768     nonstopux*) version_type=nonstopux ;;
16769     *)
16770         if test "$lt_cv_prog_gnu_ld" = yes; then
16771                 version_type=linux
16772         else
16773                 version_type=irix
16774         fi ;;
16775   esac
16776   need_lib_prefix=no
16777   need_version=no
16778   soname_spec='${libname}${release}${shared_ext}$major'
16779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16780   case $host_os in
16781   irix5* | nonstopux*)
16782     libsuff= shlibsuff=
16783     ;;
16784   *)
16785     case $LD in # libtool.m4 will add one of these switches to LD
16786     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16787       libsuff= shlibsuff= libmagic=32-bit;;
16788     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16789       libsuff=32 shlibsuff=N32 libmagic=N32;;
16790     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16791       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16792     *) libsuff= shlibsuff= libmagic=never-match;;
16793     esac
16794     ;;
16795   esac
16796   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16797   shlibpath_overrides_runpath=no
16798   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16799   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16800   hardcode_into_libs=yes
16801   ;;
16802
16803 # No shared lib support for Linux oldld, aout, or coff.
16804 linux*oldld* | linux*aout* | linux*coff*)
16805   dynamic_linker=no
16806   ;;
16807
16808 # This must be Linux ELF.
16809 linux*)
16810   version_type=linux
16811   need_lib_prefix=no
16812   need_version=no
16813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814   soname_spec='${libname}${release}${shared_ext}$major'
16815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   shlibpath_overrides_runpath=no
16818   # This implies no fast_install, which is unacceptable.
16819   # Some rework will be needed to allow for fast_install
16820   # before this can be enabled.
16821   hardcode_into_libs=yes
16822
16823   # We used to test for /lib/ld.so.1 and disable shared libraries on
16824   # powerpc, because MkLinux only supported shared libraries with the
16825   # GNU dynamic linker.  Since this was broken with cross compilers,
16826   # most powerpc-linux boxes support dynamic linking these days and
16827   # people can always --disable-shared, the test was removed, and we
16828   # assume the GNU/Linux dynamic linker is in use.
16829   dynamic_linker='GNU/Linux ld.so'
16830   ;;
16831
16832 netbsd*)
16833   version_type=sunos
16834   need_lib_prefix=no
16835   need_version=no
16836   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839     dynamic_linker='NetBSD (a.out) ld.so'
16840   else
16841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16842     soname_spec='${libname}${release}${shared_ext}$major'
16843     dynamic_linker='NetBSD ld.elf_so'
16844   fi
16845   shlibpath_var=LD_LIBRARY_PATH
16846   shlibpath_overrides_runpath=yes
16847   hardcode_into_libs=yes
16848   ;;
16849
16850 newsos6)
16851   version_type=linux
16852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853   shlibpath_var=LD_LIBRARY_PATH
16854   shlibpath_overrides_runpath=yes
16855   ;;
16856
16857 nto-qnx)
16858   version_type=linux
16859   need_lib_prefix=no
16860   need_version=no
16861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862   soname_spec='${libname}${release}${shared_ext}$major'
16863   shlibpath_var=LD_LIBRARY_PATH
16864   shlibpath_overrides_runpath=yes
16865   ;;
16866
16867 openbsd*)
16868   version_type=sunos
16869   need_lib_prefix=no
16870   need_version=no
16871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16872   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16873   shlibpath_var=LD_LIBRARY_PATH
16874   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16875     case $host_os in
16876       openbsd2.[89] | openbsd2.[89].*)
16877         shlibpath_overrides_runpath=no
16878         ;;
16879       *)
16880         shlibpath_overrides_runpath=yes
16881         ;;
16882       esac
16883   else
16884     shlibpath_overrides_runpath=yes
16885   fi
16886   ;;
16887
16888 os2*)
16889   libname_spec='$name'
16890   shrext=".dll"
16891   need_lib_prefix=no
16892   library_names_spec='$libname${shared_ext} $libname.a'
16893   dynamic_linker='OS/2 ld.exe'
16894   shlibpath_var=LIBPATH
16895   ;;
16896
16897 osf3* | osf4* | osf5*)
16898   version_type=osf
16899   need_lib_prefix=no
16900   need_version=no
16901   soname_spec='${libname}${release}${shared_ext}$major'
16902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903   shlibpath_var=LD_LIBRARY_PATH
16904   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16905   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16906   ;;
16907
16908 sco3.2v5*)
16909   version_type=osf
16910   soname_spec='${libname}${release}${shared_ext}$major'
16911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912   shlibpath_var=LD_LIBRARY_PATH
16913   ;;
16914
16915 solaris*)
16916   version_type=linux
16917   need_lib_prefix=no
16918   need_version=no
16919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920   soname_spec='${libname}${release}${shared_ext}$major'
16921   shlibpath_var=LD_LIBRARY_PATH
16922   shlibpath_overrides_runpath=yes
16923   hardcode_into_libs=yes
16924   # ldd complains unless libraries are executable
16925   postinstall_cmds='chmod +x $lib'
16926   ;;
16927
16928 sunos4*)
16929   version_type=sunos
16930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16931   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16932   shlibpath_var=LD_LIBRARY_PATH
16933   shlibpath_overrides_runpath=yes
16934   if test "$with_gnu_ld" = yes; then
16935     need_lib_prefix=no
16936   fi
16937   need_version=yes
16938   ;;
16939
16940 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16941   version_type=linux
16942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943   soname_spec='${libname}${release}${shared_ext}$major'
16944   shlibpath_var=LD_LIBRARY_PATH
16945   case $host_vendor in
16946     sni)
16947       shlibpath_overrides_runpath=no
16948       need_lib_prefix=no
16949       export_dynamic_flag_spec='${wl}-Blargedynsym'
16950       runpath_var=LD_RUN_PATH
16951       ;;
16952     siemens)
16953       need_lib_prefix=no
16954       ;;
16955     motorola)
16956       need_lib_prefix=no
16957       need_version=no
16958       shlibpath_overrides_runpath=no
16959       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16960       ;;
16961   esac
16962   ;;
16963
16964 sysv4*MP*)
16965   if test -d /usr/nec ;then
16966     version_type=linux
16967     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16968     soname_spec='$libname${shared_ext}.$major'
16969     shlibpath_var=LD_LIBRARY_PATH
16970   fi
16971   ;;
16972
16973 uts4*)
16974   version_type=linux
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   shlibpath_var=LD_LIBRARY_PATH
16978   ;;
16979
16980 *)
16981   dynamic_linker=no
16982   ;;
16983 esac
16984 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16985 echo "${ECHO_T}$dynamic_linker" >&6
16986 test "$dynamic_linker" = no && can_build_shared=no
16987
16988 if test "x$enable_dlopen" != xyes; then
16989   enable_dlopen=unknown
16990   enable_dlopen_self=unknown
16991   enable_dlopen_self_static=unknown
16992 else
16993   lt_cv_dlopen=no
16994   lt_cv_dlopen_libs=
16995
16996   case $host_os in
16997   beos*)
16998     lt_cv_dlopen="load_add_on"
16999     lt_cv_dlopen_libs=
17000     lt_cv_dlopen_self=yes
17001     ;;
17002
17003   mingw* | pw32*)
17004     lt_cv_dlopen="LoadLibrary"
17005     lt_cv_dlopen_libs=
17006    ;;
17007
17008   cygwin*)
17009     lt_cv_dlopen="dlopen"
17010     lt_cv_dlopen_libs=
17011    ;;
17012
17013   darwin*)
17014   # if libdl is installed we need to link against it
17015     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17018   echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020   ac_check_lib_save_LIBS=$LIBS
17021 LIBS="-ldl  $LIBS"
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028
17029 /* Override any gcc2 internal prototype to avoid an error.  */
17030 #ifdef __cplusplus
17031 extern "C"
17032 #endif
17033 /* We use char because int might match the return type of a gcc2
17034    builtin and then its argument prototype would still apply.  */
17035 char dlopen ();
17036 int
17037 main ()
17038 {
17039 dlopen ();
17040   ;
17041   return 0;
17042 }
17043 _ACEOF
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046   (eval $ac_link) 2>conftest.er1
17047   ac_status=$?
17048   grep -v '^ *+' conftest.er1 >conftest.err
17049   rm -f conftest.er1
17050   cat conftest.err >&5
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); } &&
17053          { ac_try='test -z "$ac_c_werror_flag"
17054                          || test ! -s conftest.err'
17055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056   (eval $ac_try) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; } &&
17060          { ac_try='test -s conftest$ac_exeext'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; }; then
17066   ac_cv_lib_dl_dlopen=yes
17067 else
17068   echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071 ac_cv_lib_dl_dlopen=no
17072 fi
17073 rm -f conftest.err conftest.$ac_objext \
17074       conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17076 fi
17077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17079 if test $ac_cv_lib_dl_dlopen = yes; then
17080   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17081 else
17082
17083     lt_cv_dlopen="dyld"
17084     lt_cv_dlopen_libs=
17085     lt_cv_dlopen_self=yes
17086
17087 fi
17088
17089    ;;
17090
17091   *)
17092     echo "$as_me:$LINENO: checking for shl_load" >&5
17093 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17094 if test "${ac_cv_func_shl_load+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h.  */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h.  */
17103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17105 #define shl_load innocuous_shl_load
17106
17107 /* System header to define __stub macros and hopefully few prototypes,
17108     which can conflict with char shl_load (); below.
17109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110     <limits.h> exists even on freestanding compilers.  */
17111
17112 #ifdef __STDC__
17113 # include <limits.h>
17114 #else
17115 # include <assert.h>
17116 #endif
17117
17118 #undef shl_load
17119
17120 /* Override any gcc2 internal prototype to avoid an error.  */
17121 #ifdef __cplusplus
17122 extern "C"
17123 {
17124 #endif
17125 /* We use char because int might match the return type of a gcc2
17126    builtin and then its argument prototype would still apply.  */
17127 char shl_load ();
17128 /* The GNU C library defines this for functions which it implements
17129     to always fail with ENOSYS.  Some functions are actually named
17130     something starting with __ and the normal name is an alias.  */
17131 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17132 choke me
17133 #else
17134 char (*f) () = shl_load;
17135 #endif
17136 #ifdef __cplusplus
17137 }
17138 #endif
17139
17140 int
17141 main ()
17142 {
17143 return f != shl_load;
17144   ;
17145   return 0;
17146 }
17147 _ACEOF
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150   (eval $ac_link) 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } &&
17157          { ac_try='test -z "$ac_c_werror_flag"
17158                          || test ! -s conftest.err'
17159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160   (eval $ac_try) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; } &&
17164          { ac_try='test -s conftest$ac_exeext'
17165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166   (eval $ac_try) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; }; then
17170   ac_cv_func_shl_load=yes
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 ac_cv_func_shl_load=no
17176 fi
17177 rm -f conftest.err conftest.$ac_objext \
17178       conftest$ac_exeext conftest.$ac_ext
17179 fi
17180 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17181 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17182 if test $ac_cv_func_shl_load = yes; then
17183   lt_cv_dlopen="shl_load"
17184 else
17185   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17186 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17187 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17188   echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190   ac_check_lib_save_LIBS=$LIBS
17191 LIBS="-ldld  $LIBS"
17192 cat >conftest.$ac_ext <<_ACEOF
17193 /* confdefs.h.  */
17194 _ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h.  */
17198
17199 /* Override any gcc2 internal prototype to avoid an error.  */
17200 #ifdef __cplusplus
17201 extern "C"
17202 #endif
17203 /* We use char because int might match the return type of a gcc2
17204    builtin and then its argument prototype would still apply.  */
17205 char shl_load ();
17206 int
17207 main ()
17208 {
17209 shl_load ();
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 rm -f conftest.$ac_objext conftest$ac_exeext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216   (eval $ac_link) 2>conftest.er1
17217   ac_status=$?
17218   grep -v '^ *+' conftest.er1 >conftest.err
17219   rm -f conftest.er1
17220   cat conftest.err >&5
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } &&
17223          { ac_try='test -z "$ac_c_werror_flag"
17224                          || test ! -s conftest.err'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; } &&
17230          { ac_try='test -s conftest$ac_exeext'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; }; then
17236   ac_cv_lib_dld_shl_load=yes
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ac_cv_lib_dld_shl_load=no
17242 fi
17243 rm -f conftest.err conftest.$ac_objext \
17244       conftest$ac_exeext conftest.$ac_ext
17245 LIBS=$ac_check_lib_save_LIBS
17246 fi
17247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17248 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17249 if test $ac_cv_lib_dld_shl_load = yes; then
17250   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17251 else
17252   echo "$as_me:$LINENO: checking for dlopen" >&5
17253 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17254 if test "${ac_cv_func_dlopen+set}" = set; then
17255   echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257   cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h.  */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h.  */
17263 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17265 #define dlopen innocuous_dlopen
17266
17267 /* System header to define __stub macros and hopefully few prototypes,
17268     which can conflict with char dlopen (); below.
17269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17270     <limits.h> exists even on freestanding compilers.  */
17271
17272 #ifdef __STDC__
17273 # include <limits.h>
17274 #else
17275 # include <assert.h>
17276 #endif
17277
17278 #undef dlopen
17279
17280 /* Override any gcc2 internal prototype to avoid an error.  */
17281 #ifdef __cplusplus
17282 extern "C"
17283 {
17284 #endif
17285 /* We use char because int might match the return type of a gcc2
17286    builtin and then its argument prototype would still apply.  */
17287 char dlopen ();
17288 /* The GNU C library defines this for functions which it implements
17289     to always fail with ENOSYS.  Some functions are actually named
17290     something starting with __ and the normal name is an alias.  */
17291 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17292 choke me
17293 #else
17294 char (*f) () = dlopen;
17295 #endif
17296 #ifdef __cplusplus
17297 }
17298 #endif
17299
17300 int
17301 main ()
17302 {
17303 return f != dlopen;
17304   ;
17305   return 0;
17306 }
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310   (eval $ac_link) 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } &&
17317          { ac_try='test -z "$ac_c_werror_flag"
17318                          || test ! -s conftest.err'
17319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320   (eval $ac_try) 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); }; } &&
17324          { ac_try='test -s conftest$ac_exeext'
17325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326   (eval $ac_try) 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); }; }; then
17330   ac_cv_func_dlopen=yes
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 ac_cv_func_dlopen=no
17336 fi
17337 rm -f conftest.err conftest.$ac_objext \
17338       conftest$ac_exeext conftest.$ac_ext
17339 fi
17340 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17341 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17342 if test $ac_cv_func_dlopen = yes; then
17343   lt_cv_dlopen="dlopen"
17344 else
17345   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17348   echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350   ac_check_lib_save_LIBS=$LIBS
17351 LIBS="-ldl  $LIBS"
17352 cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358
17359 /* Override any gcc2 internal prototype to avoid an error.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 /* We use char because int might match the return type of a gcc2
17364    builtin and then its argument prototype would still apply.  */
17365 char dlopen ();
17366 int
17367 main ()
17368 {
17369 dlopen ();
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376   (eval $ac_link) 2>conftest.er1
17377   ac_status=$?
17378   grep -v '^ *+' conftest.er1 >conftest.err
17379   rm -f conftest.er1
17380   cat conftest.err >&5
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } &&
17383          { ac_try='test -z "$ac_c_werror_flag"
17384                          || test ! -s conftest.err'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest$ac_exeext'
17391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392   (eval $ac_try) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; }; then
17396   ac_cv_lib_dl_dlopen=yes
17397 else
17398   echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 ac_cv_lib_dl_dlopen=no
17402 fi
17403 rm -f conftest.err conftest.$ac_objext \
17404       conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17409 if test $ac_cv_lib_dl_dlopen = yes; then
17410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17411 else
17412   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17413 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17414 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-lsvld  $LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425
17426 /* Override any gcc2 internal prototype to avoid an error.  */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 /* We use char because int might match the return type of a gcc2
17431    builtin and then its argument prototype would still apply.  */
17432 char dlopen ();
17433 int
17434 main ()
17435 {
17436 dlopen ();
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443   (eval $ac_link) 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag"
17451                          || test ! -s conftest.err'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; } &&
17457          { ac_try='test -s conftest$ac_exeext'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; }; then
17463   ac_cv_lib_svld_dlopen=yes
17464 else
17465   echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468 ac_cv_lib_svld_dlopen=no
17469 fi
17470 rm -f conftest.err conftest.$ac_objext \
17471       conftest$ac_exeext conftest.$ac_ext
17472 LIBS=$ac_check_lib_save_LIBS
17473 fi
17474 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17475 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17476 if test $ac_cv_lib_svld_dlopen = yes; then
17477   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17478 else
17479   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17480 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17482   echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484   ac_check_lib_save_LIBS=$LIBS
17485 LIBS="-ldld  $LIBS"
17486 cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492
17493 /* Override any gcc2 internal prototype to avoid an error.  */
17494 #ifdef __cplusplus
17495 extern "C"
17496 #endif
17497 /* We use char because int might match the return type of a gcc2
17498    builtin and then its argument prototype would still apply.  */
17499 char dld_link ();
17500 int
17501 main ()
17502 {
17503 dld_link ();
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510   (eval $ac_link) 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } &&
17517          { ac_try='test -z "$ac_c_werror_flag"
17518                          || test ! -s conftest.err'
17519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520   (eval $ac_try) 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; } &&
17524          { ac_try='test -s conftest$ac_exeext'
17525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526   (eval $ac_try) 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; }; then
17530   ac_cv_lib_dld_dld_link=yes
17531 else
17532   echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 ac_cv_lib_dld_dld_link=no
17536 fi
17537 rm -f conftest.err conftest.$ac_objext \
17538       conftest$ac_exeext conftest.$ac_ext
17539 LIBS=$ac_check_lib_save_LIBS
17540 fi
17541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17543 if test $ac_cv_lib_dld_dld_link = yes; then
17544   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17545 fi
17546
17547
17548 fi
17549
17550
17551 fi
17552
17553
17554 fi
17555
17556
17557 fi
17558
17559
17560 fi
17561
17562     ;;
17563   esac
17564
17565   if test "x$lt_cv_dlopen" != xno; then
17566     enable_dlopen=yes
17567   else
17568     enable_dlopen=no
17569   fi
17570
17571   case $lt_cv_dlopen in
17572   dlopen)
17573     save_CPPFLAGS="$CPPFLAGS"
17574     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17575
17576     save_LDFLAGS="$LDFLAGS"
17577     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17578
17579     save_LIBS="$LIBS"
17580     LIBS="$lt_cv_dlopen_libs $LIBS"
17581
17582     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17583 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17584 if test "${lt_cv_dlopen_self+set}" = set; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587           if test "$cross_compiling" = yes; then :
17588   lt_cv_dlopen_self=cross
17589 else
17590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17591   lt_status=$lt_dlunknown
17592   cat > conftest.$ac_ext <<EOF
17593 #line 17593 "configure"
17594 #include "confdefs.h"
17595
17596 #if HAVE_DLFCN_H
17597 #include <dlfcn.h>
17598 #endif
17599
17600 #include <stdio.h>
17601
17602 #ifdef RTLD_GLOBAL
17603 #  define LT_DLGLOBAL           RTLD_GLOBAL
17604 #else
17605 #  ifdef DL_GLOBAL
17606 #    define LT_DLGLOBAL         DL_GLOBAL
17607 #  else
17608 #    define LT_DLGLOBAL         0
17609 #  endif
17610 #endif
17611
17612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17613    find out it does not work in some platform. */
17614 #ifndef LT_DLLAZY_OR_NOW
17615 #  ifdef RTLD_LAZY
17616 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17617 #  else
17618 #    ifdef DL_LAZY
17619 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17620 #    else
17621 #      ifdef RTLD_NOW
17622 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17623 #      else
17624 #        ifdef DL_NOW
17625 #          define LT_DLLAZY_OR_NOW      DL_NOW
17626 #        else
17627 #          define LT_DLLAZY_OR_NOW      0
17628 #        endif
17629 #      endif
17630 #    endif
17631 #  endif
17632 #endif
17633
17634 #ifdef __cplusplus
17635 extern "C" void exit (int);
17636 #endif
17637
17638 void fnord() { int i=42;}
17639 int main ()
17640 {
17641   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17642   int status = $lt_dlunknown;
17643
17644   if (self)
17645     {
17646       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17647       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17648       /* dlclose (self); */
17649     }
17650
17651     exit (status);
17652 }
17653 EOF
17654   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655   (eval $ac_link) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659     (./conftest; exit; ) 2>/dev/null
17660     lt_status=$?
17661     case x$lt_status in
17662       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17665     esac
17666   else :
17667     # compilation failed
17668     lt_cv_dlopen_self=no
17669   fi
17670 fi
17671 rm -fr conftest*
17672
17673
17674 fi
17675 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17677
17678     if test "x$lt_cv_dlopen_self" = xyes; then
17679       LDFLAGS="$LDFLAGS $link_static_flag"
17680       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17682 if test "${lt_cv_dlopen_self_static+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685           if test "$cross_compiling" = yes; then :
17686   lt_cv_dlopen_self_static=cross
17687 else
17688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689   lt_status=$lt_dlunknown
17690   cat > conftest.$ac_ext <<EOF
17691 #line 17691 "configure"
17692 #include "confdefs.h"
17693
17694 #if HAVE_DLFCN_H
17695 #include <dlfcn.h>
17696 #endif
17697
17698 #include <stdio.h>
17699
17700 #ifdef RTLD_GLOBAL
17701 #  define LT_DLGLOBAL           RTLD_GLOBAL
17702 #else
17703 #  ifdef DL_GLOBAL
17704 #    define LT_DLGLOBAL         DL_GLOBAL
17705 #  else
17706 #    define LT_DLGLOBAL         0
17707 #  endif
17708 #endif
17709
17710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711    find out it does not work in some platform. */
17712 #ifndef LT_DLLAZY_OR_NOW
17713 #  ifdef RTLD_LAZY
17714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17715 #  else
17716 #    ifdef DL_LAZY
17717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17718 #    else
17719 #      ifdef RTLD_NOW
17720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17721 #      else
17722 #        ifdef DL_NOW
17723 #          define LT_DLLAZY_OR_NOW      DL_NOW
17724 #        else
17725 #          define LT_DLLAZY_OR_NOW      0
17726 #        endif
17727 #      endif
17728 #    endif
17729 #  endif
17730 #endif
17731
17732 #ifdef __cplusplus
17733 extern "C" void exit (int);
17734 #endif
17735
17736 void fnord() { int i=42;}
17737 int main ()
17738 {
17739   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740   int status = $lt_dlunknown;
17741
17742   if (self)
17743     {
17744       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17745       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746       /* dlclose (self); */
17747     }
17748
17749     exit (status);
17750 }
17751 EOF
17752   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753   (eval $ac_link) 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17757     (./conftest; exit; ) 2>/dev/null
17758     lt_status=$?
17759     case x$lt_status in
17760       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17761       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17762       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17763     esac
17764   else :
17765     # compilation failed
17766     lt_cv_dlopen_self_static=no
17767   fi
17768 fi
17769 rm -fr conftest*
17770
17771
17772 fi
17773 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17775     fi
17776
17777     CPPFLAGS="$save_CPPFLAGS"
17778     LDFLAGS="$save_LDFLAGS"
17779     LIBS="$save_LIBS"
17780     ;;
17781   esac
17782
17783   case $lt_cv_dlopen_self in
17784   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17785   *) enable_dlopen_self=unknown ;;
17786   esac
17787
17788   case $lt_cv_dlopen_self_static in
17789   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17790   *) enable_dlopen_self_static=unknown ;;
17791   esac
17792 fi
17793
17794
17795 # The else clause should only fire when bootstrapping the
17796 # libtool distribution, otherwise you forgot to ship ltmain.sh
17797 # with your package, and you will get complaints that there are
17798 # no rules to generate ltmain.sh.
17799 if test -f "$ltmain"; then
17800   # See if we are running on zsh, and set the options which allow our commands through
17801   # without removal of \ escapes.
17802   if test -n "${ZSH_VERSION+set}" ; then
17803     setopt NO_GLOB_SUBST
17804   fi
17805   # Now quote all the things that may contain metacharacters while being
17806   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17807   # variables and quote the copies for generation of the libtool script.
17808   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17809     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811     deplibs_check_method reload_flag reload_cmds need_locks \
17812     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813     lt_cv_sys_global_symbol_to_c_name_address \
17814     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17815     old_postinstall_cmds old_postuninstall_cmds \
17816     compiler_GCJ \
17817     CC_GCJ \
17818     LD_GCJ \
17819     lt_prog_compiler_wl_GCJ \
17820     lt_prog_compiler_pic_GCJ \
17821     lt_prog_compiler_static_GCJ \
17822     lt_prog_compiler_no_builtin_flag_GCJ \
17823     export_dynamic_flag_spec_GCJ \
17824     thread_safe_flag_spec_GCJ \
17825     whole_archive_flag_spec_GCJ \
17826     enable_shared_with_static_runtimes_GCJ \
17827     old_archive_cmds_GCJ \
17828     old_archive_from_new_cmds_GCJ \
17829     predep_objects_GCJ \
17830     postdep_objects_GCJ \
17831     predeps_GCJ \
17832     postdeps_GCJ \
17833     compiler_lib_search_path_GCJ \
17834     archive_cmds_GCJ \
17835     archive_expsym_cmds_GCJ \
17836     postinstall_cmds_GCJ \
17837     postuninstall_cmds_GCJ \
17838     old_archive_from_expsyms_cmds_GCJ \
17839     allow_undefined_flag_GCJ \
17840     no_undefined_flag_GCJ \
17841     export_symbols_cmds_GCJ \
17842     hardcode_libdir_flag_spec_GCJ \
17843     hardcode_libdir_flag_spec_ld_GCJ \
17844     hardcode_libdir_separator_GCJ \
17845     hardcode_automatic_GCJ \
17846     module_cmds_GCJ \
17847     module_expsym_cmds_GCJ \
17848     lt_cv_prog_compiler_c_o_GCJ \
17849     exclude_expsyms_GCJ \
17850     include_expsyms_GCJ; do
17851
17852     case $var in
17853     old_archive_cmds_GCJ | \
17854     old_archive_from_new_cmds_GCJ | \
17855     archive_cmds_GCJ | \
17856     archive_expsym_cmds_GCJ | \
17857     module_cmds_GCJ | \
17858     module_expsym_cmds_GCJ | \
17859     old_archive_from_expsyms_cmds_GCJ | \
17860     export_symbols_cmds_GCJ | \
17861     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17862     postinstall_cmds | postuninstall_cmds | \
17863     old_postinstall_cmds | old_postuninstall_cmds | \
17864     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17865       # Double-quote double-evaled strings.
17866       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17867       ;;
17868     *)
17869       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17870       ;;
17871     esac
17872   done
17873
17874   case $lt_echo in
17875   *'\$0 --fallback-echo"')
17876     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17877     ;;
17878   esac
17879
17880 cfgfile="$ofile"
17881
17882   cat <<__EOF__ >> "$cfgfile"
17883 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17884
17885 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17886
17887 # Shell to use when invoking shell scripts.
17888 SHELL=$lt_SHELL
17889
17890 # Whether or not to build shared libraries.
17891 build_libtool_libs=$enable_shared
17892
17893 # Whether or not to build static libraries.
17894 build_old_libs=$enable_static
17895
17896 # Whether or not to add -lc for building shared libraries.
17897 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17898
17899 # Whether or not to disallow shared libs when runtime libs are static
17900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17901
17902 # Whether or not to optimize for fast installation.
17903 fast_install=$enable_fast_install
17904
17905 # The host system.
17906 host_alias=$host_alias
17907 host=$host
17908
17909 # An echo program that does not interpret backslashes.
17910 echo=$lt_echo
17911
17912 # The archiver.
17913 AR=$lt_AR
17914 AR_FLAGS=$lt_AR_FLAGS
17915
17916 # A C compiler.
17917 LTCC=$lt_LTCC
17918
17919 # A language-specific compiler.
17920 CC=$lt_compiler_GCJ
17921
17922 # Is the compiler the GNU C compiler?
17923 with_gcc=$GCC_GCJ
17924
17925 # An ERE matcher.
17926 EGREP=$lt_EGREP
17927
17928 # The linker used to build libraries.
17929 LD=$lt_LD_GCJ
17930
17931 # Whether we need hard or soft links.
17932 LN_S=$lt_LN_S
17933
17934 # A BSD-compatible nm program.
17935 NM=$lt_NM
17936
17937 # A symbol stripping program
17938 STRIP=$STRIP
17939
17940 # Used to examine libraries when file_magic_cmd begins "file"
17941 MAGIC_CMD=$MAGIC_CMD
17942
17943 # Used on cygwin: DLL creation program.
17944 DLLTOOL="$DLLTOOL"
17945
17946 # Used on cygwin: object dumper.
17947 OBJDUMP="$OBJDUMP"
17948
17949 # Used on cygwin: assembler.
17950 AS="$AS"
17951
17952 # The name of the directory that contains temporary libtool files.
17953 objdir=$objdir
17954
17955 # How to create reloadable object files.
17956 reload_flag=$lt_reload_flag
17957 reload_cmds=$lt_reload_cmds
17958
17959 # How to pass a linker flag through the compiler.
17960 wl=$lt_lt_prog_compiler_wl_GCJ
17961
17962 # Object file suffix (normally "o").
17963 objext="$ac_objext"
17964
17965 # Old archive suffix (normally "a").
17966 libext="$libext"
17967
17968 # Shared library suffix (normally ".so").
17969 shrext='$shrext'
17970
17971 # Executable file suffix (normally "").
17972 exeext="$exeext"
17973
17974 # Additional compiler flags for building library objects.
17975 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17976 pic_mode=$pic_mode
17977
17978 # What is the maximum length of a command?
17979 max_cmd_len=$lt_cv_sys_max_cmd_len
17980
17981 # Does compiler simultaneously support -c and -o options?
17982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17983
17984 # Must we lock files when doing compilation ?
17985 need_locks=$lt_need_locks
17986
17987 # Do we need the lib prefix for modules?
17988 need_lib_prefix=$need_lib_prefix
17989
17990 # Do we need a version for libraries?
17991 need_version=$need_version
17992
17993 # Whether dlopen is supported.
17994 dlopen_support=$enable_dlopen
17995
17996 # Whether dlopen of programs is supported.
17997 dlopen_self=$enable_dlopen_self
17998
17999 # Whether dlopen of statically linked programs is supported.
18000 dlopen_self_static=$enable_dlopen_self_static
18001
18002 # Compiler flag to prevent dynamic linking.
18003 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18004
18005 # Compiler flag to turn off builtin functions.
18006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18007
18008 # Compiler flag to allow reflexive dlopens.
18009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18010
18011 # Compiler flag to generate shared objects directly from archives.
18012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18013
18014 # Compiler flag to generate thread-safe objects.
18015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18016
18017 # Library versioning type.
18018 version_type=$version_type
18019
18020 # Format of library name prefix.
18021 libname_spec=$lt_libname_spec
18022
18023 # List of archive names.  First name is the real one, the rest are links.
18024 # The last name is the one that the linker finds with -lNAME.
18025 library_names_spec=$lt_library_names_spec
18026
18027 # The coded name of the library, if different from the real name.
18028 soname_spec=$lt_soname_spec
18029
18030 # Commands used to build and install an old-style archive.
18031 RANLIB=$lt_RANLIB
18032 old_archive_cmds=$lt_old_archive_cmds_GCJ
18033 old_postinstall_cmds=$lt_old_postinstall_cmds
18034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18035
18036 # Create an old-style archive from a shared archive.
18037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18038
18039 # Create a temporary old-style archive to link instead of a shared archive.
18040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18041
18042 # Commands used to build and install a shared archive.
18043 archive_cmds=$lt_archive_cmds_GCJ
18044 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18045 postinstall_cmds=$lt_postinstall_cmds
18046 postuninstall_cmds=$lt_postuninstall_cmds
18047
18048 # Commands used to build a loadable module (assumed same as above if empty)
18049 module_cmds=$lt_module_cmds_GCJ
18050 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18051
18052 # Commands to strip libraries.
18053 old_striplib=$lt_old_striplib
18054 striplib=$lt_striplib
18055
18056 # Dependencies to place before the objects being linked to create a
18057 # shared library.
18058 predep_objects=$lt_predep_objects_GCJ
18059
18060 # Dependencies to place after the objects being linked to create a
18061 # shared library.
18062 postdep_objects=$lt_postdep_objects_GCJ
18063
18064 # Dependencies to place before the objects being linked to create a
18065 # shared library.
18066 predeps=$lt_predeps_GCJ
18067
18068 # Dependencies to place after the objects being linked to create a
18069 # shared library.
18070 postdeps=$lt_postdeps_GCJ
18071
18072 # The library search path used internally by the compiler when linking
18073 # a shared library.
18074 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18075
18076 # Method to check whether dependent libraries are shared objects.
18077 deplibs_check_method=$lt_deplibs_check_method
18078
18079 # Command to use when deplibs_check_method == file_magic.
18080 file_magic_cmd=$lt_file_magic_cmd
18081
18082 # Flag that allows shared libraries with undefined symbols to be built.
18083 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18084
18085 # Flag that forces no undefined symbols.
18086 no_undefined_flag=$lt_no_undefined_flag_GCJ
18087
18088 # Commands used to finish a libtool library installation in a directory.
18089 finish_cmds=$lt_finish_cmds
18090
18091 # Same as above, but a single script fragment to be evaled but not shown.
18092 finish_eval=$lt_finish_eval
18093
18094 # Take the output of nm and produce a listing of raw symbols and C names.
18095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18096
18097 # Transform the output of nm in a proper C declaration
18098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18099
18100 # Transform the output of nm in a C name address pair
18101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18102
18103 # This is the shared library runtime path variable.
18104 runpath_var=$runpath_var
18105
18106 # This is the shared library path variable.
18107 shlibpath_var=$shlibpath_var
18108
18109 # Is shlibpath searched before the hard-coded library search path?
18110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18111
18112 # How to hardcode a shared library path into an executable.
18113 hardcode_action=$hardcode_action_GCJ
18114
18115 # Whether we should hardcode library paths into libraries.
18116 hardcode_into_libs=$hardcode_into_libs
18117
18118 # Flag to hardcode \$libdir into a binary during linking.
18119 # This must work even if \$libdir does not exist.
18120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18121
18122 # If ld is used when linking, flag to hardcode \$libdir into
18123 # a binary during linking. This must work even if \$libdir does
18124 # not exist.
18125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18126
18127 # Whether we need a single -rpath flag with a separated argument.
18128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18129
18130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18131 # resulting binary.
18132 hardcode_direct=$hardcode_direct_GCJ
18133
18134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18135 # resulting binary.
18136 hardcode_minus_L=$hardcode_minus_L_GCJ
18137
18138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18139 # the resulting binary.
18140 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18141
18142 # Set to yes if building a shared library automatically hardcodes DIR into the library
18143 # and all subsequent libraries and executables linked against it.
18144 hardcode_automatic=$hardcode_automatic_GCJ
18145
18146 # Variables whose values should be saved in libtool wrapper scripts and
18147 # restored at relink time.
18148 variables_saved_for_relink="$variables_saved_for_relink"
18149
18150 # Whether libtool must link a program against all its dependency libraries.
18151 link_all_deplibs=$link_all_deplibs_GCJ
18152
18153 # Compile-time system search path for libraries
18154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18155
18156 # Run-time system search path for libraries
18157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18158
18159 # Fix the shell variable \$srcfile for the compiler.
18160 fix_srcfile_path="$fix_srcfile_path_GCJ"
18161
18162 # Set to yes if exported symbols are required.
18163 always_export_symbols=$always_export_symbols_GCJ
18164
18165 # The commands to list exported symbols.
18166 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18167
18168 # The commands to extract the exported symbol list from a shared archive.
18169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18170
18171 # Symbols that should not be listed in the preloaded symbols.
18172 exclude_expsyms=$lt_exclude_expsyms_GCJ
18173
18174 # Symbols that must always be exported.
18175 include_expsyms=$lt_include_expsyms_GCJ
18176
18177 # ### END LIBTOOL TAG CONFIG: $tagname
18178
18179 __EOF__
18180
18181
18182 else
18183   # If there is no Makefile yet, we rely on a make rule to execute
18184   # `config.status --recheck' to rerun these tests and create the
18185   # libtool script then.
18186   test -f Makefile && make "$ltmain"
18187 fi
18188
18189
18190 ac_ext=c
18191 ac_cpp='$CPP $CPPFLAGS'
18192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195
18196 CC="$lt_save_CC"
18197
18198         else
18199           tagname=""
18200         fi
18201         ;;
18202
18203       RC)
18204
18205
18206
18207 # Source file extension for RC test sources.
18208 ac_ext=rc
18209
18210 # Object file extension for compiled RC test sources.
18211 objext=o
18212 objext_RC=$objext
18213
18214 # Code to be used in simple compile tests
18215 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18216
18217 # Code to be used in simple link tests
18218 lt_simple_link_test_code="$lt_simple_compile_test_code"
18219
18220 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18221
18222 # If no C compiler was specified, use CC.
18223 LTCC=${LTCC-"$CC"}
18224
18225 # Allow CC to be a program name with arguments.
18226 compiler=$CC
18227
18228
18229 # Allow CC to be a program name with arguments.
18230 lt_save_CC="$CC"
18231 CC=${RC-"windres"}
18232 compiler=$CC
18233 compiler_RC=$CC
18234 lt_cv_prog_compiler_c_o_RC=yes
18235
18236 # The else clause should only fire when bootstrapping the
18237 # libtool distribution, otherwise you forgot to ship ltmain.sh
18238 # with your package, and you will get complaints that there are
18239 # no rules to generate ltmain.sh.
18240 if test -f "$ltmain"; then
18241   # See if we are running on zsh, and set the options which allow our commands through
18242   # without removal of \ escapes.
18243   if test -n "${ZSH_VERSION+set}" ; then
18244     setopt NO_GLOB_SUBST
18245   fi
18246   # Now quote all the things that may contain metacharacters while being
18247   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18248   # variables and quote the copies for generation of the libtool script.
18249   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18250     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18251     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18252     deplibs_check_method reload_flag reload_cmds need_locks \
18253     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18254     lt_cv_sys_global_symbol_to_c_name_address \
18255     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18256     old_postinstall_cmds old_postuninstall_cmds \
18257     compiler_RC \
18258     CC_RC \
18259     LD_RC \
18260     lt_prog_compiler_wl_RC \
18261     lt_prog_compiler_pic_RC \
18262     lt_prog_compiler_static_RC \
18263     lt_prog_compiler_no_builtin_flag_RC \
18264     export_dynamic_flag_spec_RC \
18265     thread_safe_flag_spec_RC \
18266     whole_archive_flag_spec_RC \
18267     enable_shared_with_static_runtimes_RC \
18268     old_archive_cmds_RC \
18269     old_archive_from_new_cmds_RC \
18270     predep_objects_RC \
18271     postdep_objects_RC \
18272     predeps_RC \
18273     postdeps_RC \
18274     compiler_lib_search_path_RC \
18275     archive_cmds_RC \
18276     archive_expsym_cmds_RC \
18277     postinstall_cmds_RC \
18278     postuninstall_cmds_RC \
18279     old_archive_from_expsyms_cmds_RC \
18280     allow_undefined_flag_RC \
18281     no_undefined_flag_RC \
18282     export_symbols_cmds_RC \
18283     hardcode_libdir_flag_spec_RC \
18284     hardcode_libdir_flag_spec_ld_RC \
18285     hardcode_libdir_separator_RC \
18286     hardcode_automatic_RC \
18287     module_cmds_RC \
18288     module_expsym_cmds_RC \
18289     lt_cv_prog_compiler_c_o_RC \
18290     exclude_expsyms_RC \
18291     include_expsyms_RC; do
18292
18293     case $var in
18294     old_archive_cmds_RC | \
18295     old_archive_from_new_cmds_RC | \
18296     archive_cmds_RC | \
18297     archive_expsym_cmds_RC | \
18298     module_cmds_RC | \
18299     module_expsym_cmds_RC | \
18300     old_archive_from_expsyms_cmds_RC | \
18301     export_symbols_cmds_RC | \
18302     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18303     postinstall_cmds | postuninstall_cmds | \
18304     old_postinstall_cmds | old_postuninstall_cmds | \
18305     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18306       # Double-quote double-evaled strings.
18307       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18308       ;;
18309     *)
18310       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18311       ;;
18312     esac
18313   done
18314
18315   case $lt_echo in
18316   *'\$0 --fallback-echo"')
18317     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18318     ;;
18319   esac
18320
18321 cfgfile="$ofile"
18322
18323   cat <<__EOF__ >> "$cfgfile"
18324 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18325
18326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18327
18328 # Shell to use when invoking shell scripts.
18329 SHELL=$lt_SHELL
18330
18331 # Whether or not to build shared libraries.
18332 build_libtool_libs=$enable_shared
18333
18334 # Whether or not to build static libraries.
18335 build_old_libs=$enable_static
18336
18337 # Whether or not to add -lc for building shared libraries.
18338 build_libtool_need_lc=$archive_cmds_need_lc_RC
18339
18340 # Whether or not to disallow shared libs when runtime libs are static
18341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18342
18343 # Whether or not to optimize for fast installation.
18344 fast_install=$enable_fast_install
18345
18346 # The host system.
18347 host_alias=$host_alias
18348 host=$host
18349
18350 # An echo program that does not interpret backslashes.
18351 echo=$lt_echo
18352
18353 # The archiver.
18354 AR=$lt_AR
18355 AR_FLAGS=$lt_AR_FLAGS
18356
18357 # A C compiler.
18358 LTCC=$lt_LTCC
18359
18360 # A language-specific compiler.
18361 CC=$lt_compiler_RC
18362
18363 # Is the compiler the GNU C compiler?
18364 with_gcc=$GCC_RC
18365
18366 # An ERE matcher.
18367 EGREP=$lt_EGREP
18368
18369 # The linker used to build libraries.
18370 LD=$lt_LD_RC
18371
18372 # Whether we need hard or soft links.
18373 LN_S=$lt_LN_S
18374
18375 # A BSD-compatible nm program.
18376 NM=$lt_NM
18377
18378 # A symbol stripping program
18379 STRIP=$STRIP
18380
18381 # Used to examine libraries when file_magic_cmd begins "file"
18382 MAGIC_CMD=$MAGIC_CMD
18383
18384 # Used on cygwin: DLL creation program.
18385 DLLTOOL="$DLLTOOL"
18386
18387 # Used on cygwin: object dumper.
18388 OBJDUMP="$OBJDUMP"
18389
18390 # Used on cygwin: assembler.
18391 AS="$AS"
18392
18393 # The name of the directory that contains temporary libtool files.
18394 objdir=$objdir
18395
18396 # How to create reloadable object files.
18397 reload_flag=$lt_reload_flag
18398 reload_cmds=$lt_reload_cmds
18399
18400 # How to pass a linker flag through the compiler.
18401 wl=$lt_lt_prog_compiler_wl_RC
18402
18403 # Object file suffix (normally "o").
18404 objext="$ac_objext"
18405
18406 # Old archive suffix (normally "a").
18407 libext="$libext"
18408
18409 # Shared library suffix (normally ".so").
18410 shrext='$shrext'
18411
18412 # Executable file suffix (normally "").
18413 exeext="$exeext"
18414
18415 # Additional compiler flags for building library objects.
18416 pic_flag=$lt_lt_prog_compiler_pic_RC
18417 pic_mode=$pic_mode
18418
18419 # What is the maximum length of a command?
18420 max_cmd_len=$lt_cv_sys_max_cmd_len
18421
18422 # Does compiler simultaneously support -c and -o options?
18423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18424
18425 # Must we lock files when doing compilation ?
18426 need_locks=$lt_need_locks
18427
18428 # Do we need the lib prefix for modules?
18429 need_lib_prefix=$need_lib_prefix
18430
18431 # Do we need a version for libraries?
18432 need_version=$need_version
18433
18434 # Whether dlopen is supported.
18435 dlopen_support=$enable_dlopen
18436
18437 # Whether dlopen of programs is supported.
18438 dlopen_self=$enable_dlopen_self
18439
18440 # Whether dlopen of statically linked programs is supported.
18441 dlopen_self_static=$enable_dlopen_self_static
18442
18443 # Compiler flag to prevent dynamic linking.
18444 link_static_flag=$lt_lt_prog_compiler_static_RC
18445
18446 # Compiler flag to turn off builtin functions.
18447 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18448
18449 # Compiler flag to allow reflexive dlopens.
18450 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18451
18452 # Compiler flag to generate shared objects directly from archives.
18453 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18454
18455 # Compiler flag to generate thread-safe objects.
18456 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18457
18458 # Library versioning type.
18459 version_type=$version_type
18460
18461 # Format of library name prefix.
18462 libname_spec=$lt_libname_spec
18463
18464 # List of archive names.  First name is the real one, the rest are links.
18465 # The last name is the one that the linker finds with -lNAME.
18466 library_names_spec=$lt_library_names_spec
18467
18468 # The coded name of the library, if different from the real name.
18469 soname_spec=$lt_soname_spec
18470
18471 # Commands used to build and install an old-style archive.
18472 RANLIB=$lt_RANLIB
18473 old_archive_cmds=$lt_old_archive_cmds_RC
18474 old_postinstall_cmds=$lt_old_postinstall_cmds
18475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18476
18477 # Create an old-style archive from a shared archive.
18478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18479
18480 # Create a temporary old-style archive to link instead of a shared archive.
18481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18482
18483 # Commands used to build and install a shared archive.
18484 archive_cmds=$lt_archive_cmds_RC
18485 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18486 postinstall_cmds=$lt_postinstall_cmds
18487 postuninstall_cmds=$lt_postuninstall_cmds
18488
18489 # Commands used to build a loadable module (assumed same as above if empty)
18490 module_cmds=$lt_module_cmds_RC
18491 module_expsym_cmds=$lt_module_expsym_cmds_RC
18492
18493 # Commands to strip libraries.
18494 old_striplib=$lt_old_striplib
18495 striplib=$lt_striplib
18496
18497 # Dependencies to place before the objects being linked to create a
18498 # shared library.
18499 predep_objects=$lt_predep_objects_RC
18500
18501 # Dependencies to place after the objects being linked to create a
18502 # shared library.
18503 postdep_objects=$lt_postdep_objects_RC
18504
18505 # Dependencies to place before the objects being linked to create a
18506 # shared library.
18507 predeps=$lt_predeps_RC
18508
18509 # Dependencies to place after the objects being linked to create a
18510 # shared library.
18511 postdeps=$lt_postdeps_RC
18512
18513 # The library search path used internally by the compiler when linking
18514 # a shared library.
18515 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18516
18517 # Method to check whether dependent libraries are shared objects.
18518 deplibs_check_method=$lt_deplibs_check_method
18519
18520 # Command to use when deplibs_check_method == file_magic.
18521 file_magic_cmd=$lt_file_magic_cmd
18522
18523 # Flag that allows shared libraries with undefined symbols to be built.
18524 allow_undefined_flag=$lt_allow_undefined_flag_RC
18525
18526 # Flag that forces no undefined symbols.
18527 no_undefined_flag=$lt_no_undefined_flag_RC
18528
18529 # Commands used to finish a libtool library installation in a directory.
18530 finish_cmds=$lt_finish_cmds
18531
18532 # Same as above, but a single script fragment to be evaled but not shown.
18533 finish_eval=$lt_finish_eval
18534
18535 # Take the output of nm and produce a listing of raw symbols and C names.
18536 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18537
18538 # Transform the output of nm in a proper C declaration
18539 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18540
18541 # Transform the output of nm in a C name address pair
18542 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18543
18544 # This is the shared library runtime path variable.
18545 runpath_var=$runpath_var
18546
18547 # This is the shared library path variable.
18548 shlibpath_var=$shlibpath_var
18549
18550 # Is shlibpath searched before the hard-coded library search path?
18551 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18552
18553 # How to hardcode a shared library path into an executable.
18554 hardcode_action=$hardcode_action_RC
18555
18556 # Whether we should hardcode library paths into libraries.
18557 hardcode_into_libs=$hardcode_into_libs
18558
18559 # Flag to hardcode \$libdir into a binary during linking.
18560 # This must work even if \$libdir does not exist.
18561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18562
18563 # If ld is used when linking, flag to hardcode \$libdir into
18564 # a binary during linking. This must work even if \$libdir does
18565 # not exist.
18566 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18567
18568 # Whether we need a single -rpath flag with a separated argument.
18569 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18570
18571 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18572 # resulting binary.
18573 hardcode_direct=$hardcode_direct_RC
18574
18575 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18576 # resulting binary.
18577 hardcode_minus_L=$hardcode_minus_L_RC
18578
18579 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18580 # the resulting binary.
18581 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18582
18583 # Set to yes if building a shared library automatically hardcodes DIR into the library
18584 # and all subsequent libraries and executables linked against it.
18585 hardcode_automatic=$hardcode_automatic_RC
18586
18587 # Variables whose values should be saved in libtool wrapper scripts and
18588 # restored at relink time.
18589 variables_saved_for_relink="$variables_saved_for_relink"
18590
18591 # Whether libtool must link a program against all its dependency libraries.
18592 link_all_deplibs=$link_all_deplibs_RC
18593
18594 # Compile-time system search path for libraries
18595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18596
18597 # Run-time system search path for libraries
18598 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18599
18600 # Fix the shell variable \$srcfile for the compiler.
18601 fix_srcfile_path="$fix_srcfile_path_RC"
18602
18603 # Set to yes if exported symbols are required.
18604 always_export_symbols=$always_export_symbols_RC
18605
18606 # The commands to list exported symbols.
18607 export_symbols_cmds=$lt_export_symbols_cmds_RC
18608
18609 # The commands to extract the exported symbol list from a shared archive.
18610 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18611
18612 # Symbols that should not be listed in the preloaded symbols.
18613 exclude_expsyms=$lt_exclude_expsyms_RC
18614
18615 # Symbols that must always be exported.
18616 include_expsyms=$lt_include_expsyms_RC
18617
18618 # ### END LIBTOOL TAG CONFIG: $tagname
18619
18620 __EOF__
18621
18622
18623 else
18624   # If there is no Makefile yet, we rely on a make rule to execute
18625   # `config.status --recheck' to rerun these tests and create the
18626   # libtool script then.
18627   test -f Makefile && make "$ltmain"
18628 fi
18629
18630
18631 ac_ext=c
18632 ac_cpp='$CPP $CPPFLAGS'
18633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18636
18637 CC="$lt_save_CC"
18638
18639         ;;
18640
18641       *)
18642         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18643 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18644    { (exit 1); exit 1; }; }
18645         ;;
18646       esac
18647
18648       # Append the new tag name to the list of available tags.
18649       if test -n "$tagname" ; then
18650       available_tags="$available_tags $tagname"
18651     fi
18652     fi
18653   done
18654   IFS="$lt_save_ifs"
18655
18656   # Now substitute the updated list of available tags.
18657   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18658     mv "${ofile}T" "$ofile"
18659     chmod +x "$ofile"
18660   else
18661     rm -f "${ofile}T"
18662     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18663 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18664    { (exit 1); exit 1; }; }
18665   fi
18666 fi
18667
18668
18669
18670 # This can be used to rebuild libtool when needed
18671 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18672
18673 # Always use our own libtool.
18674 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18675
18676 # Prevent multiple expansion
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698 # Extract the first word of "dot", so it can be a program name with args.
18699 set dummy dot; ac_word=$2
18700 echo "$as_me:$LINENO: checking for $ac_word" >&5
18701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18702 if test "${ac_cv_path_DOT+set}" = set; then
18703   echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705   case $DOT in
18706   [\\/]* | ?:[\\/]*)
18707   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18708   ;;
18709   *)
18710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18712 do
18713   IFS=$as_save_IFS
18714   test -z "$as_dir" && as_dir=.
18715   for ac_exec_ext in '' $ac_executable_extensions; do
18716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18719     break 2
18720   fi
18721 done
18722 done
18723
18724   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18725   ;;
18726 esac
18727 fi
18728 DOT=$ac_cv_path_DOT
18729
18730 if test -n "$DOT"; then
18731   echo "$as_me:$LINENO: result: $DOT" >&5
18732 echo "${ECHO_T}$DOT" >&6
18733 else
18734   echo "$as_me:$LINENO: result: no" >&5
18735 echo "${ECHO_T}no" >&6
18736 fi
18737
18738 # Extract the first word of "etags", so it can be a program name with args.
18739 set dummy etags; ac_word=$2
18740 echo "$as_me:$LINENO: checking for $ac_word" >&5
18741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742 if test "${ac_cv_path_ETAGS+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745   case $ETAGS in
18746   [\\/]* | ?:[\\/]*)
18747   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18748   ;;
18749   *)
18750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18752 do
18753   IFS=$as_save_IFS
18754   test -z "$as_dir" && as_dir=.
18755   for ac_exec_ext in '' $ac_executable_extensions; do
18756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759     break 2
18760   fi
18761 done
18762 done
18763
18764   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18765   ;;
18766 esac
18767 fi
18768 ETAGS=$ac_cv_path_ETAGS
18769
18770 if test -n "$ETAGS"; then
18771   echo "$as_me:$LINENO: result: $ETAGS" >&5
18772 echo "${ECHO_T}$ETAGS" >&6
18773 else
18774   echo "$as_me:$LINENO: result: no" >&5
18775 echo "${ECHO_T}no" >&6
18776 fi
18777
18778 etags_version=`$ETAGS --version 2>&1`
18779 case "$etags_version" in
18780         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18781         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18782         *) ETAGSFLAGS="" ;;
18783 esac
18784 ETAGSFLAGS=$ETAGSFLAGS
18785
18786 # Extract the first word of "python", so it can be a program name with args.
18787 set dummy python; ac_word=$2
18788 echo "$as_me:$LINENO: checking for $ac_word" >&5
18789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18790 if test "${ac_cv_path_PYTHON+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   case $PYTHON in
18794   [\\/]* | ?:[\\/]*)
18795   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18796   ;;
18797   *)
18798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18799 for as_dir in $PATH
18800 do
18801   IFS=$as_save_IFS
18802   test -z "$as_dir" && as_dir=.
18803   for ac_exec_ext in '' $ac_executable_extensions; do
18804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18805     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18807     break 2
18808   fi
18809 done
18810 done
18811
18812   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18813   ;;
18814 esac
18815 fi
18816 PYTHON=$ac_cv_path_PYTHON
18817
18818 if test -n "$PYTHON"; then
18819   echo "$as_me:$LINENO: result: $PYTHON" >&5
18820 echo "${ECHO_T}$PYTHON" >&6
18821 else
18822   echo "$as_me:$LINENO: result: no" >&5
18823 echo "${ECHO_T}no" >&6
18824 fi
18825
18826 if test "$PYTHON" = "false"
18827 then
18828         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18829 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18830 fi
18831 # Extract the first word of "qmtest", so it can be a program name with args.
18832 set dummy qmtest; ac_word=$2
18833 echo "$as_me:$LINENO: checking for $ac_word" >&5
18834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835 if test "${ac_cv_path_QMTEST+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   case $QMTEST in
18839   [\\/]* | ?:[\\/]*)
18840   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18841   ;;
18842   *)
18843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18844 for as_dir in $PATH
18845 do
18846   IFS=$as_save_IFS
18847   test -z "$as_dir" && as_dir=.
18848   for ac_exec_ext in '' $ac_executable_extensions; do
18849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18850     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18852     break 2
18853   fi
18854 done
18855 done
18856
18857   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18858   ;;
18859 esac
18860 fi
18861 QMTEST=$ac_cv_path_QMTEST
18862
18863 if test -n "$QMTEST"; then
18864   echo "$as_me:$LINENO: result: $QMTEST" >&5
18865 echo "${ECHO_T}$QMTEST" >&6
18866 else
18867   echo "$as_me:$LINENO: result: no" >&5
18868 echo "${ECHO_T}no" >&6
18869 fi
18870
18871 if test "$QMTEST" = "false"
18872 then
18873         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18874 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18875 fi
18876
18877 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18878 pymajor=`echo $pyversion | cut -d. -f1`
18879 pyminor=`echo $pyversion | cut -d. -f2`
18880
18881 if test "$pymajor" -ge "2"
18882 then
18883         if test "$pymajor" -eq "2"
18884         then
18885                 if test "$pyminor" -lt "2"
18886                 then
18887                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18888 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18889                 fi
18890         fi
18891 else
18892         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18893 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18894 fi
18895
18896
18897
18898
18899 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18900 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18901 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904   ac_check_lib_save_LIBS=$LIBS
18905 LIBS="-lelf  $LIBS"
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h.  */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h.  */
18912
18913 /* Override any gcc2 internal prototype to avoid an error.  */
18914 #ifdef __cplusplus
18915 extern "C"
18916 #endif
18917 /* We use char because int might match the return type of a gcc2
18918    builtin and then its argument prototype would still apply.  */
18919 char elf_begin ();
18920 int
18921 main ()
18922 {
18923 elf_begin ();
18924   ;
18925   return 0;
18926 }
18927 _ACEOF
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18930   (eval $ac_link) 2>conftest.er1
18931   ac_status=$?
18932   grep -v '^ *+' conftest.er1 >conftest.err
18933   rm -f conftest.er1
18934   cat conftest.err >&5
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } &&
18937          { ac_try='test -z "$ac_c_werror_flag"
18938                          || test ! -s conftest.err'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; } &&
18944          { ac_try='test -s conftest$ac_exeext'
18945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946   (eval $ac_try) 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; }; then
18950   ac_cv_lib_elf_elf_begin=yes
18951 else
18952   echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 ac_cv_lib_elf_elf_begin=no
18956 fi
18957 rm -f conftest.err conftest.$ac_objext \
18958       conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_lib_save_LIBS
18960 fi
18961 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18962 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18963 if test $ac_cv_lib_elf_elf_begin = yes; then
18964   cat >>confdefs.h <<_ACEOF
18965 #define HAVE_LIBELF 1
18966 _ACEOF
18967
18968   LIBS="-lelf $LIBS"
18969
18970 fi
18971
18972
18973 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18974 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18975 if test "${ac_cv_search_dlopen+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   ac_func_search_save_LIBS=$LIBS
18979 ac_cv_search_dlopen=no
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986
18987 /* Override any gcc2 internal prototype to avoid an error.  */
18988 #ifdef __cplusplus
18989 extern "C"
18990 #endif
18991 /* We use char because int might match the return type of a gcc2
18992    builtin and then its argument prototype would still apply.  */
18993 char dlopen ();
18994 int
18995 main ()
18996 {
18997 dlopen ();
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004   (eval $ac_link) 2>conftest.er1
19005   ac_status=$?
19006   grep -v '^ *+' conftest.er1 >conftest.err
19007   rm -f conftest.er1
19008   cat conftest.err >&5
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); } &&
19011          { ac_try='test -z "$ac_c_werror_flag"
19012                          || test ! -s conftest.err'
19013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014   (eval $ac_try) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); }; } &&
19018          { ac_try='test -s conftest$ac_exeext'
19019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020   (eval $ac_try) 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; }; then
19024   ac_cv_search_dlopen="none required"
19025 else
19026   echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 fi
19030 rm -f conftest.err conftest.$ac_objext \
19031       conftest$ac_exeext conftest.$ac_ext
19032 if test "$ac_cv_search_dlopen" = no; then
19033   for ac_lib in dl; do
19034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19035     cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041
19042 /* Override any gcc2 internal prototype to avoid an error.  */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 /* We use char because int might match the return type of a gcc2
19047    builtin and then its argument prototype would still apply.  */
19048 char dlopen ();
19049 int
19050 main ()
19051 {
19052 dlopen ();
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059   (eval $ac_link) 2>conftest.er1
19060   ac_status=$?
19061   grep -v '^ *+' conftest.er1 >conftest.err
19062   rm -f conftest.er1
19063   cat conftest.err >&5
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); } &&
19066          { ac_try='test -z "$ac_c_werror_flag"
19067                          || test ! -s conftest.err'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; } &&
19073          { ac_try='test -s conftest$ac_exeext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_search_dlopen="-l$ac_lib"
19080 break
19081 else
19082   echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 fi
19086 rm -f conftest.err conftest.$ac_objext \
19087       conftest$ac_exeext conftest.$ac_ext
19088   done
19089 fi
19090 LIBS=$ac_func_search_save_LIBS
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19093 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19094 if test "$ac_cv_search_dlopen" != no; then
19095   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19096
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_DLOPEN 1
19099 _ACEOF
19100
19101 else
19102   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19103 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19104 fi
19105
19106
19107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19109 if test "${ac_cv_search_mallinfo+set}" = set; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   ac_func_search_save_LIBS=$LIBS
19113 ac_cv_search_mallinfo=no
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120
19121 /* Override any gcc2 internal prototype to avoid an error.  */
19122 #ifdef __cplusplus
19123 extern "C"
19124 #endif
19125 /* We use char because int might match the return type of a gcc2
19126    builtin and then its argument prototype would still apply.  */
19127 char mallinfo ();
19128 int
19129 main ()
19130 {
19131 mallinfo ();
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138   (eval $ac_link) 2>conftest.er1
19139   ac_status=$?
19140   grep -v '^ *+' conftest.er1 >conftest.err
19141   rm -f conftest.er1
19142   cat conftest.err >&5
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); } &&
19145          { ac_try='test -z "$ac_c_werror_flag"
19146                          || test ! -s conftest.err'
19147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148   (eval $ac_try) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; } &&
19152          { ac_try='test -s conftest$ac_exeext'
19153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154   (eval $ac_try) 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   ac_cv_search_mallinfo="none required"
19159 else
19160   echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 fi
19164 rm -f conftest.err conftest.$ac_objext \
19165       conftest$ac_exeext conftest.$ac_ext
19166 if test "$ac_cv_search_mallinfo" = no; then
19167   for ac_lib in malloc; do
19168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19169     cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175
19176 /* Override any gcc2 internal prototype to avoid an error.  */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 /* We use char because int might match the return type of a gcc2
19181    builtin and then its argument prototype would still apply.  */
19182 char mallinfo ();
19183 int
19184 main ()
19185 {
19186 mallinfo ();
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193   (eval $ac_link) 2>conftest.er1
19194   ac_status=$?
19195   grep -v '^ *+' conftest.er1 >conftest.err
19196   rm -f conftest.er1
19197   cat conftest.err >&5
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } &&
19200          { ac_try='test -z "$ac_c_werror_flag"
19201                          || test ! -s conftest.err'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest$ac_exeext'
19208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209   (eval $ac_try) 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_cv_search_mallinfo="-l$ac_lib"
19214 break
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 fi
19220 rm -f conftest.err conftest.$ac_objext \
19221       conftest$ac_exeext conftest.$ac_ext
19222   done
19223 fi
19224 LIBS=$ac_func_search_save_LIBS
19225 fi
19226 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19228 if test "$ac_cv_search_mallinfo" != no; then
19229   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19230
19231 cat >>confdefs.h <<\_ACEOF
19232 #define HAVE_MALLINFO 1
19233 _ACEOF
19234
19235 fi
19236
19237
19238 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19239 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243   ac_func_search_save_LIBS=$LIBS
19244 ac_cv_search_pthread_mutex_lock=no
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251
19252 /* Override any gcc2 internal prototype to avoid an error.  */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 /* We use char because int might match the return type of a gcc2
19257    builtin and then its argument prototype would still apply.  */
19258 char pthread_mutex_lock ();
19259 int
19260 main ()
19261 {
19262 pthread_mutex_lock ();
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19269   (eval $ac_link) 2>conftest.er1
19270   ac_status=$?
19271   grep -v '^ *+' conftest.er1 >conftest.err
19272   rm -f conftest.er1
19273   cat conftest.err >&5
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); } &&
19276          { ac_try='test -z "$ac_c_werror_flag"
19277                          || test ! -s conftest.err'
19278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279   (eval $ac_try) 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; } &&
19283          { ac_try='test -s conftest$ac_exeext'
19284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285   (eval $ac_try) 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; }; then
19289   ac_cv_search_pthread_mutex_lock="none required"
19290 else
19291   echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 fi
19295 rm -f conftest.err conftest.$ac_objext \
19296       conftest$ac_exeext conftest.$ac_ext
19297 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19298   for ac_lib in pthread; do
19299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19300     cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306
19307 /* Override any gcc2 internal prototype to avoid an error.  */
19308 #ifdef __cplusplus
19309 extern "C"
19310 #endif
19311 /* We use char because int might match the return type of a gcc2
19312    builtin and then its argument prototype would still apply.  */
19313 char pthread_mutex_lock ();
19314 int
19315 main ()
19316 {
19317 pthread_mutex_lock ();
19318   ;
19319   return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext conftest$ac_exeext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19324   (eval $ac_link) 2>conftest.er1
19325   ac_status=$?
19326   grep -v '^ *+' conftest.er1 >conftest.err
19327   rm -f conftest.er1
19328   cat conftest.err >&5
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); } &&
19331          { ac_try='test -z "$ac_c_werror_flag"
19332                          || test ! -s conftest.err'
19333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334   (eval $ac_try) 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; } &&
19338          { ac_try='test -s conftest$ac_exeext'
19339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340   (eval $ac_try) 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19345 break
19346 else
19347   echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 fi
19351 rm -f conftest.err conftest.$ac_objext \
19352       conftest$ac_exeext conftest.$ac_ext
19353   done
19354 fi
19355 LIBS=$ac_func_search_save_LIBS
19356 fi
19357 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19358 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19359 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19360   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19361   HAVE_PTHREAD_MUTEX_LOCK=1
19362 else
19363   HAVE_PTHREAD_MUTEX_LOCK=0
19364 fi
19365
19366
19367
19368 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19370 if test "${ac_cv_header_stdc+set}" = set; then
19371   echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373   cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h.  */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h.  */
19379 #include <stdlib.h>
19380 #include <stdarg.h>
19381 #include <string.h>
19382 #include <float.h>
19383
19384 int
19385 main ()
19386 {
19387
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 rm -f conftest.$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394   (eval $ac_compile) 2>conftest.er1
19395   ac_status=$?
19396   grep -v '^ *+' conftest.er1 >conftest.err
19397   rm -f conftest.er1
19398   cat conftest.err >&5
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } &&
19401          { ac_try='test -z "$ac_c_werror_flag"
19402                          || test ! -s conftest.err'
19403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404   (eval $ac_try) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; } &&
19408          { ac_try='test -s conftest.$ac_objext'
19409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410   (eval $ac_try) 2>&5
19411   ac_status=$?
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); }; }; then
19414   ac_cv_header_stdc=yes
19415 else
19416   echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 ac_cv_header_stdc=no
19420 fi
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19422
19423 if test $ac_cv_header_stdc = yes; then
19424   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19425   cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 #include <string.h>
19432
19433 _ACEOF
19434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19435   $EGREP "memchr" >/dev/null 2>&1; then
19436   :
19437 else
19438   ac_cv_header_stdc=no
19439 fi
19440 rm -f conftest*
19441
19442 fi
19443
19444 if test $ac_cv_header_stdc = yes; then
19445   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19446   cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h.  */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h.  */
19452 #include <stdlib.h>
19453
19454 _ACEOF
19455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19456   $EGREP "free" >/dev/null 2>&1; then
19457   :
19458 else
19459   ac_cv_header_stdc=no
19460 fi
19461 rm -f conftest*
19462
19463 fi
19464
19465 if test $ac_cv_header_stdc = yes; then
19466   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19467   if test "$cross_compiling" = yes; then
19468   :
19469 else
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 <ctype.h>
19477 #if ((' ' & 0x0FF) == 0x020)
19478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19480 #else
19481 # define ISLOWER(c) \
19482                    (('a' <= (c) && (c) <= 'i') \
19483                      || ('j' <= (c) && (c) <= 'r') \
19484                      || ('s' <= (c) && (c) <= 'z'))
19485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19486 #endif
19487
19488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19489 int
19490 main ()
19491 {
19492   int i;
19493   for (i = 0; i < 256; i++)
19494     if (XOR (islower (i), ISLOWER (i))
19495         || toupper (i) != TOUPPER (i))
19496       exit(2);
19497   exit (0);
19498 }
19499 _ACEOF
19500 rm -f conftest$ac_exeext
19501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19502   (eval $ac_link) 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507   (eval $ac_try) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; }; then
19511   :
19512 else
19513   echo "$as_me: program exited with status $ac_status" >&5
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517 ( exit $ac_status )
19518 ac_cv_header_stdc=no
19519 fi
19520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19521 fi
19522 fi
19523 fi
19524 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19525 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19526 if test $ac_cv_header_stdc = yes; then
19527
19528 cat >>confdefs.h <<\_ACEOF
19529 #define STDC_HEADERS 1
19530 _ACEOF
19531
19532 fi
19533
19534 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19535 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19536 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545 #include <sys/types.h>
19546 #include <sys/wait.h>
19547 #ifndef WEXITSTATUS
19548 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19549 #endif
19550 #ifndef WIFEXITED
19551 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19552 #endif
19553
19554 int
19555 main ()
19556 {
19557   int s;
19558   wait (&s);
19559   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566   (eval $ac_compile) 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } &&
19573          { ac_try='test -z "$ac_c_werror_flag"
19574                          || test ! -s conftest.err'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; } &&
19580          { ac_try='test -s conftest.$ac_objext'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; }; then
19586   ac_cv_header_sys_wait_h=yes
19587 else
19588   echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 ac_cv_header_sys_wait_h=no
19592 fi
19593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19594 fi
19595 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19596 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19597 if test $ac_cv_header_sys_wait_h = yes; then
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_SYS_WAIT_H 1
19601 _ACEOF
19602
19603 fi
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617 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
19618 do
19619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621   echo "$as_me:$LINENO: checking for $ac_header" >&5
19622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 fi
19626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628 else
19629   # Is the header compilable?
19630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638 $ac_includes_default
19639 #include <$ac_header>
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643   (eval $ac_compile) 2>conftest.er1
19644   ac_status=$?
19645   grep -v '^ *+' conftest.er1 >conftest.err
19646   rm -f conftest.er1
19647   cat conftest.err >&5
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } &&
19650          { ac_try='test -z "$ac_c_werror_flag"
19651                          || test ! -s conftest.err'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; } &&
19657          { ac_try='test -s conftest.$ac_objext'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663   ac_header_compiler=yes
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 ac_header_compiler=no
19669 fi
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19672 echo "${ECHO_T}$ac_header_compiler" >&6
19673
19674 # Is the header present?
19675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683 #include <$ac_header>
19684 _ACEOF
19685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } >/dev/null; then
19693   if test -s conftest.err; then
19694     ac_cpp_err=$ac_c_preproc_warn_flag
19695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19696   else
19697     ac_cpp_err=
19698   fi
19699 else
19700   ac_cpp_err=yes
19701 fi
19702 if test -z "$ac_cpp_err"; then
19703   ac_header_preproc=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708   ac_header_preproc=no
19709 fi
19710 rm -f conftest.err conftest.$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19712 echo "${ECHO_T}$ac_header_preproc" >&6
19713
19714 # So?  What about this header?
19715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19716   yes:no: )
19717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19721     ac_header_preproc=yes
19722     ;;
19723   no:yes:* )
19724     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19726     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19727 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19728     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19730     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19731 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19734     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19736     (
19737       cat <<\_ASBOX
19738 ## ----------------------------------- ##
19739 ## Report this to llvmbugs@cs.uiuc.edu ##
19740 ## ----------------------------------- ##
19741 _ASBOX
19742     ) |
19743       sed "s/^/$as_me: WARNING:     /" >&2
19744     ;;
19745 esac
19746 echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749   echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751   eval "$as_ac_Header=\$ac_header_preproc"
19752 fi
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19755
19756 fi
19757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19758   cat >>confdefs.h <<_ACEOF
19759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19760 _ACEOF
19761
19762 fi
19763
19764 done
19765
19766
19767 if test "${ac_cv_header_sys_types_h+set}" = set; then
19768   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19769 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19770 if test "${ac_cv_header_sys_types_h+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 fi
19773 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19774 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19775 else
19776   # Is the header compilable?
19777 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19778 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 $ac_includes_default
19786 #include <sys/types.h>
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790   (eval $ac_compile) 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } &&
19797          { ac_try='test -z "$ac_c_werror_flag"
19798                          || test ! -s conftest.err'
19799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800   (eval $ac_try) 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; } &&
19804          { ac_try='test -s conftest.$ac_objext'
19805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806   (eval $ac_try) 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; }; then
19810   ac_header_compiler=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815 ac_header_compiler=no
19816 fi
19817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19819 echo "${ECHO_T}$ac_header_compiler" >&6
19820
19821 # Is the header present?
19822 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19823 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <sys/types.h>
19831 _ACEOF
19832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19834   ac_status=$?
19835   grep -v '^ *+' conftest.er1 >conftest.err
19836   rm -f conftest.er1
19837   cat conftest.err >&5
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); } >/dev/null; then
19840   if test -s conftest.err; then
19841     ac_cpp_err=$ac_c_preproc_warn_flag
19842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19843   else
19844     ac_cpp_err=
19845   fi
19846 else
19847   ac_cpp_err=yes
19848 fi
19849 if test -z "$ac_cpp_err"; then
19850   ac_header_preproc=yes
19851 else
19852   echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19854
19855   ac_header_preproc=no
19856 fi
19857 rm -f conftest.err conftest.$ac_ext
19858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859 echo "${ECHO_T}$ac_header_preproc" >&6
19860
19861 # So?  What about this header?
19862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19863   yes:no: )
19864     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19865 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19867 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19868     ac_header_preproc=yes
19869     ;;
19870   no:yes:* )
19871     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19872 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19874 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19875     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19876 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19877     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19878 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19879     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19881     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19882 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19883     (
19884       cat <<\_ASBOX
19885 ## ----------------------------------- ##
19886 ## Report this to llvmbugs@cs.uiuc.edu ##
19887 ## ----------------------------------- ##
19888 _ASBOX
19889     ) |
19890       sed "s/^/$as_me: WARNING:     /" >&2
19891     ;;
19892 esac
19893 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19894 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19895 if test "${ac_cv_header_sys_types_h+set}" = set; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898   ac_cv_header_sys_types_h=$ac_header_preproc
19899 fi
19900 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19901 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19902
19903 fi
19904 if test $ac_cv_header_sys_types_h = yes; then
19905   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19906 else
19907   INCLUDE_SYS_TYPES_H=''
19908 fi
19909
19910
19911
19912 if test "${ac_cv_header_inttypes_h+set}" = set; then
19913   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19914 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19915 if test "${ac_cv_header_inttypes_h+set}" = set; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 fi
19918 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19919 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19920 else
19921   # Is the header compilable?
19922 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19923 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19924 cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h.  */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h.  */
19930 $ac_includes_default
19931 #include <inttypes.h>
19932 _ACEOF
19933 rm -f conftest.$ac_objext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935   (eval $ac_compile) 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } &&
19942          { ac_try='test -z "$ac_c_werror_flag"
19943                          || test ! -s conftest.err'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; } &&
19949          { ac_try='test -s conftest.$ac_objext'
19950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951   (eval $ac_try) 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; }; then
19955   ac_header_compiler=yes
19956 else
19957   echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 ac_header_compiler=no
19961 fi
19962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19964 echo "${ECHO_T}$ac_header_compiler" >&6
19965
19966 # Is the header present?
19967 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19968 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 #include <inttypes.h>
19976 _ACEOF
19977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } >/dev/null; then
19985   if test -s conftest.err; then
19986     ac_cpp_err=$ac_c_preproc_warn_flag
19987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19988   else
19989     ac_cpp_err=
19990   fi
19991 else
19992   ac_cpp_err=yes
19993 fi
19994 if test -z "$ac_cpp_err"; then
19995   ac_header_preproc=yes
19996 else
19997   echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000   ac_header_preproc=no
20001 fi
20002 rm -f conftest.err conftest.$ac_ext
20003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20004 echo "${ECHO_T}$ac_header_preproc" >&6
20005
20006 # So?  What about this header?
20007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20008   yes:no: )
20009     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20010 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20011     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20012 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20013     ac_header_preproc=yes
20014     ;;
20015   no:yes:* )
20016     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20017 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20018     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20019 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20020     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20021 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20022     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20023 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20024     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20025 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20026     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20027 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20028     (
20029       cat <<\_ASBOX
20030 ## ----------------------------------- ##
20031 ## Report this to llvmbugs@cs.uiuc.edu ##
20032 ## ----------------------------------- ##
20033 _ASBOX
20034     ) |
20035       sed "s/^/$as_me: WARNING:     /" >&2
20036     ;;
20037 esac
20038 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20039 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20040 if test "${ac_cv_header_inttypes_h+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   ac_cv_header_inttypes_h=$ac_header_preproc
20044 fi
20045 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20046 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20047
20048 fi
20049 if test $ac_cv_header_inttypes_h = yes; then
20050   INCLUDE_INTTYPES_H='#include <inttypes.h>'
20051 else
20052   INCLUDE_INTTYPES_H=''
20053 fi
20054
20055
20056
20057 if test "${ac_cv_header_stdint_h+set}" = set; then
20058   echo "$as_me:$LINENO: checking for stdint.h" >&5
20059 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20060 if test "${ac_cv_header_stdint_h+set}" = set; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 fi
20063 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20064 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20065 else
20066   # Is the header compilable?
20067 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20068 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h.  */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h.  */
20075 $ac_includes_default
20076 #include <stdint.h>
20077 _ACEOF
20078 rm -f conftest.$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080   (eval $ac_compile) 2>conftest.er1
20081   ac_status=$?
20082   grep -v '^ *+' conftest.er1 >conftest.err
20083   rm -f conftest.er1
20084   cat conftest.err >&5
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); } &&
20087          { ac_try='test -z "$ac_c_werror_flag"
20088                          || test ! -s conftest.err'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; } &&
20094          { ac_try='test -s conftest.$ac_objext'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; }; then
20100   ac_header_compiler=yes
20101 else
20102   echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 ac_header_compiler=no
20106 fi
20107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20109 echo "${ECHO_T}$ac_header_compiler" >&6
20110
20111 # Is the header present?
20112 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20113 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120 #include <stdint.h>
20121 _ACEOF
20122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20124   ac_status=$?
20125   grep -v '^ *+' conftest.er1 >conftest.err
20126   rm -f conftest.er1
20127   cat conftest.err >&5
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } >/dev/null; then
20130   if test -s conftest.err; then
20131     ac_cpp_err=$ac_c_preproc_warn_flag
20132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20133   else
20134     ac_cpp_err=
20135   fi
20136 else
20137   ac_cpp_err=yes
20138 fi
20139 if test -z "$ac_cpp_err"; then
20140   ac_header_preproc=yes
20141 else
20142   echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145   ac_header_preproc=no
20146 fi
20147 rm -f conftest.err conftest.$ac_ext
20148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20149 echo "${ECHO_T}$ac_header_preproc" >&6
20150
20151 # So?  What about this header?
20152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20153   yes:no: )
20154     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20155 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20156     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20157 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20158     ac_header_preproc=yes
20159     ;;
20160   no:yes:* )
20161     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20162 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20163     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20164 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20165     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20166 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20167     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20168 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20169     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20170 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20171     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20172 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20173     (
20174       cat <<\_ASBOX
20175 ## ----------------------------------- ##
20176 ## Report this to llvmbugs@cs.uiuc.edu ##
20177 ## ----------------------------------- ##
20178 _ASBOX
20179     ) |
20180       sed "s/^/$as_me: WARNING:     /" >&2
20181     ;;
20182 esac
20183 echo "$as_me:$LINENO: checking for stdint.h" >&5
20184 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20185 if test "${ac_cv_header_stdint_h+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   ac_cv_header_stdint_h=$ac_header_preproc
20189 fi
20190 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20191 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20192
20193 fi
20194 if test $ac_cv_header_stdint_h = yes; then
20195   INCLUDE_STDINT_H='#include <stdint.h>'
20196 else
20197   INCLUDE_STDINT_H=''
20198 fi
20199
20200
20201
20202
20203
20204 echo "$as_me:$LINENO: checking for pid_t" >&5
20205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20206 if test "${ac_cv_type_pid_t+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 $ac_includes_default
20216 int
20217 main ()
20218 {
20219 if ((pid_t *) 0)
20220   return 0;
20221 if (sizeof (pid_t))
20222   return 0;
20223   ;
20224   return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20229   (eval $ac_compile) 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } &&
20236          { ac_try='test -z "$ac_c_werror_flag"
20237                          || test ! -s conftest.err'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; } &&
20243          { ac_try='test -s conftest.$ac_objext'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_type_pid_t=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 ac_cv_type_pid_t=no
20255 fi
20256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20257 fi
20258 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20259 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20260 if test $ac_cv_type_pid_t = yes; then
20261   :
20262 else
20263
20264 cat >>confdefs.h <<_ACEOF
20265 #define pid_t int
20266 _ACEOF
20267
20268 fi
20269
20270 echo "$as_me:$LINENO: checking for size_t" >&5
20271 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20272 if test "${ac_cv_type_size_t+set}" = set; then
20273   echo $ECHO_N "(cached) $ECHO_C" >&6
20274 else
20275   cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h.  */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h.  */
20281 $ac_includes_default
20282 int
20283 main ()
20284 {
20285 if ((size_t *) 0)
20286   return 0;
20287 if (sizeof (size_t))
20288   return 0;
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.$ac_objext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20295   (eval $ac_compile) 2>conftest.er1
20296   ac_status=$?
20297   grep -v '^ *+' conftest.er1 >conftest.err
20298   rm -f conftest.er1
20299   cat conftest.err >&5
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } &&
20302          { ac_try='test -z "$ac_c_werror_flag"
20303                          || test ! -s conftest.err'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; } &&
20309          { ac_try='test -s conftest.$ac_objext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   ac_cv_type_size_t=yes
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ac_cv_type_size_t=no
20321 fi
20322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323 fi
20324 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20325 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20326 if test $ac_cv_type_size_t = yes; then
20327   :
20328 else
20329
20330 cat >>confdefs.h <<_ACEOF
20331 #define size_t unsigned
20332 _ACEOF
20333
20334 fi
20335
20336 echo "$as_me:$LINENO: checking for int64_t" >&5
20337 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20338 if test "${ac_cv_type_int64_t+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347 $ac_includes_default
20348 int
20349 main ()
20350 {
20351 if ((int64_t *) 0)
20352   return 0;
20353 if (sizeof (int64_t))
20354   return 0;
20355   ;
20356   return 0;
20357 }
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361   (eval $ac_compile) 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } &&
20368          { ac_try='test -z "$ac_c_werror_flag"
20369                          || test ! -s conftest.err'
20370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371   (eval $ac_try) 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; } &&
20375          { ac_try='test -s conftest.$ac_objext'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; }; then
20381   ac_cv_type_int64_t=yes
20382 else
20383   echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ac_cv_type_int64_t=no
20387 fi
20388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20391 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20392 if test $ac_cv_type_int64_t = yes; then
20393
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_INT64_T 1
20396 _ACEOF
20397
20398
20399 else
20400   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20401 echo "$as_me: error: Type int64_t required but not found" >&2;}
20402    { (exit 1); exit 1; }; }
20403 fi
20404
20405 echo "$as_me:$LINENO: checking for uint64_t" >&5
20406 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20407 if test "${ac_cv_type_uint64_t+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 $ac_includes_default
20417 int
20418 main ()
20419 {
20420 if ((uint64_t *) 0)
20421   return 0;
20422 if (sizeof (uint64_t))
20423   return 0;
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430   (eval $ac_compile) 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -z "$ac_c_werror_flag"
20438                          || test ! -s conftest.err'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; } &&
20444          { ac_try='test -s conftest.$ac_objext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_cv_type_uint64_t=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_cv_type_uint64_t=no
20456 fi
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458 fi
20459 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20460 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20461 if test $ac_cv_type_uint64_t = yes; then
20462
20463 cat >>confdefs.h <<_ACEOF
20464 #define HAVE_UINT64_T 1
20465 _ACEOF
20466
20467
20468 else
20469   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20470 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20471    { (exit 1); exit 1; }; }
20472 fi
20473
20474 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20475 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20476 if test "${ac_cv_header_time+set}" = set; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 #include <sys/types.h>
20486 #include <sys/time.h>
20487 #include <time.h>
20488
20489 int
20490 main ()
20491 {
20492 if ((struct tm *) 0)
20493 return 0;
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500   (eval $ac_compile) 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } &&
20507          { ac_try='test -z "$ac_c_werror_flag"
20508                          || test ! -s conftest.err'
20509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510   (eval $ac_try) 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); }; } &&
20514          { ac_try='test -s conftest.$ac_objext'
20515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516   (eval $ac_try) 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_cv_header_time=yes
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ac_cv_header_time=no
20526 fi
20527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20528 fi
20529 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20530 echo "${ECHO_T}$ac_cv_header_time" >&6
20531 if test $ac_cv_header_time = yes; then
20532
20533 cat >>confdefs.h <<\_ACEOF
20534 #define TIME_WITH_SYS_TIME 1
20535 _ACEOF
20536
20537 fi
20538
20539 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20540 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20541 if test "${ac_cv_struct_tm+set}" = set; then
20542   echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544   cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 #include <sys/types.h>
20551 #include <time.h>
20552
20553 int
20554 main ()
20555 {
20556 struct tm *tp; tp->tm_sec;
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563   (eval $ac_compile) 2>conftest.er1
20564   ac_status=$?
20565   grep -v '^ *+' conftest.er1 >conftest.err
20566   rm -f conftest.er1
20567   cat conftest.err >&5
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); } &&
20570          { ac_try='test -z "$ac_c_werror_flag"
20571                          || test ! -s conftest.err'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; } &&
20577          { ac_try='test -s conftest.$ac_objext'
20578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579   (eval $ac_try) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_cv_struct_tm=time.h
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_cv_struct_tm=sys/time.h
20589 fi
20590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20591 fi
20592 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20593 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20594 if test $ac_cv_struct_tm = sys/time.h; then
20595
20596 cat >>confdefs.h <<\_ACEOF
20597 #define TM_IN_SYS_TIME 1
20598 _ACEOF
20599
20600 fi
20601
20602
20603
20604         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20605 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20606
20607
20608         ac_ext=c
20609 ac_cpp='$CPP $CPPFLAGS'
20610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613
20614         if test "$cross_compiling" = yes; then
20615   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20616 See \`config.log' for more details." >&5
20617 echo "$as_me: error: cannot run test program while cross compiling
20618 See \`config.log' for more details." >&2;}
20619    { (exit 1); exit 1; }; }
20620 else
20621   cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h.  */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h.  */
20627 #include <stdio.h>
20628                                  #include <stdlib.h>
20629 int
20630 main ()
20631 {
20632
20633                                  volatile double A, B;
20634                                  char Buffer[100];
20635                                  A = 1;
20636                                  A /= 10.0;
20637                                  sprintf(Buffer, "%a", A);
20638                                  B = atof(Buffer);
20639                                  if (A != B)
20640                                                          return (1);
20641                                  if (A != 0x1.999999999999ap-4)
20642                                                          return (1);
20643                                  return (0);
20644   ;
20645   return 0;
20646 }
20647 _ACEOF
20648 rm -f conftest$ac_exeext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20650   (eval $ac_link) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655   (eval $ac_try) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; }; then
20659   ac_c_printf_a=yes
20660 else
20661   echo "$as_me: program exited with status $ac_status" >&5
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ( exit $ac_status )
20666 ac_c_printf_a=no
20667 fi
20668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20669 fi
20670         ac_ext=c
20671 ac_cpp='$CPP $CPPFLAGS'
20672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20675
20676         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20677 echo "${ECHO_T}$ac_c_printf_a" >&6
20678         if test "$ac_c_printf_a" = "yes"; then
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_PRINTF_A 1
20682 _ACEOF
20683
20684         fi
20685
20686
20687 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20688 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20689 if test "${ac_cv_c_bigendian+set}" = set; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692   # See if sys/param.h defines the BYTE_ORDER macro.
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699 #include <sys/types.h>
20700 #include <sys/param.h>
20701
20702 int
20703 main ()
20704 {
20705 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20706  bogus endian macros
20707 #endif
20708
20709   ;
20710   return 0;
20711 }
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20715   (eval $ac_compile) 2>conftest.er1
20716   ac_status=$?
20717   grep -v '^ *+' conftest.er1 >conftest.err
20718   rm -f conftest.er1
20719   cat conftest.err >&5
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); } &&
20722          { ac_try='test -z "$ac_c_werror_flag"
20723                          || test ! -s conftest.err'
20724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725   (eval $ac_try) 2>&5
20726   ac_status=$?
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); }; } &&
20729          { ac_try='test -s conftest.$ac_objext'
20730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731   (eval $ac_try) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); }; }; then
20735   # It does; now see whether it defined to BIG_ENDIAN or not.
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 #include <sys/types.h>
20743 #include <sys/param.h>
20744
20745 int
20746 main ()
20747 {
20748 #if BYTE_ORDER != BIG_ENDIAN
20749  not big endian
20750 #endif
20751
20752   ;
20753   return 0;
20754 }
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758   (eval $ac_compile) 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } &&
20765          { ac_try='test -z "$ac_c_werror_flag"
20766                          || test ! -s conftest.err'
20767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768   (eval $ac_try) 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); }; } &&
20772          { ac_try='test -s conftest.$ac_objext'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   ac_cv_c_bigendian=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ac_cv_c_bigendian=no
20784 fi
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 # It does not; compile a test program.
20791 if test "$cross_compiling" = yes; then
20792   # try to guess the endianness by grepping values into an object file
20793   ac_cv_c_bigendian=unknown
20794   cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20801 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20802 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20803 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20804 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20805 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20806 int
20807 main ()
20808 {
20809  _ascii (); _ebcdic ();
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816   (eval $ac_compile) 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag"
20824                          || test ! -s conftest.err'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest.$ac_objext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20837   ac_cv_c_bigendian=yes
20838 fi
20839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20840   if test "$ac_cv_c_bigendian" = unknown; then
20841     ac_cv_c_bigendian=no
20842   else
20843     # finding both strings is unlikely to happen, but who knows?
20844     ac_cv_c_bigendian=unknown
20845   fi
20846 fi
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 fi
20852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20853 else
20854   cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 int
20861 main ()
20862 {
20863   /* Are we little or big endian?  From Harbison&Steele.  */
20864   union
20865   {
20866     long l;
20867     char c[sizeof (long)];
20868   } u;
20869   u.l = 1;
20870   exit (u.c[sizeof (long) - 1] == 1);
20871 }
20872 _ACEOF
20873 rm -f conftest$ac_exeext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875   (eval $ac_link) 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880   (eval $ac_try) 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); }; }; then
20884   ac_cv_c_bigendian=no
20885 else
20886   echo "$as_me: program exited with status $ac_status" >&5
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890 ( exit $ac_status )
20891 ac_cv_c_bigendian=yes
20892 fi
20893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20894 fi
20895 fi
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20897 fi
20898 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20899 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20900 case $ac_cv_c_bigendian in
20901   yes)
20902     ENDIAN=big
20903  ;;
20904   no)
20905     ENDIAN=little
20906  ;;
20907   *)
20908     { { echo "$as_me:$LINENO: error: unknown endianness
20909 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20910 echo "$as_me: error: unknown endianness
20911 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20912    { (exit 1); exit 1; }; } ;;
20913 esac
20914
20915
20916 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20917 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20918 if test "${ac_cv_cxx_namespaces+set}" = set; then
20919   echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921
20922
20923  ac_ext=cc
20924 ac_cpp='$CXXCPP $CPPFLAGS'
20925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20928
20929  cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h.  */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h.  */
20935 namespace Outer { namespace Inner { int i = 0; }}
20936 int
20937 main ()
20938 {
20939 using namespace Outer::Inner; return i;
20940   ;
20941   return 0;
20942 }
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20946   (eval $ac_compile) 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } &&
20953          { ac_try='test -z "$ac_cxx_werror_flag"
20954                          || test ! -s conftest.err'
20955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956   (eval $ac_try) 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; } &&
20960          { ac_try='test -s conftest.$ac_objext'
20961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962   (eval $ac_try) 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); }; }; then
20966   ac_cv_cxx_namespaces=yes
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 ac_cv_cxx_namespaces=no
20972 fi
20973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20974  ac_ext=c
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979
20980
20981 fi
20982 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20983 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20984 if test "$ac_cv_cxx_namespaces" = yes; then
20985
20986 cat >>confdefs.h <<\_ACEOF
20987 #define HAVE_NAMESPACES
20988 _ACEOF
20989
20990 fi
20991
20992 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20993 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20994 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20995   echo $ECHO_N "(cached) $ECHO_C" >&6
20996 else
20997
20998
20999
21000   ac_ext=cc
21001 ac_cpp='$CXXCPP $CPPFLAGS'
21002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21005
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012 #include <ext/hash_map>
21013 #ifdef HAVE_NAMESPACES
21014 using namespace std;
21015 #endif
21016 int
21017 main ()
21018 {
21019 hash_map<int, int> t;
21020   ;
21021   return 0;
21022 }
21023 _ACEOF
21024 rm -f conftest.$ac_objext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21026   (eval $ac_compile) 2>conftest.er1
21027   ac_status=$?
21028   grep -v '^ *+' conftest.er1 >conftest.err
21029   rm -f conftest.er1
21030   cat conftest.err >&5
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); } &&
21033          { ac_try='test -z "$ac_cxx_werror_flag"
21034                          || test ! -s conftest.err'
21035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036   (eval $ac_try) 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; } &&
21040          { ac_try='test -s conftest.$ac_objext'
21041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042   (eval $ac_try) 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; }; then
21046   ac_cv_cxx_have_std_ext_hash_map=yes
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051 ac_cv_cxx_have_std_ext_hash_map=no
21052 fi
21053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21054   ac_ext=c
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059
21060 fi
21061 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21062 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21063  HAVE_STD_EXT_HASH_MAP=0
21064  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21065  then
21066    HAVE_STD_EXT_HASH_MAP=1
21067  fi
21068
21069  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21070 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21071 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21072   echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074
21075
21076
21077   ac_ext=cc
21078 ac_cpp='$CXXCPP $CPPFLAGS'
21079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21082
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 #include <ext/hash_map>
21090 #ifdef HAVE_NAMESPACES
21091 using namespace __gnu_cxx;
21092 #endif
21093 int
21094 main ()
21095 {
21096 hash_map<int,int> t;
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103   (eval $ac_compile) 2>conftest.er1
21104   ac_status=$?
21105   grep -v '^ *+' conftest.er1 >conftest.err
21106   rm -f conftest.er1
21107   cat conftest.err >&5
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); } &&
21110          { ac_try='test -z "$ac_cxx_werror_flag"
21111                          || test ! -s conftest.err'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; } &&
21117          { ac_try='test -s conftest.$ac_objext'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_cxx_have_gnu_ext_hash_map=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_cxx_have_gnu_ext_hash_map=no
21129 fi
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21131   ac_ext=c
21132 ac_cpp='$CPP $CPPFLAGS'
21133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137 fi
21138 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21139 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21140  HAVE_GNU_EXT_HASH_MAP=0
21141  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21142  then
21143    HAVE_GNU_EXT_HASH_MAP=1
21144  fi
21145
21146  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21147 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21148 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151
21152
21153
21154   ac_ext=cc
21155 ac_cpp='$CXXCPP $CPPFLAGS'
21156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21159
21160   cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 #include <hash_map>
21167 int
21168 main ()
21169 {
21170 hash_map<int,int> t;
21171   ;
21172   return 0;
21173 }
21174 _ACEOF
21175 rm -f conftest.$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177   (eval $ac_compile) 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } &&
21184          { ac_try='test -z "$ac_cxx_werror_flag"
21185                          || test ! -s conftest.err'
21186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187   (eval $ac_try) 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; } &&
21191          { ac_try='test -s conftest.$ac_objext'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   ac_cv_cxx_have_global_hash_map=yes
21198 else
21199   echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21201
21202 ac_cv_cxx_have_global_hash_map=no
21203 fi
21204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21205   ac_ext=c
21206 ac_cpp='$CPP $CPPFLAGS'
21207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21210
21211 fi
21212 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21213 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21214  HAVE_GLOBAL_HASH_MAP=0
21215  if test "$ac_cv_cxx_have_global_hash_map" = yes
21216  then
21217    HAVE_GLOBAL_HASH_MAP=1
21218  fi
21219
21220 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21221 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21222 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225
21226
21227
21228   ac_ext=cc
21229 ac_cpp='$CXXCPP $CPPFLAGS'
21230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21233
21234   cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <ext/hash_set>
21241 #ifdef HAVE_NAMESPACES
21242 using namespace std;
21243 #endif
21244 int
21245 main ()
21246 {
21247 hash_set<int> t;
21248   ;
21249   return 0;
21250 }
21251 _ACEOF
21252 rm -f conftest.$ac_objext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21254   (eval $ac_compile) 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } &&
21261          { ac_try='test -z "$ac_cxx_werror_flag"
21262                          || test ! -s conftest.err'
21263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264   (eval $ac_try) 2>&5
21265   ac_status=$?
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); }; } &&
21268          { ac_try='test -s conftest.$ac_objext'
21269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270   (eval $ac_try) 2>&5
21271   ac_status=$?
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); }; }; then
21274   ac_cv_cxx_have_std_ext_hash_set=yes
21275 else
21276   echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21278
21279 ac_cv_cxx_have_std_ext_hash_set=no
21280 fi
21281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21282   ac_ext=c
21283 ac_cpp='$CPP $CPPFLAGS'
21284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21287
21288 fi
21289 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21290 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21291  HAVE_STD_EXT_HASH_SET=0
21292  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21293  then
21294    HAVE_STD_EXT_HASH_SET=1
21295  fi
21296
21297  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21298 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21299 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302
21303
21304
21305   ac_ext=cc
21306 ac_cpp='$CXXCPP $CPPFLAGS'
21307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21310
21311   cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h.  */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h.  */
21317 #include <ext/hash_set>
21318 #ifdef HAVE_NAMESPACES
21319 using namespace __gnu_cxx;
21320 #endif
21321 int
21322 main ()
21323 {
21324 hash_set<int> t;
21325   ;
21326   return 0;
21327 }
21328 _ACEOF
21329 rm -f conftest.$ac_objext
21330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331   (eval $ac_compile) 2>conftest.er1
21332   ac_status=$?
21333   grep -v '^ *+' conftest.er1 >conftest.err
21334   rm -f conftest.er1
21335   cat conftest.err >&5
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } &&
21338          { ac_try='test -z "$ac_cxx_werror_flag"
21339                          || test ! -s conftest.err'
21340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341   (eval $ac_try) 2>&5
21342   ac_status=$?
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); }; } &&
21345          { ac_try='test -s conftest.$ac_objext'
21346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347   (eval $ac_try) 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; }; then
21351   ac_cv_cxx_have_gnu_ext_hash_set=yes
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 ac_cv_cxx_have_gnu_ext_hash_set=no
21357 fi
21358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21359   ac_ext=c
21360 ac_cpp='$CPP $CPPFLAGS'
21361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21364
21365 fi
21366 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21367 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21368  HAVE_GNU_EXT_HASH_SET=0
21369  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21370  then
21371    HAVE_GNU_EXT_HASH_SET=1
21372  fi
21373
21374  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21375 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21376 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21377   echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379
21380
21381
21382   ac_ext=cc
21383 ac_cpp='$CXXCPP $CPPFLAGS'
21384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21387
21388   cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394 #include <hash_set>
21395 int
21396 main ()
21397 {
21398 hash_set<int> t; return 0;
21399   ;
21400   return 0;
21401 }
21402 _ACEOF
21403 rm -f conftest.$ac_objext
21404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21405   (eval $ac_compile) 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } &&
21412          { ac_try='test -z "$ac_cxx_werror_flag"
21413                          || test ! -s conftest.err'
21414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415   (eval $ac_try) 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; } &&
21419          { ac_try='test -s conftest.$ac_objext'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; }; then
21425   ac_cv_cxx_have_global_hash_set=yes
21426 else
21427   echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429
21430 ac_cv_cxx_have_global_hash_set=no
21431 fi
21432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21433   ac_ext=c
21434 ac_cpp='$CPP $CPPFLAGS'
21435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21438
21439 fi
21440 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21441 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21442  HAVE_GLOBAL_HASH_SET=0
21443  if test "$ac_cv_cxx_have_global_hash_set" = yes
21444  then
21445    HAVE_GLOBAL_HASH_SET=1
21446  fi
21447
21448 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21449 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21450 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453
21454
21455
21456   ac_ext=cc
21457 ac_cpp='$CXXCPP $CPPFLAGS'
21458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21461
21462   cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <iterator>
21469 #ifdef HAVE_NAMESPACES
21470 using namespace std;
21471 #endif
21472 int
21473 main ()
21474 {
21475 iterator<int,int,int> t; return 0;
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21482   (eval $ac_compile) 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -z "$ac_cxx_werror_flag"
21490                          || test ! -s conftest.err'
21491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492   (eval $ac_try) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); }; } &&
21496          { ac_try='test -s conftest.$ac_objext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   ac_cv_cxx_have_std_iterator=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_cv_cxx_have_std_iterator=no
21508 fi
21509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21510   ac_ext=c
21511 ac_cpp='$CPP $CPPFLAGS'
21512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21515
21516
21517 fi
21518 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21519 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21520 HAVE_STD_ITERATOR=0
21521 if test "$ac_cv_cxx_have_std_iterator" = yes
21522 then
21523    HAVE_STD_ITERATOR=1
21524 fi
21525
21526 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21527 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21528 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21529   echo $ECHO_N "(cached) $ECHO_C" >&6
21530 else
21531
21532
21533
21534   ac_ext=cc
21535 ac_cpp='$CXXCPP $CPPFLAGS'
21536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21539
21540   cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h.  */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h.  */
21546 #include <iterator>
21547 #ifdef HAVE_NAMESPACES
21548 using namespace std;
21549 #endif
21550 int
21551 main ()
21552 {
21553 bidirectional_iterator<int,int> t; return 0;
21554   ;
21555   return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21560   (eval $ac_compile) 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } &&
21567          { ac_try='test -z "$ac_cxx_werror_flag"
21568                          || test ! -s conftest.err'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; } &&
21574          { ac_try='test -s conftest.$ac_objext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_cv_cxx_have_bi_iterator=yes
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_cv_cxx_have_bi_iterator=no
21586 fi
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588   ac_ext=c
21589 ac_cpp='$CPP $CPPFLAGS'
21590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593
21594
21595 fi
21596 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21597 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21598 HAVE_BI_ITERATOR=0
21599 if test "$ac_cv_cxx_have_bi_iterator" = yes
21600 then
21601    HAVE_BI_ITERATOR=1
21602 fi
21603
21604 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21605 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21606 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21607   echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609
21610
21611
21612   ac_ext=cc
21613 ac_cpp='$CXXCPP $CPPFLAGS'
21614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21617
21618   cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <iterator>
21625 #ifdef HAVE_NAMESPACES
21626 using namespace std;
21627 #endif
21628 int
21629 main ()
21630 {
21631 forward_iterator<int,int> t; return 0;
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638   (eval $ac_compile) 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } &&
21645          { ac_try='test -z "$ac_cxx_werror_flag"
21646                          || test ! -s conftest.err'
21647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648   (eval $ac_try) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); }; } &&
21652          { ac_try='test -s conftest.$ac_objext'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   ac_cv_cxx_have_fwd_iterator=yes
21659 else
21660   echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ac_cv_cxx_have_fwd_iterator=no
21664 fi
21665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21666   ac_ext=c
21667 ac_cpp='$CPP $CPPFLAGS'
21668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21671
21672
21673 fi
21674 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21675 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21676 HAVE_FWD_ITERATOR=0
21677 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21678 then
21679    HAVE_FWD_ITERATOR=1
21680 fi
21681
21682
21683
21684 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21685 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21686 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21687   echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21689   ac_ext=cc
21690 ac_cpp='$CXXCPP $CPPFLAGS'
21691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21694
21695   cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h.  */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h.  */
21701 #include <math.h>
21702                      int foo(float f) {return isnan(f);}
21703 _ACEOF
21704 rm -f conftest.$ac_objext
21705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21706   (eval $ac_compile) 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } &&
21713          { ac_try='test -z "$ac_cxx_werror_flag"
21714                          || test ! -s conftest.err'
21715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716   (eval $ac_try) 2>&5
21717   ac_status=$?
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); }; } &&
21720          { ac_try='test -s conftest.$ac_objext'
21721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722   (eval $ac_try) 2>&5
21723   ac_status=$?
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); }; }; then
21726   ac_cv_func_isnan_in_math_h=yes
21727 else
21728   echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731 ac_cv_func_isnan_in_math_h=no
21732 fi
21733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21734  ac_ext=c
21735 ac_cpp='$CPP $CPPFLAGS'
21736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21739
21740 fi
21741 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21742 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21743  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21744  then
21745
21746 cat >>confdefs.h <<\_ACEOF
21747 #define HAVE_ISNAN_IN_MATH_H 1
21748 _ACEOF
21749
21750  fi
21751 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21752 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21753 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21754   echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756   ac_ext=cc
21757 ac_cpp='$CXXCPP $CPPFLAGS'
21758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21761
21762   cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768 #include <cmath>
21769                      int foo(float f) {return isnan(f);}
21770 _ACEOF
21771 rm -f conftest.$ac_objext
21772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21773   (eval $ac_compile) 2>conftest.er1
21774   ac_status=$?
21775   grep -v '^ *+' conftest.er1 >conftest.err
21776   rm -f conftest.er1
21777   cat conftest.err >&5
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); } &&
21780          { ac_try='test -z "$ac_cxx_werror_flag"
21781                          || test ! -s conftest.err'
21782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783   (eval $ac_try) 2>&5
21784   ac_status=$?
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); }; } &&
21787          { ac_try='test -s conftest.$ac_objext'
21788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); }; }; then
21793   ac_cv_func_isnan_in_cmath=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 ac_cv_func_isnan_in_cmath=no
21799 fi
21800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21801  ac_ext=c
21802 ac_cpp='$CPP $CPPFLAGS'
21803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21806
21807 fi
21808 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21809 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21810  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21811  then
21812
21813 cat >>confdefs.h <<\_ACEOF
21814 #define HAVE_ISNAN_IN_CMATH 1
21815 _ACEOF
21816
21817  fi
21818 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21819 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21820 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21821   echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823   ac_ext=cc
21824 ac_cpp='$CXXCPP $CPPFLAGS'
21825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21828
21829   cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835 #include <cmath>
21836                      using std::isnan; int foo(float f) {return isnan(f);}
21837 _ACEOF
21838 rm -f conftest.$ac_objext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21840   (eval $ac_compile) 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } &&
21847          { ac_try='test -z "$ac_cxx_werror_flag"
21848                          || test ! -s conftest.err'
21849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850   (eval $ac_try) 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); }; } &&
21854          { ac_try='test -s conftest.$ac_objext'
21855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856   (eval $ac_try) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); }; }; then
21860   ac_cv_func_std_isnan_in_cmath=yes
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ac_cv_func_std_isnan_in_cmath=no
21866 fi
21867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21868  ac_ext=c
21869 ac_cpp='$CPP $CPPFLAGS'
21870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21873
21874 fi
21875 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21876 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21877  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21878  then
21879
21880 cat >>confdefs.h <<\_ACEOF
21881 #define HAVE_STD_ISNAN_IN_CMATH 1
21882 _ACEOF
21883
21884  fi
21885
21886
21887 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21888 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21889 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21890   echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892   ac_ext=cc
21893 ac_cpp='$CXXCPP $CPPFLAGS'
21894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21897
21898   cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 #include <math.h>
21905                      int foo(float f) {return isinf(f);}
21906 _ACEOF
21907 rm -f conftest.$ac_objext
21908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21909   (eval $ac_compile) 2>conftest.er1
21910   ac_status=$?
21911   grep -v '^ *+' conftest.er1 >conftest.err
21912   rm -f conftest.er1
21913   cat conftest.err >&5
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } &&
21916          { ac_try='test -z "$ac_cxx_werror_flag"
21917                          || test ! -s conftest.err'
21918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919   (eval $ac_try) 2>&5
21920   ac_status=$?
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); }; } &&
21923          { ac_try='test -s conftest.$ac_objext'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   ac_cv_func_isinf_in_math_h=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934 ac_cv_func_isinf_in_math_h=no
21935 fi
21936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21937  ac_ext=c
21938 ac_cpp='$CPP $CPPFLAGS'
21939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21942
21943 fi
21944 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21945 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21946  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21947  then
21948
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_ISINF_IN_MATH_H 1
21951 _ACEOF
21952
21953  fi
21954 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21955 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21956 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21957   echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21959   ac_ext=cc
21960 ac_cpp='$CXXCPP $CPPFLAGS'
21961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21964
21965   cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971 #include <cmath>
21972                      int foo(float f) {return isinf(f);}
21973 _ACEOF
21974 rm -f conftest.$ac_objext
21975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976   (eval $ac_compile) 2>conftest.er1
21977   ac_status=$?
21978   grep -v '^ *+' conftest.er1 >conftest.err
21979   rm -f conftest.er1
21980   cat conftest.err >&5
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); } &&
21983          { ac_try='test -z "$ac_cxx_werror_flag"
21984                          || test ! -s conftest.err'
21985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986   (eval $ac_try) 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; } &&
21990          { ac_try='test -s conftest.$ac_objext'
21991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996   ac_cv_func_isinf_in_cmath=yes
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001 ac_cv_func_isinf_in_cmath=no
22002 fi
22003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22004  ac_ext=c
22005 ac_cpp='$CPP $CPPFLAGS'
22006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22009
22010 fi
22011 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22012 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22013  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22014  then
22015
22016 cat >>confdefs.h <<\_ACEOF
22017 #define HAVE_ISINF_IN_CMATH 1
22018 _ACEOF
22019
22020  fi
22021 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22022 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22023 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026   ac_ext=cc
22027 ac_cpp='$CXXCPP $CPPFLAGS'
22028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22031
22032   cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 #include <cmath>
22039                      using std::isinf; int foo(float f) {return isinf(f);}
22040 _ACEOF
22041 rm -f conftest.$ac_objext
22042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22043   (eval $ac_compile) 2>conftest.er1
22044   ac_status=$?
22045   grep -v '^ *+' conftest.er1 >conftest.err
22046   rm -f conftest.er1
22047   cat conftest.err >&5
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); } &&
22050          { ac_try='test -z "$ac_cxx_werror_flag"
22051                          || test ! -s conftest.err'
22052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053   (eval $ac_try) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; } &&
22057          { ac_try='test -s conftest.$ac_objext'
22058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059   (eval $ac_try) 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; }; then
22063   ac_cv_func_std_isinf_in_cmath=yes
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068 ac_cv_func_std_isinf_in_cmath=no
22069 fi
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22071  ac_ext=c
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22076
22077 fi
22078 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22079 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22080  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22081  then
22082
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_STD_ISINF_IN_CMATH 1
22085 _ACEOF
22086
22087  fi
22088 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22089 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22090 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22091   echo $ECHO_N "(cached) $ECHO_C" >&6
22092 else
22093   ac_ext=cc
22094 ac_cpp='$CXXCPP $CPPFLAGS'
22095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22098
22099   cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h.  */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h.  */
22105 #include <ieeefp.h>
22106                      int foo(float f) {return finite(f);}
22107 _ACEOF
22108 rm -f conftest.$ac_objext
22109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22110   (eval $ac_compile) 2>conftest.er1
22111   ac_status=$?
22112   grep -v '^ *+' conftest.er1 >conftest.err
22113   rm -f conftest.er1
22114   cat conftest.err >&5
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } &&
22117          { ac_try='test -z "$ac_cxx_werror_flag"
22118                          || test ! -s conftest.err'
22119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120   (eval $ac_try) 2>&5
22121   ac_status=$?
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); }; } &&
22124          { ac_try='test -s conftest.$ac_objext'
22125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126   (eval $ac_try) 2>&5
22127   ac_status=$?
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); }; }; then
22130   ac_cv_func_finite_in_ieeefp_h=yes
22131 else
22132   echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22134
22135 ac_cv_func_finite_in_ieeefp_h=no
22136 fi
22137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22138  ac_ext=c
22139 ac_cpp='$CPP $CPPFLAGS'
22140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22143
22144 fi
22145 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22146 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22147  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22148  then
22149
22150 cat >>confdefs.h <<\_ACEOF
22151 #define HAVE_FINITE_IN_IEEEFP_H 1
22152 _ACEOF
22153
22154  fi
22155
22156
22157 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22158 # for constant arguments.  Useless!
22159 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22160 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22161 if test "${ac_cv_working_alloca_h+set}" = set; then
22162   echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164   cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h.  */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h.  */
22170 #include <alloca.h>
22171 int
22172 main ()
22173 {
22174 char *p = (char *) alloca (2 * sizeof (int));
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 rm -f conftest.$ac_objext conftest$ac_exeext
22180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22181   (eval $ac_link) 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } &&
22188          { ac_try='test -z "$ac_c_werror_flag"
22189                          || test ! -s conftest.err'
22190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191   (eval $ac_try) 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); }; } &&
22195          { ac_try='test -s conftest$ac_exeext'
22196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197   (eval $ac_try) 2>&5
22198   ac_status=$?
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); }; }; then
22201   ac_cv_working_alloca_h=yes
22202 else
22203   echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206 ac_cv_working_alloca_h=no
22207 fi
22208 rm -f conftest.err conftest.$ac_objext \
22209       conftest$ac_exeext conftest.$ac_ext
22210 fi
22211 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22212 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22213 if test $ac_cv_working_alloca_h = yes; then
22214
22215 cat >>confdefs.h <<\_ACEOF
22216 #define HAVE_ALLOCA_H 1
22217 _ACEOF
22218
22219 fi
22220
22221 echo "$as_me:$LINENO: checking for alloca" >&5
22222 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22223 if test "${ac_cv_func_alloca_works+set}" = set; then
22224   echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226   cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 #ifdef __GNUC__
22233 # define alloca __builtin_alloca
22234 #else
22235 # ifdef _MSC_VER
22236 #  include <malloc.h>
22237 #  define alloca _alloca
22238 # else
22239 #  if HAVE_ALLOCA_H
22240 #   include <alloca.h>
22241 #  else
22242 #   ifdef _AIX
22243  #pragma alloca
22244 #   else
22245 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22246 char *alloca ();
22247 #    endif
22248 #   endif
22249 #  endif
22250 # endif
22251 #endif
22252
22253 int
22254 main ()
22255 {
22256 char *p = (char *) alloca (1);
22257   ;
22258   return 0;
22259 }
22260 _ACEOF
22261 rm -f conftest.$ac_objext conftest$ac_exeext
22262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22263   (eval $ac_link) 2>conftest.er1
22264   ac_status=$?
22265   grep -v '^ *+' conftest.er1 >conftest.err
22266   rm -f conftest.er1
22267   cat conftest.err >&5
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } &&
22270          { ac_try='test -z "$ac_c_werror_flag"
22271                          || test ! -s conftest.err'
22272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273   (eval $ac_try) 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; } &&
22277          { ac_try='test -s conftest$ac_exeext'
22278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279   (eval $ac_try) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }; }; then
22283   ac_cv_func_alloca_works=yes
22284 else
22285   echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288 ac_cv_func_alloca_works=no
22289 fi
22290 rm -f conftest.err conftest.$ac_objext \
22291       conftest$ac_exeext conftest.$ac_ext
22292 fi
22293 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22294 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22295
22296 if test $ac_cv_func_alloca_works = yes; then
22297
22298 cat >>confdefs.h <<\_ACEOF
22299 #define HAVE_ALLOCA 1
22300 _ACEOF
22301
22302 else
22303   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22304 # that cause trouble.  Some versions do not even contain alloca or
22305 # contain a buggy version.  If you still want to use their alloca,
22306 # use ar to extract alloca.o from them instead of compiling alloca.c.
22307
22308 ALLOCA=alloca.$ac_objext
22309
22310 cat >>confdefs.h <<\_ACEOF
22311 #define C_ALLOCA 1
22312 _ACEOF
22313
22314
22315 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22316 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22317 if test "${ac_cv_os_cray+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320   cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 #if defined(CRAY) && ! defined(CRAY2)
22327 webecray
22328 #else
22329 wenotbecray
22330 #endif
22331
22332 _ACEOF
22333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22334   $EGREP "webecray" >/dev/null 2>&1; then
22335   ac_cv_os_cray=yes
22336 else
22337   ac_cv_os_cray=no
22338 fi
22339 rm -f conftest*
22340
22341 fi
22342 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22343 echo "${ECHO_T}$ac_cv_os_cray" >&6
22344 if test $ac_cv_os_cray = yes; then
22345   for ac_func in _getb67 GETB67 getb67; do
22346     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22347 echo "$as_me:$LINENO: checking for $ac_func" >&5
22348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22349 if eval "test \"\${$as_ac_var+set}\" = set"; then
22350   echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352   cat >conftest.$ac_ext <<_ACEOF
22353 /* confdefs.h.  */
22354 _ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h.  */
22358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22360 #define $ac_func innocuous_$ac_func
22361
22362 /* System header to define __stub macros and hopefully few prototypes,
22363     which can conflict with char $ac_func (); below.
22364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22365     <limits.h> exists even on freestanding compilers.  */
22366
22367 #ifdef __STDC__
22368 # include <limits.h>
22369 #else
22370 # include <assert.h>
22371 #endif
22372
22373 #undef $ac_func
22374
22375 /* Override any gcc2 internal prototype to avoid an error.  */
22376 #ifdef __cplusplus
22377 extern "C"
22378 {
22379 #endif
22380 /* We use char because int might match the return type of a gcc2
22381    builtin and then its argument prototype would still apply.  */
22382 char $ac_func ();
22383 /* The GNU C library defines this for functions which it implements
22384     to always fail with ENOSYS.  Some functions are actually named
22385     something starting with __ and the normal name is an alias.  */
22386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22387 choke me
22388 #else
22389 char (*f) () = $ac_func;
22390 #endif
22391 #ifdef __cplusplus
22392 }
22393 #endif
22394
22395 int
22396 main ()
22397 {
22398 return f != $ac_func;
22399   ;
22400   return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405   (eval $ac_link) 2>conftest.er1
22406   ac_status=$?
22407   grep -v '^ *+' conftest.er1 >conftest.err
22408   rm -f conftest.er1
22409   cat conftest.err >&5
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); } &&
22412          { ac_try='test -z "$ac_c_werror_flag"
22413                          || test ! -s conftest.err'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; } &&
22419          { ac_try='test -s conftest$ac_exeext'
22420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421   (eval $ac_try) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; }; then
22425   eval "$as_ac_var=yes"
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430 eval "$as_ac_var=no"
22431 fi
22432 rm -f conftest.err conftest.$ac_objext \
22433       conftest$ac_exeext conftest.$ac_ext
22434 fi
22435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22437 if test `eval echo '${'$as_ac_var'}'` = yes; then
22438
22439 cat >>confdefs.h <<_ACEOF
22440 #define CRAY_STACKSEG_END $ac_func
22441 _ACEOF
22442
22443     break
22444 fi
22445
22446   done
22447 fi
22448
22449 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22450 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22451 if test "${ac_cv_c_stack_direction+set}" = set; then
22452   echo $ECHO_N "(cached) $ECHO_C" >&6
22453 else
22454   if test "$cross_compiling" = yes; then
22455   ac_cv_c_stack_direction=0
22456 else
22457   cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 int
22464 find_stack_direction ()
22465 {
22466   static char *addr = 0;
22467   auto char dummy;
22468   if (addr == 0)
22469     {
22470       addr = &dummy;
22471       return find_stack_direction ();
22472     }
22473   else
22474     return (&dummy > addr) ? 1 : -1;
22475 }
22476
22477 int
22478 main ()
22479 {
22480   exit (find_stack_direction () < 0);
22481 }
22482 _ACEOF
22483 rm -f conftest$ac_exeext
22484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485   (eval $ac_link) 2>&5
22486   ac_status=$?
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490   (eval $ac_try) 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; }; then
22494   ac_cv_c_stack_direction=1
22495 else
22496   echo "$as_me: program exited with status $ac_status" >&5
22497 echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22499
22500 ( exit $ac_status )
22501 ac_cv_c_stack_direction=-1
22502 fi
22503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22504 fi
22505 fi
22506 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22507 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22508
22509 cat >>confdefs.h <<_ACEOF
22510 #define STACK_DIRECTION $ac_cv_c_stack_direction
22511 _ACEOF
22512
22513
22514 fi
22515
22516
22517
22518 for ac_header in stdlib.h unistd.h
22519 do
22520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22522   echo "$as_me:$LINENO: checking for $ac_header" >&5
22523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 fi
22527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22529 else
22530   # Is the header compilable?
22531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539 $ac_includes_default
22540 #include <$ac_header>
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22544   (eval $ac_compile) 2>conftest.er1
22545   ac_status=$?
22546   grep -v '^ *+' conftest.er1 >conftest.err
22547   rm -f conftest.er1
22548   cat conftest.err >&5
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } &&
22551          { ac_try='test -z "$ac_c_werror_flag"
22552                          || test ! -s conftest.err'
22553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554   (eval $ac_try) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); }; } &&
22558          { ac_try='test -s conftest.$ac_objext'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   ac_header_compiler=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569 ac_header_compiler=no
22570 fi
22571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22573 echo "${ECHO_T}$ac_header_compiler" >&6
22574
22575 # Is the header present?
22576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 #include <$ac_header>
22585 _ACEOF
22586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22588   ac_status=$?
22589   grep -v '^ *+' conftest.er1 >conftest.err
22590   rm -f conftest.er1
22591   cat conftest.err >&5
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } >/dev/null; then
22594   if test -s conftest.err; then
22595     ac_cpp_err=$ac_c_preproc_warn_flag
22596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22597   else
22598     ac_cpp_err=
22599   fi
22600 else
22601   ac_cpp_err=yes
22602 fi
22603 if test -z "$ac_cpp_err"; then
22604   ac_header_preproc=yes
22605 else
22606   echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22608
22609   ac_header_preproc=no
22610 fi
22611 rm -f conftest.err conftest.$ac_ext
22612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613 echo "${ECHO_T}$ac_header_preproc" >&6
22614
22615 # So?  What about this header?
22616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22617   yes:no: )
22618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22622     ac_header_preproc=yes
22623     ;;
22624   no:yes:* )
22625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22627     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22628 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22629     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22631     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22632 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22635     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22637     (
22638       cat <<\_ASBOX
22639 ## ----------------------------------- ##
22640 ## Report this to llvmbugs@cs.uiuc.edu ##
22641 ## ----------------------------------- ##
22642 _ASBOX
22643     ) |
22644       sed "s/^/$as_me: WARNING:     /" >&2
22645     ;;
22646 esac
22647 echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652   eval "$as_ac_Header=\$ac_header_preproc"
22653 fi
22654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22656
22657 fi
22658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22659   cat >>confdefs.h <<_ACEOF
22660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22661 _ACEOF
22662
22663 fi
22664
22665 done
22666
22667
22668 for ac_func in getpagesize
22669 do
22670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 echo "$as_me:$LINENO: checking for $ac_func" >&5
22672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22673 if eval "test \"\${$as_ac_var+set}\" = set"; then
22674   echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22676   cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h.  */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h.  */
22682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22684 #define $ac_func innocuous_$ac_func
22685
22686 /* System header to define __stub macros and hopefully few prototypes,
22687     which can conflict with char $ac_func (); below.
22688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689     <limits.h> exists even on freestanding compilers.  */
22690
22691 #ifdef __STDC__
22692 # include <limits.h>
22693 #else
22694 # include <assert.h>
22695 #endif
22696
22697 #undef $ac_func
22698
22699 /* Override any gcc2 internal prototype to avoid an error.  */
22700 #ifdef __cplusplus
22701 extern "C"
22702 {
22703 #endif
22704 /* We use char because int might match the return type of a gcc2
22705    builtin and then its argument prototype would still apply.  */
22706 char $ac_func ();
22707 /* The GNU C library defines this for functions which it implements
22708     to always fail with ENOSYS.  Some functions are actually named
22709     something starting with __ and the normal name is an alias.  */
22710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22711 choke me
22712 #else
22713 char (*f) () = $ac_func;
22714 #endif
22715 #ifdef __cplusplus
22716 }
22717 #endif
22718
22719 int
22720 main ()
22721 {
22722 return f != $ac_func;
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729   (eval $ac_link) 2>conftest.er1
22730   ac_status=$?
22731   grep -v '^ *+' conftest.er1 >conftest.err
22732   rm -f conftest.er1
22733   cat conftest.err >&5
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); } &&
22736          { ac_try='test -z "$ac_c_werror_flag"
22737                          || test ! -s conftest.err'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; } &&
22743          { ac_try='test -s conftest$ac_exeext'
22744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745   (eval $ac_try) 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); }; }; then
22749   eval "$as_ac_var=yes"
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754 eval "$as_ac_var=no"
22755 fi
22756 rm -f conftest.err conftest.$ac_objext \
22757       conftest$ac_exeext conftest.$ac_ext
22758 fi
22759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22761 if test `eval echo '${'$as_ac_var'}'` = yes; then
22762   cat >>confdefs.h <<_ACEOF
22763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22764 _ACEOF
22765
22766 fi
22767 done
22768
22769 echo "$as_me:$LINENO: checking for working mmap" >&5
22770 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22771 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22772   echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774   if test "$cross_compiling" = yes; then
22775   ac_cv_func_mmap_fixed_mapped=no
22776 else
22777   cat >conftest.$ac_ext <<_ACEOF
22778 /* confdefs.h.  */
22779 _ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h.  */
22783 $ac_includes_default
22784 /* malloc might have been renamed as rpl_malloc. */
22785 #undef malloc
22786
22787 /* Thanks to Mike Haertel and Jim Avera for this test.
22788    Here is a matrix of mmap possibilities:
22789         mmap private not fixed
22790         mmap private fixed at somewhere currently unmapped
22791         mmap private fixed at somewhere already mapped
22792         mmap shared not fixed
22793         mmap shared fixed at somewhere currently unmapped
22794         mmap shared fixed at somewhere already mapped
22795    For private mappings, we should verify that changes cannot be read()
22796    back from the file, nor mmap's back from the file at a different
22797    address.  (There have been systems where private was not correctly
22798    implemented like the infamous i386 svr4.0, and systems where the
22799    VM page cache was not coherent with the file system buffer cache
22800    like early versions of FreeBSD and possibly contemporary NetBSD.)
22801    For shared mappings, we should conversely verify that changes get
22802    propagated back to all the places they're supposed to be.
22803
22804    Grep wants private fixed already mapped.
22805    The main things grep needs to know about mmap are:
22806    * does it exist and is it safe to write into the mmap'd area
22807    * how to use it (BSD variants)  */
22808
22809 #include <fcntl.h>
22810 #include <sys/mman.h>
22811
22812 #if !STDC_HEADERS && !HAVE_STDLIB_H
22813 char *malloc ();
22814 #endif
22815
22816 /* This mess was copied from the GNU getpagesize.h.  */
22817 #if !HAVE_GETPAGESIZE
22818 /* Assume that all systems that can run configure have sys/param.h.  */
22819 # if !HAVE_SYS_PARAM_H
22820 #  define HAVE_SYS_PARAM_H 1
22821 # endif
22822
22823 # ifdef _SC_PAGESIZE
22824 #  define getpagesize() sysconf(_SC_PAGESIZE)
22825 # else /* no _SC_PAGESIZE */
22826 #  if HAVE_SYS_PARAM_H
22827 #   include <sys/param.h>
22828 #   ifdef EXEC_PAGESIZE
22829 #    define getpagesize() EXEC_PAGESIZE
22830 #   else /* no EXEC_PAGESIZE */
22831 #    ifdef NBPG
22832 #     define getpagesize() NBPG * CLSIZE
22833 #     ifndef CLSIZE
22834 #      define CLSIZE 1
22835 #     endif /* no CLSIZE */
22836 #    else /* no NBPG */
22837 #     ifdef NBPC
22838 #      define getpagesize() NBPC
22839 #     else /* no NBPC */
22840 #      ifdef PAGESIZE
22841 #       define getpagesize() PAGESIZE
22842 #      endif /* PAGESIZE */
22843 #     endif /* no NBPC */
22844 #    endif /* no NBPG */
22845 #   endif /* no EXEC_PAGESIZE */
22846 #  else /* no HAVE_SYS_PARAM_H */
22847 #   define getpagesize() 8192   /* punt totally */
22848 #  endif /* no HAVE_SYS_PARAM_H */
22849 # endif /* no _SC_PAGESIZE */
22850
22851 #endif /* no HAVE_GETPAGESIZE */
22852
22853 int
22854 main ()
22855 {
22856   char *data, *data2, *data3;
22857   int i, pagesize;
22858   int fd;
22859
22860   pagesize = getpagesize ();
22861
22862   /* First, make a file with some known garbage in it. */
22863   data = (char *) malloc (pagesize);
22864   if (!data)
22865     exit (1);
22866   for (i = 0; i < pagesize; ++i)
22867     *(data + i) = rand ();
22868   umask (0);
22869   fd = creat ("conftest.mmap", 0600);
22870   if (fd < 0)
22871     exit (1);
22872   if (write (fd, data, pagesize) != pagesize)
22873     exit (1);
22874   close (fd);
22875
22876   /* Next, try to mmap the file at a fixed address which already has
22877      something else allocated at it.  If we can, also make sure that
22878      we see the same garbage.  */
22879   fd = open ("conftest.mmap", O_RDWR);
22880   if (fd < 0)
22881     exit (1);
22882   data2 = (char *) malloc (2 * pagesize);
22883   if (!data2)
22884     exit (1);
22885   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22886   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22887                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22888     exit (1);
22889   for (i = 0; i < pagesize; ++i)
22890     if (*(data + i) != *(data2 + i))
22891       exit (1);
22892
22893   /* Finally, make sure that changes to the mapped area do not
22894      percolate back to the file as seen by read().  (This is a bug on
22895      some variants of i386 svr4.0.)  */
22896   for (i = 0; i < pagesize; ++i)
22897     *(data2 + i) = *(data2 + i) + 1;
22898   data3 = (char *) malloc (pagesize);
22899   if (!data3)
22900     exit (1);
22901   if (read (fd, data3, pagesize) != pagesize)
22902     exit (1);
22903   for (i = 0; i < pagesize; ++i)
22904     if (*(data + i) != *(data3 + i))
22905       exit (1);
22906   close (fd);
22907   exit (0);
22908 }
22909 _ACEOF
22910 rm -f conftest$ac_exeext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22912   (eval $ac_link) 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   ac_cv_func_mmap_fixed_mapped=yes
22922 else
22923   echo "$as_me: program exited with status $ac_status" >&5
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22926
22927 ( exit $ac_status )
22928 ac_cv_func_mmap_fixed_mapped=no
22929 fi
22930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22931 fi
22932 fi
22933 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22934 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22935 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22936
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_MMAP 1
22939 _ACEOF
22940
22941 fi
22942 rm -f conftest.mmap
22943
22944 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22945 then
22946         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22947 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22948 fi
22949 echo "$as_me:$LINENO: checking for mmap of files" >&5
22950 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22951 if test "${ac_cv_func_mmap_file+set}" = set; then
22952   echo $ECHO_N "(cached) $ECHO_C" >&6
22953 else
22954
22955
22956   ac_ext=c
22957 ac_cpp='$CPP $CPPFLAGS'
22958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22961
22962   if test "$cross_compiling" = yes; then
22963   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22964 See \`config.log' for more details." >&5
22965 echo "$as_me: error: cannot run test program while cross compiling
22966 See \`config.log' for more details." >&2;}
22967    { (exit 1); exit 1; }; }
22968 else
22969   cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h.  */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h.  */
22975
22976 #ifdef HAVE_SYS_TYPES_H
22977 #include <sys/types.h>
22978 #endif
22979
22980 #ifdef HAVE_SYS_MMAN_H
22981 #include <sys/mman.h>
22982 #endif
22983
22984 #ifdef HAVE_FCNTL_H
22985 #include <fcntl.h>
22986 #endif
22987
22988   int fd;
22989   int main () {
22990   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22991 _ACEOF
22992 rm -f conftest$ac_exeext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994   (eval $ac_link) 2>&5
22995   ac_status=$?
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999   (eval $ac_try) 2>&5
23000   ac_status=$?
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); }; }; then
23003   ac_cv_func_mmap_file=yes
23004 else
23005   echo "$as_me: program exited with status $ac_status" >&5
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23008
23009 ( exit $ac_status )
23010 ac_cv_func_mmap_file=no
23011 fi
23012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23013 fi
23014   ac_ext=c
23015 ac_cpp='$CPP $CPPFLAGS'
23016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23019
23020
23021 fi
23022 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23023 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23024 if test "$ac_cv_func_mmap_file" = yes; then
23025
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_MMAP_FILE
23028 _ACEOF
23029
23030    MMAP_FILE=yes
23031
23032 fi
23033
23034 if test "$ac_cv_func_mmap_file" = "no"
23035 then
23036         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23037 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23038 fi
23039 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23040 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23041 if test "${ac_cv_header_mmap_anon+set}" = set; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044
23045
23046   ac_ext=c
23047 ac_cpp='$CPP $CPPFLAGS'
23048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23051
23052   cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h.  */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h.  */
23058 #include <sys/mman.h>
23059   #include <unistd.h>
23060   #include <fcntl.h>
23061 int
23062 main ()
23063 {
23064 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23071   (eval $ac_compile) 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } &&
23078          { ac_try='test -z "$ac_c_werror_flag"
23079                          || test ! -s conftest.err'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; } &&
23085          { ac_try='test -s conftest.$ac_objext'
23086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087   (eval $ac_try) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; }; then
23091   ac_cv_header_mmap_anon=yes
23092 else
23093   echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23095
23096 ac_cv_header_mmap_anon=no
23097 fi
23098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23099   ac_ext=c
23100 ac_cpp='$CPP $CPPFLAGS'
23101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23104
23105
23106 fi
23107 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23108 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23109 if test "$ac_cv_header_mmap_anon" = yes; then
23110
23111 cat >>confdefs.h <<\_ACEOF
23112 #define HAVE_MMAP_ANONYMOUS
23113 _ACEOF
23114
23115 fi
23116
23117 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23118 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23119 if test "${ac_cv_type_signal+set}" = set; then
23120   echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122   cat >conftest.$ac_ext <<_ACEOF
23123 /* confdefs.h.  */
23124 _ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h.  */
23128 #include <sys/types.h>
23129 #include <signal.h>
23130 #ifdef signal
23131 # undef signal
23132 #endif
23133 #ifdef __cplusplus
23134 extern "C" void (*signal (int, void (*)(int)))(int);
23135 #else
23136 void (*signal ()) ();
23137 #endif
23138
23139 int
23140 main ()
23141 {
23142 int i;
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23149   (eval $ac_compile) 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } &&
23156          { ac_try='test -z "$ac_c_werror_flag"
23157                          || test ! -s conftest.err'
23158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159   (eval $ac_try) 2>&5
23160   ac_status=$?
23161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162   (exit $ac_status); }; } &&
23163          { ac_try='test -s conftest.$ac_objext'
23164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165   (eval $ac_try) 2>&5
23166   ac_status=$?
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); }; }; then
23169   ac_cv_type_signal=void
23170 else
23171   echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23173
23174 ac_cv_type_signal=int
23175 fi
23176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23177 fi
23178 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23179 echo "${ECHO_T}$ac_cv_type_signal" >&6
23180
23181 cat >>confdefs.h <<_ACEOF
23182 #define RETSIGTYPE $ac_cv_type_signal
23183 _ACEOF
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23196 do
23197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23198 echo "$as_me:$LINENO: checking for $ac_func" >&5
23199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23200 if eval "test \"\${$as_ac_var+set}\" = set"; then
23201   echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23211 #define $ac_func innocuous_$ac_func
23212
23213 /* System header to define __stub macros and hopefully few prototypes,
23214     which can conflict with char $ac_func (); below.
23215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23216     <limits.h> exists even on freestanding compilers.  */
23217
23218 #ifdef __STDC__
23219 # include <limits.h>
23220 #else
23221 # include <assert.h>
23222 #endif
23223
23224 #undef $ac_func
23225
23226 /* Override any gcc2 internal prototype to avoid an error.  */
23227 #ifdef __cplusplus
23228 extern "C"
23229 {
23230 #endif
23231 /* We use char because int might match the return type of a gcc2
23232    builtin and then its argument prototype would still apply.  */
23233 char $ac_func ();
23234 /* The GNU C library defines this for functions which it implements
23235     to always fail with ENOSYS.  Some functions are actually named
23236     something starting with __ and the normal name is an alias.  */
23237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23238 choke me
23239 #else
23240 char (*f) () = $ac_func;
23241 #endif
23242 #ifdef __cplusplus
23243 }
23244 #endif
23245
23246 int
23247 main ()
23248 {
23249 return f != $ac_func;
23250   ;
23251   return 0;
23252 }
23253 _ACEOF
23254 rm -f conftest.$ac_objext conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256   (eval $ac_link) 2>conftest.er1
23257   ac_status=$?
23258   grep -v '^ *+' conftest.er1 >conftest.err
23259   rm -f conftest.er1
23260   cat conftest.err >&5
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); } &&
23263          { ac_try='test -z "$ac_c_werror_flag"
23264                          || test ! -s conftest.err'
23265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266   (eval $ac_try) 2>&5
23267   ac_status=$?
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); }; } &&
23270          { ac_try='test -s conftest$ac_exeext'
23271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); }; }; then
23276   eval "$as_ac_var=yes"
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 eval "$as_ac_var=no"
23282 fi
23283 rm -f conftest.err conftest.$ac_objext \
23284       conftest$ac_exeext conftest.$ac_ext
23285 fi
23286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23288 if test `eval echo '${'$as_ac_var'}'` = yes; then
23289   cat >>confdefs.h <<_ACEOF
23290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23291 _ACEOF
23292
23293 fi
23294 done
23295
23296 echo "$as_me:$LINENO: checking for mprotect" >&5
23297 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23298 if test "${ac_cv_func_mprotect+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23309 #define mprotect innocuous_mprotect
23310
23311 /* System header to define __stub macros and hopefully few prototypes,
23312     which can conflict with char mprotect (); below.
23313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314     <limits.h> exists even on freestanding compilers.  */
23315
23316 #ifdef __STDC__
23317 # include <limits.h>
23318 #else
23319 # include <assert.h>
23320 #endif
23321
23322 #undef mprotect
23323
23324 /* Override any gcc2 internal prototype to avoid an error.  */
23325 #ifdef __cplusplus
23326 extern "C"
23327 {
23328 #endif
23329 /* We use char because int might match the return type of a gcc2
23330    builtin and then its argument prototype would still apply.  */
23331 char mprotect ();
23332 /* The GNU C library defines this for functions which it implements
23333     to always fail with ENOSYS.  Some functions are actually named
23334     something starting with __ and the normal name is an alias.  */
23335 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23336 choke me
23337 #else
23338 char (*f) () = mprotect;
23339 #endif
23340 #ifdef __cplusplus
23341 }
23342 #endif
23343
23344 int
23345 main ()
23346 {
23347 return f != mprotect;
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext conftest$ac_exeext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23354   (eval $ac_link) 2>conftest.er1
23355   ac_status=$?
23356   grep -v '^ *+' conftest.er1 >conftest.err
23357   rm -f conftest.er1
23358   cat conftest.err >&5
23359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); } &&
23361          { ac_try='test -z "$ac_c_werror_flag"
23362                          || test ! -s conftest.err'
23363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364   (eval $ac_try) 2>&5
23365   ac_status=$?
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); }; } &&
23368          { ac_try='test -s conftest$ac_exeext'
23369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370   (eval $ac_try) 2>&5
23371   ac_status=$?
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); }; }; then
23374   ac_cv_func_mprotect=yes
23375 else
23376   echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379 ac_cv_func_mprotect=no
23380 fi
23381 rm -f conftest.err conftest.$ac_objext \
23382       conftest$ac_exeext conftest.$ac_ext
23383 fi
23384 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23385 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23386 if test $ac_cv_func_mprotect = yes; then
23387   :
23388 else
23389   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23390 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23391    { (exit 1); exit 1; }; }
23392 fi
23393
23394
23395
23396   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23397 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23398
23399
23400   ac_ext=c
23401 ac_cpp='$CPP $CPPFLAGS'
23402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23405
23406   oldcflags="$CFLAGS"
23407   CFLAGS="$CFLAGS -Wl,-R."
23408   cat >conftest.$ac_ext <<_ACEOF
23409 int main() { return 0; }
23410 _ACEOF
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23413   (eval $ac_link) 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } &&
23420          { ac_try='test -z "$ac_c_werror_flag"
23421                          || test ! -s conftest.err'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; } &&
23427          { ac_try='test -s conftest$ac_exeext'
23428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429   (eval $ac_try) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); }; }; then
23433   ac_cv_link_use_r=yes
23434 else
23435   echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438 ac_cv_link_use_r=no
23439 fi
23440 rm -f conftest.err conftest.$ac_objext \
23441       conftest$ac_exeext conftest.$ac_ext
23442   CFLAGS="$oldcflags"
23443   ac_ext=c
23444 ac_cpp='$CPP $CPPFLAGS'
23445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23448
23449   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23450 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23451   if test "$ac_cv_link_use_r" = yes
23452   then
23453
23454 cat >>confdefs.h <<\_ACEOF
23455 #define HAVE_LINK_R 1
23456 _ACEOF
23457
23458   fi
23459
23460
23461 # Check whether --enable-optimized or --disable-optimized was given.
23462 if test "${enable_optimized+set}" = set; then
23463   enableval="$enable_optimized"
23464
23465 else
23466   enableval=no
23467 fi;
23468 if test ${enableval} = "no"
23469 then
23470         ENABLE_OPTIMIZED=
23471
23472 else
23473         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23474
23475 fi
23476
23477
23478
23479
23480  # Check whether --enable-spec95 or --disable-spec95 was given.
23481 if test "${enable_spec95+set}" = set; then
23482   enableval="$enable_spec95"
23483   checkresult=$enableval
23484 else
23485   checkresult=auto
23486 fi;
23487 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23488 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23489 case "$checkresult" in
23490 auto|yes)
23491     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23492         if test -d "$defaultdir"
23493         then
23494                 SPEC95_ROOT=$defaultdir
23495
23496                 USE_SPEC95=USE_SPEC95=1
23497
23498         checkresult="yes, found in $defaultdir"
23499     else
23500         checkresult=no
23501     fi
23502     ;;
23503 no)
23504
23505
23506     checkresult=no
23507     ;;
23508 *)  if test -d "$checkresult"
23509     then
23510         SPEC95_ROOT="$checkresult"
23511
23512         USE_SPEC95=USE_SPEC95=1
23513
23514         checkresult="yes, in $checkresult"
23515     else
23516
23517
23518         checkresult="no, not found in $checkresult"
23519     fi
23520     ;;
23521 esac
23522 echo "$as_me:$LINENO: result: $checkresult" >&5
23523 echo "${ECHO_T}$checkresult" >&6
23524
23525
23526
23527  # Check whether --enable-spec2000 or --disable-spec2000 was given.
23528 if test "${enable_spec2000+set}" = set; then
23529   enableval="$enable_spec2000"
23530   checkresult=$enableval
23531 else
23532   checkresult=auto
23533 fi;
23534 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23535 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23536 case "$checkresult" in
23537 auto|yes)
23538     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23539         if test -d "$defaultdir"
23540         then
23541                 SPEC2000_ROOT=$defaultdir
23542
23543                 USE_SPEC2000=USE_SPEC2000=1
23544
23545         checkresult="yes, found in $defaultdir"
23546     else
23547         checkresult=no
23548     fi
23549     ;;
23550 no)
23551
23552
23553     checkresult=no
23554     ;;
23555 *)  if test -d "$checkresult"
23556     then
23557         SPEC2000_ROOT="$checkresult"
23558
23559         USE_SPEC2000=USE_SPEC2000=1
23560
23561         checkresult="yes, in $checkresult"
23562     else
23563
23564
23565         checkresult="no, not found in $checkresult"
23566     fi
23567     ;;
23568 esac
23569 echo "$as_me:$LINENO: result: $checkresult" >&5
23570 echo "${ECHO_T}$checkresult" >&6
23571
23572
23573
23574  # Check whether --enable-povray or --disable-povray was given.
23575 if test "${enable_povray+set}" = set; then
23576   enableval="$enable_povray"
23577   checkresult=$enableval
23578 else
23579   checkresult=auto
23580 fi;
23581 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23582 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23583 case "$checkresult" in
23584 auto|yes)
23585     defaultdir=/home/vadve/shared/benchmarks/povray31
23586         if test -d "$defaultdir"
23587         then
23588                 POVRAY_ROOT=$defaultdir
23589
23590                 USE_POVRAY=USE_POVRAY=1
23591
23592         checkresult="yes, found in $defaultdir"
23593     else
23594         checkresult=no
23595     fi
23596     ;;
23597 no)
23598
23599
23600     checkresult=no
23601     ;;
23602 *)  if test -d "$checkresult"
23603     then
23604         POVRAY_ROOT="$checkresult"
23605
23606         USE_POVRAY=USE_POVRAY=1
23607
23608         checkresult="yes, in $checkresult"
23609     else
23610
23611
23612         checkresult="no, not found in $checkresult"
23613     fi
23614     ;;
23615 esac
23616 echo "$as_me:$LINENO: result: $checkresult" >&5
23617 echo "${ECHO_T}$checkresult" >&6
23618
23619
23620
23621 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23622 if test "${enable_precompiled_bytecode+set}" = set; then
23623   enableval="$enable_precompiled_bytecode"
23624
23625 else
23626   enableval=no
23627 fi;
23628 if test ${enableval} = "no"
23629 then
23630         UPB=
23631
23632 else
23633         UPB=USE_PRECOMPILED_BYTECODE=1
23634
23635 fi
23636
23637 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23638 if test "${enable_llc_diffs+set}" = set; then
23639   enableval="$enable_llc_diffs"
23640
23641 else
23642   enableval=yes
23643 fi;
23644 if test ${enableval} = "no"
23645 then
23646         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23647
23648 else
23649         DISABLE_LLC_DIFFS=
23650
23651 fi
23652
23653 # Check whether --enable-jit or --disable-jit was given.
23654 if test "${enable_jit+set}" = set; then
23655   enableval="$enable_jit"
23656
23657 else
23658   enableval=default
23659 fi;
23660 if test ${enableval} = "no"
23661 then
23662         JIT=
23663
23664 else
23665         case $target in
23666                 *i*86*)
23667                         JIT=TARGET_HAS_JIT=1
23668
23669                         ;;
23670                 *sparc*)
23671                         JIT=TARGET_HAS_JIT=1
23672
23673                         ;;
23674                 *)
23675                         JIT=
23676
23677                         ;;
23678         esac
23679 fi
23680
23681
23682 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23683 if test "${with_llvmgccdir+set}" = set; then
23684   withval="$with_llvmgccdir"
23685   LLVMGCCDIR=$withval
23686
23687 fi;
23688 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23689 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23690 LLVM_GCC_CHECK=no
23691 if test -d "$LLVMGCCDIR"
23692 then
23693         if test -x "$LLVMGCCDIR/bin/gcc"
23694         then
23695                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23696         fi
23697 fi
23698 llvmgccwarn=no
23699 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23700 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23701 if test "$LLVM_GCC_CHECK" = "no"
23702 then
23703     llvmgccwarn=yes
23704 fi
23705 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23706 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23707 LLVM_GCC_SANE=no
23708 if test -x "$LLVM_GCC_CHECK"
23709 then
23710         cp /dev/null conftest.c
23711     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23712         if test $? -eq 0
23713         then
23714                 LLVM_GCC_SANE=yes
23715         fi
23716         rm conftest.c
23717         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23718         LLVMCC1=$llvmcc1path
23719
23720         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23721         LLVMCC1PLUS=$llvmcc1pluspath
23722
23723 fi
23724 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23725 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23726 if test "$LLVM_GCC_SANE" = "no"
23727 then
23728         llvmgccwarn=yes
23729 fi
23730
23731
23732 # Check whether --with-bcrepos or --without-bcrepos was given.
23733 if test "${with_bcrepos+set}" = set; then
23734   withval="$with_bcrepos"
23735   BCR=$withval
23736
23737 else
23738   BCR=/home/vadve/lattner/LLVMPrograms
23739
23740 fi;
23741
23742
23743 # Check whether --with-papi or --without-papi was given.
23744 if test "${with_papi+set}" = set; then
23745   withval="$with_papi"
23746   PAPIDIR=$withval
23747
23748 else
23749   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23750
23751 fi;
23752
23753 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23754 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23755 eval "SHLIBEXT=$shrext"
23756 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23757 echo "${ECHO_T}$SHLIBEXT" >&6
23758 SHLIBEXT=$SHLIBEXT
23759
23760
23761 cat >>confdefs.h <<_ACEOF
23762 #define SHLIBEXT "$SHLIBEXT"
23763 _ACEOF
23764
23765
23766 # Translate the various configuration directories and other basic
23767 # information into substitutions that will end up in config.h.in so
23768 # that these configured values can be hard-wired into a program.
23769 eval LLVM_PREFIX="${prefix}";
23770 eval LLVM_BINDIR="${prefix}/bin";
23771 eval LLVM_LIBDIR="${prefix}/lib";
23772 eval LLVM_DATADIR="${prefix}/data";
23773 eval LLVM_DOCSDIR="${prefix}/docs";
23774 eval LLVM_ETCDIR="${prefix}/etc";
23775 eval LLVM_INCLUDEDIR="${prefix}/include";
23776 eval LLVM_INFODIR="${prefix}/info";
23777 eval LLVM_MANDIR="${prefix}/man";
23778 LLVM_CONFIGTIME=`date`
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790 cat >>confdefs.h <<_ACEOF
23791 #define LLVM_PREFIX "$LLVM_PREFIX"
23792 _ACEOF
23793
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define LLVM_BINDIR "$LLVM_BINDIR"
23797 _ACEOF
23798
23799
23800 cat >>confdefs.h <<_ACEOF
23801 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23802 _ACEOF
23803
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define LLVM_DATADIR "$LLVM_DATADIR"
23807 _ACEOF
23808
23809
23810 cat >>confdefs.h <<_ACEOF
23811 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23812 _ACEOF
23813
23814
23815 cat >>confdefs.h <<_ACEOF
23816 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23817 _ACEOF
23818
23819
23820 cat >>confdefs.h <<_ACEOF
23821 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23822 _ACEOF
23823
23824
23825 cat >>confdefs.h <<_ACEOF
23826 #define LLVM_INFODIR "$LLVM_INFODIR"
23827 _ACEOF
23828
23829
23830 cat >>confdefs.h <<_ACEOF
23831 #define LLVM_MANDIR "$LLVM_MANDIR"
23832 _ACEOF
23833
23834
23835 cat >>confdefs.h <<_ACEOF
23836 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23837 _ACEOF
23838
23839
23840 cat >confcache <<\_ACEOF
23841 # This file is a shell script that caches the results of configure
23842 # tests run on this system so they can be shared between configure
23843 # scripts and configure runs, see configure's option --config-cache.
23844 # It is not useful on other systems.  If it contains results you don't
23845 # want to keep, you may remove or edit it.
23846 #
23847 # config.status only pays attention to the cache file if you give it
23848 # the --recheck option to rerun configure.
23849 #
23850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23852 # following values.
23853
23854 _ACEOF
23855
23856 # The following way of writing the cache mishandles newlines in values,
23857 # but we know of no workaround that is simple, portable, and efficient.
23858 # So, don't put newlines in cache variables' values.
23859 # Ultrix sh set writes to stderr and can't be redirected directly,
23860 # and sets the high bit in the cache file unless we assign to the vars.
23861 {
23862   (set) 2>&1 |
23863     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23864     *ac_space=\ *)
23865       # `set' does not quote correctly, so add quotes (double-quote
23866       # substitution turns \\\\ into \\, and sed turns \\ into \).
23867       sed -n \
23868         "s/'/'\\\\''/g;
23869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23870       ;;
23871     *)
23872       # `set' quotes correctly as required by POSIX, so do not add quotes.
23873       sed -n \
23874         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23875       ;;
23876     esac;
23877 } |
23878   sed '
23879      t clear
23880      : clear
23881      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23882      t end
23883      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23884      : end' >>confcache
23885 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23886   if test -w $cache_file; then
23887     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23888     cat confcache >$cache_file
23889   else
23890     echo "not updating unwritable cache $cache_file"
23891   fi
23892 fi
23893 rm -f confcache
23894
23895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23896 # Let make expand exec_prefix.
23897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23898
23899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23901 # trailing colons and then remove the whole line if VPATH becomes empty
23902 # (actually we leave an empty line to preserve line numbers).
23903 if test "x$srcdir" = x.; then
23904   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23905 s/:*\$(srcdir):*/:/;
23906 s/:*\${srcdir}:*/:/;
23907 s/:*@srcdir@:*/:/;
23908 s/^\([^=]*=[     ]*\):*/\1/;
23909 s/:*$//;
23910 s/^[^=]*=[       ]*$//;
23911 }'
23912 fi
23913
23914 DEFS=-DHAVE_CONFIG_H
23915
23916 ac_libobjs=
23917 ac_ltlibobjs=
23918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23919   # 1. Remove the extension, and $U if already installed.
23920   ac_i=`echo "$ac_i" |
23921          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23922   # 2. Add them.
23923   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23924   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23925 done
23926 LIBOBJS=$ac_libobjs
23927
23928 LTLIBOBJS=$ac_ltlibobjs
23929
23930
23931
23932 : ${CONFIG_STATUS=./config.status}
23933 ac_clean_files_save=$ac_clean_files
23934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23935 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23936 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23937 cat >$CONFIG_STATUS <<_ACEOF
23938 #! $SHELL
23939 # Generated by $as_me.
23940 # Run this file to recreate the current configuration.
23941 # Compiler output produced by configure, useful for debugging
23942 # configure, is in config.log if it exists.
23943
23944 debug=false
23945 ac_cs_recheck=false
23946 ac_cs_silent=false
23947 SHELL=\${CONFIG_SHELL-$SHELL}
23948 _ACEOF
23949
23950 cat >>$CONFIG_STATUS <<\_ACEOF
23951 ## --------------------- ##
23952 ## M4sh Initialization.  ##
23953 ## --------------------- ##
23954
23955 # Be Bourne compatible
23956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23957   emulate sh
23958   NULLCMD=:
23959   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23960   # is contrary to our usage.  Disable this feature.
23961   alias -g '${1+"$@"}'='"$@"'
23962 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23963   set -o posix
23964 fi
23965 DUALCASE=1; export DUALCASE # for MKS sh
23966
23967 # Support unset when possible.
23968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23969   as_unset=unset
23970 else
23971   as_unset=false
23972 fi
23973
23974
23975 # Work around bugs in pre-3.0 UWIN ksh.
23976 $as_unset ENV MAIL MAILPATH
23977 PS1='$ '
23978 PS2='> '
23979 PS4='+ '
23980
23981 # NLS nuisances.
23982 for as_var in \
23983   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23984   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23985   LC_TELEPHONE LC_TIME
23986 do
23987   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23988     eval $as_var=C; export $as_var
23989   else
23990     $as_unset $as_var
23991   fi
23992 done
23993
23994 # Required to use basename.
23995 if expr a : '\(a\)' >/dev/null 2>&1; then
23996   as_expr=expr
23997 else
23998   as_expr=false
23999 fi
24000
24001 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24002   as_basename=basename
24003 else
24004   as_basename=false
24005 fi
24006
24007
24008 # Name of the executable.
24009 as_me=`$as_basename "$0" ||
24010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24011          X"$0" : 'X\(//\)$' \| \
24012          X"$0" : 'X\(/\)$' \| \
24013          .     : '\(.\)' 2>/dev/null ||
24014 echo X/"$0" |
24015     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24016           /^X\/\(\/\/\)$/{ s//\1/; q; }
24017           /^X\/\(\/\).*/{ s//\1/; q; }
24018           s/.*/./; q'`
24019
24020
24021 # PATH needs CR, and LINENO needs CR and PATH.
24022 # Avoid depending upon Character Ranges.
24023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24026 as_cr_digits='0123456789'
24027 as_cr_alnum=$as_cr_Letters$as_cr_digits
24028
24029 # The user is always right.
24030 if test "${PATH_SEPARATOR+set}" != set; then
24031   echo "#! /bin/sh" >conf$$.sh
24032   echo  "exit 0"   >>conf$$.sh
24033   chmod +x conf$$.sh
24034   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24035     PATH_SEPARATOR=';'
24036   else
24037     PATH_SEPARATOR=:
24038   fi
24039   rm -f conf$$.sh
24040 fi
24041
24042
24043   as_lineno_1=$LINENO
24044   as_lineno_2=$LINENO
24045   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24046   test "x$as_lineno_1" != "x$as_lineno_2" &&
24047   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24048   # Find who we are.  Look in the path if we contain no path at all
24049   # relative or not.
24050   case $0 in
24051     *[\\/]* ) as_myself=$0 ;;
24052     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24053 for as_dir in $PATH
24054 do
24055   IFS=$as_save_IFS
24056   test -z "$as_dir" && as_dir=.
24057   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24058 done
24059
24060        ;;
24061   esac
24062   # We did not find ourselves, most probably we were run as `sh COMMAND'
24063   # in which case we are not to be found in the path.
24064   if test "x$as_myself" = x; then
24065     as_myself=$0
24066   fi
24067   if test ! -f "$as_myself"; then
24068     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24069 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24070    { (exit 1); exit 1; }; }
24071   fi
24072   case $CONFIG_SHELL in
24073   '')
24074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24075 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24076 do
24077   IFS=$as_save_IFS
24078   test -z "$as_dir" && as_dir=.
24079   for as_base in sh bash ksh sh5; do
24080          case $as_dir in
24081          /*)
24082            if ("$as_dir/$as_base" -c '
24083   as_lineno_1=$LINENO
24084   as_lineno_2=$LINENO
24085   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24086   test "x$as_lineno_1" != "x$as_lineno_2" &&
24087   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24088              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24089              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24090              CONFIG_SHELL=$as_dir/$as_base
24091              export CONFIG_SHELL
24092              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24093            fi;;
24094          esac
24095        done
24096 done
24097 ;;
24098   esac
24099
24100   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24101   # uniformly replaced by the line number.  The first 'sed' inserts a
24102   # line-number line before each line; the second 'sed' does the real
24103   # work.  The second script uses 'N' to pair each line-number line
24104   # with the numbered line, and appends trailing '-' during
24105   # substitution so that $LINENO is not a special case at line end.
24106   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24107   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24108   sed '=' <$as_myself |
24109     sed '
24110       N
24111       s,$,-,
24112       : loop
24113       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24114       t loop
24115       s,-$,,
24116       s,^['$as_cr_digits']*\n,,
24117     ' >$as_me.lineno &&
24118   chmod +x $as_me.lineno ||
24119     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24120 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24121    { (exit 1); exit 1; }; }
24122
24123   # Don't try to exec as it changes $[0], causing all sort of problems
24124   # (the dirname of $[0] is not the place where we might find the
24125   # original and so on.  Autoconf is especially sensible to this).
24126   . ./$as_me.lineno
24127   # Exit status is that of the last command.
24128   exit
24129 }
24130
24131
24132 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24133   *c*,-n*) ECHO_N= ECHO_C='
24134 ' ECHO_T='      ' ;;
24135   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24136   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24137 esac
24138
24139 if expr a : '\(a\)' >/dev/null 2>&1; then
24140   as_expr=expr
24141 else
24142   as_expr=false
24143 fi
24144
24145 rm -f conf$$ conf$$.exe conf$$.file
24146 echo >conf$$.file
24147 if ln -s conf$$.file conf$$ 2>/dev/null; then
24148   # We could just check for DJGPP; but this test a) works b) is more generic
24149   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24150   if test -f conf$$.exe; then
24151     # Don't use ln at all; we don't have any links
24152     as_ln_s='cp -p'
24153   else
24154     as_ln_s='ln -s'
24155   fi
24156 elif ln conf$$.file conf$$ 2>/dev/null; then
24157   as_ln_s=ln
24158 else
24159   as_ln_s='cp -p'
24160 fi
24161 rm -f conf$$ conf$$.exe conf$$.file
24162
24163 if mkdir -p . 2>/dev/null; then
24164   as_mkdir_p=:
24165 else
24166   test -d ./-p && rmdir ./-p
24167   as_mkdir_p=false
24168 fi
24169
24170 as_executable_p="test -f"
24171
24172 # Sed expression to map a string onto a valid CPP name.
24173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24174
24175 # Sed expression to map a string onto a valid variable name.
24176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24177
24178
24179 # IFS
24180 # We need space, tab and new line, in precisely that order.
24181 as_nl='
24182 '
24183 IFS="   $as_nl"
24184
24185 # CDPATH.
24186 $as_unset CDPATH
24187
24188 exec 6>&1
24189
24190 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24191 # report actual input values of CONFIG_FILES etc. instead of their
24192 # values after options handling.  Logging --version etc. is OK.
24193 exec 5>>config.log
24194 {
24195   echo
24196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24197 ## Running $as_me. ##
24198 _ASBOX
24199 } >&5
24200 cat >&5 <<_CSEOF
24201
24202 This file was extended by LLVM $as_me 1.4, which was
24203 generated by GNU Autoconf 2.59.  Invocation command line was
24204
24205   CONFIG_FILES    = $CONFIG_FILES
24206   CONFIG_HEADERS  = $CONFIG_HEADERS
24207   CONFIG_LINKS    = $CONFIG_LINKS
24208   CONFIG_COMMANDS = $CONFIG_COMMANDS
24209   $ $0 $@
24210
24211 _CSEOF
24212 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24213 echo >&5
24214 _ACEOF
24215
24216 # Files that config.status was made for.
24217 if test -n "$ac_config_files"; then
24218   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24219 fi
24220
24221 if test -n "$ac_config_headers"; then
24222   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24223 fi
24224
24225 if test -n "$ac_config_links"; then
24226   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24227 fi
24228
24229 if test -n "$ac_config_commands"; then
24230   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24231 fi
24232
24233 cat >>$CONFIG_STATUS <<\_ACEOF
24234
24235 ac_cs_usage="\
24236 \`$as_me' instantiates files from templates according to the
24237 current configuration.
24238
24239 Usage: $0 [OPTIONS] [FILE]...
24240
24241   -h, --help       print this help, then exit
24242   -V, --version    print version number, then exit
24243   -q, --quiet      do not print progress messages
24244   -d, --debug      don't remove temporary files
24245       --recheck    update $as_me by reconfiguring in the same conditions
24246   --file=FILE[:TEMPLATE]
24247                    instantiate the configuration file FILE
24248   --header=FILE[:TEMPLATE]
24249                    instantiate the configuration header FILE
24250
24251 Configuration files:
24252 $config_files
24253
24254 Configuration headers:
24255 $config_headers
24256
24257 Configuration links:
24258 $config_links
24259
24260 Configuration commands:
24261 $config_commands
24262
24263 Report bugs to <bug-autoconf@gnu.org>."
24264 _ACEOF
24265
24266 cat >>$CONFIG_STATUS <<_ACEOF
24267 ac_cs_version="\\
24268 LLVM config.status 1.4
24269 configured by $0, generated by GNU Autoconf 2.59,
24270   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24271
24272 Copyright (C) 2003 Free Software Foundation, Inc.
24273 This config.status script is free software; the Free Software Foundation
24274 gives unlimited permission to copy, distribute and modify it."
24275 srcdir=$srcdir
24276 INSTALL="$INSTALL"
24277 _ACEOF
24278
24279 cat >>$CONFIG_STATUS <<\_ACEOF
24280 # If no file are specified by the user, then we need to provide default
24281 # value.  By we need to know if files were specified by the user.
24282 ac_need_defaults=:
24283 while test $# != 0
24284 do
24285   case $1 in
24286   --*=*)
24287     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24288     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24289     ac_shift=:
24290     ;;
24291   -*)
24292     ac_option=$1
24293     ac_optarg=$2
24294     ac_shift=shift
24295     ;;
24296   *) # This is not an option, so the user has probably given explicit
24297      # arguments.
24298      ac_option=$1
24299      ac_need_defaults=false;;
24300   esac
24301
24302   case $ac_option in
24303   # Handling of the options.
24304 _ACEOF
24305 cat >>$CONFIG_STATUS <<\_ACEOF
24306   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24307     ac_cs_recheck=: ;;
24308   --version | --vers* | -V )
24309     echo "$ac_cs_version"; exit 0 ;;
24310   --he | --h)
24311     # Conflict between --help and --header
24312     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24313 Try \`$0 --help' for more information." >&5
24314 echo "$as_me: error: ambiguous option: $1
24315 Try \`$0 --help' for more information." >&2;}
24316    { (exit 1); exit 1; }; };;
24317   --help | --hel | -h )
24318     echo "$ac_cs_usage"; exit 0 ;;
24319   --debug | --d* | -d )
24320     debug=: ;;
24321   --file | --fil | --fi | --f )
24322     $ac_shift
24323     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24324     ac_need_defaults=false;;
24325   --header | --heade | --head | --hea )
24326     $ac_shift
24327     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24328     ac_need_defaults=false;;
24329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24331     ac_cs_silent=: ;;
24332
24333   # This is an error.
24334   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24335 Try \`$0 --help' for more information." >&5
24336 echo "$as_me: error: unrecognized option: $1
24337 Try \`$0 --help' for more information." >&2;}
24338    { (exit 1); exit 1; }; } ;;
24339
24340   *) ac_config_targets="$ac_config_targets $1" ;;
24341
24342   esac
24343   shift
24344 done
24345
24346 ac_configure_extra_args=
24347
24348 if $ac_cs_silent; then
24349   exec 6>/dev/null
24350   ac_configure_extra_args="$ac_configure_extra_args --silent"
24351 fi
24352
24353 _ACEOF
24354 cat >>$CONFIG_STATUS <<_ACEOF
24355 if \$ac_cs_recheck; then
24356   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24357   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24358 fi
24359
24360 _ACEOF
24361
24362 cat >>$CONFIG_STATUS <<_ACEOF
24363 #
24364 # INIT-COMMANDS section.
24365 #
24366
24367 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24368 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24369 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24370 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24371 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24374 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24375 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24415 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24416 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24417 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24418
24419 _ACEOF
24420
24421
24422
24423 cat >>$CONFIG_STATUS <<\_ACEOF
24424 for ac_config_target in $ac_config_targets
24425 do
24426   case "$ac_config_target" in
24427   # Handling of arguments.
24428   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24429   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24430   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24431   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24432   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24433   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24434   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24435   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24436   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24437   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24438   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24439   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24440   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24441   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24442   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24443   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24444   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24445   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24446   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24447   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24448   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24449   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24450   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24451   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24452   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24453   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24454   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24455   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24456   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24457   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24458   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24459   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24460   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24461   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24462   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24463   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24464   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24465   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24466   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24467   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24468   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24469   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24470   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24471   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24472   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24473   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24474   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24475   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24476   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24477   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24478   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24479   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24480   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24481   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24482   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24483   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24484   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24485   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24486   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24487   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24489    { (exit 1); exit 1; }; };;
24490   esac
24491 done
24492
24493 # If the user did not use the arguments to specify the items to instantiate,
24494 # then the envvar interface is used.  Set only those that are not.
24495 # We use the long form for the default assignment because of an extremely
24496 # bizarre bug on SunOS 4.1.3.
24497 if $ac_need_defaults; then
24498   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24499   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24500   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24501   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24502 fi
24503
24504 # Have a temporary directory for convenience.  Make it in the build tree
24505 # simply because there is no reason to put it here, and in addition,
24506 # creating and moving files from /tmp can sometimes cause problems.
24507 # Create a temporary directory, and hook for its removal unless debugging.
24508 $debug ||
24509 {
24510   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24511   trap '{ (exit 1); exit 1; }' 1 2 13 15
24512 }
24513
24514 # Create a (secure) tmp directory for tmp files.
24515
24516 {
24517   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24518   test -n "$tmp" && test -d "$tmp"
24519 }  ||
24520 {
24521   tmp=./confstat$$-$RANDOM
24522   (umask 077 && mkdir $tmp)
24523 } ||
24524 {
24525    echo "$me: cannot create a temporary directory in ." >&2
24526    { (exit 1); exit 1; }
24527 }
24528
24529 _ACEOF
24530
24531 cat >>$CONFIG_STATUS <<_ACEOF
24532
24533 #
24534 # CONFIG_FILES section.
24535 #
24536
24537 # No need to generate the scripts if there are no CONFIG_FILES.
24538 # This happens for instance when ./config.status config.h
24539 if test -n "\$CONFIG_FILES"; then
24540   # Protect against being on the right side of a sed subst in config.status.
24541   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24542    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24543 s,@SHELL@,$SHELL,;t t
24544 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24545 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24546 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24547 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24548 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24549 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24550 s,@exec_prefix@,$exec_prefix,;t t
24551 s,@prefix@,$prefix,;t t
24552 s,@program_transform_name@,$program_transform_name,;t t
24553 s,@bindir@,$bindir,;t t
24554 s,@sbindir@,$sbindir,;t t
24555 s,@libexecdir@,$libexecdir,;t t
24556 s,@datadir@,$datadir,;t t
24557 s,@sysconfdir@,$sysconfdir,;t t
24558 s,@sharedstatedir@,$sharedstatedir,;t t
24559 s,@localstatedir@,$localstatedir,;t t
24560 s,@libdir@,$libdir,;t t
24561 s,@includedir@,$includedir,;t t
24562 s,@oldincludedir@,$oldincludedir,;t t
24563 s,@infodir@,$infodir,;t t
24564 s,@mandir@,$mandir,;t t
24565 s,@build_alias@,$build_alias,;t t
24566 s,@host_alias@,$host_alias,;t t
24567 s,@target_alias@,$target_alias,;t t
24568 s,@DEFS@,$DEFS,;t t
24569 s,@ECHO_C@,$ECHO_C,;t t
24570 s,@ECHO_N@,$ECHO_N,;t t
24571 s,@ECHO_T@,$ECHO_T,;t t
24572 s,@LIBS@,$LIBS,;t t
24573 s,@subdirs@,$subdirs,;t t
24574 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24575 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24576 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24577 s,@build@,$build,;t t
24578 s,@build_cpu@,$build_cpu,;t t
24579 s,@build_vendor@,$build_vendor,;t t
24580 s,@build_os@,$build_os,;t t
24581 s,@host@,$host,;t t
24582 s,@host_cpu@,$host_cpu,;t t
24583 s,@host_vendor@,$host_vendor,;t t
24584 s,@host_os@,$host_os,;t t
24585 s,@target@,$target,;t t
24586 s,@target_cpu@,$target_cpu,;t t
24587 s,@target_vendor@,$target_vendor,;t t
24588 s,@target_os@,$target_os,;t t
24589 s,@OS@,$OS,;t t
24590 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24591 s,@ARCH@,$ARCH,;t t
24592 s,@CXX@,$CXX,;t t
24593 s,@CXXFLAGS@,$CXXFLAGS,;t t
24594 s,@LDFLAGS@,$LDFLAGS,;t t
24595 s,@CPPFLAGS@,$CPPFLAGS,;t t
24596 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24597 s,@EXEEXT@,$EXEEXT,;t t
24598 s,@OBJEXT@,$OBJEXT,;t t
24599 s,@CC@,$CC,;t t
24600 s,@CFLAGS@,$CFLAGS,;t t
24601 s,@ac_ct_CC@,$ac_ct_CC,;t t
24602 s,@CPP@,$CPP,;t t
24603 s,@ifGNUmake@,$ifGNUmake,;t t
24604 s,@LEX@,$LEX,;t t
24605 s,@LEXLIB@,$LEXLIB,;t t
24606 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24607 s,@YACC@,$YACC,;t t
24608 s,@BISON@,$BISON,;t t
24609 s,@EGREP@,$EGREP,;t t
24610 s,@LN_S@,$LN_S,;t t
24611 s,@ECHO@,$ECHO,;t t
24612 s,@AR@,$AR,;t t
24613 s,@ac_ct_AR@,$ac_ct_AR,;t t
24614 s,@RANLIB@,$RANLIB,;t t
24615 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24616 s,@STRIP@,$STRIP,;t t
24617 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24618 s,@CXXCPP@,$CXXCPP,;t t
24619 s,@F77@,$F77,;t t
24620 s,@FFLAGS@,$FFLAGS,;t t
24621 s,@ac_ct_F77@,$ac_ct_F77,;t t
24622 s,@LIBTOOL@,$LIBTOOL,;t t
24623 s,@DOT@,$DOT,;t t
24624 s,@ETAGS@,$ETAGS,;t t
24625 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24626 s,@PYTHON@,$PYTHON,;t t
24627 s,@QMTEST@,$QMTEST,;t t
24628 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24629 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24630 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24631 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24632 s,@ENDIAN@,$ENDIAN,;t t
24633 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24634 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24635 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24636 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24637 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24638 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24639 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24640 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24641 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24642 s,@ALLOCA@,$ALLOCA,;t t
24643 s,@MMAP_FILE@,$MMAP_FILE,;t t
24644 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24645 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24646 s,@USE_SPEC95@,$USE_SPEC95,;t t
24647 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24648 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24649 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24650 s,@USE_POVRAY@,$USE_POVRAY,;t t
24651 s,@UPB@,$UPB,;t t
24652 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24653 s,@JIT@,$JIT,;t t
24654 s,@LLVMCC1@,$LLVMCC1,;t t
24655 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24656 s,@BCR@,$BCR,;t t
24657 s,@PAPIDIR@,$PAPIDIR,;t t
24658 s,@SHLIBEXT@,$SHLIBEXT,;t t
24659 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24660 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24661 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24662 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24663 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24664 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24665 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24666 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24667 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24668 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24669 s,@LIBOBJS@,$LIBOBJS,;t t
24670 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24671 CEOF
24672
24673 _ACEOF
24674
24675   cat >>$CONFIG_STATUS <<\_ACEOF
24676   # Split the substitutions into bite-sized pieces for seds with
24677   # small command number limits, like on Digital OSF/1 and HP-UX.
24678   ac_max_sed_lines=48
24679   ac_sed_frag=1 # Number of current file.
24680   ac_beg=1 # First line for current file.
24681   ac_end=$ac_max_sed_lines # Line after last line for current file.
24682   ac_more_lines=:
24683   ac_sed_cmds=
24684   while $ac_more_lines; do
24685     if test $ac_beg -gt 1; then
24686       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24687     else
24688       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24689     fi
24690     if test ! -s $tmp/subs.frag; then
24691       ac_more_lines=false
24692     else
24693       # The purpose of the label and of the branching condition is to
24694       # speed up the sed processing (if there are no `@' at all, there
24695       # is no need to browse any of the substitutions).
24696       # These are the two extra sed commands mentioned above.
24697       (echo ':t
24698   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24699       if test -z "$ac_sed_cmds"; then
24700         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24701       else
24702         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24703       fi
24704       ac_sed_frag=`expr $ac_sed_frag + 1`
24705       ac_beg=$ac_end
24706       ac_end=`expr $ac_end + $ac_max_sed_lines`
24707     fi
24708   done
24709   if test -z "$ac_sed_cmds"; then
24710     ac_sed_cmds=cat
24711   fi
24712 fi # test -n "$CONFIG_FILES"
24713
24714 _ACEOF
24715 cat >>$CONFIG_STATUS <<\_ACEOF
24716 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24717   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24718   case $ac_file in
24719   - | *:- | *:-:* ) # input from stdin
24720         cat >$tmp/stdin
24721         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24722         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24723   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24724         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24725   * )   ac_file_in=$ac_file.in ;;
24726   esac
24727
24728   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24729   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24731          X"$ac_file" : 'X\(//\)[^/]' \| \
24732          X"$ac_file" : 'X\(//\)$' \| \
24733          X"$ac_file" : 'X\(/\)' \| \
24734          .     : '\(.\)' 2>/dev/null ||
24735 echo X"$ac_file" |
24736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24737           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24738           /^X\(\/\/\)$/{ s//\1/; q; }
24739           /^X\(\/\).*/{ s//\1/; q; }
24740           s/.*/./; q'`
24741   { if $as_mkdir_p; then
24742     mkdir -p "$ac_dir"
24743   else
24744     as_dir="$ac_dir"
24745     as_dirs=
24746     while test ! -d "$as_dir"; do
24747       as_dirs="$as_dir $as_dirs"
24748       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24750          X"$as_dir" : 'X\(//\)[^/]' \| \
24751          X"$as_dir" : 'X\(//\)$' \| \
24752          X"$as_dir" : 'X\(/\)' \| \
24753          .     : '\(.\)' 2>/dev/null ||
24754 echo X"$as_dir" |
24755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24757           /^X\(\/\/\)$/{ s//\1/; q; }
24758           /^X\(\/\).*/{ s//\1/; q; }
24759           s/.*/./; q'`
24760     done
24761     test ! -n "$as_dirs" || mkdir $as_dirs
24762   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24764    { (exit 1); exit 1; }; }; }
24765
24766   ac_builddir=.
24767
24768 if test "$ac_dir" != .; then
24769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24770   # A "../" for each directory in $ac_dir_suffix.
24771   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24772 else
24773   ac_dir_suffix= ac_top_builddir=
24774 fi
24775
24776 case $srcdir in
24777   .)  # No --srcdir option.  We are building in place.
24778     ac_srcdir=.
24779     if test -z "$ac_top_builddir"; then
24780        ac_top_srcdir=.
24781     else
24782        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24783     fi ;;
24784   [\\/]* | ?:[\\/]* )  # Absolute path.
24785     ac_srcdir=$srcdir$ac_dir_suffix;
24786     ac_top_srcdir=$srcdir ;;
24787   *) # Relative path.
24788     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24789     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24790 esac
24791
24792 # Do not use `cd foo && pwd` to compute absolute paths, because
24793 # the directories may not exist.
24794 case `pwd` in
24795 .) ac_abs_builddir="$ac_dir";;
24796 *)
24797   case "$ac_dir" in
24798   .) ac_abs_builddir=`pwd`;;
24799   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24800   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24801   esac;;
24802 esac
24803 case $ac_abs_builddir in
24804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24805 *)
24806   case ${ac_top_builddir}. in
24807   .) ac_abs_top_builddir=$ac_abs_builddir;;
24808   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24809   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24810   esac;;
24811 esac
24812 case $ac_abs_builddir in
24813 .) ac_abs_srcdir=$ac_srcdir;;
24814 *)
24815   case $ac_srcdir in
24816   .) ac_abs_srcdir=$ac_abs_builddir;;
24817   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24818   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24819   esac;;
24820 esac
24821 case $ac_abs_builddir in
24822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24823 *)
24824   case $ac_top_srcdir in
24825   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24826   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24827   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24828   esac;;
24829 esac
24830
24831
24832   case $INSTALL in
24833   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24834   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24835   esac
24836
24837   if test x"$ac_file" != x-; then
24838     { echo "$as_me:$LINENO: creating $ac_file" >&5
24839 echo "$as_me: creating $ac_file" >&6;}
24840     rm -f "$ac_file"
24841   fi
24842   # Let's still pretend it is `configure' which instantiates (i.e., don't
24843   # use $as_me), people would be surprised to read:
24844   #    /* config.h.  Generated by config.status.  */
24845   if test x"$ac_file" = x-; then
24846     configure_input=
24847   else
24848     configure_input="$ac_file.  "
24849   fi
24850   configure_input=$configure_input"Generated from `echo $ac_file_in |
24851                                      sed 's,.*/,,'` by configure."
24852
24853   # First look for the input files in the build tree, otherwise in the
24854   # src tree.
24855   ac_file_inputs=`IFS=:
24856     for f in $ac_file_in; do
24857       case $f in
24858       -) echo $tmp/stdin ;;
24859       [\\/$]*)
24860          # Absolute (can't be DOS-style, as IFS=:)
24861          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24862 echo "$as_me: error: cannot find input file: $f" >&2;}
24863    { (exit 1); exit 1; }; }
24864          echo "$f";;
24865       *) # Relative
24866          if test -f "$f"; then
24867            # Build tree
24868            echo "$f"
24869          elif test -f "$srcdir/$f"; then
24870            # Source tree
24871            echo "$srcdir/$f"
24872          else
24873            # /dev/null tree
24874            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24875 echo "$as_me: error: cannot find input file: $f" >&2;}
24876    { (exit 1); exit 1; }; }
24877          fi;;
24878       esac
24879     done` || { (exit 1); exit 1; }
24880 _ACEOF
24881 cat >>$CONFIG_STATUS <<_ACEOF
24882   sed "$ac_vpsub
24883 $extrasub
24884 _ACEOF
24885 cat >>$CONFIG_STATUS <<\_ACEOF
24886 :t
24887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24888 s,@configure_input@,$configure_input,;t t
24889 s,@srcdir@,$ac_srcdir,;t t
24890 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24891 s,@top_srcdir@,$ac_top_srcdir,;t t
24892 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24893 s,@builddir@,$ac_builddir,;t t
24894 s,@abs_builddir@,$ac_abs_builddir,;t t
24895 s,@top_builddir@,$ac_top_builddir,;t t
24896 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24897 s,@INSTALL@,$ac_INSTALL,;t t
24898 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24899   rm -f $tmp/stdin
24900   if test x"$ac_file" != x-; then
24901     mv $tmp/out $ac_file
24902   else
24903     cat $tmp/out
24904     rm -f $tmp/out
24905   fi
24906
24907 done
24908 _ACEOF
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24910
24911 #
24912 # CONFIG_HEADER section.
24913 #
24914
24915 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24916 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24917 #
24918 # ac_d sets the value in "#define NAME VALUE" lines.
24919 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24920 ac_dB='[         ].*$,\1#\2'
24921 ac_dC=' '
24922 ac_dD=',;t'
24923 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24924 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24925 ac_uB='$,\1#\2define\3'
24926 ac_uC=' '
24927 ac_uD=',;t'
24928
24929 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24931   case $ac_file in
24932   - | *:- | *:-:* ) # input from stdin
24933         cat >$tmp/stdin
24934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24938   * )   ac_file_in=$ac_file.in ;;
24939   esac
24940
24941   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24942 echo "$as_me: creating $ac_file" >&6;}
24943
24944   # First look for the input files in the build tree, otherwise in the
24945   # src tree.
24946   ac_file_inputs=`IFS=:
24947     for f in $ac_file_in; do
24948       case $f in
24949       -) echo $tmp/stdin ;;
24950       [\\/$]*)
24951          # Absolute (can't be DOS-style, as IFS=:)
24952          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24953 echo "$as_me: error: cannot find input file: $f" >&2;}
24954    { (exit 1); exit 1; }; }
24955          # Do quote $f, to prevent DOS paths from being IFS'd.
24956          echo "$f";;
24957       *) # Relative
24958          if test -f "$f"; then
24959            # Build tree
24960            echo "$f"
24961          elif test -f "$srcdir/$f"; then
24962            # Source tree
24963            echo "$srcdir/$f"
24964          else
24965            # /dev/null tree
24966            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24967 echo "$as_me: error: cannot find input file: $f" >&2;}
24968    { (exit 1); exit 1; }; }
24969          fi;;
24970       esac
24971     done` || { (exit 1); exit 1; }
24972   # Remove the trailing spaces.
24973   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24974
24975 _ACEOF
24976
24977 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24978 # `conftest.undefs', that substitutes the proper values into
24979 # config.h.in to produce config.h.  The first handles `#define'
24980 # templates, and the second `#undef' templates.
24981 # And first: Protect against being on the right side of a sed subst in
24982 # config.status.  Protect against being in an unquoted here document
24983 # in config.status.
24984 rm -f conftest.defines conftest.undefs
24985 # Using a here document instead of a string reduces the quoting nightmare.
24986 # Putting comments in sed scripts is not portable.
24987 #
24988 # `end' is used to avoid that the second main sed command (meant for
24989 # 0-ary CPP macros) applies to n-ary macro definitions.
24990 # See the Autoconf documentation for `clear'.
24991 cat >confdef2sed.sed <<\_ACEOF
24992 s/[\\&,]/\\&/g
24993 s,[\\$`],\\&,g
24994 t clear
24995 : clear
24996 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24997 t end
24998 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24999 : end
25000 _ACEOF
25001 # If some macros were called several times there might be several times
25002 # the same #defines, which is useless.  Nevertheless, we may not want to
25003 # sort them, since we want the *last* AC-DEFINE to be honored.
25004 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25005 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25006 rm -f confdef2sed.sed
25007
25008 # This sed command replaces #undef with comments.  This is necessary, for
25009 # example, in the case of _POSIX_SOURCE, which is predefined and required
25010 # on some systems where configure will not decide to define it.
25011 cat >>conftest.undefs <<\_ACEOF
25012 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25013 _ACEOF
25014
25015 # Break up conftest.defines because some shells have a limit on the size
25016 # of here documents, and old seds have small limits too (100 cmds).
25017 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25018 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25019 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25020 echo '  :' >>$CONFIG_STATUS
25021 rm -f conftest.tail
25022 while grep . conftest.defines >/dev/null
25023 do
25024   # Write a limited-size here document to $tmp/defines.sed.
25025   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25026   # Speed up: don't consider the non `#define' lines.
25027   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25028   # Work around the forget-to-reset-the-flag bug.
25029   echo 't clr' >>$CONFIG_STATUS
25030   echo ': clr' >>$CONFIG_STATUS
25031   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25032   echo 'CEOF
25033   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25034   rm -f $tmp/in
25035   mv $tmp/out $tmp/in
25036 ' >>$CONFIG_STATUS
25037   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25038   rm -f conftest.defines
25039   mv conftest.tail conftest.defines
25040 done
25041 rm -f conftest.defines
25042 echo '  fi # grep' >>$CONFIG_STATUS
25043 echo >>$CONFIG_STATUS
25044
25045 # Break up conftest.undefs because some shells have a limit on the size
25046 # of here documents, and old seds have small limits too (100 cmds).
25047 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25048 rm -f conftest.tail
25049 while grep . conftest.undefs >/dev/null
25050 do
25051   # Write a limited-size here document to $tmp/undefs.sed.
25052   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25053   # Speed up: don't consider the non `#undef'
25054   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25055   # Work around the forget-to-reset-the-flag bug.
25056   echo 't clr' >>$CONFIG_STATUS
25057   echo ': clr' >>$CONFIG_STATUS
25058   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25059   echo 'CEOF
25060   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25061   rm -f $tmp/in
25062   mv $tmp/out $tmp/in
25063 ' >>$CONFIG_STATUS
25064   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25065   rm -f conftest.undefs
25066   mv conftest.tail conftest.undefs
25067 done
25068 rm -f conftest.undefs
25069
25070 cat >>$CONFIG_STATUS <<\_ACEOF
25071   # Let's still pretend it is `configure' which instantiates (i.e., don't
25072   # use $as_me), people would be surprised to read:
25073   #    /* config.h.  Generated by config.status.  */
25074   if test x"$ac_file" = x-; then
25075     echo "/* Generated by configure.  */" >$tmp/config.h
25076   else
25077     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25078   fi
25079   cat $tmp/in >>$tmp/config.h
25080   rm -f $tmp/in
25081   if test x"$ac_file" != x-; then
25082     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25083       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25084 echo "$as_me: $ac_file is unchanged" >&6;}
25085     else
25086       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088          X"$ac_file" : 'X\(//\)[^/]' \| \
25089          X"$ac_file" : 'X\(//\)$' \| \
25090          X"$ac_file" : 'X\(/\)' \| \
25091          .     : '\(.\)' 2>/dev/null ||
25092 echo X"$ac_file" |
25093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095           /^X\(\/\/\)$/{ s//\1/; q; }
25096           /^X\(\/\).*/{ s//\1/; q; }
25097           s/.*/./; q'`
25098       { if $as_mkdir_p; then
25099     mkdir -p "$ac_dir"
25100   else
25101     as_dir="$ac_dir"
25102     as_dirs=
25103     while test ! -d "$as_dir"; do
25104       as_dirs="$as_dir $as_dirs"
25105       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107          X"$as_dir" : 'X\(//\)[^/]' \| \
25108          X"$as_dir" : 'X\(//\)$' \| \
25109          X"$as_dir" : 'X\(/\)' \| \
25110          .     : '\(.\)' 2>/dev/null ||
25111 echo X"$as_dir" |
25112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25113           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25114           /^X\(\/\/\)$/{ s//\1/; q; }
25115           /^X\(\/\).*/{ s//\1/; q; }
25116           s/.*/./; q'`
25117     done
25118     test ! -n "$as_dirs" || mkdir $as_dirs
25119   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25121    { (exit 1); exit 1; }; }; }
25122
25123       rm -f $ac_file
25124       mv $tmp/config.h $ac_file
25125     fi
25126   else
25127     cat $tmp/config.h
25128     rm -f $tmp/config.h
25129   fi
25130 done
25131 _ACEOF
25132 cat >>$CONFIG_STATUS <<\_ACEOF
25133
25134 #
25135 # CONFIG_LINKS section.
25136 #
25137
25138 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25139   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25140   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25141
25142   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25143 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25144
25145   if test ! -r $srcdir/$ac_source; then
25146     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25147 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25148    { (exit 1); exit 1; }; }
25149   fi
25150   rm -f $ac_dest
25151
25152   # Make relative symlinks.
25153   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25154 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155          X"$ac_dest" : 'X\(//\)[^/]' \| \
25156          X"$ac_dest" : 'X\(//\)$' \| \
25157          X"$ac_dest" : 'X\(/\)' \| \
25158          .     : '\(.\)' 2>/dev/null ||
25159 echo X"$ac_dest" |
25160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162           /^X\(\/\/\)$/{ s//\1/; q; }
25163           /^X\(\/\).*/{ s//\1/; q; }
25164           s/.*/./; q'`
25165   { if $as_mkdir_p; then
25166     mkdir -p "$ac_dest_dir"
25167   else
25168     as_dir="$ac_dest_dir"
25169     as_dirs=
25170     while test ! -d "$as_dir"; do
25171       as_dirs="$as_dir $as_dirs"
25172       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25174          X"$as_dir" : 'X\(//\)[^/]' \| \
25175          X"$as_dir" : 'X\(//\)$' \| \
25176          X"$as_dir" : 'X\(/\)' \| \
25177          .     : '\(.\)' 2>/dev/null ||
25178 echo X"$as_dir" |
25179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25181           /^X\(\/\/\)$/{ s//\1/; q; }
25182           /^X\(\/\).*/{ s//\1/; q; }
25183           s/.*/./; q'`
25184     done
25185     test ! -n "$as_dirs" || mkdir $as_dirs
25186   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25187 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25188    { (exit 1); exit 1; }; }; }
25189
25190   ac_builddir=.
25191
25192 if test "$ac_dest_dir" != .; then
25193   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25194   # A "../" for each directory in $ac_dir_suffix.
25195   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25196 else
25197   ac_dir_suffix= ac_top_builddir=
25198 fi
25199
25200 case $srcdir in
25201   .)  # No --srcdir option.  We are building in place.
25202     ac_srcdir=.
25203     if test -z "$ac_top_builddir"; then
25204        ac_top_srcdir=.
25205     else
25206        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25207     fi ;;
25208   [\\/]* | ?:[\\/]* )  # Absolute path.
25209     ac_srcdir=$srcdir$ac_dir_suffix;
25210     ac_top_srcdir=$srcdir ;;
25211   *) # Relative path.
25212     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25213     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25214 esac
25215
25216 # Do not use `cd foo && pwd` to compute absolute paths, because
25217 # the directories may not exist.
25218 case `pwd` in
25219 .) ac_abs_builddir="$ac_dest_dir";;
25220 *)
25221   case "$ac_dest_dir" in
25222   .) ac_abs_builddir=`pwd`;;
25223   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25224   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25225   esac;;
25226 esac
25227 case $ac_abs_builddir in
25228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25229 *)
25230   case ${ac_top_builddir}. in
25231   .) ac_abs_top_builddir=$ac_abs_builddir;;
25232   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25233   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25234   esac;;
25235 esac
25236 case $ac_abs_builddir in
25237 .) ac_abs_srcdir=$ac_srcdir;;
25238 *)
25239   case $ac_srcdir in
25240   .) ac_abs_srcdir=$ac_abs_builddir;;
25241   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25242   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25243   esac;;
25244 esac
25245 case $ac_abs_builddir in
25246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25247 *)
25248   case $ac_top_srcdir in
25249   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25250   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25251   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25252   esac;;
25253 esac
25254
25255
25256   case $srcdir in
25257   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25258       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25259   esac
25260
25261   # Try a symlink, then a hard link, then a copy.
25262   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25263     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25264     cp -p $srcdir/$ac_source $ac_dest ||
25265     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25266 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25267    { (exit 1); exit 1; }; }
25268 done
25269 _ACEOF
25270 cat >>$CONFIG_STATUS <<\_ACEOF
25271
25272 #
25273 # CONFIG_COMMANDS section.
25274 #
25275 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25276   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25277   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25278   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25280          X"$ac_dest" : 'X\(//\)[^/]' \| \
25281          X"$ac_dest" : 'X\(//\)$' \| \
25282          X"$ac_dest" : 'X\(/\)' \| \
25283          .     : '\(.\)' 2>/dev/null ||
25284 echo X"$ac_dest" |
25285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25287           /^X\(\/\/\)$/{ s//\1/; q; }
25288           /^X\(\/\).*/{ s//\1/; q; }
25289           s/.*/./; q'`
25290   { if $as_mkdir_p; then
25291     mkdir -p "$ac_dir"
25292   else
25293     as_dir="$ac_dir"
25294     as_dirs=
25295     while test ! -d "$as_dir"; do
25296       as_dirs="$as_dir $as_dirs"
25297       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25299          X"$as_dir" : 'X\(//\)[^/]' \| \
25300          X"$as_dir" : 'X\(//\)$' \| \
25301          X"$as_dir" : 'X\(/\)' \| \
25302          .     : '\(.\)' 2>/dev/null ||
25303 echo X"$as_dir" |
25304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25306           /^X\(\/\/\)$/{ s//\1/; q; }
25307           /^X\(\/\).*/{ s//\1/; q; }
25308           s/.*/./; q'`
25309     done
25310     test ! -n "$as_dirs" || mkdir $as_dirs
25311   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25312 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25313    { (exit 1); exit 1; }; }; }
25314
25315   ac_builddir=.
25316
25317 if test "$ac_dir" != .; then
25318   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25319   # A "../" for each directory in $ac_dir_suffix.
25320   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25321 else
25322   ac_dir_suffix= ac_top_builddir=
25323 fi
25324
25325 case $srcdir in
25326   .)  # No --srcdir option.  We are building in place.
25327     ac_srcdir=.
25328     if test -z "$ac_top_builddir"; then
25329        ac_top_srcdir=.
25330     else
25331        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25332     fi ;;
25333   [\\/]* | ?:[\\/]* )  # Absolute path.
25334     ac_srcdir=$srcdir$ac_dir_suffix;
25335     ac_top_srcdir=$srcdir ;;
25336   *) # Relative path.
25337     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25338     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25339 esac
25340
25341 # Do not use `cd foo && pwd` to compute absolute paths, because
25342 # the directories may not exist.
25343 case `pwd` in
25344 .) ac_abs_builddir="$ac_dir";;
25345 *)
25346   case "$ac_dir" in
25347   .) ac_abs_builddir=`pwd`;;
25348   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25349   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25350   esac;;
25351 esac
25352 case $ac_abs_builddir in
25353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25354 *)
25355   case ${ac_top_builddir}. in
25356   .) ac_abs_top_builddir=$ac_abs_builddir;;
25357   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25358   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25359   esac;;
25360 esac
25361 case $ac_abs_builddir in
25362 .) ac_abs_srcdir=$ac_srcdir;;
25363 *)
25364   case $ac_srcdir in
25365   .) ac_abs_srcdir=$ac_abs_builddir;;
25366   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25367   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25368   esac;;
25369 esac
25370 case $ac_abs_builddir in
25371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25372 *)
25373   case $ac_top_srcdir in
25374   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25375   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25376   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25377   esac;;
25378 esac
25379
25380
25381   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25382 echo "$as_me: executing $ac_dest commands" >&6;}
25383   case $ac_dest in
25384     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25385     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25386     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25387     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25388     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25389     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25390     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25391     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25392     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25393     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25394     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25395     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25396     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25397     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25398     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25399     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25400     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25401     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25402     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25403     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25404     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25405     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25406     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25407     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25408     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25409     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25410     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25411     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 ;;
25412     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 ;;
25413     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 ;;
25414     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25415     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25416     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 ;;
25417     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 ;;
25418     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 ;;
25419     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 ;;
25420     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 ;;
25421     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 ;;
25422     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 ;;
25423     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 ;;
25424     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 ;;
25425     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 ;;
25426     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 ;;
25427     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 ;;
25428     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 ;;
25429     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25430     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25431     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 ;;
25432     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25433     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25434     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25435   esac
25436 done
25437 _ACEOF
25438
25439 cat >>$CONFIG_STATUS <<\_ACEOF
25440
25441 { (exit 0); exit 0; }
25442 _ACEOF
25443 chmod +x $CONFIG_STATUS
25444 ac_clean_files=$ac_clean_files_save
25445
25446
25447 # configure is writing to config.log, and then calls config.status.
25448 # config.status does its own redirection, appending to config.log.
25449 # Unfortunately, on DOS this fails, as config.log is still kept open
25450 # by configure, so config.status won't be able to write to it; its
25451 # output is simply discarded.  So we exec the FD to /dev/null,
25452 # effectively closing config.log, so it can be properly (re)opened and
25453 # appended to by config.status.  When coming back to configure, we
25454 # need to make the FD available again.
25455 if test "$no_create" != yes; then
25456   ac_cs_success=:
25457   ac_config_status_args=
25458   test "$silent" = yes &&
25459     ac_config_status_args="$ac_config_status_args --quiet"
25460   exec 5>/dev/null
25461   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25462   exec 5>>config.log
25463   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25464   # would make configure fail if this is the last instruction.
25465   $ac_cs_success || { (exit 1); exit 1; }
25466 fi
25467
25468 #
25469 # CONFIG_SUBDIRS section.
25470 #
25471 if test "$no_recursion" != yes; then
25472
25473   # Remove --cache-file and --srcdir arguments so they do not pile up.
25474   ac_sub_configure_args=
25475   ac_prev=
25476   for ac_arg in $ac_configure_args; do
25477     if test -n "$ac_prev"; then
25478       ac_prev=
25479       continue
25480     fi
25481     case $ac_arg in
25482     -cache-file | --cache-file | --cache-fil | --cache-fi \
25483     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25484       ac_prev=cache_file ;;
25485     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25486     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25487     | --c=*)
25488       ;;
25489     --config-cache | -C)
25490       ;;
25491     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25492       ac_prev=srcdir ;;
25493     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25494       ;;
25495     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25496       ac_prev=prefix ;;
25497     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25498       ;;
25499     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25500     esac
25501   done
25502
25503   # Always prepend --prefix to ensure using the same prefix
25504   # in subdir configurations.
25505   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25506
25507   ac_popdir=`pwd`
25508   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25509
25510     # Do not complain, so a configure script can configure whichever
25511     # parts of a large source tree are present.
25512     test -d $srcdir/$ac_dir || continue
25513
25514     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25515 echo "$as_me: configuring in $ac_dir" >&6;}
25516     { if $as_mkdir_p; then
25517     mkdir -p "$ac_dir"
25518   else
25519     as_dir="$ac_dir"
25520     as_dirs=
25521     while test ! -d "$as_dir"; do
25522       as_dirs="$as_dir $as_dirs"
25523       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25525          X"$as_dir" : 'X\(//\)[^/]' \| \
25526          X"$as_dir" : 'X\(//\)$' \| \
25527          X"$as_dir" : 'X\(/\)' \| \
25528          .     : '\(.\)' 2>/dev/null ||
25529 echo X"$as_dir" |
25530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25532           /^X\(\/\/\)$/{ s//\1/; q; }
25533           /^X\(\/\).*/{ s//\1/; q; }
25534           s/.*/./; q'`
25535     done
25536     test ! -n "$as_dirs" || mkdir $as_dirs
25537   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25538 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25539    { (exit 1); exit 1; }; }; }
25540
25541     ac_builddir=.
25542
25543 if test "$ac_dir" != .; then
25544   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25545   # A "../" for each directory in $ac_dir_suffix.
25546   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25547 else
25548   ac_dir_suffix= ac_top_builddir=
25549 fi
25550
25551 case $srcdir in
25552   .)  # No --srcdir option.  We are building in place.
25553     ac_srcdir=.
25554     if test -z "$ac_top_builddir"; then
25555        ac_top_srcdir=.
25556     else
25557        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25558     fi ;;
25559   [\\/]* | ?:[\\/]* )  # Absolute path.
25560     ac_srcdir=$srcdir$ac_dir_suffix;
25561     ac_top_srcdir=$srcdir ;;
25562   *) # Relative path.
25563     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25564     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25565 esac
25566
25567 # Do not use `cd foo && pwd` to compute absolute paths, because
25568 # the directories may not exist.
25569 case `pwd` in
25570 .) ac_abs_builddir="$ac_dir";;
25571 *)
25572   case "$ac_dir" in
25573   .) ac_abs_builddir=`pwd`;;
25574   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25575   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25576   esac;;
25577 esac
25578 case $ac_abs_builddir in
25579 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25580 *)
25581   case ${ac_top_builddir}. in
25582   .) ac_abs_top_builddir=$ac_abs_builddir;;
25583   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25584   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25585   esac;;
25586 esac
25587 case $ac_abs_builddir in
25588 .) ac_abs_srcdir=$ac_srcdir;;
25589 *)
25590   case $ac_srcdir in
25591   .) ac_abs_srcdir=$ac_abs_builddir;;
25592   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25593   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25594   esac;;
25595 esac
25596 case $ac_abs_builddir in
25597 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25598 *)
25599   case $ac_top_srcdir in
25600   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25601   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25602   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25603   esac;;
25604 esac
25605
25606
25607     cd $ac_dir
25608
25609     # Check for guested configure; otherwise get Cygnus style configure.
25610     if test -f $ac_srcdir/configure.gnu; then
25611       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25612     elif test -f $ac_srcdir/configure; then
25613       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25614     elif test -f $ac_srcdir/configure.in; then
25615       ac_sub_configure=$ac_configure
25616     else
25617       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25618 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25619       ac_sub_configure=
25620     fi
25621
25622     # The recursion is here.
25623     if test -n "$ac_sub_configure"; then
25624       # Make the cache file name correct relative to the subdirectory.
25625       case $cache_file in
25626       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25627       *) # Relative path.
25628         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25629       esac
25630
25631       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25632 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25633       # The eval makes quoting arguments work.
25634       eval $ac_sub_configure $ac_sub_configure_args \
25635            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25636         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25637 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25638    { (exit 1); exit 1; }; }
25639     fi
25640
25641     cd $ac_popdir
25642   done
25643 fi
25644
25645
25646 if test $llvmgccwarn = yes
25647 then
25648         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25649 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25650         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25651 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25652         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25653 echo "$as_me: WARNING: ***** " >&2;}
25654         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25655 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25656         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25657 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25658         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25659 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25660 fi
25661