Modified hash_map and hash_set configuration so that they are not
[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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
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_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 #  include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 #  include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 #  include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 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 FLEX 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 ENDIAN HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
477 ac_subst_files=''
478
479 # Initialize some variables set by options.
480 ac_init_help=
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
484 cache_file=/dev/null
485 exec_prefix=NONE
486 no_create=
487 no_recursion=
488 prefix=NONE
489 program_prefix=NONE
490 program_suffix=NONE
491 program_transform_name=s,x,x,
492 silent=
493 site=
494 srcdir=
495 verbose=
496 x_includes=NONE
497 x_libraries=NONE
498
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
516
517 ac_prev=
518 for ac_option
519 do
520   # If the previous option needs an argument, assign it.
521   if test -n "$ac_prev"; then
522     eval "$ac_prev=\$ac_option"
523     ac_prev=
524     continue
525   fi
526
527   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529   # Accept the important Cygnus configure options, so we can diagnose typos.
530
531   case $ac_option in
532
533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
534     ac_prev=bindir ;;
535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536     bindir=$ac_optarg ;;
537
538   -build | --build | --buil | --bui | --bu)
539     ac_prev=build_alias ;;
540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541     build_alias=$ac_optarg ;;
542
543   -cache-file | --cache-file | --cache-fil | --cache-fi \
544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545     ac_prev=cache_file ;;
546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548     cache_file=$ac_optarg ;;
549
550   --config-cache | -C)
551     cache_file=config.cache ;;
552
553   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554     ac_prev=datadir ;;
555   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556   | --da=*)
557     datadir=$ac_optarg ;;
558
559   -disable-* | --disable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     eval "enable_$ac_feature=no" ;;
567
568   -enable-* | --enable-*)
569     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573    { (exit 1); exit 1; }; }
574     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "enable_$ac_feature='$ac_optarg'" ;;
580
581   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583   | --exec | --exe | --ex)
584     ac_prev=exec_prefix ;;
585   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587   | --exec=* | --exe=* | --ex=*)
588     exec_prefix=$ac_optarg ;;
589
590   -gas | --gas | --ga | --g)
591     # Obsolete; use --with-gas.
592     with_gas=yes ;;
593
594   -help | --help | --hel | --he | -h)
595     ac_init_help=long ;;
596   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597     ac_init_help=recursive ;;
598   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599     ac_init_help=short ;;
600
601   -host | --host | --hos | --ho)
602     ac_prev=host_alias ;;
603   -host=* | --host=* | --hos=* | --ho=*)
604     host_alias=$ac_optarg ;;
605
606   -includedir | --includedir | --includedi | --included | --include \
607   | --includ | --inclu | --incl | --inc)
608     ac_prev=includedir ;;
609   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610   | --includ=* | --inclu=* | --incl=* | --inc=*)
611     includedir=$ac_optarg ;;
612
613   -infodir | --infodir | --infodi | --infod | --info | --inf)
614     ac_prev=infodir ;;
615   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616     infodir=$ac_optarg ;;
617
618   -libdir | --libdir | --libdi | --libd)
619     ac_prev=libdir ;;
620   -libdir=* | --libdir=* | --libdi=* | --libd=*)
621     libdir=$ac_optarg ;;
622
623   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624   | --libexe | --libex | --libe)
625     ac_prev=libexecdir ;;
626   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627   | --libexe=* | --libex=* | --libe=*)
628     libexecdir=$ac_optarg ;;
629
630   -localstatedir | --localstatedir | --localstatedi | --localstated \
631   | --localstate | --localstat | --localsta | --localst \
632   | --locals | --local | --loca | --loc | --lo)
633     ac_prev=localstatedir ;;
634   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637     localstatedir=$ac_optarg ;;
638
639   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640     ac_prev=mandir ;;
641   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642     mandir=$ac_optarg ;;
643
644   -nfp | --nfp | --nf)
645     # Obsolete; use --without-fp.
646     with_fp=no ;;
647
648   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649   | --no-cr | --no-c | -n)
650     no_create=yes ;;
651
652   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654     no_recursion=yes ;;
655
656   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658   | --oldin | --oldi | --old | --ol | --o)
659     ac_prev=oldincludedir ;;
660   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663     oldincludedir=$ac_optarg ;;
664
665   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666     ac_prev=prefix ;;
667   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668     prefix=$ac_optarg ;;
669
670   -program-prefix | --program-prefix | --program-prefi | --program-pref \
671   | --program-pre | --program-pr | --program-p)
672     ac_prev=program_prefix ;;
673   -program-prefix=* | --program-prefix=* | --program-prefi=* \
674   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675     program_prefix=$ac_optarg ;;
676
677   -program-suffix | --program-suffix | --program-suffi | --program-suff \
678   | --program-suf | --program-su | --program-s)
679     ac_prev=program_suffix ;;
680   -program-suffix=* | --program-suffix=* | --program-suffi=* \
681   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682     program_suffix=$ac_optarg ;;
683
684   -program-transform-name | --program-transform-name \
685   | --program-transform-nam | --program-transform-na \
686   | --program-transform-n | --program-transform- \
687   | --program-transform | --program-transfor \
688   | --program-transfo | --program-transf \
689   | --program-trans | --program-tran \
690   | --progr-tra | --program-tr | --program-t)
691     ac_prev=program_transform_name ;;
692   -program-transform-name=* | --program-transform-name=* \
693   | --program-transform-nam=* | --program-transform-na=* \
694   | --program-transform-n=* | --program-transform-=* \
695   | --program-transform=* | --program-transfor=* \
696   | --program-transfo=* | --program-transf=* \
697   | --program-trans=* | --program-tran=* \
698   | --progr-tra=* | --program-tr=* | --program-t=*)
699     program_transform_name=$ac_optarg ;;
700
701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702   | -silent | --silent | --silen | --sile | --sil)
703     silent=yes ;;
704
705   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706     ac_prev=sbindir ;;
707   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708   | --sbi=* | --sb=*)
709     sbindir=$ac_optarg ;;
710
711   -sharedstatedir | --sharedstatedir | --sharedstatedi \
712   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713   | --sharedst | --shareds | --shared | --share | --shar \
714   | --sha | --sh)
715     ac_prev=sharedstatedir ;;
716   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719   | --sha=* | --sh=*)
720     sharedstatedir=$ac_optarg ;;
721
722   -site | --site | --sit)
723     ac_prev=site ;;
724   -site=* | --site=* | --sit=*)
725     site=$ac_optarg ;;
726
727   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728     ac_prev=srcdir ;;
729   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730     srcdir=$ac_optarg ;;
731
732   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733   | --syscon | --sysco | --sysc | --sys | --sy)
734     ac_prev=sysconfdir ;;
735   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737     sysconfdir=$ac_optarg ;;
738
739   -target | --target | --targe | --targ | --tar | --ta | --t)
740     ac_prev=target_alias ;;
741   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742     target_alias=$ac_optarg ;;
743
744   -v | -verbose | --verbose | --verbos | --verbo | --verb)
745     verbose=yes ;;
746
747   -version | --version | --versio | --versi | --vers | -V)
748     ac_init_version=: ;;
749
750   -with-* | --with-*)
751     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package| sed 's/-/_/g'`
757     case $ac_option in
758       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759       *) ac_optarg=yes ;;
760     esac
761     eval "with_$ac_package='$ac_optarg'" ;;
762
763   -without-* | --without-*)
764     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid package name: $ac_package" >&2
768    { (exit 1); exit 1; }; }
769     ac_package=`echo $ac_package | sed 's/-/_/g'`
770     eval "with_$ac_package=no" ;;
771
772   --x)
773     # Obsolete; use --with-x.
774     with_x=yes ;;
775
776   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777   | --x-incl | --x-inc | --x-in | --x-i)
778     ac_prev=x_includes ;;
779   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781     x_includes=$ac_optarg ;;
782
783   -x-libraries | --x-libraries | --x-librarie | --x-librari \
784   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785     ac_prev=x_libraries ;;
786   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788     x_libraries=$ac_optarg ;;
789
790   -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792    { (exit 1); exit 1; }; }
793     ;;
794
795   *=*)
796     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797     # Reject names that are not valid shell variable names.
798     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800    { (exit 1); exit 1; }; }
801     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802     eval "$ac_envvar='$ac_optarg'"
803     export $ac_envvar ;;
804
805   *)
806     # FIXME: should be removed in autoconf 3.0.
807     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811     ;;
812
813   esac
814 done
815
816 if test -n "$ac_prev"; then
817   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818   { echo "$as_me: error: missing argument to $ac_option" >&2
819    { (exit 1); exit 1; }; }
820 fi
821
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
832
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835               localstatedir libdir includedir oldincludedir infodir mandir
836 do
837   eval ac_val=$`echo $ac_var`
838   case $ac_val in
839     [\\/$]* | ?:[\\/]* ) ;;
840     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841    { (exit 1); exit 1; }; };;
842   esac
843 done
844
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
848 build=$build_alias
849 host=$host_alias
850 target=$target_alias
851
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854   if test "x$build_alias" = x; then
855     cross_compiling=maybe
856     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857     If a cross compiler is detected then cross compile mode will be used." >&2
858   elif test "x$build_alias" != "x$host_alias"; then
859     cross_compiling=yes
860   fi
861 fi
862
863 ac_tool_prefix=
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866 test "$silent" = yes && exec 6>/dev/null
867
868
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871   ac_srcdir_defaulted=yes
872   # Try the directory containing this script, then its parent.
873   ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875          X"$0" : 'X\(//\)[^/]' \| \
876          X"$0" : 'X\(//\)$' \| \
877          X"$0" : 'X\(/\)' \| \
878          .     : '\(.\)' 2>/dev/null ||
879 echo X"$0" |
880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882           /^X\(\/\/\)$/{ s//\1/; q; }
883           /^X\(\/\).*/{ s//\1/; q; }
884           s/.*/./; q'`
885   srcdir=$ac_confdir
886   if test ! -r $srcdir/$ac_unique_file; then
887     srcdir=..
888   fi
889 else
890   ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893   if test "$ac_srcdir_defaulted" = yes; then
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895    { (exit 1); exit 1; }; }
896   else
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898    { (exit 1); exit 1; }; }
899   fi
900 fi
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903    { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
934 ac_env_CC_value=$CC
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021   --target=TARGET   configure for building compilers for TARGET [HOST]
1022 _ACEOF
1023 fi
1024
1025 if test -n "$ac_init_help"; then
1026   case $ac_init_help in
1027      short | recursive ) echo "Configuration of LLVM 1.4:";;
1028    esac
1029   cat <<\_ACEOF
1030
1031 Optional Features:
1032   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-optimized      Compile with optimizations enabled (default is NO)
1042   --enable-jit            Enable Just In Time Compiling (default is YES)
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052   --with-llvmgccdir       Location of LLVM GCC front-end
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `pwd` in
1109 .) ac_abs_builddir="$ac_dir";;
1110 *)
1111   case "$ac_dir" in
1112   .) ac_abs_builddir=`pwd`;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *)
1120   case ${ac_top_builddir}. in
1121   .) ac_abs_top_builddir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1128 *)
1129   case $ac_srcdir in
1130   .) ac_abs_srcdir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *)
1138   case $ac_top_srcdir in
1139   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142   esac;;
1143 esac
1144
1145     cd $ac_dir
1146     # Check for guested configure; otherwise get Cygnus style configure.
1147     if test -f $ac_srcdir/configure.gnu; then
1148       echo
1149       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1150     elif test -f $ac_srcdir/configure; then
1151       echo
1152       $SHELL $ac_srcdir/configure  --help=recursive
1153     elif test -f $ac_srcdir/configure.ac ||
1154            test -f $ac_srcdir/configure.in; then
1155       echo
1156       $ac_configure --help
1157     else
1158       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159     fi
1160     cd $ac_popdir
1161   done
1162 fi
1163
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166   cat <<\_ACEOF
1167 LLVM configure 1.4
1168 generated by GNU Autoconf 2.59
1169
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174   exit 0
1175 fi
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1180
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59.  Invocation command line was
1183
1184   $ $0 $@
1185
1186 _ACEOF
1187 {
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1192
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1201
1202 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1203 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1206 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1207 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1208 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1209
1210 _ASUNAME
1211
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1214 do
1215   IFS=$as_save_IFS
1216   test -z "$as_dir" && as_dir=.
1217   echo "PATH: $as_dir"
1218 done
1219
1220 } >&5
1221
1222 cat >&5 <<_ACEOF
1223
1224
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1228
1229 _ACEOF
1230
1231
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1243 do
1244   for ac_arg
1245   do
1246     case $ac_arg in
1247     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249     | -silent | --silent | --silen | --sile | --sil)
1250       continue ;;
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     esac
1254     case $ac_pass in
1255     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256     2)
1257       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258       if test $ac_must_keep_next = true; then
1259         ac_must_keep_next=false # Got value, back to normal.
1260       else
1261         case $ac_arg in
1262           *=* | --config-cache | -C | -disable-* | --disable-* \
1263           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265           | -with-* | --with-* | -without-* | --without-* | --x)
1266             case "$ac_configure_args0 " in
1267               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268             esac
1269             ;;
1270           -* ) ac_must_keep_next=true ;;
1271         esac
1272       fi
1273       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274       # Get rid of the leading space.
1275       ac_sep=" "
1276       ;;
1277     esac
1278   done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log.  We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289   # Save into config.log some information that might help in debugging.
1290   {
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298     echo
1299     # The following way of writing the cache mishandles newlines in values,
1300 {
1301   (set) 2>&1 |
1302     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303     *ac_space=\ *)
1304       sed -n \
1305         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307       ;;
1308     *)
1309       sed -n \
1310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311       ;;
1312     esac;
1313 }
1314     echo
1315
1316     cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321     echo
1322     for ac_var in $ac_subst_vars
1323     do
1324       eval ac_val=$`echo $ac_var`
1325       echo "$ac_var='"'"'$ac_val'"'"'"
1326     done | sort
1327     echo
1328
1329     if test -n "$ac_subst_files"; then
1330       cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335       echo
1336       for ac_var in $ac_subst_files
1337       do
1338         eval ac_val=$`echo $ac_var`
1339         echo "$ac_var='"'"'$ac_val'"'"'"
1340       done | sort
1341       echo
1342     fi
1343
1344     if test -s confdefs.h; then
1345       cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350       echo
1351       sed "/^$/d" confdefs.h | sort
1352       echo
1353     fi
1354     test "$ac_signal" != 0 &&
1355       echo "$as_me: caught signal $ac_signal"
1356     echo "$as_me: exit $exit_status"
1357   } >&5
1358   rm -f core *.core &&
1359   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360     exit $exit_status
1361      ' 0
1362 for ac_signal in 1 2 13 15; do
1363   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1366
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1371
1372 # Predefined preprocessor variables.
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1397
1398
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402   if test "x$prefix" != xNONE; then
1403     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404   else
1405     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406   fi
1407 fi
1408 for ac_site_file in $CONFIG_SITE; do
1409   if test -r "$ac_site_file"; then
1410     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412     sed 's/^/| /' "$ac_site_file" >&5
1413     . "$ac_site_file"
1414   fi
1415 done
1416
1417 if test -r "$cache_file"; then
1418   # Some versions of bash will fail to source /dev/null (special
1419   # files actually), so we avoid doing that.
1420   if test -f "$cache_file"; then
1421     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423     case $cache_file in
1424       [\\/]* | ?:[\\/]* ) . $cache_file;;
1425       *)                      . ./$cache_file;;
1426     esac
1427   fi
1428 else
1429   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431   >$cache_file
1432 fi
1433
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440   eval ac_new_set=\$ac_env_${ac_var}_set
1441   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442   eval ac_new_val="\$ac_env_${ac_var}_value"
1443   case $ac_old_set,$ac_new_set in
1444     set,)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,set)
1449       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451       ac_cache_corrupted=: ;;
1452     ,);;
1453     *)
1454       if test "x$ac_old_val" != "x$ac_new_val"; then
1455         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1458 echo "$as_me:   former value:  $ac_old_val" >&2;}
1459         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1460 echo "$as_me:   current value: $ac_new_val" >&2;}
1461         ac_cache_corrupted=:
1462       fi;;
1463   esac
1464   # Pass precious variables to config.status.
1465   if test "$ac_new_set" = set; then
1466     case $ac_new_val in
1467     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469     *) ac_arg=$ac_var=$ac_new_val ;;
1470     esac
1471     case " $ac_configure_args " in
1472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474     esac
1475   fi
1476 done
1477 if $ac_cache_corrupted; then
1478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
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 ac_aux_dir=
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520   if test -f $ac_dir/install-sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install-sh -c"
1523     break
1524   elif test -f $ac_dir/install.sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install.sh -c"
1527     break
1528   elif test -f $ac_dir/shtool; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/shtool install -c"
1531     break
1532   fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543
1544
1545 if test ${srcdir} != "." ; then
1546         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549    { (exit 1); exit 1; }; }
1550         fi
1551 fi
1552
1553 for i in `ls ${srcdir}/projects`
1554 do
1555   if test -d ${srcdir}/projects/${i} ; then
1556     case ${i} in
1557       "CVS") ;;
1558       "sample")
1559
1560 subdirs="$subdirs projects/sample"
1561     ;;
1562       "Stacker")
1563
1564 subdirs="$subdirs projects/Stacker"
1565    ;;
1566       "llvm-test")
1567
1568 subdirs="$subdirs projects/llvm-test"
1569  ;;
1570       "llvm-reopt")
1571
1572 subdirs="$subdirs projects/llvm-reopt"
1573 ;;
1574       "llvm-gcc")
1575
1576 subdirs="$subdirs projects/llvm-gcc"
1577   ;;
1578       "Java")
1579
1580 subdirs="$subdirs projects/Java"
1581       ;;
1582       "llvm-tv")
1583
1584 subdirs="$subdirs projects/llvm-tv"
1585    ;;
1586       "llvm-fefw")
1587
1588 subdirs="$subdirs projects/llvm-fefw"
1589  ;;
1590       *)
1591         { echo "$as_me:$LINENO: WARNING: Unknown projects (${i})won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown projects (${i})won't be configured automatically" >&2;}
1593         ;;
1594     esac
1595   fi
1596 done
1597
1598           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1599
1600
1601                               ac_config_files="$ac_config_files Makefile.config include/llvm/Support/ThreadSupport.h include/llvm/ADT/iterator"
1602
1603           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1604
1605           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1606
1607           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1608
1609
1610           ac_config_commands="$ac_config_commands Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands Makefile.common"
1614
1615
1616           ac_config_commands="$ac_config_commands examples/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands lib/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Makefile.tests"
1629
1630
1631           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1632
1633
1634           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1635
1636
1637           ac_config_commands="$ac_config_commands tools/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands utils/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands projects/Makefile"
1644
1645
1646
1647 # Find a good install program.  We prefer a C program (faster),
1648 # so one script is as good as another.  But avoid the broken or
1649 # incompatible versions:
1650 # SysV /etc/install, /usr/sbin/install
1651 # SunOS /usr/etc/install
1652 # IRIX /sbin/install
1653 # AIX /bin/install
1654 # AmigaOS /C/install, which installs bootblocks on floppy discs
1655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658 # OS/2's system install, which has a completely different semantic
1659 # ./install, which can be erroneously created by make from ./install.sh.
1660 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662 if test -z "$INSTALL"; then
1663 if test "${ac_cv_path_install+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   # Account for people who put trailing slashes in PATH elements.
1672 case $as_dir/ in
1673   ./ | .// | /cC/* | \
1674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1675   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1676   /usr/ucb/* ) ;;
1677   *)
1678     # OSF1 and SCO ODT 3.0 have their own names for install.
1679     # Don't use installbsd from OSF since it installs stuff as root
1680     # by default.
1681     for ac_prog in ginstall scoinst install; do
1682       for ac_exec_ext in '' $ac_executable_extensions; do
1683         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684           if test $ac_prog = install &&
1685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686             # AIX install.  It has an incompatible calling convention.
1687             :
1688           elif test $ac_prog = install &&
1689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690             # program-specific install script used by HP pwplus--don't use.
1691             :
1692           else
1693             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694             break 3
1695           fi
1696         fi
1697       done
1698     done
1699     ;;
1700 esac
1701 done
1702
1703
1704 fi
1705   if test "${ac_cv_path_install+set}" = set; then
1706     INSTALL=$ac_cv_path_install
1707   else
1708     # As a last resort, use the slow shell script.  We don't cache a
1709     # path for INSTALL within a source directory, because that will
1710     # break other packages using the cache if that directory is
1711     # removed, or if the path is relative.
1712     INSTALL=$ac_install_sh
1713   fi
1714 fi
1715 echo "$as_me:$LINENO: result: $INSTALL" >&5
1716 echo "${ECHO_T}$INSTALL" >&6
1717
1718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719 # It thinks the first close brace ends the variable substitution.
1720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1721
1722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1723
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1725
1726
1727 # Make sure we can run config.sub.
1728 $ac_config_sub sun4 >/dev/null 2>&1 ||
1729   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731    { (exit 1); exit 1; }; }
1732
1733 echo "$as_me:$LINENO: checking build system type" >&5
1734 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735 if test "${ac_cv_build+set}" = set; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   ac_cv_build_alias=$build_alias
1739 test -z "$ac_cv_build_alias" &&
1740   ac_cv_build_alias=`$ac_config_guess`
1741 test -z "$ac_cv_build_alias" &&
1742   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744    { (exit 1); exit 1; }; }
1745 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748    { (exit 1); exit 1; }; }
1749
1750 fi
1751 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752 echo "${ECHO_T}$ac_cv_build" >&6
1753 build=$ac_cv_build
1754 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759 echo "$as_me:$LINENO: checking host system type" >&5
1760 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1761 if test "${ac_cv_host+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   ac_cv_host_alias=$host_alias
1765 test -z "$ac_cv_host_alias" &&
1766   ac_cv_host_alias=$ac_cv_build_alias
1767 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1768   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1769 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1770    { (exit 1); exit 1; }; }
1771
1772 fi
1773 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1774 echo "${ECHO_T}$ac_cv_host" >&6
1775 host=$ac_cv_host
1776 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779
1780
1781 echo "$as_me:$LINENO: checking target system type" >&5
1782 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1783 if test "${ac_cv_target+set}" = set; then
1784   echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786   ac_cv_target_alias=$target_alias
1787 test "x$ac_cv_target_alias" = "x" &&
1788   ac_cv_target_alias=$ac_cv_host_alias
1789 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1790   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1791 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1792    { (exit 1); exit 1; }; }
1793
1794 fi
1795 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1796 echo "${ECHO_T}$ac_cv_target" >&6
1797 target=$ac_cv_target
1798 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801
1802
1803 # The aliases save the names the user supplied, while $host etc.
1804 # will get canonicalized.
1805 test -n "$target_alias" &&
1806   test "$program_prefix$program_suffix$program_transform_name" = \
1807     NONENONEs,x,x, &&
1808   program_prefix=${target_alias}-
1809
1810
1811 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1812 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1813 case $build in
1814         *-*-aix*)
1815              OS=AIX
1816
1817              platform_type="AIX"
1818              ;;
1819         *-*-cygwin*)
1820              OS=Cygwin
1821
1822              platform_type="Cygwin"
1823              ;;
1824         *-*-darwin*)
1825              OS=Darwin
1826
1827              platform_type="Darwin"
1828              ;;
1829         *-*-freebsd*)
1830              OS=Linux
1831
1832              platform_type="FreeBSD"
1833              ;;
1834         *-*-interix*)
1835              OS=SunOS
1836
1837              platform_type="Interix"
1838              ;;
1839         *-*-linux*)
1840              OS=Linux
1841
1842              platform_type="Linux"
1843              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1844              then
1845                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1846
1847              fi
1848              ;;
1849         *-*-solaris*)
1850              OS=SunOS
1851
1852              platform_type="SunOS"
1853              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1854              then
1855                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1856
1857              fi
1858              ;;
1859         *-*-win32*)
1860              OS=Win32
1861
1862              platform_type="Win32"
1863              ;;
1864         *-*-mingw*)
1865              OS=Win32
1866
1867              platform_type="Win32"
1868              ;;
1869         *)
1870              OS=Unknown
1871
1872              platform_type="Unknown"
1873              ;;
1874 esac
1875
1876 if test "$platform_type" = "Unknown" ; then
1877   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1878 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1879    { (exit 1); exit 1; }; }
1880 fi
1881
1882           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1883
1884
1885
1886 echo "$as_me:$LINENO: checking target architecture" >&5
1887 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1888 case $target in
1889         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1890
1891                             ;;
1892 esac
1893
1894 case $target in
1895         i*86-*)
1896           ARCH="x86"
1897           ARCH=x86
1898
1899           ;;
1900         sparc*-*)
1901           ARCH="Sparc"
1902           ARCH=Sparc
1903
1904           ;;
1905         powerpc*-*)
1906           ARCH="PowerPC"
1907           ARCH=PowerPC
1908
1909           ;;
1910         *)
1911           ARCH="Unknown"
1912           ARCH=Unknown
1913
1914           ;;
1915 esac
1916
1917 echo "$as_me:$LINENO: result: $ARCH" >&5
1918 echo "${ECHO_T}$ARCH" >&6
1919
1920 ac_ext=cc
1921 ac_cpp='$CXXCPP $CPPFLAGS'
1922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1925 if test -n "$ac_tool_prefix"; then
1926   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1927   do
1928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CXX+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$CXX"; then
1936   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943   for ac_exec_ext in '' $ac_executable_extensions; do
1944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947     break 2
1948   fi
1949 done
1950 done
1951
1952 fi
1953 fi
1954 CXX=$ac_cv_prog_CXX
1955 if test -n "$CXX"; then
1956   echo "$as_me:$LINENO: result: $CXX" >&5
1957 echo "${ECHO_T}$CXX" >&6
1958 else
1959   echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963     test -n "$CXX" && break
1964   done
1965 fi
1966 if test -z "$CXX"; then
1967   ac_ct_CXX=$CXX
1968   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1969 do
1970   # Extract the first word of "$ac_prog", so it can be a program name with args.
1971 set dummy $ac_prog; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$ac_ct_CXX"; then
1978   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987     ac_cv_prog_ac_ct_CXX="$ac_prog"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993
1994 fi
1995 fi
1996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1997 if test -n "$ac_ct_CXX"; then
1998   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1999 echo "${ECHO_T}$ac_ct_CXX" >&6
2000 else
2001   echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2003 fi
2004
2005   test -n "$ac_ct_CXX" && break
2006 done
2007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2008
2009   CXX=$ac_ct_CXX
2010 fi
2011
2012
2013 # Provide some information about the compiler.
2014 echo "$as_me:$LINENO:" \
2015      "checking for C++ compiler version" >&5
2016 ac_compiler=`set X $ac_compile; echo $2`
2017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2018   (eval $ac_compiler --version </dev/null >&5) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }
2022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2023   (eval $ac_compiler -v </dev/null >&5) 2>&5
2024   ac_status=$?
2025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026   (exit $ac_status); }
2027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2028   (eval $ac_compiler -V </dev/null >&5) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }
2032
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h.  */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h.  */
2039
2040 int
2041 main ()
2042 {
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 ac_clean_files_save=$ac_clean_files
2049 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2050 # Try to create an executable without -o first, disregard a.out.
2051 # It will help us diagnose broken compilers, and finding out an intuition
2052 # of exeext.
2053 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2054 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2055 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2056 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2057   (eval $ac_link_default) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; then
2061   # Find the output, starting from the most likely.  This scheme is
2062 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2063 # resort.
2064
2065 # Be careful to initialize this variable, since it used to be cached.
2066 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2067 ac_cv_exeext=
2068 # b.out is created by i960 compilers.
2069 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2070 do
2071   test -f "$ac_file" || continue
2072   case $ac_file in
2073     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2074         ;;
2075     conftest.$ac_ext )
2076         # This is the source file.
2077         ;;
2078     [ab].out )
2079         # We found the default executable, but exeext='' is most
2080         # certainly right.
2081         break;;
2082     *.* )
2083         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084         # FIXME: I believe we export ac_cv_exeext for Libtool,
2085         # but it would be cool to find out if it's true.  Does anybody
2086         # maintain Libtool? --akim.
2087         export ac_cv_exeext
2088         break;;
2089     * )
2090         break;;
2091   esac
2092 done
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: C++ compiler cannot create executables
2100 See \`config.log' for more details." >&2;}
2101    { (exit 77); exit 77; }; }
2102 fi
2103
2104 ac_exeext=$ac_cv_exeext
2105 echo "$as_me:$LINENO: result: $ac_file" >&5
2106 echo "${ECHO_T}$ac_file" >&6
2107
2108 # Check the compiler produces executables we can run.  If not, either
2109 # the compiler is broken, or we cross compile.
2110 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2111 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2112 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2113 # If not cross compiling, check that we can run a simple program.
2114 if test "$cross_compiling" != yes; then
2115   if { ac_try='./$ac_file'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; }; then
2121     cross_compiling=no
2122   else
2123     if test "$cross_compiling" = maybe; then
2124         cross_compiling=yes
2125     else
2126         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2127 If you meant to cross compile, use \`--host'.
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: cannot run C++ compiled programs.
2130 If you meant to cross compile, use \`--host'.
2131 See \`config.log' for more details." >&2;}
2132    { (exit 1); exit 1; }; }
2133     fi
2134   fi
2135 fi
2136 echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6
2138
2139 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2140 ac_clean_files=$ac_clean_files_save
2141 # Check the compiler produces executables we can run.  If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146 echo "${ECHO_T}$cross_compiling" >&6
2147
2148 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151   (eval $ac_link) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; then
2155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2158 # `rm'.
2159 for ac_file in conftest.exe conftest conftest.*; do
2160   test -f "$ac_file" || continue
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164           export ac_cv_exeext
2165           break;;
2166     * ) break;;
2167   esac
2168 done
2169 else
2170   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2173 See \`config.log' for more details." >&2;}
2174    { (exit 1); exit 1; }; }
2175 fi
2176
2177 rm -f conftest$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179 echo "${ECHO_T}$ac_cv_exeext" >&6
2180
2181 rm -f conftest.$ac_ext
2182 EXEEXT=$ac_cv_exeext
2183 ac_exeext=$EXEEXT
2184 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2186 if test "${ac_cv_objext+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.o conftest.obj
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206   (eval $ac_compile) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; then
2210   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211   case $ac_file in
2212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2213     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214        break;;
2215   esac
2216 done
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2224 See \`config.log' for more details." >&2;}
2225    { (exit 1); exit 1; }; }
2226 fi
2227
2228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2229 fi
2230 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2231 echo "${ECHO_T}$ac_cv_objext" >&6
2232 OBJEXT=$ac_cv_objext
2233 ac_objext=$OBJEXT
2234 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2235 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2236 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   cat >conftest.$ac_ext <<_ACEOF
2240 /* confdefs.h.  */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h.  */
2245
2246 int
2247 main ()
2248 {
2249 #ifndef __GNUC__
2250        choke me
2251 #endif
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>conftest.er1
2260   ac_status=$?
2261   grep -v '^ *+' conftest.er1 >conftest.err
2262   rm -f conftest.er1
2263   cat conftest.err >&5
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -z "$ac_cxx_werror_flag"
2267                          || test ! -s conftest.err'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   ac_compiler_gnu=yes
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 ac_compiler_gnu=no
2285 fi
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2288
2289 fi
2290 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2291 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2292 GXX=`test $ac_compiler_gnu = yes && echo yes`
2293 ac_test_CXXFLAGS=${CXXFLAGS+set}
2294 ac_save_CXXFLAGS=$CXXFLAGS
2295 CXXFLAGS="-g"
2296 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2297 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2298 if test "${ac_cv_prog_cxx_g+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>conftest.er1
2319   ac_status=$?
2320   grep -v '^ *+' conftest.er1 >conftest.err
2321   rm -f conftest.er1
2322   cat conftest.err >&5
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); } &&
2325          { ac_try='test -z "$ac_cxx_werror_flag"
2326                          || test ! -s conftest.err'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; } &&
2332          { ac_try='test -s conftest.$ac_objext'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; }; then
2338   ac_cv_prog_cxx_g=yes
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 ac_cv_prog_cxx_g=no
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2348 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2349 if test "$ac_test_CXXFLAGS" = set; then
2350   CXXFLAGS=$ac_save_CXXFLAGS
2351 elif test $ac_cv_prog_cxx_g = yes; then
2352   if test "$GXX" = yes; then
2353     CXXFLAGS="-g -O2"
2354   else
2355     CXXFLAGS="-g"
2356   fi
2357 else
2358   if test "$GXX" = yes; then
2359     CXXFLAGS="-O2"
2360   else
2361     CXXFLAGS=
2362   fi
2363 fi
2364 for ac_declaration in \
2365    '' \
2366    'extern "C" void std::exit (int) throw (); using std::exit;' \
2367    'extern "C" void std::exit (int); using std::exit;' \
2368    'extern "C" void exit (int) throw ();' \
2369    'extern "C" void exit (int);' \
2370    'void exit (int);'
2371 do
2372   cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378 $ac_declaration
2379 #include <stdlib.h>
2380 int
2381 main ()
2382 {
2383 exit (42);
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390   (eval $ac_compile) 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } &&
2397          { ac_try='test -z "$ac_cxx_werror_flag"
2398                          || test ! -s conftest.err'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; } &&
2404          { ac_try='test -s conftest.$ac_objext'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   :
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 continue
2416 fi
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418   cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h.  */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h.  */
2424 $ac_declaration
2425 int
2426 main ()
2427 {
2428 exit (42);
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>conftest.er1
2436   ac_status=$?
2437   grep -v '^ *+' conftest.er1 >conftest.err
2438   rm -f conftest.er1
2439   cat conftest.err >&5
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); } &&
2442          { ac_try='test -z "$ac_cxx_werror_flag"
2443                          || test ! -s conftest.err'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; } &&
2449          { ac_try='test -s conftest.$ac_objext'
2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451   (eval $ac_try) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); }; }; then
2455   break
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 done
2463 rm -f conftest*
2464 if test -n "$ac_declaration"; then
2465   echo '#ifdef __cplusplus' >>confdefs.h
2466   echo $ac_declaration      >>confdefs.h
2467   echo '#endif'             >>confdefs.h
2468 fi
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482   for ac_prog in gcc
2483   do
2484     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$CC"; then
2492   ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512   echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6
2514 else
2515   echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519     test -n "$CC" && break
2520   done
2521 fi
2522 if test -z "$CC"; then
2523   ac_ct_CC=$CC
2524   for ac_prog in gcc
2525 do
2526   # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test -n "$ac_ct_CC"; then
2534   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543     ac_cv_prog_ac_ct_CC="$ac_prog"
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549
2550 fi
2551 fi
2552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553 if test -n "$ac_ct_CC"; then
2554   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2555 echo "${ECHO_T}$ac_ct_CC" >&6
2556 else
2557   echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2559 fi
2560
2561   test -n "$ac_ct_CC" && break
2562 done
2563
2564   CC=$ac_ct_CC
2565 fi
2566
2567
2568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573
2574 # Provide some information about the compiler.
2575 echo "$as_me:$LINENO:" \
2576      "checking for C compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579   (eval $ac_compiler --version </dev/null >&5) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }
2583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2584   (eval $ac_compiler -v </dev/null >&5) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589   (eval $ac_compiler -V </dev/null >&5) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }
2593
2594 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605
2606 int
2607 main ()
2608 {
2609 #ifndef __GNUC__
2610        choke me
2611 #endif
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_compiler_gnu=yes
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_compiler_gnu=no
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2648
2649 fi
2650 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2652 GCC=`test $ac_compiler_gnu = yes && echo yes`
2653 ac_test_CFLAGS=${CFLAGS+set}
2654 ac_save_CFLAGS=$CFLAGS
2655 CFLAGS="-g"
2656 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2657 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_g+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h.  */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h.  */
2667
2668 int
2669 main ()
2670 {
2671
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678   (eval $ac_compile) 2>conftest.er1
2679   ac_status=$?
2680   grep -v '^ *+' conftest.er1 >conftest.err
2681   rm -f conftest.er1
2682   cat conftest.err >&5
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); } &&
2685          { ac_try='test -z "$ac_c_werror_flag"
2686                          || test ! -s conftest.err'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; } &&
2692          { ac_try='test -s conftest.$ac_objext'
2693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; }; then
2698   ac_cv_prog_cc_g=yes
2699 else
2700   echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2702
2703 ac_cv_prog_cc_g=no
2704 fi
2705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2708 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2709 if test "$ac_test_CFLAGS" = set; then
2710   CFLAGS=$ac_save_CFLAGS
2711 elif test $ac_cv_prog_cc_g = yes; then
2712   if test "$GCC" = yes; then
2713     CFLAGS="-g -O2"
2714   else
2715     CFLAGS="-g"
2716   fi
2717 else
2718   if test "$GCC" = yes; then
2719     CFLAGS="-O2"
2720   else
2721     CFLAGS=
2722   fi
2723 fi
2724 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2725 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2726 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   ac_cv_prog_cc_stdc=no
2730 ac_save_CC=$CC
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737 #include <stdarg.h>
2738 #include <stdio.h>
2739 #include <sys/types.h>
2740 #include <sys/stat.h>
2741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2742 struct buf { int x; };
2743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744 static char *e (p, i)
2745      char **p;
2746      int i;
2747 {
2748   return p[i];
2749 }
2750 static char *f (char * (*g) (char **, int), char **p, ...)
2751 {
2752   char *s;
2753   va_list v;
2754   va_start (v,p);
2755   s = g (p, va_arg (v,int));
2756   va_end (v);
2757   return s;
2758 }
2759
2760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2761    function prototypes and stuff, but not '\xHH' hex character constants.
2762    These don't provoke an error unfortunately, instead are silently treated
2763    as 'x'.  The following induces an error, until -std1 is added to get
2764    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2765    array size at least.  It's necessary to write '\x00'==0 to get something
2766    that's true only with -std1.  */
2767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2768
2769 int test (int i, double x);
2770 struct s1 {int (*f) (int a);};
2771 struct s2 {int (*f) (double a);};
2772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 int argc;
2774 char **argv;
2775 int
2776 main ()
2777 {
2778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 # Don't try gcc -ansi; that turns off useful extensions and
2784 # breaks some systems' header files.
2785 # AIX                   -qlanglvl=ansi
2786 # Ultrix and OSF/1      -std1
2787 # HP-UX 10.20 and later -Ae
2788 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2789 # SVR4                  -Xc -D__EXTENSIONS__
2790 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791 do
2792   CC="$ac_save_CC $ac_arg"
2793   rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   ac_cv_prog_cc_stdc=$ac_arg
2816 break
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 fi
2822 rm -f conftest.err conftest.$ac_objext
2823 done
2824 rm -f conftest.$ac_ext conftest.$ac_objext
2825 CC=$ac_save_CC
2826
2827 fi
2828
2829 case "x$ac_cv_prog_cc_stdc" in
2830   x|xno)
2831     echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6 ;;
2833   *)
2834     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836     CC="$CC $ac_cv_prog_cc_stdc" ;;
2837 esac
2838
2839 # Some people use a C++ compiler to compile C.  Since we use `exit',
2840 # in C++ we need to declare it.  In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #ifndef __cplusplus
2845   choke me
2846 #endif
2847 _ACEOF
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   for ac_declaration in \
2871    '' \
2872    'extern "C" void std::exit (int) throw (); using std::exit;' \
2873    'extern "C" void std::exit (int); using std::exit;' \
2874    'extern "C" void exit (int) throw ();' \
2875    'extern "C" void exit (int);' \
2876    'void exit (int);'
2877 do
2878   cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 $ac_declaration
2885 #include <stdlib.h>
2886 int
2887 main ()
2888 {
2889 exit (42);
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_c_werror_flag"
2904                          || test ! -s conftest.err'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 continue
2922 fi
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 $ac_declaration
2931 int
2932 main ()
2933 {
2934 exit (42);
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941   (eval $ac_compile) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_c_werror_flag"
2949                          || test ! -s conftest.err'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   break
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 done
2969 rm -f conftest*
2970 if test -n "$ac_declaration"; then
2971   echo '#ifdef __cplusplus' >>confdefs.h
2972   echo $ac_declaration      >>confdefs.h
2973   echo '#endif'             >>confdefs.h
2974 fi
2975
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 fi
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987
2988 if test "$GCC" != "yes"
2989 then
2990         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2991 echo "$as_me: error: gcc required but not found" >&2;}
2992    { (exit 1); exit 1; }; }
2993 fi
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3000 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3001 # On Suns, sometimes $CPP names a directory.
3002 if test -n "$CPP" && test -d "$CPP"; then
3003   CPP=
3004 fi
3005 if test -z "$CPP"; then
3006   if test "${ac_cv_prog_CPP+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009       # Double quotes because CPP needs to be expanded
3010     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3011     do
3012       ac_preproc_ok=false
3013 for ac_c_preproc_warn_flag in '' yes
3014 do
3015   # Use a header file that comes with gcc, so configuring glibc
3016   # with a fresh cross-compiler works.
3017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018   # <limits.h> exists even on freestanding compilers.
3019   # On the NeXT, cc -E runs the code through the compiler's parser,
3020   # not just through cpp. "Syntax error" is here to catch this case.
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027 #ifdef __STDC__
3028 # include <limits.h>
3029 #else
3030 # include <assert.h>
3031 #endif
3032                      Syntax error
3033 _ACEOF
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036   ac_status=$?
3037   grep -v '^ *+' conftest.er1 >conftest.err
3038   rm -f conftest.er1
3039   cat conftest.err >&5
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); } >/dev/null; then
3042   if test -s conftest.err; then
3043     ac_cpp_err=$ac_c_preproc_warn_flag
3044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045   else
3046     ac_cpp_err=
3047   fi
3048 else
3049   ac_cpp_err=yes
3050 fi
3051 if test -z "$ac_cpp_err"; then
3052   :
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057   # Broken: fails on valid input.
3058 continue
3059 fi
3060 rm -f conftest.err conftest.$ac_ext
3061
3062   # OK, works on sane cases.  Now check whether non-existent headers
3063   # can be detected and how.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #include <ac_nonexistent.h>
3071 _ACEOF
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } >/dev/null; then
3080   if test -s conftest.err; then
3081     ac_cpp_err=$ac_c_preproc_warn_flag
3082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   # Broken: success on invalid input.
3091 continue
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096   # Passes both tests.
3097 ac_preproc_ok=:
3098 break
3099 fi
3100 rm -f conftest.err conftest.$ac_ext
3101
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3106   break
3107 fi
3108
3109     done
3110     ac_cv_prog_CPP=$CPP
3111
3112 fi
3113   CPP=$ac_cv_prog_CPP
3114 else
3115   ac_cv_prog_CPP=$CPP
3116 fi
3117 echo "$as_me:$LINENO: result: $CPP" >&5
3118 echo "${ECHO_T}$CPP" >&6
3119 ac_preproc_ok=false
3120 for ac_c_preproc_warn_flag in '' yes
3121 do
3122   # Use a header file that comes with gcc, so configuring glibc
3123   # with a fresh cross-compiler works.
3124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125   # <limits.h> exists even on freestanding compilers.
3126   # On the NeXT, cc -E runs the code through the compiler's parser,
3127   # not just through cpp. "Syntax error" is here to catch this case.
3128   cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134 #ifdef __STDC__
3135 # include <limits.h>
3136 #else
3137 # include <assert.h>
3138 #endif
3139                      Syntax error
3140 _ACEOF
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } >/dev/null; then
3149   if test -s conftest.err; then
3150     ac_cpp_err=$ac_c_preproc_warn_flag
3151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152   else
3153     ac_cpp_err=
3154   fi
3155 else
3156   ac_cpp_err=yes
3157 fi
3158 if test -z "$ac_cpp_err"; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164   # Broken: fails on valid input.
3165 continue
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169   # OK, works on sane cases.  Now check whether non-existent headers
3170   # can be detected and how.
3171   cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177 #include <ac_nonexistent.h>
3178 _ACEOF
3179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } >/dev/null; then
3187   if test -s conftest.err; then
3188     ac_cpp_err=$ac_c_preproc_warn_flag
3189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190   else
3191     ac_cpp_err=
3192   fi
3193 else
3194   ac_cpp_err=yes
3195 fi
3196 if test -z "$ac_cpp_err"; then
3197   # Broken: success on invalid input.
3198 continue
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203   # Passes both tests.
3204 ac_preproc_ok=:
3205 break
3206 fi
3207 rm -f conftest.err conftest.$ac_ext
3208
3209 done
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3213   :
3214 else
3215   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3216 See \`config.log' for more details." >&5
3217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3218 See \`config.log' for more details." >&2;}
3219    { (exit 1); exit 1; }; }
3220 fi
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228 if test "$GXX" != "yes"
3229 then
3230         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3231 echo "$as_me: error: g++ required but not found" >&2;}
3232    { (exit 1); exit 1; }; }
3233 fi
3234
3235 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3236 if test "$gccmajor" -lt "3"
3237 then
3238         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3239 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3240    { (exit 1); exit 1; }; }
3241 fi
3242
3243  echo "$as_me:$LINENO: checking for GNU make" >&5
3244 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3245 if test "${_cv_gnu_make_command+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   _cv_gnu_make_command='' ;
3249                 for a in "$MAKE" make gmake gnumake ; do
3250                         if test -z "$a" ; then continue ; fi ;
3251                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3252                                 _cv_gnu_make_command=$a ;
3253                                 break;
3254                         fi
3255                 done ;
3256
3257 fi
3258 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3259 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3260         if test  "x$_cv_gnu_make_command" != "x"  ; then
3261                 ifGNUmake='' ;
3262         else
3263                 ifGNUmake='#' ;
3264                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3265 echo "${ECHO_T}\"Not found\"" >&6;
3266         fi
3267
3268
3269 if test -z "$_cv_gnu_make_command"
3270 then
3271         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3272 echo "$as_me: error: GNU Make required but not found" >&2;}
3273    { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277 echo "$as_me:$LINENO: checking " >&5
3278 echo $ECHO_N "checking ... $ECHO_C" >&6
3279 if test "${ac_cv_has_flex+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   for ac_prog in flex lex
3283 do
3284   # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_LEX+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$LEX"; then
3292   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_LEX="$ac_prog"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307
3308 fi
3309 fi
3310 LEX=$ac_cv_prog_LEX
3311 if test -n "$LEX"; then
3312   echo "$as_me:$LINENO: result: $LEX" >&5
3313 echo "${ECHO_T}$LEX" >&6
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 fi
3318
3319   test -n "$LEX" && break
3320 done
3321 test -n "$LEX" || LEX=":"
3322
3323 if test -z "$LEXLIB"
3324 then
3325   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3326 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3327 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   ac_check_lib_save_LIBS=$LIBS
3331 LIBS="-lfl  $LIBS"
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338
3339 /* Override any gcc2 internal prototype to avoid an error.  */
3340 #ifdef __cplusplus
3341 extern "C"
3342 #endif
3343 /* We use char because int might match the return type of a gcc2
3344    builtin and then its argument prototype would still apply.  */
3345 char yywrap ();
3346 int
3347 main ()
3348 {
3349 yywrap ();
3350   ;
3351   return 0;
3352 }
3353 _ACEOF
3354 rm -f conftest.$ac_objext conftest$ac_exeext
3355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3356   (eval $ac_link) 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } &&
3363          { ac_try='test -z "$ac_c_werror_flag"
3364                          || test ! -s conftest.err'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; } &&
3370          { ac_try='test -s conftest$ac_exeext'
3371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372   (eval $ac_try) 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; }; then
3376   ac_cv_lib_fl_yywrap=yes
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 ac_cv_lib_fl_yywrap=no
3382 fi
3383 rm -f conftest.err conftest.$ac_objext \
3384       conftest$ac_exeext conftest.$ac_ext
3385 LIBS=$ac_check_lib_save_LIBS
3386 fi
3387 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3388 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3389 if test $ac_cv_lib_fl_yywrap = yes; then
3390   LEXLIB="-lfl"
3391 else
3392   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3393 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3394 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   ac_check_lib_save_LIBS=$LIBS
3398 LIBS="-ll  $LIBS"
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405
3406 /* Override any gcc2 internal prototype to avoid an error.  */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411    builtin and then its argument prototype would still apply.  */
3412 char yywrap ();
3413 int
3414 main ()
3415 {
3416 yywrap ();
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423   (eval $ac_link) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } &&
3430          { ac_try='test -z "$ac_c_werror_flag"
3431                          || test ! -s conftest.err'
3432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433   (eval $ac_try) 2>&5
3434   ac_status=$?
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; } &&
3437          { ac_try='test -s conftest$ac_exeext'
3438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439   (eval $ac_try) 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }; }; then
3443   ac_cv_lib_l_yywrap=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_cv_lib_l_yywrap=no
3449 fi
3450 rm -f conftest.err conftest.$ac_objext \
3451       conftest$ac_exeext conftest.$ac_ext
3452 LIBS=$ac_check_lib_save_LIBS
3453 fi
3454 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3455 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3456 if test $ac_cv_lib_l_yywrap = yes; then
3457   LEXLIB="-ll"
3458 fi
3459
3460 fi
3461
3462 fi
3463
3464 if test "x$LEX" != "x:"; then
3465   echo "$as_me:$LINENO: checking lex output file root" >&5
3466 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3467 if test "${ac_cv_prog_lex_root+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   # The minimal lex program is just a single line: %%.  But some broken lexes
3471 # (Solaris, I think it was) want two %% lines, so accommodate them.
3472 cat >conftest.l <<_ACEOF
3473 %%
3474 %%
3475 _ACEOF
3476 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3477   (eval $LEX conftest.l) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }
3481 if test -f lex.yy.c; then
3482   ac_cv_prog_lex_root=lex.yy
3483 elif test -f lexyy.c; then
3484   ac_cv_prog_lex_root=lexyy
3485 else
3486   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3487 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3490 fi
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3492 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3493 rm -f conftest.l
3494 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3495
3496 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3497 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3498 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   # POSIX says lex can declare yytext either as a pointer or an array; the
3502 # default is implementation-dependent. Figure out which it is, since
3503 # not all implementations provide the %pointer and %array declarations.
3504 ac_cv_prog_lex_yytext_pointer=no
3505 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3506 ac_save_LIBS=$LIBS
3507 LIBS="$LIBS $LEXLIB"
3508 cat >conftest.$ac_ext <<_ACEOF
3509 `cat $LEX_OUTPUT_ROOT.c`
3510 _ACEOF
3511 rm -f conftest.$ac_objext conftest$ac_exeext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3513   (eval $ac_link) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -z "$ac_c_werror_flag"
3521                          || test ! -s conftest.err'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; } &&
3527          { ac_try='test -s conftest$ac_exeext'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   ac_cv_prog_lex_yytext_pointer=yes
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 fi
3539 rm -f conftest.err conftest.$ac_objext \
3540       conftest$ac_exeext conftest.$ac_ext
3541 LIBS=$ac_save_LIBS
3542 rm -f "${LEX_OUTPUT_ROOT}.c"
3543
3544 fi
3545 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3546 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3547 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3548
3549 cat >>confdefs.h <<\_ACEOF
3550 #define YYTEXT_POINTER 1
3551 _ACEOF
3552
3553 fi
3554
3555 fi
3556
3557 fi
3558 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3559 echo "${ECHO_T}$ac_cv_has_flex" >&6
3560 if test "$LEX" != "flex"; then
3561   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3562 echo "$as_me: error: flex not found but required" >&2;}
3563    { (exit 1); exit 1; }; }
3564 else
3565   FLEX=flex
3566
3567 fi
3568
3569 echo "$as_me:$LINENO: checking " >&5
3570 echo $ECHO_N "checking ... $ECHO_C" >&6
3571 if test "${ac_cv_has_bison+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   for ac_prog in 'bison -y' byacc
3575 do
3576   # Extract the first word of "$ac_prog", so it can be a program name with args.
3577 set dummy $ac_prog; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_YACC+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$YACC"; then
3584   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_prog_YACC="$ac_prog"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600 fi
3601 fi
3602 YACC=$ac_cv_prog_YACC
3603 if test -n "$YACC"; then
3604   echo "$as_me:$LINENO: result: $YACC" >&5
3605 echo "${ECHO_T}$YACC" >&6
3606 else
3607   echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609 fi
3610
3611   test -n "$YACC" && break
3612 done
3613 test -n "$YACC" || YACC="yacc"
3614
3615
3616 fi
3617 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3618 echo "${ECHO_T}$ac_cv_has_bison" >&6
3619 if test "$YACC" != "bison -y"; then
3620   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3621 echo "$as_me: error: bison not found but required" >&2;}
3622    { (exit 1); exit 1; }; }
3623 else
3624   BISON=bison
3625
3626 fi
3627
3628 # Check whether --enable-shared or --disable-shared was given.
3629 if test "${enable_shared+set}" = set; then
3630   enableval="$enable_shared"
3631   p=${PACKAGE-default}
3632     case $enableval in
3633     yes) enable_shared=yes ;;
3634     no) enable_shared=no ;;
3635     *)
3636       enable_shared=no
3637       # Look at the argument we got.  We use all the common list separators.
3638       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3639       for pkg in $enableval; do
3640         IFS="$lt_save_ifs"
3641         if test "X$pkg" = "X$p"; then
3642           enable_shared=yes
3643         fi
3644       done
3645       IFS="$lt_save_ifs"
3646       ;;
3647     esac
3648 else
3649   enable_shared=yes
3650 fi;
3651
3652 # Check whether --enable-static or --disable-static was given.
3653 if test "${enable_static+set}" = set; then
3654   enableval="$enable_static"
3655   p=${PACKAGE-default}
3656     case $enableval in
3657     yes) enable_static=yes ;;
3658     no) enable_static=no ;;
3659     *)
3660      enable_static=no
3661       # Look at the argument we got.  We use all the common list separators.
3662       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3663       for pkg in $enableval; do
3664         IFS="$lt_save_ifs"
3665         if test "X$pkg" = "X$p"; then
3666           enable_static=yes
3667         fi
3668       done
3669       IFS="$lt_save_ifs"
3670       ;;
3671     esac
3672 else
3673   enable_static=yes
3674 fi;
3675
3676 # Check whether --enable-fast-install or --disable-fast-install was given.
3677 if test "${enable_fast_install+set}" = set; then
3678   enableval="$enable_fast_install"
3679   p=${PACKAGE-default}
3680     case $enableval in
3681     yes) enable_fast_install=yes ;;
3682     no) enable_fast_install=no ;;
3683     *)
3684       enable_fast_install=no
3685       # Look at the argument we got.  We use all the common list separators.
3686       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687       for pkg in $enableval; do
3688         IFS="$lt_save_ifs"
3689         if test "X$pkg" = "X$p"; then
3690           enable_fast_install=yes
3691         fi
3692       done
3693       IFS="$lt_save_ifs"
3694       ;;
3695     esac
3696 else
3697   enable_fast_install=yes
3698 fi;
3699
3700 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3701 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3702 if test "${lt_cv_path_SED+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   # Loop through the user's path and test for sed and gsed.
3706 # Then use that list of sed's as ones to test for truncation.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for lt_ac_prog in sed gsed; do
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3715         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3716       fi
3717     done
3718   done
3719 done
3720 lt_ac_max=0
3721 lt_ac_count=0
3722 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3723 # along with /bin/sed that truncates output.
3724 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3725   test ! -f $lt_ac_sed && break
3726   cat /dev/null > conftest.in
3727   lt_ac_count=0
3728   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3729   # Check for GNU sed and select it if it is found.
3730   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3731     lt_cv_path_SED=$lt_ac_sed
3732     break
3733   fi
3734   while true; do
3735     cat conftest.in conftest.in >conftest.tmp
3736     mv conftest.tmp conftest.in
3737     cp conftest.in conftest.nl
3738     echo >>conftest.nl
3739     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3740     cmp -s conftest.out conftest.nl || break
3741     # 10000 chars as input seems more than enough
3742     test $lt_ac_count -gt 10 && break
3743     lt_ac_count=`expr $lt_ac_count + 1`
3744     if test $lt_ac_count -gt $lt_ac_max; then
3745       lt_ac_max=$lt_ac_count
3746       lt_cv_path_SED=$lt_ac_sed
3747     fi
3748   done
3749 done
3750
3751 fi
3752
3753 SED=$lt_cv_path_SED
3754 echo "$as_me:$LINENO: result: $SED" >&5
3755 echo "${ECHO_T}$SED" >&6
3756
3757 echo "$as_me:$LINENO: checking for egrep" >&5
3758 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3759 if test "${ac_cv_prog_egrep+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3763     then ac_cv_prog_egrep='grep -E'
3764     else ac_cv_prog_egrep='egrep'
3765     fi
3766 fi
3767 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3768 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3769  EGREP=$ac_cv_prog_egrep
3770
3771
3772
3773 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3774 if test "${with_gnu_ld+set}" = set; then
3775   withval="$with_gnu_ld"
3776   test "$withval" = no || with_gnu_ld=yes
3777 else
3778   with_gnu_ld=no
3779 fi;
3780 ac_prog=ld
3781 if test "$GCC" = yes; then
3782   # Check if gcc -print-prog-name=ld gives a path.
3783   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3784 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3785   case $host in
3786   *-*-mingw*)
3787     # gcc leaves a trailing carriage return which upsets mingw
3788     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3789   *)
3790     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3791   esac
3792   case $ac_prog in
3793     # Accept absolute paths.
3794     [\\/]* | ?:[\\/]*)
3795       re_direlt='/[^/][^/]*/\.\./'
3796       # Canonicalize the pathname of ld
3797       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3798       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3799         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3800       done
3801       test -z "$LD" && LD="$ac_prog"
3802       ;;
3803   "")
3804     # If it fails, then pretend we aren't using GCC.
3805     ac_prog=ld
3806     ;;
3807   *)
3808     # If it is relative, then search for the first ld in PATH.
3809     with_gnu_ld=unknown
3810     ;;
3811   esac
3812 elif test "$with_gnu_ld" = yes; then
3813   echo "$as_me:$LINENO: checking for GNU ld" >&5
3814 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3815 else
3816   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3817 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3818 fi
3819 if test "${lt_cv_path_LD+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if test -z "$LD"; then
3823   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3824   for ac_dir in $PATH; do
3825     IFS="$lt_save_ifs"
3826     test -z "$ac_dir" && ac_dir=.
3827     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3828       lt_cv_path_LD="$ac_dir/$ac_prog"
3829       # Check to see if the program is GNU ld.  I'd rather use --version,
3830       # but apparently some GNU ld's only accept -v.
3831       # Break only if it was the GNU/non-GNU ld that we prefer.
3832       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3833       *GNU* | *'with BFD'*)
3834         test "$with_gnu_ld" != no && break
3835         ;;
3836       *)
3837         test "$with_gnu_ld" != yes && break
3838         ;;
3839       esac
3840     fi
3841   done
3842   IFS="$lt_save_ifs"
3843 else
3844   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3845 fi
3846 fi
3847
3848 LD="$lt_cv_path_LD"
3849 if test -n "$LD"; then
3850   echo "$as_me:$LINENO: result: $LD" >&5
3851 echo "${ECHO_T}$LD" >&6
3852 else
3853   echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3855 fi
3856 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3857 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3858    { (exit 1); exit 1; }; }
3859 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3860 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3861 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3865 case `$LD -v 2>&1 </dev/null` in
3866 *GNU* | *'with BFD'*)
3867   lt_cv_prog_gnu_ld=yes
3868   ;;
3869 *)
3870   lt_cv_prog_gnu_ld=no
3871   ;;
3872 esac
3873 fi
3874 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3875 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3876 with_gnu_ld=$lt_cv_prog_gnu_ld
3877
3878
3879 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3880 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3881 if test "${lt_cv_ld_reload_flag+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   lt_cv_ld_reload_flag='-r'
3885 fi
3886 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3887 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3888 reload_flag=$lt_cv_ld_reload_flag
3889 case $reload_flag in
3890 "" | " "*) ;;
3891 *) reload_flag=" $reload_flag" ;;
3892 esac
3893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3894 case $host_os in
3895   darwin*)
3896     if test "$GCC" = yes; then
3897       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3898     else
3899       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3900     fi
3901     ;;
3902 esac
3903
3904 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3905 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3906 if test "${lt_cv_path_NM+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   if test -n "$NM"; then
3910   # Let the user override the test.
3911   lt_cv_path_NM="$NM"
3912 else
3913   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3914   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3915     IFS="$lt_save_ifs"
3916     test -z "$ac_dir" && ac_dir=.
3917     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3918     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3919       # Check to see if the nm accepts a BSD-compat flag.
3920       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3921       #   nm: unknown option "B" ignored
3922       # Tru64's nm complains that /dev/null is an invalid object file
3923       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3924       */dev/null* | *'Invalid file or object type'*)
3925         lt_cv_path_NM="$tmp_nm -B"
3926         break
3927         ;;
3928       *)
3929         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3930         */dev/null*)
3931           lt_cv_path_NM="$tmp_nm -p"
3932           break
3933           ;;
3934         *)
3935           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3936           continue # so that we can try to find one that supports BSD flags
3937           ;;
3938         esac
3939       esac
3940     fi
3941   done
3942   IFS="$lt_save_ifs"
3943   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3944 fi
3945 fi
3946 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3947 echo "${ECHO_T}$lt_cv_path_NM" >&6
3948 NM="$lt_cv_path_NM"
3949
3950 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3952 LN_S=$as_ln_s
3953 if test "$LN_S" = "ln -s"; then
3954   echo "$as_me:$LINENO: result: yes" >&5
3955 echo "${ECHO_T}yes" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3958 echo "${ECHO_T}no, using $LN_S" >&6
3959 fi
3960
3961 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3962 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3963 if test "${lt_cv_deplibs_check_method+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   lt_cv_file_magic_cmd='$MAGIC_CMD'
3967 lt_cv_file_magic_test_file=
3968 lt_cv_deplibs_check_method='unknown'
3969 # Need to set the preceding variable on all platforms that support
3970 # interlibrary dependencies.
3971 # 'none' -- dependencies not supported.
3972 # `unknown' -- same as none, but documents that we really don't know.
3973 # 'pass_all' -- all dependencies passed with no checks.
3974 # 'test_compile' -- check by making test program.
3975 # 'file_magic [[regex]]' -- check by looking for files in library path
3976 # which responds to the $file_magic_cmd with a given extended regex.
3977 # If you have `file' or equivalent on your system and you're not sure
3978 # whether `pass_all' will *always* work, you probably want this one.
3979
3980 case $host_os in
3981 aix4* | aix5*)
3982   lt_cv_deplibs_check_method=pass_all
3983   ;;
3984
3985 beos*)
3986   lt_cv_deplibs_check_method=pass_all
3987   ;;
3988
3989 bsdi[45]*)
3990   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3991   lt_cv_file_magic_cmd='/usr/bin/file -L'
3992   lt_cv_file_magic_test_file=/shlib/libc.so
3993   ;;
3994
3995 cygwin*)
3996   # func_win32_libid is a shell function defined in ltmain.sh
3997   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3998   lt_cv_file_magic_cmd='func_win32_libid'
3999   ;;
4000
4001 mingw* | pw32*)
4002   # Base MSYS/MinGW do not provide the 'file' command needed by
4003   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4004   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4005   lt_cv_file_magic_cmd='$OBJDUMP -f'
4006   ;;
4007
4008 darwin* | rhapsody*)
4009   lt_cv_deplibs_check_method=pass_all
4010   ;;
4011
4012 freebsd* | kfreebsd*-gnu)
4013   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4014     case $host_cpu in
4015     i*86 )
4016       # Not sure whether the presence of OpenBSD here was a mistake.
4017       # Let's accept both of them until this is cleared up.
4018       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4019       lt_cv_file_magic_cmd=/usr/bin/file
4020       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4021       ;;
4022     esac
4023   else
4024     lt_cv_deplibs_check_method=pass_all
4025   fi
4026   ;;
4027
4028 gnu*)
4029   lt_cv_deplibs_check_method=pass_all
4030   ;;
4031
4032 hpux10.20* | hpux11*)
4033   lt_cv_file_magic_cmd=/usr/bin/file
4034   case "$host_cpu" in
4035   ia64*)
4036     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4037     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4038     ;;
4039   hppa*64*)
4040     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]'
4041     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4042     ;;
4043   *)
4044     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4045     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4046     ;;
4047   esac
4048   ;;
4049
4050 irix5* | irix6* | nonstopux*)
4051   case $LD in
4052   *-32|*"-32 ") libmagic=32-bit;;
4053   *-n32|*"-n32 ") libmagic=N32;;
4054   *-64|*"-64 ") libmagic=64-bit;;
4055   *) libmagic=never-match;;
4056   esac
4057   lt_cv_deplibs_check_method=pass_all
4058   ;;
4059
4060 # This must be Linux ELF.
4061 linux*)
4062   lt_cv_deplibs_check_method=pass_all
4063   ;;
4064
4065 netbsd*)
4066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4068   else
4069     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4070   fi
4071   ;;
4072
4073 newos6*)
4074   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4075   lt_cv_file_magic_cmd=/usr/bin/file
4076   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4077   ;;
4078
4079 nto-qnx*)
4080   lt_cv_deplibs_check_method=unknown
4081   ;;
4082
4083 openbsd*)
4084   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4085     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4086   else
4087     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4088   fi
4089   ;;
4090
4091 osf3* | osf4* | osf5*)
4092   lt_cv_deplibs_check_method=pass_all
4093   ;;
4094
4095 sco3.2v5*)
4096   lt_cv_deplibs_check_method=pass_all
4097   ;;
4098
4099 solaris*)
4100   lt_cv_deplibs_check_method=pass_all
4101   ;;
4102
4103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4104   case $host_vendor in
4105   motorola)
4106     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]'
4107     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4108     ;;
4109   ncr)
4110     lt_cv_deplibs_check_method=pass_all
4111     ;;
4112   sequent)
4113     lt_cv_file_magic_cmd='/bin/file'
4114     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4115     ;;
4116   sni)
4117     lt_cv_file_magic_cmd='/bin/file'
4118     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4119     lt_cv_file_magic_test_file=/lib/libc.so
4120     ;;
4121   siemens)
4122     lt_cv_deplibs_check_method=pass_all
4123     ;;
4124   esac
4125   ;;
4126
4127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4128   lt_cv_deplibs_check_method=pass_all
4129   ;;
4130 esac
4131
4132 fi
4133 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4134 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4135 file_magic_cmd=$lt_cv_file_magic_cmd
4136 deplibs_check_method=$lt_cv_deplibs_check_method
4137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4138
4139
4140
4141
4142 # If no C compiler was specified, use CC.
4143 LTCC=${LTCC-"$CC"}
4144
4145 # Allow CC to be a program name with arguments.
4146 compiler=$CC
4147
4148 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4149 if test "${enable_libtool_lock+set}" = set; then
4150   enableval="$enable_libtool_lock"
4151
4152 fi;
4153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4154
4155 # Some flags need to be propagated to the compiler or linker for good
4156 # libtool support.
4157 case $host in
4158 ia64-*-hpux*)
4159   # Find out which ABI we are using.
4160   echo 'int i;' > conftest.$ac_ext
4161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162   (eval $ac_compile) 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; then
4166     case `/usr/bin/file conftest.$ac_objext` in
4167     *ELF-32*)
4168       HPUX_IA64_MODE="32"
4169       ;;
4170     *ELF-64*)
4171       HPUX_IA64_MODE="64"
4172       ;;
4173     esac
4174   fi
4175   rm -rf conftest*
4176   ;;
4177 *-*-irix6*)
4178   # Find out which ABI we are using.
4179   echo '#line 4179 "configure"' > conftest.$ac_ext
4180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181   (eval $ac_compile) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; then
4185    if test "$lt_cv_prog_gnu_ld" = yes; then
4186     case `/usr/bin/file conftest.$ac_objext` in
4187     *32-bit*)
4188       LD="${LD-ld} -melf32bsmip"
4189       ;;
4190     *N32*)
4191       LD="${LD-ld} -melf32bmipn32"
4192       ;;
4193     *64-bit*)
4194       LD="${LD-ld} -melf64bmip"
4195       ;;
4196     esac
4197    else
4198     case `/usr/bin/file conftest.$ac_objext` in
4199     *32-bit*)
4200       LD="${LD-ld} -32"
4201       ;;
4202     *N32*)
4203       LD="${LD-ld} -n32"
4204       ;;
4205     *64-bit*)
4206       LD="${LD-ld} -64"
4207       ;;
4208     esac
4209    fi
4210   fi
4211   rm -rf conftest*
4212   ;;
4213
4214 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4215   # Find out which ABI we are using.
4216   echo 'int i;' > conftest.$ac_ext
4217   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218   (eval $ac_compile) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; then
4222     case "`/usr/bin/file conftest.o`" in
4223     *32-bit*)
4224       case $host in
4225         x86_64-*linux*)
4226           LD="${LD-ld} -m elf_i386"
4227           ;;
4228         ppc64-*linux*|powerpc64-*linux*)
4229           LD="${LD-ld} -m elf32ppclinux"
4230           ;;
4231         s390x-*linux*)
4232           LD="${LD-ld} -m elf_s390"
4233           ;;
4234         sparc64-*linux*)
4235           LD="${LD-ld} -m elf32_sparc"
4236           ;;
4237       esac
4238       ;;
4239     *64-bit*)
4240       case $host in
4241         x86_64-*linux*)
4242           LD="${LD-ld} -m elf_x86_64"
4243           ;;
4244         ppc*-*linux*|powerpc*-*linux*)
4245           LD="${LD-ld} -m elf64ppc"
4246           ;;
4247         s390*-*linux*)
4248           LD="${LD-ld} -m elf64_s390"
4249           ;;
4250         sparc*-*linux*)
4251           LD="${LD-ld} -m elf64_sparc"
4252           ;;
4253       esac
4254       ;;
4255     esac
4256   fi
4257   rm -rf conftest*
4258   ;;
4259
4260 *-*-sco3.2v5*)
4261   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4262   SAVE_CFLAGS="$CFLAGS"
4263   CFLAGS="$CFLAGS -belf"
4264   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4265 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4266 if test "${lt_cv_cc_needs_belf+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   ac_ext=c
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274
4275      cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281
4282 int
4283 main ()
4284 {
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292   (eval $ac_link) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest$ac_exeext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   lt_cv_cc_needs_belf=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 lt_cv_cc_needs_belf=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext \
4320       conftest$ac_exeext conftest.$ac_ext
4321      ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327 fi
4328 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332     CFLAGS="$SAVE_CFLAGS"
4333   fi
4334   ;;
4335
4336 esac
4337
4338 need_locks="$enable_libtool_lock"
4339
4340
4341
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
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 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368   (eval $ac_compile) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -z "$ac_c_werror_flag"
4376                          || test ! -s conftest.err'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest.$ac_objext'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   ac_cv_header_stdc=yes
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397 if test $ac_cv_header_stdc = yes; then
4398   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399   cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <string.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409   $EGREP "memchr" >/dev/null 2>&1; then
4410   :
4411 else
4412   ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #include <stdlib.h>
4427
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430   $EGREP "free" >/dev/null 2>&1; then
4431   :
4432 else
4433   ac_cv_header_stdc=no
4434 fi
4435 rm -f conftest*
4436
4437 fi
4438
4439 if test $ac_cv_header_stdc = yes; then
4440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441   if test "$cross_compiling" = yes; then
4442   :
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 #include <ctype.h>
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 #else
4455 # define ISLOWER(c) \
4456                    (('a' <= (c) && (c) <= 'i') \
4457                      || ('j' <= (c) && (c) <= 'r') \
4458                      || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460 #endif
4461
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 int
4464 main ()
4465 {
4466   int i;
4467   for (i = 0; i < 256; i++)
4468     if (XOR (islower (i), ISLOWER (i))
4469         || toupper (i) != TOUPPER (i))
4470       exit(2);
4471   exit (0);
4472 }
4473 _ACEOF
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476   (eval $ac_link) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   :
4486 else
4487   echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ( exit $ac_status )
4492 ac_cv_header_stdc=no
4493 fi
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 fi
4496 fi
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4501
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4504 _ACEOF
4505
4506 fi
4507
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519                   inttypes.h stdint.h unistd.h
4520 do
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534
4535 #include <$ac_header>
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -z "$ac_c_werror_flag"
4547                          || test ! -s conftest.err'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; } &&
4553          { ac_try='test -s conftest.$ac_objext'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; }; then
4559   eval "$as_ac_Header=yes"
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 eval "$as_ac_Header=no"
4565 fi
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571   cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4574
4575 fi
4576
4577 done
4578
4579
4580
4581 for ac_header in dlfcn.h
4582 do
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585   echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 fi
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 else
4593   # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 $ac_includes_default
4603 #include <$ac_header>
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_header_compiler=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_header_compiler=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636 echo "${ECHO_T}$ac_header_compiler" >&6
4637
4638 # Is the header present?
4639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 #include <$ac_header>
4648 _ACEOF
4649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } >/dev/null; then
4657   if test -s conftest.err; then
4658     ac_cpp_err=$ac_c_preproc_warn_flag
4659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4660   else
4661     ac_cpp_err=
4662   fi
4663 else
4664   ac_cpp_err=yes
4665 fi
4666 if test -z "$ac_cpp_err"; then
4667   ac_header_preproc=yes
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672   ac_header_preproc=no
4673 fi
4674 rm -f conftest.err conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676 echo "${ECHO_T}$ac_header_preproc" >&6
4677
4678 # So?  What about this header?
4679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4680   yes:no: )
4681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685     ac_header_preproc=yes
4686     ;;
4687   no:yes:* )
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4700     (
4701       cat <<\_ASBOX
4702 ## ----------------------------------- ##
4703 ## Report this to llvmbugs@cs.uiuc.edu ##
4704 ## ----------------------------------- ##
4705 _ASBOX
4706     ) |
4707       sed "s/^/$as_me: WARNING:     /" >&2
4708     ;;
4709 esac
4710 echo "$as_me:$LINENO: checking for $ac_header" >&5
4711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   eval "$as_ac_Header=\$ac_header_preproc"
4716 fi
4717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4719
4720 fi
4721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722   cat >>confdefs.h <<_ACEOF
4723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724 _ACEOF
4725
4726 fi
4727
4728 done
4729
4730
4731
4732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734     (test "X$CXX" != "Xg++"))) ; then
4735   ac_ext=cc
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742 if test -z "$CXXCPP"; then
4743   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746       # Double quotes because CXXCPP needs to be expanded
4747     for CXXCPP in "$CXX -E" "/lib/cpp"
4748     do
4749       ac_preproc_ok=false
4750 for ac_cxx_preproc_warn_flag in '' yes
4751 do
4752   # Use a header file that comes with gcc, so configuring glibc
4753   # with a fresh cross-compiler works.
4754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755   # <limits.h> exists even on freestanding compilers.
4756   # On the NeXT, cc -E runs the code through the compiler's parser,
4757   # not just through cpp. "Syntax error" is here to catch this case.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #ifdef __STDC__
4765 # include <limits.h>
4766 #else
4767 # include <assert.h>
4768 #endif
4769                      Syntax error
4770 _ACEOF
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null; then
4779   if test -s conftest.err; then
4780     ac_cpp_err=$ac_cxx_preproc_warn_flag
4781     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4782   else
4783     ac_cpp_err=
4784   fi
4785 else
4786   ac_cpp_err=yes
4787 fi
4788 if test -z "$ac_cpp_err"; then
4789   :
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   # Broken: fails on valid input.
4795 continue
4796 fi
4797 rm -f conftest.err conftest.$ac_ext
4798
4799   # OK, works on sane cases.  Now check whether non-existent headers
4800   # can be detected and how.
4801   cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 #include <ac_nonexistent.h>
4808 _ACEOF
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } >/dev/null; then
4817   if test -s conftest.err; then
4818     ac_cpp_err=$ac_cxx_preproc_warn_flag
4819     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4820   else
4821     ac_cpp_err=
4822   fi
4823 else
4824   ac_cpp_err=yes
4825 fi
4826 if test -z "$ac_cpp_err"; then
4827   # Broken: success on invalid input.
4828 continue
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833   # Passes both tests.
4834 ac_preproc_ok=:
4835 break
4836 fi
4837 rm -f conftest.err conftest.$ac_ext
4838
4839 done
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then
4843   break
4844 fi
4845
4846     done
4847     ac_cv_prog_CXXCPP=$CXXCPP
4848
4849 fi
4850   CXXCPP=$ac_cv_prog_CXXCPP
4851 else
4852   ac_cv_prog_CXXCPP=$CXXCPP
4853 fi
4854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855 echo "${ECHO_T}$CXXCPP" >&6
4856 ac_preproc_ok=false
4857 for ac_cxx_preproc_warn_flag in '' yes
4858 do
4859   # Use a header file that comes with gcc, so configuring glibc
4860   # with a fresh cross-compiler works.
4861   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862   # <limits.h> exists even on freestanding compilers.
4863   # On the NeXT, cc -E runs the code through the compiler's parser,
4864   # not just through cpp. "Syntax error" is here to catch this case.
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876                      Syntax error
4877 _ACEOF
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } >/dev/null; then
4886   if test -s conftest.err; then
4887     ac_cpp_err=$ac_cxx_preproc_warn_flag
4888     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4889   else
4890     ac_cpp_err=
4891   fi
4892 else
4893   ac_cpp_err=yes
4894 fi
4895 if test -z "$ac_cpp_err"; then
4896   :
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901   # Broken: fails on valid input.
4902 continue
4903 fi
4904 rm -f conftest.err conftest.$ac_ext
4905
4906   # OK, works on sane cases.  Now check whether non-existent headers
4907   # can be detected and how.
4908   cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 #include <ac_nonexistent.h>
4915 _ACEOF
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_cxx_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944 rm -f conftest.err conftest.$ac_ext
4945
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4950   :
4951 else
4952   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955 See \`config.log' for more details." >&2;}
4956    { (exit 1); exit 1; }; }
4957 fi
4958
4959 ac_ext=cc
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
4965 fi
4966
4967
4968 ac_ext=f
4969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4974   do
4975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_F77+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$F77"; then
4983   ac_cv_prog_F77="$F77" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998
4999 fi
5000 fi
5001 F77=$ac_cv_prog_F77
5002 if test -n "$F77"; then
5003   echo "$as_me:$LINENO: result: $F77" >&5
5004 echo "${ECHO_T}$F77" >&6
5005 else
5006   echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008 fi
5009
5010     test -n "$F77" && break
5011   done
5012 fi
5013 if test -z "$F77"; then
5014   ac_ct_F77=$F77
5015   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5016 do
5017   # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   if test -n "$ac_ct_F77"; then
5025   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032   for ac_exec_ext in '' $ac_executable_extensions; do
5033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034     ac_cv_prog_ac_ct_F77="$ac_prog"
5035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039 done
5040
5041 fi
5042 fi
5043 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044 if test -n "$ac_ct_F77"; then
5045   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046 echo "${ECHO_T}$ac_ct_F77" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052   test -n "$ac_ct_F77" && break
5053 done
5054
5055   F77=$ac_ct_F77
5056 fi
5057
5058
5059 # Provide some information about the compiler.
5060 echo "$as_me:5060:" \
5061      "checking for Fortran 77 compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064   (eval $ac_compiler --version </dev/null >&5) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069   (eval $ac_compiler -v </dev/null >&5) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074   (eval $ac_compiler -V </dev/null >&5) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }
5078 rm -f a.out
5079
5080 # If we don't use `.F' as extension, the preprocessor is not run on the
5081 # input file.  (Note that this only needs to work for GNU compilers.)
5082 ac_save_ext=$ac_ext
5083 ac_ext=F
5084 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat >conftest.$ac_ext <<_ACEOF
5090       program main
5091 #ifndef __GNUC__
5092        choke me
5093 #endif
5094
5095       end
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } &&
5106          { ac_try='test -z "$ac_f77_werror_flag"
5107                          || test ! -s conftest.err'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest.$ac_objext'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   ac_compiler_gnu=yes
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_compiler_gnu=no
5125 fi
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5128
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5132 ac_ext=$ac_save_ext
5133 ac_test_FFLAGS=${FFLAGS+set}
5134 ac_save_FFLAGS=$FFLAGS
5135 FFLAGS=
5136 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138 if test "${ac_cv_prog_f77_g+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   FFLAGS=-g
5142 cat >conftest.$ac_ext <<_ACEOF
5143       program main
5144
5145       end
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149   (eval $ac_compile) 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } &&
5156          { ac_try='test -z "$ac_f77_werror_flag"
5157                          || test ! -s conftest.err'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_cv_prog_f77_g=yes
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_cv_prog_f77_g=no
5175 fi
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177
5178 fi
5179 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181 if test "$ac_test_FFLAGS" = set; then
5182   FFLAGS=$ac_save_FFLAGS
5183 elif test $ac_cv_prog_f77_g = yes; then
5184   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5185     FFLAGS="-g -O2"
5186   else
5187     FFLAGS="-g"
5188   fi
5189 else
5190   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5191     FFLAGS="-O2"
5192   else
5193     FFLAGS=
5194   fi
5195 fi
5196
5197 G77=`test $ac_compiler_gnu = yes && echo yes`
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204
5205
5206 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5207
5208 # find the maximum length of command line arguments
5209 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214     i=0
5215   teststring="ABCD"
5216
5217   case $build_os in
5218   msdosdjgpp*)
5219     # On DJGPP, this test can blow up pretty badly due to problems in libc
5220     # (any single argument exceeding 2000 bytes causes a buffer overrun
5221     # during glob expansion).  Even if it were fixed, the result of this
5222     # check would be larger than it should be.
5223     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5224     ;;
5225
5226   gnu*)
5227     # Under GNU Hurd, this test is not required because there is
5228     # no limit to the length of command line arguments.
5229     # Libtool will interpret -1 as no limit whatsoever
5230     lt_cv_sys_max_cmd_len=-1;
5231     ;;
5232
5233   cygwin* | mingw*)
5234     # On Win9x/ME, this test blows up -- it succeeds, but takes
5235     # about 5 minutes as the teststring grows exponentially.
5236     # Worse, since 9x/ME are not pre-emptively multitasking,
5237     # you end up with a "frozen" computer, even though with patience
5238     # the test eventually succeeds (with a max line length of 256k).
5239     # Instead, let's just punt: use the minimum linelength reported by
5240     # all of the supported platforms: 8192 (on NT/2K/XP).
5241     lt_cv_sys_max_cmd_len=8192;
5242     ;;
5243
5244   amigaos*)
5245     # On AmigaOS with pdksh, this test takes hours, literally.
5246     # So we just punt and use a minimum line length of 8192.
5247     lt_cv_sys_max_cmd_len=8192;
5248     ;;
5249
5250   netbsd* | freebsd* | openbsd* | darwin* )
5251     # This has been around since 386BSD, at least.  Likely further.
5252     if test -x /sbin/sysctl; then
5253       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254     elif test -x /usr/sbin/sysctl; then
5255       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5256     else
5257       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5258     fi
5259     # And add a safety zone
5260     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261     ;;
5262
5263  *)
5264     # If test is not a shell built-in, we'll probably end up computing a
5265     # maximum length that is only half of the actual maximum length, but
5266     # we can't tell.
5267     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269                = "XX$teststring") >/dev/null 2>&1 &&
5270             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5271             lt_cv_sys_max_cmd_len=$new_result &&
5272             test $i != 17 # 1/2 MB should be enough
5273     do
5274       i=`expr $i + 1`
5275       teststring=$teststring$teststring
5276     done
5277     teststring=
5278     # Add a significant safety factor because C++ compilers can tack on massive
5279     # amounts of additional arguments before passing them to the linker.
5280     # It appears as though 1/2 is a usable value.
5281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282     ;;
5283   esac
5284
5285 fi
5286
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5290 else
5291   echo "$as_me:$LINENO: result: none" >&5
5292 echo "${ECHO_T}none" >&6
5293 fi
5294
5295
5296
5297
5298 # Check for command to grab the raw symbol name followed by C symbol from nm.
5299 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304
5305 # These are sane defaults that work on at least a few old systems.
5306 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5307
5308 # Character class describing NM global symbol codes.
5309 symcode='[BCDEGRST]'
5310
5311 # Regexp to match symbols that can be accessed directly from C.
5312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314 # Transform the above into a raw symbol and a C symbol.
5315 symxfrm='\1 \2\3 \3'
5316
5317 # Transform an extracted symbol line into a proper C declaration
5318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5319
5320 # Transform an extracted symbol line into symbol name and symbol address
5321 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'"
5322
5323 # Define system-specific variables.
5324 case $host_os in
5325 aix*)
5326   symcode='[BCDT]'
5327   ;;
5328 cygwin* | mingw* | pw32*)
5329   symcode='[ABCDGISTW]'
5330   ;;
5331 hpux*) # Its linker distinguishes data from code symbols
5332   if test "$host_cpu" = ia64; then
5333     symcode='[ABCDEGRST]'
5334   fi
5335   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336   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'"
5337   ;;
5338 linux*)
5339   if test "$host_cpu" = ia64; then
5340     symcode='[ABCDGIRSTW]'
5341     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342     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'"
5343   fi
5344   ;;
5345 irix* | nonstopux*)
5346   symcode='[BCDEGRST]'
5347   ;;
5348 osf*)
5349   symcode='[BCDEGQRST]'
5350   ;;
5351 solaris* | sysv5*)
5352   symcode='[BDRT]'
5353   ;;
5354 sysv4)
5355   symcode='[DFNSTU]'
5356   ;;
5357 esac
5358
5359 # Handle CRLF in mingw tool chain
5360 opt_cr=
5361 case $build_os in
5362 mingw*)
5363   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5364   ;;
5365 esac
5366
5367 # If we're using GNU nm, then use its standard symbol codes.
5368 case `$NM -V 2>&1` in
5369 *GNU* | *'with BFD'*)
5370   symcode='[ABCDGIRSTW]' ;;
5371 esac
5372
5373 # Try without a prefix undercore, then with it.
5374 for ac_symprfx in "" "_"; do
5375
5376   # Write the raw and C identifiers.
5377   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5378
5379   # Check to see that the pipe works correctly.
5380   pipe_works=no
5381
5382   rm -f conftest*
5383   cat > conftest.$ac_ext <<EOF
5384 #ifdef __cplusplus
5385 extern "C" {
5386 #endif
5387 char nm_test_var;
5388 void nm_test_func(){}
5389 #ifdef __cplusplus
5390 }
5391 #endif
5392 int main(){nm_test_var='a';nm_test_func();return(0);}
5393 EOF
5394
5395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396   (eval $ac_compile) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; then
5400     # Now try to grab the symbols.
5401     nlist=conftest.nm
5402     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } && test -s "$nlist"; then
5407       # Try sorting and uniquifying the output.
5408       if sort "$nlist" | uniq > "$nlist"T; then
5409         mv -f "$nlist"T "$nlist"
5410       else
5411         rm -f "$nlist"T
5412       fi
5413
5414       # Make sure that we snagged all the symbols we need.
5415       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417           cat <<EOF > conftest.$ac_ext
5418 #ifdef __cplusplus
5419 extern "C" {
5420 #endif
5421
5422 EOF
5423           # Now generate the symbol file.
5424           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5425
5426           cat <<EOF >> conftest.$ac_ext
5427 #if defined (__STDC__) && __STDC__
5428 # define lt_ptr_t void *
5429 #else
5430 # define lt_ptr_t char *
5431 # define const
5432 #endif
5433
5434 /* The mapping between symbol names and symbols. */
5435 const struct {
5436   const char *name;
5437   lt_ptr_t address;
5438 }
5439 lt_preloaded_symbols[] =
5440 {
5441 EOF
5442           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443           cat <<\EOF >> conftest.$ac_ext
5444   {0, (lt_ptr_t) 0}
5445 };
5446
5447 #ifdef __cplusplus
5448 }
5449 #endif
5450 EOF
5451           # Now try linking the two files.
5452           mv conftest.$ac_objext conftstm.$ac_objext
5453           lt_save_LIBS="$LIBS"
5454           lt_save_CFLAGS="$CFLAGS"
5455           LIBS="conftstm.$ac_objext"
5456           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5462             pipe_works=yes
5463           fi
5464           LIBS="$lt_save_LIBS"
5465           CFLAGS="$lt_save_CFLAGS"
5466         else
5467           echo "cannot find nm_test_func in $nlist" >&5
5468         fi
5469       else
5470         echo "cannot find nm_test_var in $nlist" >&5
5471       fi
5472     else
5473       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5474     fi
5475   else
5476     echo "$progname: failed program was:" >&5
5477     cat conftest.$ac_ext >&5
5478   fi
5479   rm -f conftest* conftst*
5480
5481   # Do not use the global_symbol_pipe unless it works.
5482   if test "$pipe_works" = yes; then
5483     break
5484   else
5485     lt_cv_sys_global_symbol_pipe=
5486   fi
5487 done
5488
5489 fi
5490
5491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492   lt_cv_sys_global_symbol_to_cdecl=
5493 fi
5494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495   echo "$as_me:$LINENO: result: failed" >&5
5496 echo "${ECHO_T}failed" >&6
5497 else
5498   echo "$as_me:$LINENO: result: ok" >&5
5499 echo "${ECHO_T}ok" >&6
5500 fi
5501
5502 echo "$as_me:$LINENO: checking for objdir" >&5
5503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504 if test "${lt_cv_objdir+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   rm -f .libs 2>/dev/null
5508 mkdir .libs 2>/dev/null
5509 if test -d .libs; then
5510   lt_cv_objdir=.libs
5511 else
5512   # MS-DOS does not allow filenames that begin with a dot.
5513   lt_cv_objdir=_libs
5514 fi
5515 rmdir .libs 2>/dev/null
5516 fi
5517 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518 echo "${ECHO_T}$lt_cv_objdir" >&6
5519 objdir=$lt_cv_objdir
5520
5521
5522
5523
5524
5525 case $host_os in
5526 aix3*)
5527   # AIX sometimes has problems with the GCC collect2 program.  For some
5528   # reason, if we set the COLLECT_NAMES environment variable, the problems
5529   # vanish in a puff of smoke.
5530   if test "X${COLLECT_NAMES+set}" != Xset; then
5531     COLLECT_NAMES=
5532     export COLLECT_NAMES
5533   fi
5534   ;;
5535 esac
5536
5537 # Sed substitution that helps us do robust quoting.  It backslashifies
5538 # metacharacters that are still active within double-quoted strings.
5539 Xsed='sed -e s/^X//'
5540 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5541
5542 # Same as above, but do not quote variable references.
5543 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5544
5545 # Sed substitution to delay expansion of an escaped shell variable in a
5546 # double_quote_subst'ed string.
5547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549 # Sed substitution to avoid accidental globbing in evaled expressions
5550 no_glob_subst='s/\*/\\\*/g'
5551
5552 # Constants:
5553 rm="rm -f"
5554
5555 # Global variables:
5556 default_ofile=mklib
5557 can_build_shared=yes
5558
5559 # All known linkers require a `.a' archive for static linking (except M$VC,
5560 # which needs '.lib').
5561 libext=a
5562 ltmain="$ac_aux_dir/ltmain.sh"
5563 ofile="$default_ofile"
5564 with_gnu_ld="$lt_cv_prog_gnu_ld"
5565
5566 if test -n "$ac_tool_prefix"; then
5567   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}ar; ac_word=$2
5569 echo "$as_me:$LINENO: checking for $ac_word" >&5
5570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571 if test "${ac_cv_prog_AR+set}" = set; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   if test -n "$AR"; then
5575   ac_cv_prog_AR="$AR" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582   for ac_exec_ext in '' $ac_executable_extensions; do
5583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_prog_AR="${ac_tool_prefix}ar"
5585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589 done
5590
5591 fi
5592 fi
5593 AR=$ac_cv_prog_AR
5594 if test -n "$AR"; then
5595   echo "$as_me:$LINENO: result: $AR" >&5
5596 echo "${ECHO_T}$AR" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602 fi
5603 if test -z "$ac_cv_prog_AR"; then
5604   ac_ct_AR=$AR
5605   # Extract the first word of "ar", so it can be a program name with args.
5606 set dummy 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_ac_ct_AR+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$ac_ct_AR"; then
5613   ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5630 fi
5631 fi
5632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633 if test -n "$ac_ct_AR"; then
5634   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635 echo "${ECHO_T}$ac_ct_AR" >&6
5636 else
5637   echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5639 fi
5640
5641   AR=$ac_ct_AR
5642 else
5643   AR="$ac_cv_prog_AR"
5644 fi
5645
5646 if test -n "$ac_tool_prefix"; then
5647   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   if test -n "$RANLIB"; then
5655   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662   for ac_exec_ext in '' $ac_executable_extensions; do
5663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669 done
5670
5671 fi
5672 fi
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675   echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5677 else
5678   echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5680 fi
5681
5682 fi
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684   ac_ct_RANLIB=$RANLIB
5685   # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy 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_ac_ct_RANLIB+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$ac_ct_RANLIB"; then
5693   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5710 fi
5711 fi
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716 else
5717   echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5719 fi
5720
5721   RANLIB=$ac_ct_RANLIB
5722 else
5723   RANLIB="$ac_cv_prog_RANLIB"
5724 fi
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$STRIP"; then
5735   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751 fi
5752 fi
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755   echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762 fi
5763 if test -z "$ac_cv_prog_STRIP"; then
5764   ac_ct_STRIP=$STRIP
5765   # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy 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_ac_ct_STRIP+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$ac_ct_STRIP"; then
5773   ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5790 fi
5791 fi
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5796 else
5797   echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5799 fi
5800
5801   STRIP=$ac_ct_STRIP
5802 else
5803   STRIP="$ac_cv_prog_STRIP"
5804 fi
5805
5806
5807 old_CC="$CC"
5808 old_CFLAGS="$CFLAGS"
5809
5810 # Set sane defaults for various variables
5811 test -z "$AR" && AR=ar
5812 test -z "$AR_FLAGS" && AR_FLAGS=cru
5813 test -z "$AS" && AS=as
5814 test -z "$CC" && CC=cc
5815 test -z "$LTCC" && LTCC=$CC
5816 test -z "$DLLTOOL" && DLLTOOL=dlltool
5817 test -z "$LD" && LD=ld
5818 test -z "$LN_S" && LN_S="ln -s"
5819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820 test -z "$NM" && NM=nm
5821 test -z "$SED" && SED=sed
5822 test -z "$OBJDUMP" && OBJDUMP=objdump
5823 test -z "$RANLIB" && RANLIB=:
5824 test -z "$STRIP" && STRIP=:
5825 test -z "$ac_objext" && ac_objext=o
5826
5827 # Determine commands to create old-style static archives.
5828 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829 old_postinstall_cmds='chmod 644 $oldlib'
5830 old_postuninstall_cmds=
5831
5832 if test -n "$RANLIB"; then
5833   case $host_os in
5834   openbsd*)
5835     old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5836     ;;
5837   *)
5838     old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5839     ;;
5840   esac
5841   old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5842 fi
5843
5844 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5845
5846 # Only perform the check for file, if the check method requires it
5847 case $deplibs_check_method in
5848 file_magic*)
5849   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   case $MAGIC_CMD in
5856 [\\/*] |  ?:[\\/]*)
5857   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5858   ;;
5859 *)
5860   lt_save_MAGIC_CMD="$MAGIC_CMD"
5861   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863   for ac_dir in $ac_dummy; do
5864     IFS="$lt_save_ifs"
5865     test -z "$ac_dir" && ac_dir=.
5866     if test -f $ac_dir/${ac_tool_prefix}file; then
5867       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868       if test -n "$file_magic_test_file"; then
5869         case $deplibs_check_method in
5870         "file_magic "*)
5871           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874             $EGREP "$file_magic_regex" > /dev/null; then
5875             :
5876           else
5877             cat <<EOF 1>&2
5878
5879 *** Warning: the command libtool uses to detect shared libraries,
5880 *** $file_magic_cmd, produces output that libtool cannot recognize.
5881 *** The result is that libtool may fail to recognize shared libraries
5882 *** as such.  This will affect the creation of libtool libraries that
5883 *** depend on shared libraries, but programs linked with such libtool
5884 *** libraries will work regardless of this problem.  Nevertheless, you
5885 *** may want to report the problem to your system manager and/or to
5886 *** bug-libtool@gnu.org
5887
5888 EOF
5889           fi ;;
5890         esac
5891       fi
5892       break
5893     fi
5894   done
5895   IFS="$lt_save_ifs"
5896   MAGIC_CMD="$lt_save_MAGIC_CMD"
5897   ;;
5898 esac
5899 fi
5900
5901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902 if test -n "$MAGIC_CMD"; then
5903   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904 echo "${ECHO_T}$MAGIC_CMD" >&6
5905 else
5906   echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 if test -z "$lt_cv_path_MAGIC_CMD"; then
5911   if test -n "$ac_tool_prefix"; then
5912     echo "$as_me:$LINENO: checking for file" >&5
5913 echo $ECHO_N "checking for file... $ECHO_C" >&6
5914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $MAGIC_CMD in
5918 [\\/*] |  ?:[\\/]*)
5919   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5920   ;;
5921 *)
5922   lt_save_MAGIC_CMD="$MAGIC_CMD"
5923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925   for ac_dir in $ac_dummy; do
5926     IFS="$lt_save_ifs"
5927     test -z "$ac_dir" && ac_dir=.
5928     if test -f $ac_dir/file; then
5929       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930       if test -n "$file_magic_test_file"; then
5931         case $deplibs_check_method in
5932         "file_magic "*)
5933           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936             $EGREP "$file_magic_regex" > /dev/null; then
5937             :
5938           else
5939             cat <<EOF 1>&2
5940
5941 *** Warning: the command libtool uses to detect shared libraries,
5942 *** $file_magic_cmd, produces output that libtool cannot recognize.
5943 *** The result is that libtool may fail to recognize shared libraries
5944 *** as such.  This will affect the creation of libtool libraries that
5945 *** depend on shared libraries, but programs linked with such libtool
5946 *** libraries will work regardless of this problem.  Nevertheless, you
5947 *** may want to report the problem to your system manager and/or to
5948 *** bug-libtool@gnu.org
5949
5950 EOF
5951           fi ;;
5952         esac
5953       fi
5954       break
5955     fi
5956   done
5957   IFS="$lt_save_ifs"
5958   MAGIC_CMD="$lt_save_MAGIC_CMD"
5959   ;;
5960 esac
5961 fi
5962
5963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964 if test -n "$MAGIC_CMD"; then
5965   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966 echo "${ECHO_T}$MAGIC_CMD" >&6
5967 else
5968   echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 fi
5971
5972   else
5973     MAGIC_CMD=:
5974   fi
5975 fi
5976
5977   fi
5978   ;;
5979 esac
5980
5981 enable_dlopen=no
5982 enable_win32_dll=no
5983
5984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985 if test "${enable_libtool_lock+set}" = set; then
5986   enableval="$enable_libtool_lock"
5987
5988 fi;
5989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5990
5991
5992 # Check whether --with-pic or --without-pic was given.
5993 if test "${with_pic+set}" = set; then
5994   withval="$with_pic"
5995   pic_mode="$withval"
5996 else
5997   pic_mode=default
5998 fi;
5999 test -z "$pic_mode" && pic_mode=default
6000
6001 # Use C for the default configuration in the libtool script
6002 tagname=
6003 lt_save_CC="$CC"
6004 ac_ext=c
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011 # Source file extension for C test sources.
6012 ac_ext=c
6013
6014 # Object file extension for compiled C test sources.
6015 objext=o
6016 objext=$objext
6017
6018 # Code to be used in simple compile tests
6019 lt_simple_compile_test_code="int some_variable = 0;\n"
6020
6021 # Code to be used in simple link tests
6022 lt_simple_link_test_code='int main(){return(0);}\n'
6023
6024
6025 # If no C compiler was specified, use CC.
6026 LTCC=${LTCC-"$CC"}
6027
6028 # Allow CC to be a program name with arguments.
6029 compiler=$CC
6030
6031
6032 #
6033 # Check for any special shared library compilation flags.
6034 #
6035 lt_prog_cc_shlib=
6036 if test "$GCC" = no; then
6037   case $host_os in
6038   sco3.2v5*)
6039     lt_prog_cc_shlib='-belf'
6040     ;;
6041   esac
6042 fi
6043 if test -n "$lt_prog_cc_shlib"; then
6044   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6047   else
6048     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050     lt_cv_prog_cc_can_build_shared=no
6051   fi
6052 fi
6053
6054
6055 #
6056 # Check to make sure the static flag actually works.
6057 #
6058 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060 if test "${lt_prog_compiler_static_works+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   lt_prog_compiler_static_works=no
6064    save_LDFLAGS="$LDFLAGS"
6065    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068      # The compiler can only warn and ignore the option if not recognized
6069      # So say no if there are warnings
6070      if test -s conftest.err; then
6071        # Append any errors to the config.log.
6072        cat conftest.err 1>&5
6073      else
6074        lt_prog_compiler_static_works=yes
6075      fi
6076    fi
6077    $rm conftest*
6078    LDFLAGS="$save_LDFLAGS"
6079
6080 fi
6081 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6083
6084 if test x"$lt_prog_compiler_static_works" = xyes; then
6085     :
6086 else
6087     lt_prog_compiler_static=
6088 fi
6089
6090
6091
6092
6093 lt_prog_compiler_no_builtin_flag=
6094
6095 if test "$GCC" = yes; then
6096   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6097
6098
6099 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6100 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   lt_cv_prog_compiler_rtti_exceptions=no
6105   ac_outfile=conftest.$ac_objext
6106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107    lt_compiler_flag="-fno-rtti -fno-exceptions"
6108    # Insert the option either (1) after the last *FLAGS variable, or
6109    # (2) before a word containing "conftest.", or (3) at the end.
6110    # Note that $ac_compile itself does not contain backslashes and begins
6111    # with a dollar sign (not a hyphen), so the echo should work correctly.
6112    # The option is referenced via a variable to avoid confusing sed.
6113    lt_compile=`echo "$ac_compile" | $SED \
6114    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116    -e 's:$: $lt_compiler_flag:'`
6117    (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118    (eval "$lt_compile" 2>conftest.err)
6119    ac_status=$?
6120    cat conftest.err >&5
6121    echo "$as_me:6121: \$? = $ac_status" >&5
6122    if (exit $ac_status) && test -s "$ac_outfile"; then
6123      # The compiler can only warn and ignore the option if not recognized
6124      # So say no if there are warnings
6125      if test ! -s conftest.err; then
6126        lt_cv_prog_compiler_rtti_exceptions=yes
6127      fi
6128    fi
6129    $rm conftest*
6130
6131 fi
6132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6134
6135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6137 else
6138     :
6139 fi
6140
6141 fi
6142
6143 lt_prog_compiler_wl=
6144 lt_prog_compiler_pic=
6145 lt_prog_compiler_static=
6146
6147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6149
6150   if test "$GCC" = yes; then
6151     lt_prog_compiler_wl='-Wl,'
6152     lt_prog_compiler_static='-static'
6153
6154     case $host_os in
6155       aix*)
6156       # All AIX code is PIC.
6157       if test "$host_cpu" = ia64; then
6158         # AIX 5 now supports IA64 processor
6159         lt_prog_compiler_static='-Bstatic'
6160       fi
6161       ;;
6162
6163     amigaos*)
6164       # FIXME: we need at least 68020 code to build shared libraries, but
6165       # adding the `-m68020' flag to GCC prevents building anything better,
6166       # like `-m68040'.
6167       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6168       ;;
6169
6170     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6171       # PIC is the default for these OSes.
6172       ;;
6173
6174     mingw* | pw32* | os2*)
6175       # This hack is so that the source file can tell whether it is being
6176       # built for inclusion in a dll (and should export symbols for example).
6177       lt_prog_compiler_pic='-DDLL_EXPORT'
6178       ;;
6179
6180     darwin* | rhapsody*)
6181       # PIC is the default on this platform
6182       # Common symbols not allowed in MH_DYLIB files
6183       lt_prog_compiler_pic='-fno-common'
6184       ;;
6185
6186     msdosdjgpp*)
6187       # Just because we use GCC doesn't mean we suddenly get shared libraries
6188       # on systems that don't support them.
6189       lt_prog_compiler_can_build_shared=no
6190       enable_shared=no
6191       ;;
6192
6193     sysv4*MP*)
6194       if test -d /usr/nec; then
6195         lt_prog_compiler_pic=-Kconform_pic
6196       fi
6197       ;;
6198
6199     hpux*)
6200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6201       # not for PA HP-UX.
6202       case "$host_cpu" in
6203       hppa*64*|ia64*)
6204         # +Z the default
6205         ;;
6206       *)
6207         lt_prog_compiler_pic='-fPIC'
6208         ;;
6209       esac
6210       ;;
6211
6212     *)
6213       lt_prog_compiler_pic='-fPIC'
6214       ;;
6215     esac
6216   else
6217     # PORTME Check for flag to pass linker flags through the system compiler.
6218     case $host_os in
6219     aix*)
6220       lt_prog_compiler_wl='-Wl,'
6221       if test "$host_cpu" = ia64; then
6222         # AIX 5 now supports IA64 processor
6223         lt_prog_compiler_static='-Bstatic'
6224       else
6225         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6226       fi
6227       ;;
6228       darwin*)
6229         # PIC is the default on this platform
6230         # Common symbols not allowed in MH_DYLIB files
6231        case "$cc_basename" in
6232          xlc*)
6233          lt_prog_compiler_pic='-qnocommon'
6234          lt_prog_compiler_wl='-Wl,'
6235          ;;
6236        esac
6237        ;;
6238
6239     mingw* | pw32* | os2*)
6240       # This hack is so that the source file can tell whether it is being
6241       # built for inclusion in a dll (and should export symbols for example).
6242       lt_prog_compiler_pic='-DDLL_EXPORT'
6243       ;;
6244
6245     hpux9* | hpux10* | hpux11*)
6246       lt_prog_compiler_wl='-Wl,'
6247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248       # not for PA HP-UX.
6249       case "$host_cpu" in
6250       hppa*64*|ia64*)
6251         # +Z the default
6252         ;;
6253       *)
6254         lt_prog_compiler_pic='+Z'
6255         ;;
6256       esac
6257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258       lt_prog_compiler_static='${wl}-a ${wl}archive'
6259       ;;
6260
6261     irix5* | irix6* | nonstopux*)
6262       lt_prog_compiler_wl='-Wl,'
6263       # PIC (with -KPIC) is the default.
6264       lt_prog_compiler_static='-non_shared'
6265       ;;
6266
6267     newsos6)
6268       lt_prog_compiler_pic='-KPIC'
6269       lt_prog_compiler_static='-Bstatic'
6270       ;;
6271
6272     linux*)
6273       case $CC in
6274       icc* | ecc*)
6275         lt_prog_compiler_wl='-Wl,'
6276         lt_prog_compiler_pic='-KPIC'
6277         lt_prog_compiler_static='-static'
6278         ;;
6279       ccc*)
6280         lt_prog_compiler_wl='-Wl,'
6281         # All Alpha code is PIC.
6282         lt_prog_compiler_static='-non_shared'
6283         ;;
6284       esac
6285       ;;
6286
6287     osf3* | osf4* | osf5*)
6288       lt_prog_compiler_wl='-Wl,'
6289       # All OSF/1 code is PIC.
6290       lt_prog_compiler_static='-non_shared'
6291       ;;
6292
6293     sco3.2v5*)
6294       lt_prog_compiler_pic='-Kpic'
6295       lt_prog_compiler_static='-dn'
6296       ;;
6297
6298     solaris*)
6299       lt_prog_compiler_wl='-Wl,'
6300       lt_prog_compiler_pic='-KPIC'
6301       lt_prog_compiler_static='-Bstatic'
6302       ;;
6303
6304     sunos4*)
6305       lt_prog_compiler_wl='-Qoption ld '
6306       lt_prog_compiler_pic='-PIC'
6307       lt_prog_compiler_static='-Bstatic'
6308       ;;
6309
6310     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311       lt_prog_compiler_wl='-Wl,'
6312       lt_prog_compiler_pic='-KPIC'
6313       lt_prog_compiler_static='-Bstatic'
6314       ;;
6315
6316     sysv4*MP*)
6317       if test -d /usr/nec ;then
6318         lt_prog_compiler_pic='-Kconform_pic'
6319         lt_prog_compiler_static='-Bstatic'
6320       fi
6321       ;;
6322
6323     uts4*)
6324       lt_prog_compiler_pic='-pic'
6325       lt_prog_compiler_static='-Bstatic'
6326       ;;
6327
6328     *)
6329       lt_prog_compiler_can_build_shared=no
6330       ;;
6331     esac
6332   fi
6333
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6336
6337 #
6338 # Check to make sure the PIC flag actually works.
6339 #
6340 if test -n "$lt_prog_compiler_pic"; then
6341
6342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344 if test "${lt_prog_compiler_pic_works+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   lt_prog_compiler_pic_works=no
6348   ac_outfile=conftest.$ac_objext
6349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351    # Insert the option either (1) after the last *FLAGS variable, or
6352    # (2) before a word containing "conftest.", or (3) at the end.
6353    # Note that $ac_compile itself does not contain backslashes and begins
6354    # with a dollar sign (not a hyphen), so the echo should work correctly.
6355    # The option is referenced via a variable to avoid confusing sed.
6356    lt_compile=`echo "$ac_compile" | $SED \
6357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359    -e 's:$: $lt_compiler_flag:'`
6360    (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
6361    (eval "$lt_compile" 2>conftest.err)
6362    ac_status=$?
6363    cat conftest.err >&5
6364    echo "$as_me:6364: \$? = $ac_status" >&5
6365    if (exit $ac_status) && test -s "$ac_outfile"; then
6366      # The compiler can only warn and ignore the option if not recognized
6367      # So say no if there are warnings
6368      if test ! -s conftest.err; then
6369        lt_prog_compiler_pic_works=yes
6370      fi
6371    fi
6372    $rm conftest*
6373
6374 fi
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6377
6378 if test x"$lt_prog_compiler_pic_works" = xyes; then
6379     case $lt_prog_compiler_pic in
6380      "" | " "*) ;;
6381      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6382      esac
6383 else
6384     lt_prog_compiler_pic=
6385      lt_prog_compiler_can_build_shared=no
6386 fi
6387
6388 fi
6389 case "$host_os" in
6390   # For platforms which do not support PIC, -DPIC is meaningless:
6391   *djgpp*)
6392     lt_prog_compiler_pic=
6393     ;;
6394   *)
6395     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6396     ;;
6397 esac
6398
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   lt_cv_prog_compiler_c_o=no
6405    $rm -r conftest 2>/dev/null
6406    mkdir conftest
6407    cd conftest
6408    mkdir out
6409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6410
6411    lt_compiler_flag="-o out/conftest2.$ac_objext"
6412    # Insert the option either (1) after the last *FLAGS variable, or
6413    # (2) before a word containing "conftest.", or (3) at the end.
6414    # Note that $ac_compile itself does not contain backslashes and begins
6415    # with a dollar sign (not a hyphen), so the echo should work correctly.
6416    lt_compile=`echo "$ac_compile" | $SED \
6417    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419    -e 's:$: $lt_compiler_flag:'`
6420    (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421    (eval "$lt_compile" 2>out/conftest.err)
6422    ac_status=$?
6423    cat out/conftest.err >&5
6424    echo "$as_me:6424: \$? = $ac_status" >&5
6425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426    then
6427      # The compiler can only warn and ignore the option if not recognized
6428      # So say no if there are warnings
6429      if test ! -s out/conftest.err; then
6430        lt_cv_prog_compiler_c_o=yes
6431      fi
6432    fi
6433    chmod u+w .
6434    $rm conftest*
6435    # SGI C++ compiler will create directory out/ii_files/ for
6436    # template instantiation
6437    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438    $rm out/* && rmdir out
6439    cd ..
6440    rmdir conftest
6441    $rm conftest*
6442
6443 fi
6444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6446
6447
6448 hard_links="nottested"
6449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6450   # do not overwrite the value of need_locks provided by the user
6451   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6453   hard_links=yes
6454   $rm conftest*
6455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456   touch conftest.a
6457   ln conftest.a conftest.b 2>&5 || hard_links=no
6458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459   echo "$as_me:$LINENO: result: $hard_links" >&5
6460 echo "${ECHO_T}$hard_links" >&6
6461   if test "$hard_links" = no; then
6462     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6464     need_locks=warn
6465   fi
6466 else
6467   need_locks=no
6468 fi
6469
6470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6472
6473   runpath_var=
6474   allow_undefined_flag=
6475   enable_shared_with_static_runtimes=no
6476   archive_cmds=
6477   archive_expsym_cmds=
6478   old_archive_From_new_cmds=
6479   old_archive_from_expsyms_cmds=
6480   export_dynamic_flag_spec=
6481   whole_archive_flag_spec=
6482   thread_safe_flag_spec=
6483   hardcode_libdir_flag_spec=
6484   hardcode_libdir_flag_spec_ld=
6485   hardcode_libdir_separator=
6486   hardcode_direct=no
6487   hardcode_minus_L=no
6488   hardcode_shlibpath_var=unsupported
6489   link_all_deplibs=unknown
6490   hardcode_automatic=no
6491   module_cmds=
6492   module_expsym_cmds=
6493   always_export_symbols=no
6494   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495   # include_expsyms should be a list of space-separated symbols to be *always*
6496   # included in the symbol list
6497   include_expsyms=
6498   # exclude_expsyms can be an extended regexp of symbols to exclude
6499   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501   # as well as any symbol that contains `d'.
6502   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504   # platforms (ab)use it in PIC code, but their linkers get confused if
6505   # the symbol is explicitly referenced.  Since portable code cannot
6506   # rely on this symbol name, it's probably fine to never include it in
6507   # preloaded symbol tables.
6508   extract_expsyms_cmds=
6509
6510   case $host_os in
6511   cygwin* | mingw* | pw32*)
6512     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513     # When not using gcc, we currently assume that we are using
6514     # Microsoft Visual C++.
6515     if test "$GCC" != yes; then
6516       with_gnu_ld=no
6517     fi
6518     ;;
6519   openbsd*)
6520     with_gnu_ld=no
6521     ;;
6522   esac
6523
6524   ld_shlibs=yes
6525   if test "$with_gnu_ld" = yes; then
6526     # If archive_cmds runs LD, not CC, wlarc should be empty
6527     wlarc='${wl}'
6528
6529     # See if GNU ld supports shared libraries.
6530     case $host_os in
6531     aix3* | aix4* | aix5*)
6532       # On AIX/PPC, the GNU linker is very broken
6533       if test "$host_cpu" != ia64; then
6534         ld_shlibs=no
6535         cat <<EOF 1>&2
6536
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support.  If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6542
6543 EOF
6544       fi
6545       ;;
6546
6547     amigaos*)
6548       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)'
6549       hardcode_libdir_flag_spec='-L$libdir'
6550       hardcode_minus_L=yes
6551
6552       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553       # that the semantics of dynamic libraries on AmigaOS, at least up
6554       # to version 4, is to share data among multiple programs linked
6555       # with the same dynamic library.  Since this doesn't match the
6556       # behavior of shared libraries on other platforms, we can't use
6557       # them.
6558       ld_shlibs=no
6559       ;;
6560
6561     beos*)
6562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563         allow_undefined_flag=unsupported
6564         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565         # support --undefined.  This deserves some investigation.  FIXME
6566         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567       else
6568         ld_shlibs=no
6569       fi
6570       ;;
6571
6572     cygwin* | mingw* | pw32*)
6573       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574       # as there is no search path for DLLs.
6575       hardcode_libdir_flag_spec='-L$libdir'
6576       allow_undefined_flag=unsupported
6577       always_export_symbols=no
6578       enable_shared_with_static_runtimes=yes
6579       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6580
6581       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583         # If the export-symbols file already is a .def file (1st line
6584         # is EXPORTS), use it as is; otherwise, prepend...
6585         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586           cp $export_symbols $output_objdir/$soname.def;
6587         else
6588           echo EXPORTS > $output_objdir/$soname.def;
6589           cat $export_symbols >> $output_objdir/$soname.def;
6590         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6591       else
6592         ld_shlibs=no
6593       fi
6594       ;;
6595
6596     netbsd*)
6597       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6598         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6599         wlarc=
6600       else
6601         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6602         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6603       fi
6604       ;;
6605
6606     solaris* | sysv5*)
6607       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6608         ld_shlibs=no
6609         cat <<EOF 1>&2
6610
6611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6612 *** create shared libraries on Solaris systems.  Therefore, libtool
6613 *** is disabling shared libraries support.  We urge you to upgrade GNU
6614 *** binutils to release 2.9.1 or newer.  Another option is to modify
6615 *** your PATH or compiler configuration so that the native linker is
6616 *** used, and then restart.
6617
6618 EOF
6619       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6620         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6621         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6622       else
6623         ld_shlibs=no
6624       fi
6625       ;;
6626
6627     sunos4*)
6628       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6629       wlarc=
6630       hardcode_direct=yes
6631       hardcode_shlibpath_var=no
6632       ;;
6633
6634   linux*)
6635     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6636         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6637         archive_cmds="$tmp_archive_cmds"
6638       supports_anon_versioning=no
6639       case `$LD -v 2>/dev/null` in
6640         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6641         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6642         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6643         *\ 2.11.*) ;; # other 2.11 versions
6644         *) supports_anon_versioning=yes ;;
6645       esac
6646       if test $supports_anon_versioning = yes; then
6647         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6648         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6649       else
6650         archive_expsym_cmds="$tmp_archive_cmds"
6651       fi
6652     else
6653       ld_shlibs=no
6654     fi
6655     ;;
6656
6657     *)
6658       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661       else
6662         ld_shlibs=no
6663       fi
6664       ;;
6665     esac
6666
6667     if test "$ld_shlibs" = yes; then
6668       runpath_var=LD_RUN_PATH
6669       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6670       export_dynamic_flag_spec='${wl}--export-dynamic'
6671       # ancient GNU ld didn't support --whole-archive et. al.
6672       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6673         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6674       else
6675         whole_archive_flag_spec=
6676       fi
6677     fi
6678   else
6679     # PORTME fill in a description of your system's linker (not GNU ld)
6680     case $host_os in
6681     aix3*)
6682       allow_undefined_flag=unsupported
6683       always_export_symbols=yes
6684       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'
6685       # Note: this linker hardcodes the directories in LIBPATH if there
6686       # are no directories specified by -L.
6687       hardcode_minus_L=yes
6688       if test "$GCC" = yes && test -z "$link_static_flag"; then
6689         # Neither direct hardcoding nor static linking is supported with a
6690         # broken collect2.
6691         hardcode_direct=unsupported
6692       fi
6693       ;;
6694
6695     aix4* | aix5*)
6696       if test "$host_cpu" = ia64; then
6697         # On IA64, the linker does run time linking by default, so we don't
6698         # have to do anything special.
6699         aix_use_runtimelinking=no
6700         exp_sym_flag='-Bexport'
6701         no_entry_flag=""
6702       else
6703         # If we're using GNU nm, then we don't want the "-C" option.
6704         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6705         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6706           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'
6707         else
6708           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'
6709         fi
6710         aix_use_runtimelinking=no
6711
6712         # Test if we are trying to use run time linking or normal
6713         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6714         # need to do runtime linking.
6715         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6716           for ld_flag in $LDFLAGS; do
6717           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6718             aix_use_runtimelinking=yes
6719             break
6720           fi
6721           done
6722         esac
6723
6724         exp_sym_flag='-bexport'
6725         no_entry_flag='-bnoentry'
6726       fi
6727
6728       # When large executables or shared objects are built, AIX ld can
6729       # have problems creating the table of contents.  If linking a library
6730       # or program results in "error TOC overflow" add -mminimal-toc to
6731       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6732       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6733
6734       archive_cmds=''
6735       hardcode_direct=yes
6736       hardcode_libdir_separator=':'
6737       link_all_deplibs=yes
6738
6739       if test "$GCC" = yes; then
6740         case $host_os in aix4.012|aix4.012.*)
6741         # We only want to do this on AIX 4.2 and lower, the check
6742         # below for broken collect2 doesn't work under 4.3+
6743           collect2name=`${CC} -print-prog-name=collect2`
6744           if test -f "$collect2name" && \
6745            strings "$collect2name" | grep resolve_lib_name >/dev/null
6746           then
6747           # We have reworked collect2
6748           hardcode_direct=yes
6749           else
6750           # We have old collect2
6751           hardcode_direct=unsupported
6752           # It fails to find uninstalled libraries when the uninstalled
6753           # path is not listed in the libpath.  Setting hardcode_minus_L
6754           # to unsupported forces relinking
6755           hardcode_minus_L=yes
6756           hardcode_libdir_flag_spec='-L$libdir'
6757           hardcode_libdir_separator=
6758           fi
6759         esac
6760         shared_flag='-shared'
6761       else
6762         # not using gcc
6763         if test "$host_cpu" = ia64; then
6764         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6765         # chokes on -Wl,-G. The following line is correct:
6766           shared_flag='-G'
6767         else
6768         if test "$aix_use_runtimelinking" = yes; then
6769             shared_flag='${wl}-G'
6770           else
6771             shared_flag='${wl}-bM:SRE'
6772         fi
6773         fi
6774       fi
6775
6776       # It seems that -bexpall does not export symbols beginning with
6777       # underscore (_), so it is better to generate a list of symbols to export.
6778       always_export_symbols=yes
6779       if test "$aix_use_runtimelinking" = yes; then
6780         # Warning - without using the other runtime loading flags (-brtl),
6781         # -berok will link without error, but may produce a broken library.
6782         allow_undefined_flag='-berok'
6783        # Determine the default libpath from the value encoded in an empty executable.
6784        cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790
6791 int
6792 main ()
6793 {
6794
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801   (eval $ac_link) 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } &&
6808          { ac_try='test -z "$ac_c_werror_flag"
6809                          || test ! -s conftest.err'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; } &&
6815          { ac_try='test -s conftest$ac_exeext'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821
6822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6823 }'`
6824 # Check for a 64-bit object if we didn't find anything.
6825 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; }
6826 }'`; fi
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 fi
6832 rm -f conftest.err conftest.$ac_objext \
6833       conftest$ac_exeext conftest.$ac_ext
6834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6835
6836        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6837         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"
6838        else
6839         if test "$host_cpu" = ia64; then
6840           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6841           allow_undefined_flag="-z nodefs"
6842           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"
6843         else
6844          # Determine the default libpath from the value encoded in an empty executable.
6845          cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851
6852 int
6853 main ()
6854 {
6855
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862   (eval $ac_link) 2>conftest.er1
6863   ac_status=$?
6864   grep -v '^ *+' conftest.er1 >conftest.err
6865   rm -f conftest.er1
6866   cat conftest.err >&5
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -z "$ac_c_werror_flag"
6870                          || test ! -s conftest.err'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; } &&
6876          { ac_try='test -s conftest$ac_exeext'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882
6883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6884 }'`
6885 # Check for a 64-bit object if we didn't find anything.
6886 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; }
6887 }'`; fi
6888 else
6889   echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 fi
6893 rm -f conftest.err conftest.$ac_objext \
6894       conftest$ac_exeext conftest.$ac_ext
6895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6896
6897          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6898           # Warning - without using the other run time loading flags,
6899           # -berok will link without error, but may produce a broken library.
6900           no_undefined_flag=' ${wl}-bernotok'
6901           allow_undefined_flag=' ${wl}-berok'
6902           # -bexpall does not export symbols beginning with underscore (_)
6903           always_export_symbols=yes
6904           # Exported symbols can be pulled into shared objects from archives
6905           whole_archive_flag_spec=' '
6906           archive_cmds_need_lc=yes
6907           # This is similar to how AIX traditionally builds it's shared libraries.
6908           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'
6909         fi
6910       fi
6911       ;;
6912
6913     amigaos*)
6914       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)'
6915       hardcode_libdir_flag_spec='-L$libdir'
6916       hardcode_minus_L=yes
6917       # see comment about different semantics on the GNU ld section
6918       ld_shlibs=no
6919       ;;
6920
6921     bsdi[45]*)
6922       export_dynamic_flag_spec=-rdynamic
6923       ;;
6924
6925     cygwin* | mingw* | pw32*)
6926       # When not using gcc, we currently assume that we are using
6927       # Microsoft Visual C++.
6928       # hardcode_libdir_flag_spec is actually meaningless, as there is
6929       # no search path for DLLs.
6930       hardcode_libdir_flag_spec=' '
6931       allow_undefined_flag=unsupported
6932       # Tell ltmain to make .lib files, not .a files.
6933       libext=lib
6934       # Tell ltmain to make .dll files, not .so files.
6935       shrext_cmds=".dll"
6936       # FIXME: Setting linknames here is a bad hack.
6937       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6938       # The linker will automatically build a .lib file if we build a DLL.
6939       old_archive_From_new_cmds='true'
6940       # FIXME: Should let the user specify the lib program.
6941       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942       fix_srcfile_path='`cygpath -w "$srcfile"`'
6943       enable_shared_with_static_runtimes=yes
6944       ;;
6945
6946     darwin* | rhapsody*)
6947       case "$host_os" in
6948         rhapsody* | darwin1.[012])
6949          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6950          ;;
6951        *) # Darwin 1.3 on
6952          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6953            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954          else
6955            case ${MACOSX_DEPLOYMENT_TARGET} in
6956              10.[012])
6957                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6958                ;;
6959              10.*)
6960                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6961                ;;
6962            esac
6963          fi
6964          ;;
6965       esac
6966       archive_cmds_need_lc=no
6967       hardcode_direct=no
6968       hardcode_automatic=yes
6969       hardcode_shlibpath_var=unsupported
6970       whole_archive_flag_spec=''
6971       link_all_deplibs=yes
6972     if test "$GCC" = yes ; then
6973         output_verbose_link_cmd='echo'
6974         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6975       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6976       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6977       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}'
6978       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6979     else
6980       case "$cc_basename" in
6981         xlc*)
6982          output_verbose_link_cmd='echo'
6983          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6984          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6985           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6986          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6987           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6988           ;;
6989        *)
6990          ld_shlibs=no
6991           ;;
6992       esac
6993     fi
6994       ;;
6995
6996     dgux*)
6997       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6998       hardcode_libdir_flag_spec='-L$libdir'
6999       hardcode_shlibpath_var=no
7000       ;;
7001
7002     freebsd1*)
7003       ld_shlibs=no
7004       ;;
7005
7006     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7007     # support.  Future versions do this automatically, but an explicit c++rt0.o
7008     # does not break anything, and helps significantly (at the cost of a little
7009     # extra space).
7010     freebsd2.2*)
7011       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7012       hardcode_libdir_flag_spec='-R$libdir'
7013       hardcode_direct=yes
7014       hardcode_shlibpath_var=no
7015       ;;
7016
7017     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7018     freebsd2*)
7019       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7020       hardcode_direct=yes
7021       hardcode_minus_L=yes
7022       hardcode_shlibpath_var=no
7023       ;;
7024
7025     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7026     freebsd* | kfreebsd*-gnu)
7027       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7028       hardcode_libdir_flag_spec='-R$libdir'
7029       hardcode_direct=yes
7030       hardcode_shlibpath_var=no
7031       ;;
7032
7033     hpux9*)
7034       if test "$GCC" = yes; then
7035         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'
7036       else
7037         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'
7038       fi
7039       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7040       hardcode_libdir_separator=:
7041       hardcode_direct=yes
7042
7043       # hardcode_minus_L: Not really in the search PATH,
7044       # but as the default location of the library.
7045       hardcode_minus_L=yes
7046       export_dynamic_flag_spec='${wl}-E'
7047       ;;
7048
7049     hpux10* | hpux11*)
7050       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7051         case "$host_cpu" in
7052         hppa*64*|ia64*)
7053           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054           ;;
7055         *)
7056           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7057           ;;
7058         esac
7059       else
7060         case "$host_cpu" in
7061         hppa*64*|ia64*)
7062           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7063           ;;
7064         *)
7065           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7066           ;;
7067         esac
7068       fi
7069       if test "$with_gnu_ld" = no; then
7070         case "$host_cpu" in
7071         hppa*64*)
7072           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7073           hardcode_libdir_flag_spec_ld='+b $libdir'
7074           hardcode_libdir_separator=:
7075           hardcode_direct=no
7076           hardcode_shlibpath_var=no
7077           ;;
7078         ia64*)
7079           hardcode_libdir_flag_spec='-L$libdir'
7080           hardcode_direct=no
7081           hardcode_shlibpath_var=no
7082
7083           # hardcode_minus_L: Not really in the search PATH,
7084           # but as the default location of the library.
7085           hardcode_minus_L=yes
7086           ;;
7087         *)
7088           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7089           hardcode_libdir_separator=:
7090           hardcode_direct=yes
7091           export_dynamic_flag_spec='${wl}-E'
7092
7093           # hardcode_minus_L: Not really in the search PATH,
7094           # but as the default location of the library.
7095           hardcode_minus_L=yes
7096           ;;
7097         esac
7098       fi
7099       ;;
7100
7101     irix5* | irix6* | nonstopux*)
7102       if test "$GCC" = yes; then
7103         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'
7104       else
7105         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'
7106         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7107       fi
7108       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109       hardcode_libdir_separator=:
7110       link_all_deplibs=yes
7111       ;;
7112
7113     netbsd*)
7114       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7115         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7116       else
7117         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7118       fi
7119       hardcode_libdir_flag_spec='-R$libdir'
7120       hardcode_direct=yes
7121       hardcode_shlibpath_var=no
7122       ;;
7123
7124     newsos6)
7125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126       hardcode_direct=yes
7127       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7128       hardcode_libdir_separator=:
7129       hardcode_shlibpath_var=no
7130       ;;
7131
7132     openbsd*)
7133       hardcode_direct=yes
7134       hardcode_shlibpath_var=no
7135       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
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; $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'
7183         # Both c and cxx compiler support -rpath directly
7184         hardcode_libdir_flag_spec='-rpath $libdir'
7185       fi
7186       hardcode_libdir_separator=:
7187       ;;
7188
7189     sco3.2v5*)
7190       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7191       hardcode_shlibpath_var=no
7192       export_dynamic_flag_spec='${wl}-Bexport'
7193       runpath_var=LD_RUN_PATH
7194       hardcode_runpath_var=yes
7195       ;;
7196
7197     solaris*)
7198       no_undefined_flag=' -z text'
7199       if test "$GCC" = yes; then
7200         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7201         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
7202       else
7203         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204         archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7205       fi
7206       hardcode_libdir_flag_spec='-R$libdir'
7207       hardcode_shlibpath_var=no
7208       case $host_os in
7209       solaris2.[0-5] | solaris2.[0-5].*) ;;
7210       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7211         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7212       esac
7213       link_all_deplibs=yes
7214       ;;
7215
7216     sunos4*)
7217       if test "x$host_vendor" = xsequent; then
7218         # Use $CC to link under sequent, because it throws in some extra .o
7219         # files that make .init and .fini sections work.
7220         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7221       else
7222         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7223       fi
7224       hardcode_libdir_flag_spec='-L$libdir'
7225       hardcode_direct=yes
7226       hardcode_minus_L=yes
7227       hardcode_shlibpath_var=no
7228       ;;
7229
7230     sysv4)
7231       case $host_vendor in
7232         sni)
7233           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7234           hardcode_direct=yes # is this really true???
7235         ;;
7236         siemens)
7237           ## LD is ld it makes a PLAMLIB
7238           ## CC just makes a GrossModule.
7239           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7240           reload_cmds='$CC -r -o $output$reload_objs'
7241           hardcode_direct=no
7242         ;;
7243         motorola)
7244           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7245           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7246         ;;
7247       esac
7248       runpath_var='LD_RUN_PATH'
7249       hardcode_shlibpath_var=no
7250       ;;
7251
7252     sysv4.3*)
7253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254       hardcode_shlibpath_var=no
7255       export_dynamic_flag_spec='-Bexport'
7256       ;;
7257
7258     sysv4*MP*)
7259       if test -d /usr/nec; then
7260         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261         hardcode_shlibpath_var=no
7262         runpath_var=LD_RUN_PATH
7263         hardcode_runpath_var=yes
7264         ld_shlibs=yes
7265       fi
7266       ;;
7267
7268     sysv4.2uw2*)
7269       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7270       hardcode_direct=yes
7271       hardcode_minus_L=no
7272       hardcode_shlibpath_var=no
7273       hardcode_runpath_var=yes
7274       runpath_var=LD_RUN_PATH
7275       ;;
7276
7277    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7278       no_undefined_flag='${wl}-z ${wl}text'
7279       if test "$GCC" = yes; then
7280         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281       else
7282         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7283       fi
7284       runpath_var='LD_RUN_PATH'
7285       hardcode_shlibpath_var=no
7286       ;;
7287
7288     sysv5*)
7289       no_undefined_flag=' -z text'
7290       # $CC -shared without GNU ld will not create a library from C++
7291       # object files and a static libstdc++, better avoid it by now
7292       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293       archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7294       hardcode_libdir_flag_spec=
7295       hardcode_shlibpath_var=no
7296       runpath_var='LD_RUN_PATH'
7297       ;;
7298
7299     uts4*)
7300       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301       hardcode_libdir_flag_spec='-L$libdir'
7302       hardcode_shlibpath_var=no
7303       ;;
7304
7305     *)
7306       ld_shlibs=no
7307       ;;
7308     esac
7309   fi
7310
7311 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7312 echo "${ECHO_T}$ld_shlibs" >&6
7313 test "$ld_shlibs" = no && can_build_shared=no
7314
7315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7316 if test "$GCC" = yes; then
7317   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7318 fi
7319
7320 #
7321 # Do we need to explicitly link libc?
7322 #
7323 case "x$archive_cmds_need_lc" in
7324 x|xyes)
7325   # Assume -lc should be added
7326   archive_cmds_need_lc=yes
7327
7328   if test "$enable_shared" = yes && test "$GCC" = yes; then
7329     case $archive_cmds in
7330     *'~'*)
7331       # FIXME: we may have to deal with multi-command sequences.
7332       ;;
7333     '$CC '*)
7334       # Test whether the compiler implicitly links with -lc since on some
7335       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7336       # to ld, don't add -lc before -lgcc.
7337       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7339       $rm conftest*
7340       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7341
7342       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343   (eval $ac_compile) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } 2>conftest.err; then
7347         soname=conftest
7348         lib=conftest
7349         libobjs=conftest.$ac_objext
7350         deplibs=
7351         wl=$lt_prog_compiler_wl
7352         compiler_flags=-v
7353         linker_flags=-v
7354         verstring=
7355         output_objdir=.
7356         libname=conftest
7357         lt_save_allow_undefined_flag=$allow_undefined_flag
7358         allow_undefined_flag=
7359         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7360   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); }
7364         then
7365           archive_cmds_need_lc=no
7366         else
7367           archive_cmds_need_lc=yes
7368         fi
7369         allow_undefined_flag=$lt_save_allow_undefined_flag
7370       else
7371         cat conftest.err 1>&5
7372       fi
7373       $rm conftest*
7374       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7375 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7376       ;;
7377     esac
7378   fi
7379   ;;
7380 esac
7381
7382 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7383 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7384 library_names_spec=
7385 libname_spec='lib$name'
7386 soname_spec=
7387 shrext_cmds=".so"
7388 postinstall_cmds=
7389 postuninstall_cmds=
7390 finish_cmds=
7391 finish_eval=
7392 shlibpath_var=
7393 shlibpath_overrides_runpath=unknown
7394 version_type=none
7395 dynamic_linker="$host_os ld.so"
7396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7397 if test "$GCC" = yes; then
7398   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7399   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7400     # if the path contains ";" then we assume it to be the separator
7401     # otherwise default to the standard path separator (i.e. ":") - it is
7402     # assumed that no part of a normal pathname contains ";" but that should
7403     # okay in the real world where ";" in dirpaths is itself problematic.
7404     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7405   else
7406     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7407   fi
7408 else
7409   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7410 fi
7411 need_lib_prefix=unknown
7412 hardcode_into_libs=no
7413
7414 # when you set need_version to no, make sure it does not cause -set_version
7415 # flags to be left without arguments
7416 need_version=unknown
7417
7418 case $host_os in
7419 aix3*)
7420   version_type=linux
7421   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7422   shlibpath_var=LIBPATH
7423
7424   # AIX 3 has no versioning support, so we append a major version to the name.
7425   soname_spec='${libname}${release}${shared_ext}$major'
7426   ;;
7427
7428 aix4* | aix5*)
7429   version_type=linux
7430   need_lib_prefix=no
7431   need_version=no
7432   hardcode_into_libs=yes
7433   if test "$host_cpu" = ia64; then
7434     # AIX 5 supports IA64
7435     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7436     shlibpath_var=LD_LIBRARY_PATH
7437   else
7438     # With GCC up to 2.95.x, collect2 would create an import file
7439     # for dependence libraries.  The import file would start with
7440     # the line `#! .'.  This would cause the generated library to
7441     # depend on `.', always an invalid library.  This was fixed in
7442     # development snapshots of GCC prior to 3.0.
7443     case $host_os in
7444       aix4 | aix4.[01] | aix4.[01].*)
7445       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7446            echo ' yes '
7447            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7448         :
7449       else
7450         can_build_shared=no
7451       fi
7452       ;;
7453     esac
7454     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7455     # soname into executable. Probably we can add versioning support to
7456     # collect2, so additional links can be useful in future.
7457     if test "$aix_use_runtimelinking" = yes; then
7458       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7459       # instead of lib<name>.a to let people know that these are not
7460       # typical AIX shared libraries.
7461       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7462     else
7463       # We preserve .a as extension for shared libraries through AIX4.2
7464       # and later when we are not doing run time linking.
7465       library_names_spec='${libname}${release}.a $libname.a'
7466       soname_spec='${libname}${release}${shared_ext}$major'
7467     fi
7468     shlibpath_var=LIBPATH
7469   fi
7470   ;;
7471
7472 amigaos*)
7473   library_names_spec='$libname.ixlibrary $libname.a'
7474   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7475   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'
7476   ;;
7477
7478 beos*)
7479   library_names_spec='${libname}${shared_ext}'
7480   dynamic_linker="$host_os ld.so"
7481   shlibpath_var=LIBRARY_PATH
7482   ;;
7483
7484 bsdi[45]*)
7485   version_type=linux
7486   need_version=no
7487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7488   soname_spec='${libname}${release}${shared_ext}$major'
7489   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7490   shlibpath_var=LD_LIBRARY_PATH
7491   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7492   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7493   # the default ld.so.conf also contains /usr/contrib/lib and
7494   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7495   # libtool to hard-code these into programs
7496   ;;
7497
7498 cygwin* | mingw* | pw32*)
7499   version_type=windows
7500   shrext_cmds=".dll"
7501   need_version=no
7502   need_lib_prefix=no
7503
7504   case $GCC,$host_os in
7505   yes,cygwin* | yes,mingw* | yes,pw32*)
7506     library_names_spec='$libname.dll.a'
7507     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7508     postinstall_cmds='base_file=`basename \${file}`;
7509       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7510       dldir=$destdir/`dirname \$dlpath`;
7511       test -d \$dldir || mkdir -p \$dldir;
7512       $install_prog $dir/$dlname \$dldir/$dlname'
7513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7514       dlpath=$dir/\$dldll;
7515        $rm \$dlpath'
7516     shlibpath_overrides_runpath=yes
7517
7518     case $host_os in
7519     cygwin*)
7520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7521       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7522       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7523       ;;
7524     mingw*)
7525       # MinGW DLLs use traditional 'lib' prefix
7526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7527       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7528       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7529         # It is most probably a Windows format PATH printed by
7530         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7531         # path with ; separators, and with drive letters. We can handle the
7532         # drive letters (cygwin fileutils understands them), so leave them,
7533         # especially as we might pass files found there to a mingw objdump,
7534         # which wouldn't understand a cygwinified path. Ahh.
7535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7536       else
7537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7538       fi
7539       ;;
7540     pw32*)
7541       # pw32 DLLs use 'pw' prefix rather than 'lib'
7542       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7543       ;;
7544     esac
7545     ;;
7546
7547   *)
7548     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7549     ;;
7550   esac
7551   dynamic_linker='Win32 ld.exe'
7552   # FIXME: first we should search . and the directory the executable is in
7553   shlibpath_var=PATH
7554   ;;
7555
7556 darwin* | rhapsody*)
7557   dynamic_linker="$host_os dyld"
7558   version_type=darwin
7559   need_lib_prefix=no
7560   need_version=no
7561   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7562   soname_spec='${libname}${release}${major}$shared_ext'
7563   shlibpath_overrides_runpath=yes
7564   shlibpath_var=DYLD_LIBRARY_PATH
7565   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7566   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7567   if test "$GCC" = yes; then
7568     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"`
7569   else
7570     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7571   fi
7572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7573   ;;
7574
7575 dgux*)
7576   version_type=linux
7577   need_lib_prefix=no
7578   need_version=no
7579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7580   soname_spec='${libname}${release}${shared_ext}$major'
7581   shlibpath_var=LD_LIBRARY_PATH
7582   ;;
7583
7584 freebsd1*)
7585   dynamic_linker=no
7586   ;;
7587
7588 kfreebsd*-gnu)
7589   version_type=linux
7590   need_lib_prefix=no
7591   need_version=no
7592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7593   soname_spec='${libname}${release}${shared_ext}$major'
7594   shlibpath_var=LD_LIBRARY_PATH
7595   shlibpath_overrides_runpath=no
7596   hardcode_into_libs=yes
7597   dynamic_linker='GNU ld.so'
7598   ;;
7599
7600 freebsd*)
7601   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7602   version_type=freebsd-$objformat
7603   case $version_type in
7604     freebsd-elf*)
7605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7606       need_version=no
7607       need_lib_prefix=no
7608       ;;
7609     freebsd-*)
7610       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7611       need_version=yes
7612       ;;
7613   esac
7614   shlibpath_var=LD_LIBRARY_PATH
7615   case $host_os in
7616   freebsd2*)
7617     shlibpath_overrides_runpath=yes
7618     ;;
7619   freebsd3.01* | freebsdelf3.01*)
7620     shlibpath_overrides_runpath=yes
7621     hardcode_into_libs=yes
7622     ;;
7623   *) # from 3.2 on
7624     shlibpath_overrides_runpath=no
7625     hardcode_into_libs=yes
7626     ;;
7627   esac
7628   ;;
7629
7630 gnu*)
7631   version_type=linux
7632   need_lib_prefix=no
7633   need_version=no
7634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7635   soname_spec='${libname}${release}${shared_ext}$major'
7636   shlibpath_var=LD_LIBRARY_PATH
7637   hardcode_into_libs=yes
7638   ;;
7639
7640 hpux9* | hpux10* | hpux11*)
7641   # Give a soname corresponding to the major version so that dld.sl refuses to
7642   # link against other versions.
7643   version_type=sunos
7644   need_lib_prefix=no
7645   need_version=no
7646   case "$host_cpu" in
7647   ia64*)
7648     shrext_cmds='.so'
7649     hardcode_into_libs=yes
7650     dynamic_linker="$host_os dld.so"
7651     shlibpath_var=LD_LIBRARY_PATH
7652     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654     soname_spec='${libname}${release}${shared_ext}$major'
7655     if test "X$HPUX_IA64_MODE" = X32; then
7656       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7657     else
7658       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7659     fi
7660     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7661     ;;
7662    hppa*64*)
7663      shrext_cmds='.sl'
7664      hardcode_into_libs=yes
7665      dynamic_linker="$host_os dld.sl"
7666      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7667      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7668      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669      soname_spec='${libname}${release}${shared_ext}$major'
7670      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7671      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7672      ;;
7673    *)
7674     shrext_cmds='.sl'
7675     dynamic_linker="$host_os dld.sl"
7676     shlibpath_var=SHLIB_PATH
7677     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7679     soname_spec='${libname}${release}${shared_ext}$major'
7680     ;;
7681   esac
7682   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7683   postinstall_cmds='chmod 555 $lib'
7684   ;;
7685
7686 irix5* | irix6* | nonstopux*)
7687   case $host_os in
7688     nonstopux*) version_type=nonstopux ;;
7689     *)
7690         if test "$lt_cv_prog_gnu_ld" = yes; then
7691                 version_type=linux
7692         else
7693                 version_type=irix
7694         fi ;;
7695   esac
7696   need_lib_prefix=no
7697   need_version=no
7698   soname_spec='${libname}${release}${shared_ext}$major'
7699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7700   case $host_os in
7701   irix5* | nonstopux*)
7702     libsuff= shlibsuff=
7703     ;;
7704   *)
7705     case $LD in # libtool.m4 will add one of these switches to LD
7706     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7707       libsuff= shlibsuff= libmagic=32-bit;;
7708     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7709       libsuff=32 shlibsuff=N32 libmagic=N32;;
7710     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7711       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7712     *) libsuff= shlibsuff= libmagic=never-match;;
7713     esac
7714     ;;
7715   esac
7716   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7717   shlibpath_overrides_runpath=no
7718   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7719   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7720   hardcode_into_libs=yes
7721   ;;
7722
7723 # No shared lib support for Linux oldld, aout, or coff.
7724 linux*oldld* | linux*aout* | linux*coff*)
7725   dynamic_linker=no
7726   ;;
7727
7728 # This must be Linux ELF.
7729 linux*)
7730   version_type=linux
7731   need_lib_prefix=no
7732   need_version=no
7733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7734   soname_spec='${libname}${release}${shared_ext}$major'
7735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7736   shlibpath_var=LD_LIBRARY_PATH
7737   shlibpath_overrides_runpath=no
7738   # This implies no fast_install, which is unacceptable.
7739   # Some rework will be needed to allow for fast_install
7740   # before this can be enabled.
7741   hardcode_into_libs=yes
7742
7743   # Append ld.so.conf contents to the search path
7744   if test -f /etc/ld.so.conf; then
7745     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7746     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7747   fi
7748
7749   # We used to test for /lib/ld.so.1 and disable shared libraries on
7750   # powerpc, because MkLinux only supported shared libraries with the
7751   # GNU dynamic linker.  Since this was broken with cross compilers,
7752   # most powerpc-linux boxes support dynamic linking these days and
7753   # people can always --disable-shared, the test was removed, and we
7754   # assume the GNU/Linux dynamic linker is in use.
7755   dynamic_linker='GNU/Linux ld.so'
7756   ;;
7757
7758 knetbsd*-gnu)
7759   version_type=linux
7760   need_lib_prefix=no
7761   need_version=no
7762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7763   soname_spec='${libname}${release}${shared_ext}$major'
7764   shlibpath_var=LD_LIBRARY_PATH
7765   shlibpath_overrides_runpath=no
7766   hardcode_into_libs=yes
7767   dynamic_linker='GNU ld.so'
7768   ;;
7769
7770 netbsd*)
7771   version_type=sunos
7772   need_lib_prefix=no
7773   need_version=no
7774   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7777     dynamic_linker='NetBSD (a.out) ld.so'
7778   else
7779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7780     soname_spec='${libname}${release}${shared_ext}$major'
7781     dynamic_linker='NetBSD ld.elf_so'
7782   fi
7783   shlibpath_var=LD_LIBRARY_PATH
7784   shlibpath_overrides_runpath=yes
7785   hardcode_into_libs=yes
7786   ;;
7787
7788 newsos6)
7789   version_type=linux
7790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791   shlibpath_var=LD_LIBRARY_PATH
7792   shlibpath_overrides_runpath=yes
7793   ;;
7794
7795 nto-qnx*)
7796   version_type=linux
7797   need_lib_prefix=no
7798   need_version=no
7799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800   soname_spec='${libname}${release}${shared_ext}$major'
7801   shlibpath_var=LD_LIBRARY_PATH
7802   shlibpath_overrides_runpath=yes
7803   ;;
7804
7805 openbsd*)
7806   version_type=sunos
7807   need_lib_prefix=no
7808   need_version=no
7809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7811   shlibpath_var=LD_LIBRARY_PATH
7812   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7813     case $host_os in
7814       openbsd2.[89] | openbsd2.[89].*)
7815         shlibpath_overrides_runpath=no
7816         ;;
7817       *)
7818         shlibpath_overrides_runpath=yes
7819         ;;
7820       esac
7821   else
7822     shlibpath_overrides_runpath=yes
7823   fi
7824   ;;
7825
7826 os2*)
7827   libname_spec='$name'
7828   shrext_cmds=".dll"
7829   need_lib_prefix=no
7830   library_names_spec='$libname${shared_ext} $libname.a'
7831   dynamic_linker='OS/2 ld.exe'
7832   shlibpath_var=LIBPATH
7833   ;;
7834
7835 osf3* | osf4* | osf5*)
7836   version_type=osf
7837   need_lib_prefix=no
7838   need_version=no
7839   soname_spec='${libname}${release}${shared_ext}$major'
7840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841   shlibpath_var=LD_LIBRARY_PATH
7842   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7843   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7844   ;;
7845
7846 sco3.2v5*)
7847   version_type=osf
7848   soname_spec='${libname}${release}${shared_ext}$major'
7849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850   shlibpath_var=LD_LIBRARY_PATH
7851   ;;
7852
7853 solaris*)
7854   version_type=linux
7855   need_lib_prefix=no
7856   need_version=no
7857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858   soname_spec='${libname}${release}${shared_ext}$major'
7859   shlibpath_var=LD_LIBRARY_PATH
7860   shlibpath_overrides_runpath=yes
7861   hardcode_into_libs=yes
7862   # ldd complains unless libraries are executable
7863   postinstall_cmds='chmod +x $lib'
7864   ;;
7865
7866 sunos4*)
7867   version_type=sunos
7868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7869   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7870   shlibpath_var=LD_LIBRARY_PATH
7871   shlibpath_overrides_runpath=yes
7872   if test "$with_gnu_ld" = yes; then
7873     need_lib_prefix=no
7874   fi
7875   need_version=yes
7876   ;;
7877
7878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7879   version_type=linux
7880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881   soname_spec='${libname}${release}${shared_ext}$major'
7882   shlibpath_var=LD_LIBRARY_PATH
7883   case $host_vendor in
7884     sni)
7885       shlibpath_overrides_runpath=no
7886       need_lib_prefix=no
7887       export_dynamic_flag_spec='${wl}-Blargedynsym'
7888       runpath_var=LD_RUN_PATH
7889       ;;
7890     siemens)
7891       need_lib_prefix=no
7892       ;;
7893     motorola)
7894       need_lib_prefix=no
7895       need_version=no
7896       shlibpath_overrides_runpath=no
7897       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7898       ;;
7899   esac
7900   ;;
7901
7902 sysv4*MP*)
7903   if test -d /usr/nec ;then
7904     version_type=linux
7905     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7906     soname_spec='$libname${shared_ext}.$major'
7907     shlibpath_var=LD_LIBRARY_PATH
7908   fi
7909   ;;
7910
7911 uts4*)
7912   version_type=linux
7913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914   soname_spec='${libname}${release}${shared_ext}$major'
7915   shlibpath_var=LD_LIBRARY_PATH
7916   ;;
7917
7918 *)
7919   dynamic_linker=no
7920   ;;
7921 esac
7922 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7923 echo "${ECHO_T}$dynamic_linker" >&6
7924 test "$dynamic_linker" = no && can_build_shared=no
7925
7926 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7928 hardcode_action=
7929 if test -n "$hardcode_libdir_flag_spec" || \
7930    test -n "$runpath_var" || \
7931    test "X$hardcode_automatic" = "Xyes" ; then
7932
7933   # We can hardcode non-existant directories.
7934   if test "$hardcode_direct" != no &&
7935      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7936      # have to relink, otherwise we might link with an installed library
7937      # when we should be linking with a yet-to-be-installed one
7938      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7939      test "$hardcode_minus_L" != no; then
7940     # Linking always hardcodes the temporary library directory.
7941     hardcode_action=relink
7942   else
7943     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7944     hardcode_action=immediate
7945   fi
7946 else
7947   # We cannot hardcode anything, or else we can only hardcode existing
7948   # directories.
7949   hardcode_action=unsupported
7950 fi
7951 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7952 echo "${ECHO_T}$hardcode_action" >&6
7953
7954 if test "$hardcode_action" = relink; then
7955   # Fast installation is not supported
7956   enable_fast_install=no
7957 elif test "$shlibpath_overrides_runpath" = yes ||
7958      test "$enable_shared" = no; then
7959   # Fast installation is not necessary
7960   enable_fast_install=needless
7961 fi
7962
7963 striplib=
7964 old_striplib=
7965 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7966 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7967 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7968   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7969   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7970   echo "$as_me:$LINENO: result: yes" >&5
7971 echo "${ECHO_T}yes" >&6
7972 else
7973 # FIXME - insert some real tests, host_os isn't really good enough
7974   case $host_os in
7975    darwin*)
7976        if test -n "$STRIP" ; then
7977          striplib="$STRIP -x"
7978          echo "$as_me:$LINENO: result: yes" >&5
7979 echo "${ECHO_T}yes" >&6
7980        else
7981   echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6
7983 fi
7984        ;;
7985    *)
7986   echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7988     ;;
7989   esac
7990 fi
7991
7992 if test "x$enable_dlopen" != xyes; then
7993   enable_dlopen=unknown
7994   enable_dlopen_self=unknown
7995   enable_dlopen_self_static=unknown
7996 else
7997   lt_cv_dlopen=no
7998   lt_cv_dlopen_libs=
7999
8000   case $host_os in
8001   beos*)
8002     lt_cv_dlopen="load_add_on"
8003     lt_cv_dlopen_libs=
8004     lt_cv_dlopen_self=yes
8005     ;;
8006
8007   mingw* | pw32*)
8008     lt_cv_dlopen="LoadLibrary"
8009     lt_cv_dlopen_libs=
8010    ;;
8011
8012   cygwin*)
8013     lt_cv_dlopen="dlopen"
8014     lt_cv_dlopen_libs=
8015    ;;
8016
8017   darwin*)
8018   # if libdl is installed we need to link against it
8019     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8020 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-ldl  $LIBS"
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032
8033 /* Override any gcc2 internal prototype to avoid an error.  */
8034 #ifdef __cplusplus
8035 extern "C"
8036 #endif
8037 /* We use char because int might match the return type of a gcc2
8038    builtin and then its argument prototype would still apply.  */
8039 char dlopen ();
8040 int
8041 main ()
8042 {
8043 dlopen ();
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050   (eval $ac_link) 2>conftest.er1
8051   ac_status=$?
8052   grep -v '^ *+' conftest.er1 >conftest.err
8053   rm -f conftest.er1
8054   cat conftest.err >&5
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } &&
8057          { ac_try='test -z "$ac_c_werror_flag"
8058                          || test ! -s conftest.err'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; } &&
8064          { ac_try='test -s conftest$ac_exeext'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; }; then
8070   ac_cv_lib_dl_dlopen=yes
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_cv_lib_dl_dlopen=no
8076 fi
8077 rm -f conftest.err conftest.$ac_objext \
8078       conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8080 fi
8081 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8082 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8083 if test $ac_cv_lib_dl_dlopen = yes; then
8084   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8085 else
8086
8087     lt_cv_dlopen="dyld"
8088     lt_cv_dlopen_libs=
8089     lt_cv_dlopen_self=yes
8090
8091 fi
8092
8093    ;;
8094
8095   *)
8096     echo "$as_me:$LINENO: checking for shl_load" >&5
8097 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8098 if test "${ac_cv_func_shl_load+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8109 #define shl_load innocuous_shl_load
8110
8111 /* System header to define __stub macros and hopefully few prototypes,
8112     which can conflict with char shl_load (); below.
8113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114     <limits.h> exists even on freestanding compilers.  */
8115
8116 #ifdef __STDC__
8117 # include <limits.h>
8118 #else
8119 # include <assert.h>
8120 #endif
8121
8122 #undef shl_load
8123
8124 /* Override any gcc2 internal prototype to avoid an error.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 {
8128 #endif
8129 /* We use char because int might match the return type of a gcc2
8130    builtin and then its argument prototype would still apply.  */
8131 char shl_load ();
8132 /* The GNU C library defines this for functions which it implements
8133     to always fail with ENOSYS.  Some functions are actually named
8134     something starting with __ and the normal name is an alias.  */
8135 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8136 choke me
8137 #else
8138 char (*f) () = shl_load;
8139 #endif
8140 #ifdef __cplusplus
8141 }
8142 #endif
8143
8144 int
8145 main ()
8146 {
8147 return f != shl_load;
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154   (eval $ac_link) 2>conftest.er1
8155   ac_status=$?
8156   grep -v '^ *+' conftest.er1 >conftest.err
8157   rm -f conftest.er1
8158   cat conftest.err >&5
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } &&
8161          { ac_try='test -z "$ac_c_werror_flag"
8162                          || test ! -s conftest.err'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   ac_cv_func_shl_load=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ac_cv_func_shl_load=no
8180 fi
8181 rm -f conftest.err conftest.$ac_objext \
8182       conftest$ac_exeext conftest.$ac_ext
8183 fi
8184 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8185 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8186 if test $ac_cv_func_shl_load = yes; then
8187   lt_cv_dlopen="shl_load"
8188 else
8189   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8190 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-ldld  $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 /* Override any gcc2 internal prototype to avoid an error.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char shl_load ();
8210 int
8211 main ()
8212 {
8213 shl_load ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220   (eval $ac_link) 2>conftest.er1
8221   ac_status=$?
8222   grep -v '^ *+' conftest.er1 >conftest.err
8223   rm -f conftest.er1
8224   cat conftest.err >&5
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -z "$ac_c_werror_flag"
8228                          || test ! -s conftest.err'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; } &&
8234          { ac_try='test -s conftest$ac_exeext'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_cv_lib_dld_shl_load=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_lib_dld_shl_load=no
8246 fi
8247 rm -f conftest.err conftest.$ac_objext \
8248       conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8250 fi
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8253 if test $ac_cv_lib_dld_shl_load = yes; then
8254   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8255 else
8256   echo "$as_me:$LINENO: checking for dlopen" >&5
8257 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8258 if test "${ac_cv_func_dlopen+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8269 #define dlopen innocuous_dlopen
8270
8271 /* System header to define __stub macros and hopefully few prototypes,
8272     which can conflict with char dlopen (); below.
8273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274     <limits.h> exists even on freestanding compilers.  */
8275
8276 #ifdef __STDC__
8277 # include <limits.h>
8278 #else
8279 # include <assert.h>
8280 #endif
8281
8282 #undef dlopen
8283
8284 /* Override any gcc2 internal prototype to avoid an error.  */
8285 #ifdef __cplusplus
8286 extern "C"
8287 {
8288 #endif
8289 /* We use char because int might match the return type of a gcc2
8290    builtin and then its argument prototype would still apply.  */
8291 char dlopen ();
8292 /* The GNU C library defines this for functions which it implements
8293     to always fail with ENOSYS.  Some functions are actually named
8294     something starting with __ and the normal name is an alias.  */
8295 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8296 choke me
8297 #else
8298 char (*f) () = dlopen;
8299 #endif
8300 #ifdef __cplusplus
8301 }
8302 #endif
8303
8304 int
8305 main ()
8306 {
8307 return f != dlopen;
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314   (eval $ac_link) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } &&
8321          { ac_try='test -z "$ac_c_werror_flag"
8322                          || test ! -s conftest.err'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; } &&
8328          { ac_try='test -s conftest$ac_exeext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_func_dlopen=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_func_dlopen=no
8340 fi
8341 rm -f conftest.err conftest.$ac_objext \
8342       conftest$ac_exeext conftest.$ac_ext
8343 fi
8344 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8345 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8346 if test $ac_cv_func_dlopen = yes; then
8347   lt_cv_dlopen="dlopen"
8348 else
8349   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8350 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   ac_check_lib_save_LIBS=$LIBS
8355 LIBS="-ldl  $LIBS"
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362
8363 /* Override any gcc2 internal prototype to avoid an error.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 /* We use char because int might match the return type of a gcc2
8368    builtin and then its argument prototype would still apply.  */
8369 char dlopen ();
8370 int
8371 main ()
8372 {
8373 dlopen ();
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag"
8388                          || test ! -s conftest.err'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   ac_cv_lib_dl_dlopen=yes
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ac_cv_lib_dl_dlopen=no
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408       conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8412 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8413 if test $ac_cv_lib_dl_dlopen = yes; then
8414   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8415 else
8416   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8417 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8418 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-lsvld  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429
8430 /* Override any gcc2 internal prototype to avoid an error.  */
8431 #ifdef __cplusplus
8432 extern "C"
8433 #endif
8434 /* We use char because int might match the return type of a gcc2
8435    builtin and then its argument prototype would still apply.  */
8436 char dlopen ();
8437 int
8438 main ()
8439 {
8440 dlopen ();
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447   (eval $ac_link) 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag"
8455                          || test ! -s conftest.err'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; } &&
8461          { ac_try='test -s conftest$ac_exeext'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_svld_dlopen=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_svld_dlopen=no
8473 fi
8474 rm -f conftest.err conftest.$ac_objext \
8475       conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8477 fi
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480 if test $ac_cv_lib_svld_dlopen = yes; then
8481   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8482 else
8483   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-ldld  $LIBS"
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496
8497 /* Override any gcc2 internal prototype to avoid an error.  */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 /* We use char because int might match the return type of a gcc2
8502    builtin and then its argument prototype would still apply.  */
8503 char dld_link ();
8504 int
8505 main ()
8506 {
8507 dld_link ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514   (eval $ac_link) 2>conftest.er1
8515   ac_status=$?
8516   grep -v '^ *+' conftest.er1 >conftest.err
8517   rm -f conftest.er1
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } &&
8521          { ac_try='test -z "$ac_c_werror_flag"
8522                          || test ! -s conftest.err'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; } &&
8528          { ac_try='test -s conftest$ac_exeext'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534   ac_cv_lib_dld_dld_link=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539 ac_cv_lib_dld_dld_link=no
8540 fi
8541 rm -f conftest.err conftest.$ac_objext \
8542       conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8544 fi
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8547 if test $ac_cv_lib_dld_dld_link = yes; then
8548   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8549 fi
8550
8551
8552 fi
8553
8554
8555 fi
8556
8557
8558 fi
8559
8560
8561 fi
8562
8563
8564 fi
8565
8566     ;;
8567   esac
8568
8569   if test "x$lt_cv_dlopen" != xno; then
8570     enable_dlopen=yes
8571   else
8572     enable_dlopen=no
8573   fi
8574
8575   case $lt_cv_dlopen in
8576   dlopen)
8577     save_CPPFLAGS="$CPPFLAGS"
8578     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8579
8580     save_LDFLAGS="$LDFLAGS"
8581     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8582
8583     save_LIBS="$LIBS"
8584     LIBS="$lt_cv_dlopen_libs $LIBS"
8585
8586     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8587 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8588 if test "${lt_cv_dlopen_self+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591           if test "$cross_compiling" = yes; then :
8592   lt_cv_dlopen_self=cross
8593 else
8594   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8595   lt_status=$lt_dlunknown
8596   cat > conftest.$ac_ext <<EOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8599
8600 #if HAVE_DLFCN_H
8601 #include <dlfcn.h>
8602 #endif
8603
8604 #include <stdio.h>
8605
8606 #ifdef RTLD_GLOBAL
8607 #  define LT_DLGLOBAL           RTLD_GLOBAL
8608 #else
8609 #  ifdef DL_GLOBAL
8610 #    define LT_DLGLOBAL         DL_GLOBAL
8611 #  else
8612 #    define LT_DLGLOBAL         0
8613 #  endif
8614 #endif
8615
8616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8617    find out it does not work in some platform. */
8618 #ifndef LT_DLLAZY_OR_NOW
8619 #  ifdef RTLD_LAZY
8620 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8621 #  else
8622 #    ifdef DL_LAZY
8623 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8624 #    else
8625 #      ifdef RTLD_NOW
8626 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8627 #      else
8628 #        ifdef DL_NOW
8629 #          define LT_DLLAZY_OR_NOW      DL_NOW
8630 #        else
8631 #          define LT_DLLAZY_OR_NOW      0
8632 #        endif
8633 #      endif
8634 #    endif
8635 #  endif
8636 #endif
8637
8638 #ifdef __cplusplus
8639 extern "C" void exit (int);
8640 #endif
8641
8642 void fnord() { int i=42;}
8643 int main ()
8644 {
8645   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8646   int status = $lt_dlunknown;
8647
8648   if (self)
8649     {
8650       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8651       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8652       /* dlclose (self); */
8653     }
8654
8655     exit (status);
8656 }
8657 EOF
8658   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659   (eval $ac_link) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8663     (./conftest; exit; ) 2>/dev/null
8664     lt_status=$?
8665     case x$lt_status in
8666       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8667       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8668       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8669     esac
8670   else :
8671     # compilation failed
8672     lt_cv_dlopen_self=no
8673   fi
8674 fi
8675 rm -fr conftest*
8676
8677
8678 fi
8679 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8680 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8681
8682     if test "x$lt_cv_dlopen_self" = xyes; then
8683       LDFLAGS="$LDFLAGS $link_static_flag"
8684       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8685 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8686 if test "${lt_cv_dlopen_self_static+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689           if test "$cross_compiling" = yes; then :
8690   lt_cv_dlopen_self_static=cross
8691 else
8692   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8693   lt_status=$lt_dlunknown
8694   cat > conftest.$ac_ext <<EOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8697
8698 #if HAVE_DLFCN_H
8699 #include <dlfcn.h>
8700 #endif
8701
8702 #include <stdio.h>
8703
8704 #ifdef RTLD_GLOBAL
8705 #  define LT_DLGLOBAL           RTLD_GLOBAL
8706 #else
8707 #  ifdef DL_GLOBAL
8708 #    define LT_DLGLOBAL         DL_GLOBAL
8709 #  else
8710 #    define LT_DLGLOBAL         0
8711 #  endif
8712 #endif
8713
8714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715    find out it does not work in some platform. */
8716 #ifndef LT_DLLAZY_OR_NOW
8717 #  ifdef RTLD_LAZY
8718 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8719 #  else
8720 #    ifdef DL_LAZY
8721 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8722 #    else
8723 #      ifdef RTLD_NOW
8724 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8725 #      else
8726 #        ifdef DL_NOW
8727 #          define LT_DLLAZY_OR_NOW      DL_NOW
8728 #        else
8729 #          define LT_DLLAZY_OR_NOW      0
8730 #        endif
8731 #      endif
8732 #    endif
8733 #  endif
8734 #endif
8735
8736 #ifdef __cplusplus
8737 extern "C" void exit (int);
8738 #endif
8739
8740 void fnord() { int i=42;}
8741 int main ()
8742 {
8743   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744   int status = $lt_dlunknown;
8745
8746   if (self)
8747     {
8748       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8749       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750       /* dlclose (self); */
8751     }
8752
8753     exit (status);
8754 }
8755 EOF
8756   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757   (eval $ac_link) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761     (./conftest; exit; ) 2>/dev/null
8762     lt_status=$?
8763     case x$lt_status in
8764       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8765       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8766       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8767     esac
8768   else :
8769     # compilation failed
8770     lt_cv_dlopen_self_static=no
8771   fi
8772 fi
8773 rm -fr conftest*
8774
8775
8776 fi
8777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8778 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8779     fi
8780
8781     CPPFLAGS="$save_CPPFLAGS"
8782     LDFLAGS="$save_LDFLAGS"
8783     LIBS="$save_LIBS"
8784     ;;
8785   esac
8786
8787   case $lt_cv_dlopen_self in
8788   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8789   *) enable_dlopen_self=unknown ;;
8790   esac
8791
8792   case $lt_cv_dlopen_self_static in
8793   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8794   *) enable_dlopen_self_static=unknown ;;
8795   esac
8796 fi
8797
8798
8799 # Report which librarie types wil actually be built
8800 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8801 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8802 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8803 echo "${ECHO_T}$can_build_shared" >&6
8804
8805 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8806 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8807 test "$can_build_shared" = "no" && enable_shared=no
8808
8809 # On AIX, shared libraries and static libraries use the same namespace, and
8810 # are all built from PIC.
8811 case "$host_os" in
8812 aix3*)
8813   test "$enable_shared" = yes && enable_static=no
8814   if test -n "$RANLIB"; then
8815     archive_cmds="$archive_cmds;\$RANLIB \$lib"
8816     postinstall_cmds='$RANLIB $lib'
8817   fi
8818   ;;
8819
8820 aix4* | aix5*)
8821   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8822     test "$enable_shared" = yes && enable_static=no
8823   fi
8824     ;;
8825 esac
8826 echo "$as_me:$LINENO: result: $enable_shared" >&5
8827 echo "${ECHO_T}$enable_shared" >&6
8828
8829 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8830 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8831 # Make sure either enable_shared or enable_static is yes.
8832 test "$enable_shared" = yes || enable_static=yes
8833 echo "$as_me:$LINENO: result: $enable_static" >&5
8834 echo "${ECHO_T}$enable_static" >&6
8835
8836 # The else clause should only fire when bootstrapping the
8837 # libtool distribution, otherwise you forgot to ship ltmain.sh
8838 # with your package, and you will get complaints that there are
8839 # no rules to generate ltmain.sh.
8840 if test -f "$ltmain"; then
8841   # See if we are running on zsh, and set the options which allow our commands through
8842   # without removal of \ escapes.
8843   if test -n "${ZSH_VERSION+set}" ; then
8844     setopt NO_GLOB_SUBST
8845   fi
8846   # Now quote all the things that may contain metacharacters while being
8847   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8848   # variables and quote the copies for generation of the libtool script.
8849   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8850     SED SHELL STRIP \
8851     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8852     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8853     deplibs_check_method reload_flag reload_cmds need_locks \
8854     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8855     lt_cv_sys_global_symbol_to_c_name_address \
8856     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8857     old_postinstall_cmds old_postuninstall_cmds \
8858     compiler \
8859     CC \
8860     LD \
8861     lt_prog_compiler_wl \
8862     lt_prog_compiler_pic \
8863     lt_prog_compiler_static \
8864     lt_prog_compiler_no_builtin_flag \
8865     export_dynamic_flag_spec \
8866     thread_safe_flag_spec \
8867     whole_archive_flag_spec \
8868     enable_shared_with_static_runtimes \
8869     old_archive_cmds \
8870     old_archive_from_new_cmds \
8871     predep_objects \
8872     postdep_objects \
8873     predeps \
8874     postdeps \
8875     compiler_lib_search_path \
8876     archive_cmds \
8877     archive_expsym_cmds \
8878     postinstall_cmds \
8879     postuninstall_cmds \
8880     old_archive_from_expsyms_cmds \
8881     allow_undefined_flag \
8882     no_undefined_flag \
8883     export_symbols_cmds \
8884     hardcode_libdir_flag_spec \
8885     hardcode_libdir_flag_spec_ld \
8886     hardcode_libdir_separator \
8887     hardcode_automatic \
8888     module_cmds \
8889     module_expsym_cmds \
8890     lt_cv_prog_compiler_c_o \
8891     exclude_expsyms \
8892     include_expsyms; do
8893
8894     case $var in
8895     old_archive_cmds | \
8896     old_archive_from_new_cmds | \
8897     archive_cmds | \
8898     archive_expsym_cmds | \
8899     module_cmds | \
8900     module_expsym_cmds | \
8901     old_archive_from_expsyms_cmds | \
8902     export_symbols_cmds | \
8903     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8904     postinstall_cmds | postuninstall_cmds | \
8905     old_postinstall_cmds | old_postuninstall_cmds | \
8906     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8907       # Double-quote double-evaled strings.
8908       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8909       ;;
8910     *)
8911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8912       ;;
8913     esac
8914   done
8915
8916   case $lt_echo in
8917   *'\$0 --fallback-echo"')
8918     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8919     ;;
8920   esac
8921
8922 cfgfile="${ofile}T"
8923   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8924   $rm -f "$cfgfile"
8925   { echo "$as_me:$LINENO: creating $ofile" >&5
8926 echo "$as_me: creating $ofile" >&6;}
8927
8928   cat <<__EOF__ >> "$cfgfile"
8929 #! $SHELL
8930
8931 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8932 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8933 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8934 #
8935 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8936 # Free Software Foundation, Inc.
8937 #
8938 # This file is part of GNU Libtool:
8939 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8940 #
8941 # This program is free software; you can redistribute it and/or modify
8942 # it under the terms of the GNU General Public License as published by
8943 # the Free Software Foundation; either version 2 of the License, or
8944 # (at your option) any later version.
8945 #
8946 # This program is distributed in the hope that it will be useful, but
8947 # WITHOUT ANY WARRANTY; without even the implied warranty of
8948 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8949 # General Public License for more details.
8950 #
8951 # You should have received a copy of the GNU General Public License
8952 # along with this program; if not, write to the Free Software
8953 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8954 #
8955 # As a special exception to the GNU General Public License, if you
8956 # distribute this file as part of a program that contains a
8957 # configuration script generated by Autoconf, you may include it under
8958 # the same distribution terms that you use for the rest of that program.
8959
8960 # A sed program that does not truncate output.
8961 SED=$lt_SED
8962
8963 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8964 Xsed="$SED -e s/^X//"
8965
8966 # The HP-UX ksh and POSIX shell print the target directory to stdout
8967 # if CDPATH is set.
8968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8969
8970 # The names of the tagged configurations supported by this script.
8971 available_tags=
8972
8973 # ### BEGIN LIBTOOL CONFIG
8974
8975 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8976
8977 # Shell to use when invoking shell scripts.
8978 SHELL=$lt_SHELL
8979
8980 # Whether or not to build shared libraries.
8981 build_libtool_libs=$enable_shared
8982
8983 # Whether or not to build static libraries.
8984 build_old_libs=$enable_static
8985
8986 # Whether or not to add -lc for building shared libraries.
8987 build_libtool_need_lc=$archive_cmds_need_lc
8988
8989 # Whether or not to disallow shared libs when runtime libs are static
8990 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8991
8992 # Whether or not to optimize for fast installation.
8993 fast_install=$enable_fast_install
8994
8995 # The host system.
8996 host_alias=$host_alias
8997 host=$host
8998
8999 # An echo program that does not interpret backslashes.
9000 echo=$lt_echo
9001
9002 # The archiver.
9003 AR=$lt_AR
9004 AR_FLAGS=$lt_AR_FLAGS
9005
9006 # A C compiler.
9007 LTCC=$lt_LTCC
9008
9009 # A language-specific compiler.
9010 CC=$lt_compiler
9011
9012 # Is the compiler the GNU C compiler?
9013 with_gcc=$GCC
9014
9015 # An ERE matcher.
9016 EGREP=$lt_EGREP
9017
9018 # The linker used to build libraries.
9019 LD=$lt_LD
9020
9021 # Whether we need hard or soft links.
9022 LN_S=$lt_LN_S
9023
9024 # A BSD-compatible nm program.
9025 NM=$lt_NM
9026
9027 # A symbol stripping program
9028 STRIP=$lt_STRIP
9029
9030 # Used to examine libraries when file_magic_cmd begins "file"
9031 MAGIC_CMD=$MAGIC_CMD
9032
9033 # Used on cygwin: DLL creation program.
9034 DLLTOOL="$DLLTOOL"
9035
9036 # Used on cygwin: object dumper.
9037 OBJDUMP="$OBJDUMP"
9038
9039 # Used on cygwin: assembler.
9040 AS="$AS"
9041
9042 # The name of the directory that contains temporary libtool files.
9043 objdir=$objdir
9044
9045 # How to create reloadable object files.
9046 reload_flag=$lt_reload_flag
9047 reload_cmds=$lt_reload_cmds
9048
9049 # How to pass a linker flag through the compiler.
9050 wl=$lt_lt_prog_compiler_wl
9051
9052 # Object file suffix (normally "o").
9053 objext="$ac_objext"
9054
9055 # Old archive suffix (normally "a").
9056 libext="$libext"
9057
9058 # Shared library suffix (normally ".so").
9059 shrext_cmds='$shrext_cmds'
9060
9061 # Executable file suffix (normally "").
9062 exeext="$exeext"
9063
9064 # Additional compiler flags for building library objects.
9065 pic_flag=$lt_lt_prog_compiler_pic
9066 pic_mode=$pic_mode
9067
9068 # What is the maximum length of a command?
9069 max_cmd_len=$lt_cv_sys_max_cmd_len
9070
9071 # Does compiler simultaneously support -c and -o options?
9072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9073
9074 # Must we lock files when doing compilation ?
9075 need_locks=$lt_need_locks
9076
9077 # Do we need the lib prefix for modules?
9078 need_lib_prefix=$need_lib_prefix
9079
9080 # Do we need a version for libraries?
9081 need_version=$need_version
9082
9083 # Whether dlopen is supported.
9084 dlopen_support=$enable_dlopen
9085
9086 # Whether dlopen of programs is supported.
9087 dlopen_self=$enable_dlopen_self
9088
9089 # Whether dlopen of statically linked programs is supported.
9090 dlopen_self_static=$enable_dlopen_self_static
9091
9092 # Compiler flag to prevent dynamic linking.
9093 link_static_flag=$lt_lt_prog_compiler_static
9094
9095 # Compiler flag to turn off builtin functions.
9096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9097
9098 # Compiler flag to allow reflexive dlopens.
9099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9100
9101 # Compiler flag to generate shared objects directly from archives.
9102 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9103
9104 # Compiler flag to generate thread-safe objects.
9105 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9106
9107 # Library versioning type.
9108 version_type=$version_type
9109
9110 # Format of library name prefix.
9111 libname_spec=$lt_libname_spec
9112
9113 # List of archive names.  First name is the real one, the rest are links.
9114 # The last name is the one that the linker finds with -lNAME.
9115 library_names_spec=$lt_library_names_spec
9116
9117 # The coded name of the library, if different from the real name.
9118 soname_spec=$lt_soname_spec
9119
9120 # Commands used to build and install an old-style archive.
9121 RANLIB=$lt_RANLIB
9122 old_archive_cmds=$lt_old_archive_cmds
9123 old_postinstall_cmds=$lt_old_postinstall_cmds
9124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9125
9126 # Create an old-style archive from a shared archive.
9127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9128
9129 # Create a temporary old-style archive to link instead of a shared archive.
9130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9131
9132 # Commands used to build and install a shared archive.
9133 archive_cmds=$lt_archive_cmds
9134 archive_expsym_cmds=$lt_archive_expsym_cmds
9135 postinstall_cmds=$lt_postinstall_cmds
9136 postuninstall_cmds=$lt_postuninstall_cmds
9137
9138 # Commands used to build a loadable module (assumed same as above if empty)
9139 module_cmds=$lt_module_cmds
9140 module_expsym_cmds=$lt_module_expsym_cmds
9141
9142 # Commands to strip libraries.
9143 old_striplib=$lt_old_striplib
9144 striplib=$lt_striplib
9145
9146 # Dependencies to place before the objects being linked to create a
9147 # shared library.
9148 predep_objects=$lt_predep_objects
9149
9150 # Dependencies to place after the objects being linked to create a
9151 # shared library.
9152 postdep_objects=$lt_postdep_objects
9153
9154 # Dependencies to place before the objects being linked to create a
9155 # shared library.
9156 predeps=$lt_predeps
9157
9158 # Dependencies to place after the objects being linked to create a
9159 # shared library.
9160 postdeps=$lt_postdeps
9161
9162 # The library search path used internally by the compiler when linking
9163 # a shared library.
9164 compiler_lib_search_path=$lt_compiler_lib_search_path
9165
9166 # Method to check whether dependent libraries are shared objects.
9167 deplibs_check_method=$lt_deplibs_check_method
9168
9169 # Command to use when deplibs_check_method == file_magic.
9170 file_magic_cmd=$lt_file_magic_cmd
9171
9172 # Flag that allows shared libraries with undefined symbols to be built.
9173 allow_undefined_flag=$lt_allow_undefined_flag
9174
9175 # Flag that forces no undefined symbols.
9176 no_undefined_flag=$lt_no_undefined_flag
9177
9178 # Commands used to finish a libtool library installation in a directory.
9179 finish_cmds=$lt_finish_cmds
9180
9181 # Same as above, but a single script fragment to be evaled but not shown.
9182 finish_eval=$lt_finish_eval
9183
9184 # Take the output of nm and produce a listing of raw symbols and C names.
9185 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9186
9187 # Transform the output of nm in a proper C declaration
9188 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9189
9190 # Transform the output of nm in a C name address pair
9191 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9192
9193 # This is the shared library runtime path variable.
9194 runpath_var=$runpath_var
9195
9196 # This is the shared library path variable.
9197 shlibpath_var=$shlibpath_var
9198
9199 # Is shlibpath searched before the hard-coded library search path?
9200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9201
9202 # How to hardcode a shared library path into an executable.
9203 hardcode_action=$hardcode_action
9204
9205 # Whether we should hardcode library paths into libraries.
9206 hardcode_into_libs=$hardcode_into_libs
9207
9208 # Flag to hardcode \$libdir into a binary during linking.
9209 # This must work even if \$libdir does not exist.
9210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9211
9212 # If ld is used when linking, flag to hardcode \$libdir into
9213 # a binary during linking. This must work even if \$libdir does
9214 # not exist.
9215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9216
9217 # Whether we need a single -rpath flag with a separated argument.
9218 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9219
9220 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9221 # resulting binary.
9222 hardcode_direct=$hardcode_direct
9223
9224 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9225 # resulting binary.
9226 hardcode_minus_L=$hardcode_minus_L
9227
9228 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9229 # the resulting binary.
9230 hardcode_shlibpath_var=$hardcode_shlibpath_var
9231
9232 # Set to yes if building a shared library automatically hardcodes DIR into the library
9233 # and all subsequent libraries and executables linked against it.
9234 hardcode_automatic=$hardcode_automatic
9235
9236 # Variables whose values should be saved in libtool wrapper scripts and
9237 # restored at relink time.
9238 variables_saved_for_relink="$variables_saved_for_relink"
9239
9240 # Whether libtool must link a program against all its dependency libraries.
9241 link_all_deplibs=$link_all_deplibs
9242
9243 # Compile-time system search path for libraries
9244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9245
9246 # Run-time system search path for libraries
9247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9248
9249 # Fix the shell variable \$srcfile for the compiler.
9250 fix_srcfile_path="$fix_srcfile_path"
9251
9252 # Set to yes if exported symbols are required.
9253 always_export_symbols=$always_export_symbols
9254
9255 # The commands to list exported symbols.
9256 export_symbols_cmds=$lt_export_symbols_cmds
9257
9258 # The commands to extract the exported symbol list from a shared archive.
9259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9260
9261 # Symbols that should not be listed in the preloaded symbols.
9262 exclude_expsyms=$lt_exclude_expsyms
9263
9264 # Symbols that must always be exported.
9265 include_expsyms=$lt_include_expsyms
9266
9267 # ### END LIBTOOL CONFIG
9268
9269 __EOF__
9270
9271
9272   case $host_os in
9273   aix3*)
9274     cat <<\EOF >> "$cfgfile"
9275
9276 # AIX sometimes has problems with the GCC collect2 program.  For some
9277 # reason, if we set the COLLECT_NAMES environment variable, the problems
9278 # vanish in a puff of smoke.
9279 if test "X${COLLECT_NAMES+set}" != Xset; then
9280   COLLECT_NAMES=
9281   export COLLECT_NAMES
9282 fi
9283 EOF
9284     ;;
9285   esac
9286
9287   # We use sed instead of cat because bash on DJGPP gets confused if
9288   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9289   # text mode, it properly converts lines to CR/LF.  This bash problem
9290   # is reportedly fixed, but why not run on old versions too?
9291   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9292
9293   mv -f "$cfgfile" "$ofile" || \
9294     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9295   chmod +x "$ofile"
9296
9297 else
9298   # If there is no Makefile yet, we rely on a make rule to execute
9299   # `config.status --recheck' to rerun these tests and create the
9300   # libtool script then.
9301   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9302   if test -f "$ltmain_in"; then
9303     test -f Makefile && make "$ltmain"
9304   fi
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" &&
9370             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9371             (test "X$CXX" != "Xg++"))) ; then
9372           ac_ext=cc
9373 ac_cpp='$CXXCPP $CPPFLAGS'
9374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377
9378
9379
9380
9381 archive_cmds_need_lc_CXX=no
9382 allow_undefined_flag_CXX=
9383 always_export_symbols_CXX=no
9384 archive_expsym_cmds_CXX=
9385 export_dynamic_flag_spec_CXX=
9386 hardcode_direct_CXX=no
9387 hardcode_libdir_flag_spec_CXX=
9388 hardcode_libdir_flag_spec_ld_CXX=
9389 hardcode_libdir_separator_CXX=
9390 hardcode_minus_L_CXX=no
9391 hardcode_automatic_CXX=no
9392 module_cmds_CXX=
9393 module_expsym_cmds_CXX=
9394 link_all_deplibs_CXX=unknown
9395 old_archive_cmds_CXX=$old_archive_cmds
9396 no_undefined_flag_CXX=
9397 whole_archive_flag_spec_CXX=
9398 enable_shared_with_static_runtimes_CXX=no
9399
9400 # Dependencies to place before and after the object being linked:
9401 predep_objects_CXX=
9402 postdep_objects_CXX=
9403 predeps_CXX=
9404 postdeps_CXX=
9405 compiler_lib_search_path_CXX=
9406
9407 # Source file extension for C++ test sources.
9408 ac_ext=cc
9409
9410 # Object file extension for compiled C++ test sources.
9411 objext=o
9412 objext_CXX=$objext
9413
9414 # Code to be used in simple compile tests
9415 lt_simple_compile_test_code="int some_variable = 0;\n"
9416
9417 # Code to be used in simple link tests
9418 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9419
9420 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9421
9422 # If no C compiler was specified, use CC.
9423 LTCC=${LTCC-"$CC"}
9424
9425 # Allow CC to be a program name with arguments.
9426 compiler=$CC
9427
9428
9429 # Allow CC to be a program name with arguments.
9430 lt_save_CC=$CC
9431 lt_save_LD=$LD
9432 lt_save_GCC=$GCC
9433 GCC=$GXX
9434 lt_save_with_gnu_ld=$with_gnu_ld
9435 lt_save_path_LD=$lt_cv_path_LD
9436 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9437   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9438 else
9439   unset lt_cv_prog_gnu_ld
9440 fi
9441 if test -n "${lt_cv_path_LDCXX+set}"; then
9442   lt_cv_path_LD=$lt_cv_path_LDCXX
9443 else
9444   unset lt_cv_path_LD
9445 fi
9446 test -z "${LDCXX+set}" || LD=$LDCXX
9447 CC=${CXX-"c++"}
9448 compiler=$CC
9449 compiler_CXX=$CC
9450 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9451
9452 # We don't want -fno-exception wen compiling C++ code, so set the
9453 # no_builtin_flag separately
9454 if test "$GXX" = yes; then
9455   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9456 else
9457   lt_prog_compiler_no_builtin_flag_CXX=
9458 fi
9459
9460 if test "$GXX" = yes; then
9461   # Set up default GNU C++ configuration
9462
9463
9464 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9465 if test "${with_gnu_ld+set}" = set; then
9466   withval="$with_gnu_ld"
9467   test "$withval" = no || with_gnu_ld=yes
9468 else
9469   with_gnu_ld=no
9470 fi;
9471 ac_prog=ld
9472 if test "$GCC" = yes; then
9473   # Check if gcc -print-prog-name=ld gives a path.
9474   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9476   case $host in
9477   *-*-mingw*)
9478     # gcc leaves a trailing carriage return which upsets mingw
9479     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9480   *)
9481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9482   esac
9483   case $ac_prog in
9484     # Accept absolute paths.
9485     [\\/]* | ?:[\\/]*)
9486       re_direlt='/[^/][^/]*/\.\./'
9487       # Canonicalize the pathname of ld
9488       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9489       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9490         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9491       done
9492       test -z "$LD" && LD="$ac_prog"
9493       ;;
9494   "")
9495     # If it fails, then pretend we aren't using GCC.
9496     ac_prog=ld
9497     ;;
9498   *)
9499     # If it is relative, then search for the first ld in PATH.
9500     with_gnu_ld=unknown
9501     ;;
9502   esac
9503 elif test "$with_gnu_ld" = yes; then
9504   echo "$as_me:$LINENO: checking for GNU ld" >&5
9505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9506 else
9507   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9509 fi
9510 if test "${lt_cv_path_LD+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   if test -z "$LD"; then
9514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515   for ac_dir in $PATH; do
9516     IFS="$lt_save_ifs"
9517     test -z "$ac_dir" && ac_dir=.
9518     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9519       lt_cv_path_LD="$ac_dir/$ac_prog"
9520       # Check to see if the program is GNU ld.  I'd rather use --version,
9521       # but apparently some GNU ld's only accept -v.
9522       # Break only if it was the GNU/non-GNU ld that we prefer.
9523       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9524       *GNU* | *'with BFD'*)
9525         test "$with_gnu_ld" != no && break
9526         ;;
9527       *)
9528         test "$with_gnu_ld" != yes && break
9529         ;;
9530       esac
9531     fi
9532   done
9533   IFS="$lt_save_ifs"
9534 else
9535   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9536 fi
9537 fi
9538
9539 LD="$lt_cv_path_LD"
9540 if test -n "$LD"; then
9541   echo "$as_me:$LINENO: result: $LD" >&5
9542 echo "${ECHO_T}$LD" >&6
9543 else
9544   echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6
9546 fi
9547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9549    { (exit 1); exit 1; }; }
9550 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9556 case `$LD -v 2>&1 </dev/null` in
9557 *GNU* | *'with BFD'*)
9558   lt_cv_prog_gnu_ld=yes
9559   ;;
9560 *)
9561   lt_cv_prog_gnu_ld=no
9562   ;;
9563 esac
9564 fi
9565 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9567 with_gnu_ld=$lt_cv_prog_gnu_ld
9568
9569
9570
9571   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9572   # archiving commands below assume that GNU ld is being used.
9573   if test "$with_gnu_ld" = yes; then
9574     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575     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'
9576
9577     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9578     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9579
9580     # If archive_cmds runs LD, not CC, wlarc should be empty
9581     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9582     #     investigate it a little bit more. (MM)
9583     wlarc='${wl}'
9584
9585     # ancient GNU ld didn't support --whole-archive et. al.
9586     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9587         grep 'no-whole-archive' > /dev/null; then
9588       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9589     else
9590       whole_archive_flag_spec_CXX=
9591     fi
9592   else
9593     with_gnu_ld=no
9594     wlarc=
9595
9596     # A generic and very simple default shared library creation
9597     # command for GNU C++ for the case where it uses the native
9598     # linker, instead of GNU ld.  If possible, this setting should
9599     # overridden to take advantage of the native linker features on
9600     # the platform it is being used on.
9601     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9602   fi
9603
9604   # Commands to make compiler produce verbose output that lists
9605   # what "hidden" libraries, object files and flags are used when
9606   # linking a shared library.
9607   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9608
9609 else
9610   GXX=no
9611   with_gnu_ld=no
9612   wlarc=
9613 fi
9614
9615 # PORTME: fill in a description of your system's C++ link characteristics
9616 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9618 ld_shlibs_CXX=yes
9619 case $host_os in
9620   aix3*)
9621     # FIXME: insert proper C++ library support
9622     ld_shlibs_CXX=no
9623     ;;
9624   aix4* | aix5*)
9625     if test "$host_cpu" = ia64; then
9626       # On IA64, the linker does run time linking by default, so we don't
9627       # have to do anything special.
9628       aix_use_runtimelinking=no
9629       exp_sym_flag='-Bexport'
9630       no_entry_flag=""
9631     else
9632       aix_use_runtimelinking=no
9633
9634       # Test if we are trying to use run time linking or normal
9635       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636       # need to do runtime linking.
9637       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9638         for ld_flag in $LDFLAGS; do
9639           case $ld_flag in
9640           *-brtl*)
9641             aix_use_runtimelinking=yes
9642             break
9643             ;;
9644           esac
9645         done
9646       esac
9647
9648       exp_sym_flag='-bexport'
9649       no_entry_flag='-bnoentry'
9650     fi
9651
9652     # When large executables or shared objects are built, AIX ld can
9653     # have problems creating the table of contents.  If linking a library
9654     # or program results in "error TOC overflow" add -mminimal-toc to
9655     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9656     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657
9658     archive_cmds_CXX=''
9659     hardcode_direct_CXX=yes
9660     hardcode_libdir_separator_CXX=':'
9661     link_all_deplibs_CXX=yes
9662
9663     if test "$GXX" = yes; then
9664       case $host_os in aix4.012|aix4.012.*)
9665       # We only want to do this on AIX 4.2 and lower, the check
9666       # below for broken collect2 doesn't work under 4.3+
9667         collect2name=`${CC} -print-prog-name=collect2`
9668         if test -f "$collect2name" && \
9669            strings "$collect2name" | grep resolve_lib_name >/dev/null
9670         then
9671           # We have reworked collect2
9672           hardcode_direct_CXX=yes
9673         else
9674           # We have old collect2
9675           hardcode_direct_CXX=unsupported
9676           # It fails to find uninstalled libraries when the uninstalled
9677           # path is not listed in the libpath.  Setting hardcode_minus_L
9678           # to unsupported forces relinking
9679           hardcode_minus_L_CXX=yes
9680           hardcode_libdir_flag_spec_CXX='-L$libdir'
9681           hardcode_libdir_separator_CXX=
9682         fi
9683       esac
9684       shared_flag='-shared'
9685     else
9686       # not using gcc
9687       if test "$host_cpu" = ia64; then
9688         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9689         # chokes on -Wl,-G. The following line is correct:
9690         shared_flag='-G'
9691       else
9692         if test "$aix_use_runtimelinking" = yes; then
9693           shared_flag='${wl}-G'
9694         else
9695           shared_flag='${wl}-bM:SRE'
9696         fi
9697       fi
9698     fi
9699
9700     # It seems that -bexpall does not export symbols beginning with
9701     # underscore (_), so it is better to generate a list of symbols to export.
9702     always_export_symbols_CXX=yes
9703     if test "$aix_use_runtimelinking" = yes; then
9704       # Warning - without using the other runtime loading flags (-brtl),
9705       # -berok will link without error, but may produce a broken library.
9706       allow_undefined_flag_CXX='-berok'
9707       # Determine the default libpath from the value encoded in an empty executable.
9708       cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714
9715 int
9716 main ()
9717 {
9718
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_cxx_werror_flag"
9733                          || test ! -s conftest.err'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745
9746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9747 }'`
9748 # Check for a 64-bit object if we didn't find anything.
9749 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; }
9750 }'`; fi
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 fi
9756 rm -f conftest.err conftest.$ac_objext \
9757       conftest$ac_exeext conftest.$ac_ext
9758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9759
9760       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9761
9762       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"
9763      else
9764       if test "$host_cpu" = ia64; then
9765         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9766         allow_undefined_flag_CXX="-z nodefs"
9767         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"
9768       else
9769         # Determine the default libpath from the value encoded in an empty executable.
9770         cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776
9777 int
9778 main ()
9779 {
9780
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787   (eval $ac_link) 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } &&
9794          { ac_try='test -z "$ac_cxx_werror_flag"
9795                          || test ! -s conftest.err'
9796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797   (eval $ac_try) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; } &&
9801          { ac_try='test -s conftest$ac_exeext'
9802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803   (eval $ac_try) 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807
9808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9809 }'`
9810 # Check for a 64-bit object if we didn't find anything.
9811 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; }
9812 }'`; fi
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 fi
9818 rm -f conftest.err conftest.$ac_objext \
9819       conftest$ac_exeext conftest.$ac_ext
9820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9821
9822         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9823         # Warning - without using the other run time loading flags,
9824         # -berok will link without error, but may produce a broken library.
9825         no_undefined_flag_CXX=' ${wl}-bernotok'
9826         allow_undefined_flag_CXX=' ${wl}-berok'
9827         # -bexpall does not export symbols beginning with underscore (_)
9828         always_export_symbols_CXX=yes
9829         # Exported symbols can be pulled into shared objects from archives
9830         whole_archive_flag_spec_CXX=' '
9831         archive_cmds_need_lc_CXX=yes
9832         # This is similar to how AIX traditionally builds it's shared libraries.
9833         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'
9834       fi
9835     fi
9836     ;;
9837   chorus*)
9838     case $cc_basename in
9839       *)
9840         # FIXME: insert proper C++ library support
9841         ld_shlibs_CXX=no
9842         ;;
9843     esac
9844     ;;
9845
9846
9847   cygwin* | mingw* | pw32*)
9848     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9849     # as there is no search path for DLLs.
9850     hardcode_libdir_flag_spec_CXX='-L$libdir'
9851     allow_undefined_flag_CXX=unsupported
9852     always_export_symbols_CXX=no
9853     enable_shared_with_static_runtimes_CXX=yes
9854
9855     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9856       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'
9857       # If the export-symbols file already is a .def file (1st line
9858       # is EXPORTS), use it as is; otherwise, prepend...
9859       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9860         cp $export_symbols $output_objdir/$soname.def;
9861       else
9862         echo EXPORTS > $output_objdir/$soname.def;
9863         cat $export_symbols >> $output_objdir/$soname.def;
9864       fi;$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'
9865     else
9866       ld_shlibs_CXX=no
9867     fi
9868   ;;
9869       darwin* | rhapsody*)
9870         case "$host_os" in
9871         rhapsody* | darwin1.[012])
9872          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9873          ;;
9874        *) # Darwin 1.3 on
9875          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9876            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9877          else
9878            case ${MACOSX_DEPLOYMENT_TARGET} in
9879              10.[012])
9880                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9881                ;;
9882              10.*)
9883                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9884                ;;
9885            esac
9886          fi
9887          ;;
9888         esac
9889       archive_cmds_need_lc_CXX=no
9890       hardcode_direct_CXX=no
9891       hardcode_automatic_CXX=yes
9892       hardcode_shlibpath_var_CXX=unsupported
9893       whole_archive_flag_spec_CXX=''
9894       link_all_deplibs_CXX=yes
9895
9896     if test "$GXX" = yes ; then
9897       lt_int_apple_cc_single_mod=no
9898       output_verbose_link_cmd='echo'
9899       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9900        lt_int_apple_cc_single_mod=yes
9901       fi
9902       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9903        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9904       else
9905           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9906         fi
9907         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9908         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9909           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9910             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}'
9911           else
9912             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9913           fi
9914             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9915       else
9916       case "$cc_basename" in
9917         xlc*)
9918          output_verbose_link_cmd='echo'
9919           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9920           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9921           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9922           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9923           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9924           ;;
9925        *)
9926          ld_shlibs_CXX=no
9927           ;;
9928       esac
9929       fi
9930         ;;
9931
9932   dgux*)
9933     case $cc_basename in
9934       ec++)
9935         # FIXME: insert proper C++ library support
9936         ld_shlibs_CXX=no
9937         ;;
9938       ghcx)
9939         # Green Hills C++ Compiler
9940         # FIXME: insert proper C++ library support
9941         ld_shlibs_CXX=no
9942         ;;
9943       *)
9944         # FIXME: insert proper C++ library support
9945         ld_shlibs_CXX=no
9946         ;;
9947     esac
9948     ;;
9949   freebsd12*)
9950     # C++ shared libraries reported to be fairly broken before switch to ELF
9951     ld_shlibs_CXX=no
9952     ;;
9953   freebsd-elf*)
9954     archive_cmds_need_lc_CXX=no
9955     ;;
9956   freebsd* | kfreebsd*-gnu)
9957     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9958     # conventions
9959     ld_shlibs_CXX=yes
9960     ;;
9961   gnu*)
9962     ;;
9963   hpux9*)
9964     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9965     hardcode_libdir_separator_CXX=:
9966     export_dynamic_flag_spec_CXX='${wl}-E'
9967     hardcode_direct_CXX=yes
9968     hardcode_minus_L_CXX=yes # Not in the search PATH,
9969                                 # but as the default
9970                                 # location of the library.
9971
9972     case $cc_basename in
9973     CC)
9974       # FIXME: insert proper C++ library support
9975       ld_shlibs_CXX=no
9976       ;;
9977     aCC)
9978       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'
9979       # Commands to make compiler produce verbose output that lists
9980       # what "hidden" libraries, object files and flags are used when
9981       # linking a shared library.
9982       #
9983       # There doesn't appear to be a way to prevent this compiler from
9984       # explicitly linking system object files so we need to strip them
9985       # from the output so that they don't get included in the library
9986       # dependencies.
9987       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'
9988       ;;
9989     *)
9990       if test "$GXX" = yes; then
9991         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'
9992       else
9993         # FIXME: insert proper C++ library support
9994         ld_shlibs_CXX=no
9995       fi
9996       ;;
9997     esac
9998     ;;
9999   hpux10*|hpux11*)
10000     if test $with_gnu_ld = no; then
10001       case "$host_cpu" in
10002       hppa*64*)
10003         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10004         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10005         hardcode_libdir_separator_CXX=:
10006         ;;
10007       ia64*)
10008         hardcode_libdir_flag_spec_CXX='-L$libdir'
10009         ;;
10010       *)
10011         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10012         hardcode_libdir_separator_CXX=:
10013         export_dynamic_flag_spec_CXX='${wl}-E'
10014         ;;
10015       esac
10016     fi
10017     case "$host_cpu" in
10018     hppa*64*)
10019       hardcode_direct_CXX=no
10020       hardcode_shlibpath_var_CXX=no
10021       ;;
10022     ia64*)
10023       hardcode_direct_CXX=no
10024       hardcode_shlibpath_var_CXX=no
10025       hardcode_minus_L_CXX=yes # Not in the search PATH,
10026                                               # but as the default
10027                                               # location of the library.
10028       ;;
10029     *)
10030       hardcode_direct_CXX=yes
10031       hardcode_minus_L_CXX=yes # Not in the search PATH,
10032                                               # but as the default
10033                                               # location of the library.
10034       ;;
10035     esac
10036
10037     case $cc_basename in
10038       CC)
10039         # FIXME: insert proper C++ library support
10040         ld_shlibs_CXX=no
10041         ;;
10042       aCC)
10043         case "$host_cpu" in
10044         hppa*64*|ia64*)
10045           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10046           ;;
10047         *)
10048           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10049           ;;
10050         esac
10051         # Commands to make compiler produce verbose output that lists
10052         # what "hidden" libraries, object files and flags are used when
10053         # linking a shared library.
10054         #
10055         # There doesn't appear to be a way to prevent this compiler from
10056         # explicitly linking system object files so we need to strip them
10057         # from the output so that they don't get included in the library
10058         # dependencies.
10059         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'
10060         ;;
10061       *)
10062         if test "$GXX" = yes; then
10063           if test $with_gnu_ld = no; then
10064             case "$host_cpu" in
10065             ia64*|hppa*64*)
10066               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10067               ;;
10068             *)
10069               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'
10070               ;;
10071             esac
10072           fi
10073         else
10074           # FIXME: insert proper C++ library support
10075           ld_shlibs_CXX=no
10076         fi
10077         ;;
10078     esac
10079     ;;
10080   irix5* | irix6*)
10081     case $cc_basename in
10082       CC)
10083         # SGI C++
10084         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'
10085
10086         # Archives containing C++ object files must be created using
10087         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10088         # necessary to make sure instantiated templates are included
10089         # in the archive.
10090         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10091         ;;
10092       *)
10093         if test "$GXX" = yes; then
10094           if test "$with_gnu_ld" = no; then
10095             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10096           else
10097             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'
10098           fi
10099         fi
10100         link_all_deplibs_CXX=yes
10101         ;;
10102     esac
10103     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10104     hardcode_libdir_separator_CXX=:
10105     ;;
10106   linux*)
10107     case $cc_basename in
10108       KCC)
10109         # Kuck and Associates, Inc. (KAI) C++ Compiler
10110
10111         # KCC will only create a shared library if the output file
10112         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10113         # to its proper name (with version) after linking.
10114         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'
10115         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'
10116         # Commands to make compiler produce verbose output that lists
10117         # what "hidden" libraries, object files and flags are used when
10118         # linking a shared library.
10119         #
10120         # There doesn't appear to be a way to prevent this compiler from
10121         # explicitly linking system object files so we need to strip them
10122         # from the output so that they don't get included in the library
10123         # dependencies.
10124         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'
10125
10126         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10127         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10128
10129         # Archives containing C++ object files must be created using
10130         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10131         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10132         ;;
10133       icpc)
10134         # Intel C++
10135         with_gnu_ld=yes
10136         # version 8.0 and above of icpc choke on multiply defined symbols
10137         # if we add $predep_objects and $postdep_objects, however 7.1 and
10138         # earlier do not add the objects themselves.
10139         case `$CC -V 2>&1` in
10140         *"Version 7."*)
10141           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142           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'
10143           ;;
10144         *)  # Version 8.0 or newer
10145           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10147           ;;
10148         esac
10149         archive_cmds_need_lc_CXX=no
10150         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10151         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10152         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10153         ;;
10154       cxx)
10155         # Compaq C++
10156         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157         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'
10158
10159         runpath_var=LD_RUN_PATH
10160         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10161         hardcode_libdir_separator_CXX=:
10162
10163         # Commands to make compiler produce verbose output that lists
10164         # what "hidden" libraries, object files and flags are used when
10165         # linking a shared library.
10166         #
10167         # There doesn't appear to be a way to prevent this compiler from
10168         # explicitly linking system object files so we need to strip them
10169         # from the output so that they don't get included in the library
10170         # dependencies.
10171         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'
10172         ;;
10173     esac
10174     ;;
10175   lynxos*)
10176     # FIXME: insert proper C++ library support
10177     ld_shlibs_CXX=no
10178     ;;
10179   m88k*)
10180     # FIXME: insert proper C++ library support
10181     ld_shlibs_CXX=no
10182     ;;
10183   mvs*)
10184     case $cc_basename in
10185       cxx)
10186         # FIXME: insert proper C++ library support
10187         ld_shlibs_CXX=no
10188         ;;
10189       *)
10190         # FIXME: insert proper C++ library support
10191         ld_shlibs_CXX=no
10192         ;;
10193     esac
10194     ;;
10195   netbsd*)
10196     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10197       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10198       wlarc=
10199       hardcode_libdir_flag_spec_CXX='-R$libdir'
10200       hardcode_direct_CXX=yes
10201       hardcode_shlibpath_var_CXX=no
10202     fi
10203     # Workaround some broken pre-1.5 toolchains
10204     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10205     ;;
10206   openbsd2*)
10207     # C++ shared libraries are fairly broken
10208     ld_shlibs_CXX=no
10209     ;;
10210   openbsd*)
10211     hardcode_direct_CXX=yes
10212     hardcode_shlibpath_var_CXX=no
10213     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10214     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10215     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10217       export_dynamic_flag_spec_CXX='${wl}-E'
10218       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10219     fi
10220     output_verbose_link_cmd='echo'
10221     ;;
10222   osf3*)
10223     case $cc_basename in
10224       KCC)
10225         # Kuck and Associates, Inc. (KAI) C++ Compiler
10226
10227         # KCC will only create a shared library if the output file
10228         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10229         # to its proper name (with version) after linking.
10230         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'
10231
10232         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233         hardcode_libdir_separator_CXX=:
10234
10235         # Archives containing C++ object files must be created using
10236         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10237         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10238
10239         ;;
10240       RCC)
10241         # Rational C++ 2.4.1
10242         # FIXME: insert proper C++ library support
10243         ld_shlibs_CXX=no
10244         ;;
10245       cxx)
10246         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10247         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'
10248
10249         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10250         hardcode_libdir_separator_CXX=:
10251
10252         # Commands to make compiler produce verbose output that lists
10253         # what "hidden" libraries, object files and flags are used when
10254         # linking a shared library.
10255         #
10256         # There doesn't appear to be a way to prevent this compiler from
10257         # explicitly linking system object files so we need to strip them
10258         # from the output so that they don't get included in the library
10259         # dependencies.
10260         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'
10261         ;;
10262       *)
10263         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10264           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10265           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'
10266
10267           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10268           hardcode_libdir_separator_CXX=:
10269
10270           # Commands to make compiler produce verbose output that lists
10271           # what "hidden" libraries, object files and flags are used when
10272           # linking a shared library.
10273           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10274
10275         else
10276           # FIXME: insert proper C++ library support
10277           ld_shlibs_CXX=no
10278         fi
10279         ;;
10280     esac
10281     ;;
10282   osf4* | osf5*)
10283     case $cc_basename in
10284       KCC)
10285         # Kuck and Associates, Inc. (KAI) C++ Compiler
10286
10287         # KCC will only create a shared library if the output file
10288         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10289         # to its proper name (with version) after linking.
10290         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'
10291
10292         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10293         hardcode_libdir_separator_CXX=:
10294
10295         # Archives containing C++ object files must be created using
10296         # the KAI C++ compiler.
10297         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10298         ;;
10299       RCC)
10300         # Rational C++ 2.4.1
10301         # FIXME: insert proper C++ library support
10302         ld_shlibs_CXX=no
10303         ;;
10304       cxx)
10305         allow_undefined_flag_CXX=' -expect_unresolved \*'
10306         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'
10307         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
10308
10309         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10310         hardcode_libdir_separator_CXX=:
10311
10312         # Commands to make compiler produce verbose output that lists
10313         # what "hidden" libraries, object files and flags are used when
10314         # linking a shared library.
10315         #
10316         # There doesn't appear to be a way to prevent this compiler from
10317         # explicitly linking system object files so we need to strip them
10318         # from the output so that they don't get included in the library
10319         # dependencies.
10320         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'
10321         ;;
10322       *)
10323         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10324           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10325          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'
10326
10327           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10328           hardcode_libdir_separator_CXX=:
10329
10330           # Commands to make compiler produce verbose output that lists
10331           # what "hidden" libraries, object files and flags are used when
10332           # linking a shared library.
10333           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10334
10335         else
10336           # FIXME: insert proper C++ library support
10337           ld_shlibs_CXX=no
10338         fi
10339         ;;
10340     esac
10341     ;;
10342   psos*)
10343     # FIXME: insert proper C++ library support
10344     ld_shlibs_CXX=no
10345     ;;
10346   sco*)
10347     archive_cmds_need_lc_CXX=no
10348     case $cc_basename in
10349       CC)
10350         # FIXME: insert proper C++ library support
10351         ld_shlibs_CXX=no
10352         ;;
10353       *)
10354         # FIXME: insert proper C++ library support
10355         ld_shlibs_CXX=no
10356         ;;
10357     esac
10358     ;;
10359   sunos4*)
10360     case $cc_basename in
10361       CC)
10362         # Sun C++ 4.x
10363         # FIXME: insert proper C++ library support
10364         ld_shlibs_CXX=no
10365         ;;
10366       lcc)
10367         # Lucid
10368         # FIXME: insert proper C++ library support
10369         ld_shlibs_CXX=no
10370         ;;
10371       *)
10372         # FIXME: insert proper C++ library support
10373         ld_shlibs_CXX=no
10374         ;;
10375     esac
10376     ;;
10377   solaris*)
10378     case $cc_basename in
10379       CC)
10380         # Sun C++ 4.2, 5.x and Centerline C++
10381         no_undefined_flag_CXX=' -zdefs'
10382         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10383         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
10384
10385         hardcode_libdir_flag_spec_CXX='-R$libdir'
10386         hardcode_shlibpath_var_CXX=no
10387         case $host_os in
10388           solaris2.0-5 | solaris2.0-5.*) ;;
10389           *)
10390             # The C++ compiler is used as linker so we must use $wl
10391             # flag to pass the commands to the underlying system
10392             # linker.
10393             # Supported since Solaris 2.6 (maybe 2.5.1?)
10394             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10395             ;;
10396         esac
10397         link_all_deplibs_CXX=yes
10398
10399         # Commands to make compiler produce verbose output that lists
10400         # what "hidden" libraries, object files and flags are used when
10401         # linking a shared library.
10402         #
10403         # There doesn't appear to be a way to prevent this compiler from
10404         # explicitly linking system object files so we need to strip them
10405         # from the output so that they don't get included in the library
10406         # dependencies.
10407         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'
10408
10409         # Archives containing C++ object files must be created using
10410         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10411         # necessary to make sure instantiated templates are included
10412         # in the archive.
10413         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10414         ;;
10415       gcx)
10416         # Green Hills C++ Compiler
10417         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10418
10419         # The C++ compiler must be used to create the archive.
10420         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10421         ;;
10422       *)
10423         # GNU C++ compiler with Solaris linker
10424         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10425           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10426           if $CC --version | grep -v '^2\.7' > /dev/null; then
10427             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10428             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10429             # Commands to make compiler produce verbose output that lists
10430             # what "hidden" libraries, object files and flags are used when
10431             # linking a shared library.
10432             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10433           else
10434             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10435             # platform.
10436             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10437             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10438                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10439
10440             # Commands to make compiler produce verbose output that lists
10441             # what "hidden" libraries, object files and flags are used when
10442             # linking a shared library.
10443             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10444           fi
10445
10446           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10447         fi
10448         ;;
10449     esac
10450     ;;
10451   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10452     archive_cmds_need_lc_CXX=no
10453     ;;
10454   tandem*)
10455     case $cc_basename in
10456       NCC)
10457         # NonStop-UX NCC 3.20
10458         # FIXME: insert proper C++ library support
10459         ld_shlibs_CXX=no
10460         ;;
10461       *)
10462         # FIXME: insert proper C++ library support
10463         ld_shlibs_CXX=no
10464         ;;
10465     esac
10466     ;;
10467   vxworks*)
10468     # FIXME: insert proper C++ library support
10469     ld_shlibs_CXX=no
10470     ;;
10471   *)
10472     # FIXME: insert proper C++ library support
10473     ld_shlibs_CXX=no
10474     ;;
10475 esac
10476 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10477 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10478 test "$ld_shlibs_CXX" = no && can_build_shared=no
10479
10480 GCC_CXX="$GXX"
10481 LD_CXX="$LD"
10482
10483
10484 cat > conftest.$ac_ext <<EOF
10485 class Foo
10486 {
10487 public:
10488   Foo (void) { a = 0; }
10489 private:
10490   int a;
10491 };
10492 EOF
10493
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495   (eval $ac_compile) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); }; then
10499   # Parse the compiler output and extract the necessary
10500   # objects, libraries and library flags.
10501
10502   # Sentinel used to keep track of whether or not we are before
10503   # the conftest object file.
10504   pre_test_object_deps_done=no
10505
10506   # The `*' in the case matches for architectures that use `case' in
10507   # $output_verbose_cmd can trigger glob expansion during the loop
10508   # eval without this substitution.
10509   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10510
10511   for p in `eval $output_verbose_link_cmd`; do
10512     case $p in
10513
10514     -L* | -R* | -l*)
10515        # Some compilers place space between "-{L,R}" and the path.
10516        # Remove the space.
10517        if test $p = "-L" \
10518           || test $p = "-R"; then
10519          prev=$p
10520          continue
10521        else
10522          prev=
10523        fi
10524
10525        if test "$pre_test_object_deps_done" = no; then
10526          case $p in
10527          -L* | -R*)
10528            # Internal compiler library paths should come after those
10529            # provided the user.  The postdeps already come after the
10530            # user supplied libs so there is no need to process them.
10531            if test -z "$compiler_lib_search_path_CXX"; then
10532              compiler_lib_search_path_CXX="${prev}${p}"
10533            else
10534              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10535            fi
10536            ;;
10537          # The "-l" case would never come before the object being
10538          # linked, so don't bother handling this case.
10539          esac
10540        else
10541          if test -z "$postdeps_CXX"; then
10542            postdeps_CXX="${prev}${p}"
10543          else
10544            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10545          fi
10546        fi
10547        ;;
10548
10549     *.$objext)
10550        # This assumes that the test object file only shows up
10551        # once in the compiler output.
10552        if test "$p" = "conftest.$objext"; then
10553          pre_test_object_deps_done=yes
10554          continue
10555        fi
10556
10557        if test "$pre_test_object_deps_done" = no; then
10558          if test -z "$predep_objects_CXX"; then
10559            predep_objects_CXX="$p"
10560          else
10561            predep_objects_CXX="$predep_objects_CXX $p"
10562          fi
10563        else
10564          if test -z "$postdep_objects_CXX"; then
10565            postdep_objects_CXX="$p"
10566          else
10567            postdep_objects_CXX="$postdep_objects_CXX $p"
10568          fi
10569        fi
10570        ;;
10571
10572     *) ;; # Ignore the rest.
10573
10574     esac
10575   done
10576
10577   # Clean up.
10578   rm -f a.out a.exe
10579 else
10580   echo "libtool.m4: error: problem compiling CXX test program"
10581 fi
10582
10583 $rm -f confest.$objext
10584
10585 case " $postdeps_CXX " in
10586 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10587 esac
10588
10589 lt_prog_compiler_wl_CXX=
10590 lt_prog_compiler_pic_CXX=
10591 lt_prog_compiler_static_CXX=
10592
10593 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10594 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10595
10596   # C++ specific cases for pic, static, wl, etc.
10597   if test "$GXX" = yes; then
10598     lt_prog_compiler_wl_CXX='-Wl,'
10599     lt_prog_compiler_static_CXX='-static'
10600
10601     case $host_os in
10602     aix*)
10603       # All AIX code is PIC.
10604       if test "$host_cpu" = ia64; then
10605         # AIX 5 now supports IA64 processor
10606         lt_prog_compiler_static_CXX='-Bstatic'
10607       fi
10608       ;;
10609     amigaos*)
10610       # FIXME: we need at least 68020 code to build shared libraries, but
10611       # adding the `-m68020' flag to GCC prevents building anything better,
10612       # like `-m68040'.
10613       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10614       ;;
10615     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10616       # PIC is the default for these OSes.
10617       ;;
10618     mingw* | os2* | pw32*)
10619       # This hack is so that the source file can tell whether it is being
10620       # built for inclusion in a dll (and should export symbols for example).
10621       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10622       ;;
10623     darwin* | rhapsody*)
10624       # PIC is the default on this platform
10625       # Common symbols not allowed in MH_DYLIB files
10626       lt_prog_compiler_pic_CXX='-fno-common'
10627       ;;
10628     *djgpp*)
10629       # DJGPP does not support shared libraries at all
10630       lt_prog_compiler_pic_CXX=
10631       ;;
10632     sysv4*MP*)
10633       if test -d /usr/nec; then
10634         lt_prog_compiler_pic_CXX=-Kconform_pic
10635       fi
10636       ;;
10637     hpux*)
10638       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10639       # not for PA HP-UX.
10640       case "$host_cpu" in
10641       hppa*64*|ia64*)
10642         ;;
10643       *)
10644         lt_prog_compiler_pic_CXX='-fPIC'
10645         ;;
10646       esac
10647       ;;
10648     *)
10649       lt_prog_compiler_pic_CXX='-fPIC'
10650       ;;
10651     esac
10652   else
10653     case $host_os in
10654       aix4* | aix5*)
10655         # All AIX code is PIC.
10656         if test "$host_cpu" = ia64; then
10657           # AIX 5 now supports IA64 processor
10658           lt_prog_compiler_static_CXX='-Bstatic'
10659         else
10660           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10661         fi
10662         ;;
10663       chorus*)
10664         case $cc_basename in
10665         cxch68)
10666           # Green Hills C++ Compiler
10667           # _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"
10668           ;;
10669         esac
10670         ;;
10671        darwin*)
10672          # PIC is the default on this platform
10673          # Common symbols not allowed in MH_DYLIB files
10674          case "$cc_basename" in
10675            xlc*)
10676            lt_prog_compiler_pic_CXX='-qnocommon'
10677            lt_prog_compiler_wl_CXX='-Wl,'
10678            ;;
10679          esac
10680        ;;
10681       dgux*)
10682         case $cc_basename in
10683           ec++)
10684             lt_prog_compiler_pic_CXX='-KPIC'
10685             ;;
10686           ghcx)
10687             # Green Hills C++ Compiler
10688             lt_prog_compiler_pic_CXX='-pic'
10689             ;;
10690           *)
10691             ;;
10692         esac
10693         ;;
10694       freebsd* | kfreebsd*-gnu)
10695         # FreeBSD uses GNU C++
10696         ;;
10697       hpux9* | hpux10* | hpux11*)
10698         case $cc_basename in
10699           CC)
10700             lt_prog_compiler_wl_CXX='-Wl,'
10701             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10702             if test "$host_cpu" != ia64; then
10703               lt_prog_compiler_pic_CXX='+Z'
10704             fi
10705             ;;
10706           aCC)
10707             lt_prog_compiler_wl_CXX='-Wl,'
10708             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10709             case "$host_cpu" in
10710             hppa*64*|ia64*)
10711               # +Z the default
10712               ;;
10713             *)
10714               lt_prog_compiler_pic_CXX='+Z'
10715               ;;
10716             esac
10717             ;;
10718           *)
10719             ;;
10720         esac
10721         ;;
10722       irix5* | irix6* | nonstopux*)
10723         case $cc_basename in
10724           CC)
10725             lt_prog_compiler_wl_CXX='-Wl,'
10726             lt_prog_compiler_static_CXX='-non_shared'
10727             # CC pic flag -KPIC is the default.
10728             ;;
10729           *)
10730             ;;
10731         esac
10732         ;;
10733       linux*)
10734         case $cc_basename in
10735           KCC)
10736             # KAI C++ Compiler
10737             lt_prog_compiler_wl_CXX='--backend -Wl,'
10738             lt_prog_compiler_pic_CXX='-fPIC'
10739             ;;
10740           icpc)
10741             # Intel C++
10742             lt_prog_compiler_wl_CXX='-Wl,'
10743             lt_prog_compiler_pic_CXX='-KPIC'
10744             lt_prog_compiler_static_CXX='-static'
10745             ;;
10746           cxx)
10747             # Compaq C++
10748             # Make sure the PIC flag is empty.  It appears that all Alpha
10749             # Linux and Compaq Tru64 Unix objects are PIC.
10750             lt_prog_compiler_pic_CXX=
10751             lt_prog_compiler_static_CXX='-non_shared'
10752             ;;
10753           *)
10754             ;;
10755         esac
10756         ;;
10757       lynxos*)
10758         ;;
10759       m88k*)
10760         ;;
10761       mvs*)
10762         case $cc_basename in
10763           cxx)
10764             lt_prog_compiler_pic_CXX='-W c,exportall'
10765             ;;
10766           *)
10767             ;;
10768         esac
10769         ;;
10770       netbsd*)
10771         ;;
10772       osf3* | osf4* | osf5*)
10773         case $cc_basename in
10774           KCC)
10775             lt_prog_compiler_wl_CXX='--backend -Wl,'
10776             ;;
10777           RCC)
10778             # Rational C++ 2.4.1
10779             lt_prog_compiler_pic_CXX='-pic'
10780             ;;
10781           cxx)
10782             # Digital/Compaq C++
10783             lt_prog_compiler_wl_CXX='-Wl,'
10784             # Make sure the PIC flag is empty.  It appears that all Alpha
10785             # Linux and Compaq Tru64 Unix objects are PIC.
10786             lt_prog_compiler_pic_CXX=
10787             lt_prog_compiler_static_CXX='-non_shared'
10788             ;;
10789           *)
10790             ;;
10791         esac
10792         ;;
10793       psos*)
10794         ;;
10795       sco*)
10796         case $cc_basename in
10797           CC)
10798             lt_prog_compiler_pic_CXX='-fPIC'
10799             ;;
10800           *)
10801             ;;
10802         esac
10803         ;;
10804       solaris*)
10805         case $cc_basename in
10806           CC)
10807             # Sun C++ 4.2, 5.x and Centerline C++
10808             lt_prog_compiler_pic_CXX='-KPIC'
10809             lt_prog_compiler_static_CXX='-Bstatic'
10810             lt_prog_compiler_wl_CXX='-Qoption ld '
10811             ;;
10812           gcx)
10813             # Green Hills C++ Compiler
10814             lt_prog_compiler_pic_CXX='-PIC'
10815             ;;
10816           *)
10817             ;;
10818         esac
10819         ;;
10820       sunos4*)
10821         case $cc_basename in
10822           CC)
10823             # Sun C++ 4.x
10824             lt_prog_compiler_pic_CXX='-pic'
10825             lt_prog_compiler_static_CXX='-Bstatic'
10826             ;;
10827           lcc)
10828             # Lucid
10829             lt_prog_compiler_pic_CXX='-pic'
10830             ;;
10831           *)
10832             ;;
10833         esac
10834         ;;
10835       tandem*)
10836         case $cc_basename in
10837           NCC)
10838             # NonStop-UX NCC 3.20
10839             lt_prog_compiler_pic_CXX='-KPIC'
10840             ;;
10841           *)
10842             ;;
10843         esac
10844         ;;
10845       unixware*)
10846         ;;
10847       vxworks*)
10848         ;;
10849       *)
10850         lt_prog_compiler_can_build_shared_CXX=no
10851         ;;
10852     esac
10853   fi
10854
10855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10856 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10857
10858 #
10859 # Check to make sure the PIC flag actually works.
10860 #
10861 if test -n "$lt_prog_compiler_pic_CXX"; then
10862
10863 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10864 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10865 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   lt_prog_compiler_pic_works_CXX=no
10869   ac_outfile=conftest.$ac_objext
10870    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10871    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10872    # Insert the option either (1) after the last *FLAGS variable, or
10873    # (2) before a word containing "conftest.", or (3) at the end.
10874    # Note that $ac_compile itself does not contain backslashes and begins
10875    # with a dollar sign (not a hyphen), so the echo should work correctly.
10876    # The option is referenced via a variable to avoid confusing sed.
10877    lt_compile=`echo "$ac_compile" | $SED \
10878    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10880    -e 's:$: $lt_compiler_flag:'`
10881    (eval echo "\"\$as_me:10881: $lt_compile\"" >&5)
10882    (eval "$lt_compile" 2>conftest.err)
10883    ac_status=$?
10884    cat conftest.err >&5
10885    echo "$as_me:10885: \$? = $ac_status" >&5
10886    if (exit $ac_status) && test -s "$ac_outfile"; then
10887      # The compiler can only warn and ignore the option if not recognized
10888      # So say no if there are warnings
10889      if test ! -s conftest.err; then
10890        lt_prog_compiler_pic_works_CXX=yes
10891      fi
10892    fi
10893    $rm conftest*
10894
10895 fi
10896 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10897 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10898
10899 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10900     case $lt_prog_compiler_pic_CXX in
10901      "" | " "*) ;;
10902      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10903      esac
10904 else
10905     lt_prog_compiler_pic_CXX=
10906      lt_prog_compiler_can_build_shared_CXX=no
10907 fi
10908
10909 fi
10910 case "$host_os" in
10911   # For platforms which do not support PIC, -DPIC is meaningless:
10912   *djgpp*)
10913     lt_prog_compiler_pic_CXX=
10914     ;;
10915   *)
10916     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10917     ;;
10918 esac
10919
10920 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10922 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   lt_cv_prog_compiler_c_o_CXX=no
10926    $rm -r conftest 2>/dev/null
10927    mkdir conftest
10928    cd conftest
10929    mkdir out
10930    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10931
10932    lt_compiler_flag="-o out/conftest2.$ac_objext"
10933    # Insert the option either (1) after the last *FLAGS variable, or
10934    # (2) before a word containing "conftest.", or (3) at the end.
10935    # Note that $ac_compile itself does not contain backslashes and begins
10936    # with a dollar sign (not a hyphen), so the echo should work correctly.
10937    lt_compile=`echo "$ac_compile" | $SED \
10938    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10940    -e 's:$: $lt_compiler_flag:'`
10941    (eval echo "\"\$as_me:10941: $lt_compile\"" >&5)
10942    (eval "$lt_compile" 2>out/conftest.err)
10943    ac_status=$?
10944    cat out/conftest.err >&5
10945    echo "$as_me:10945: \$? = $ac_status" >&5
10946    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10947    then
10948      # The compiler can only warn and ignore the option if not recognized
10949      # So say no if there are warnings
10950      if test ! -s out/conftest.err; then
10951        lt_cv_prog_compiler_c_o_CXX=yes
10952      fi
10953    fi
10954    chmod u+w .
10955    $rm conftest*
10956    # SGI C++ compiler will create directory out/ii_files/ for
10957    # template instantiation
10958    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10959    $rm out/* && rmdir out
10960    cd ..
10961    rmdir conftest
10962    $rm conftest*
10963
10964 fi
10965 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10967
10968
10969 hard_links="nottested"
10970 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10971   # do not overwrite the value of need_locks provided by the user
10972   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10974   hard_links=yes
10975   $rm conftest*
10976   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10977   touch conftest.a
10978   ln conftest.a conftest.b 2>&5 || hard_links=no
10979   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10980   echo "$as_me:$LINENO: result: $hard_links" >&5
10981 echo "${ECHO_T}$hard_links" >&6
10982   if test "$hard_links" = no; then
10983     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10985     need_locks=warn
10986   fi
10987 else
10988   need_locks=no
10989 fi
10990
10991 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10993
10994   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995   case $host_os in
10996   aix4* | aix5*)
10997     # If we're using GNU nm, then we don't want the "-C" option.
10998     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10999     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11000       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'
11001     else
11002       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'
11003     fi
11004     ;;
11005   pw32*)
11006     export_symbols_cmds_CXX="$ltdll_cmds"
11007   ;;
11008   cygwin* | mingw*)
11009     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11010   ;;
11011   *)
11012     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11013   ;;
11014   esac
11015
11016 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11017 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11018 test "$ld_shlibs_CXX" = no && can_build_shared=no
11019
11020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11021 if test "$GCC" = yes; then
11022   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11023 fi
11024
11025 #
11026 # Do we need to explicitly link libc?
11027 #
11028 case "x$archive_cmds_need_lc_CXX" in
11029 x|xyes)
11030   # Assume -lc should be added
11031   archive_cmds_need_lc_CXX=yes
11032
11033   if test "$enable_shared" = yes && test "$GCC" = yes; then
11034     case $archive_cmds_CXX in
11035     *'~'*)
11036       # FIXME: we may have to deal with multi-command sequences.
11037       ;;
11038     '$CC '*)
11039       # Test whether the compiler implicitly links with -lc since on some
11040       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11041       # to ld, don't add -lc before -lgcc.
11042       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11044       $rm conftest*
11045       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11046
11047       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11048   (eval $ac_compile) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } 2>conftest.err; then
11052         soname=conftest
11053         lib=conftest
11054         libobjs=conftest.$ac_objext
11055         deplibs=
11056         wl=$lt_prog_compiler_wl_CXX
11057         compiler_flags=-v
11058         linker_flags=-v
11059         verstring=
11060         output_objdir=.
11061         libname=conftest
11062         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11063         allow_undefined_flag_CXX=
11064         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11065   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }
11069         then
11070           archive_cmds_need_lc_CXX=no
11071         else
11072           archive_cmds_need_lc_CXX=yes
11073         fi
11074         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11075       else
11076         cat conftest.err 1>&5
11077       fi
11078       $rm conftest*
11079       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11080 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11081       ;;
11082     esac
11083   fi
11084   ;;
11085 esac
11086
11087 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11088 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11089 library_names_spec=
11090 libname_spec='lib$name'
11091 soname_spec=
11092 shrext_cmds=".so"
11093 postinstall_cmds=
11094 postuninstall_cmds=
11095 finish_cmds=
11096 finish_eval=
11097 shlibpath_var=
11098 shlibpath_overrides_runpath=unknown
11099 version_type=none
11100 dynamic_linker="$host_os ld.so"
11101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11102 if test "$GCC" = yes; then
11103   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11104   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11105     # if the path contains ";" then we assume it to be the separator
11106     # otherwise default to the standard path separator (i.e. ":") - it is
11107     # assumed that no part of a normal pathname contains ";" but that should
11108     # okay in the real world where ";" in dirpaths is itself problematic.
11109     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11110   else
11111     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11112   fi
11113 else
11114   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115 fi
11116 need_lib_prefix=unknown
11117 hardcode_into_libs=no
11118
11119 # when you set need_version to no, make sure it does not cause -set_version
11120 # flags to be left without arguments
11121 need_version=unknown
11122
11123 case $host_os in
11124 aix3*)
11125   version_type=linux
11126   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11127   shlibpath_var=LIBPATH
11128
11129   # AIX 3 has no versioning support, so we append a major version to the name.
11130   soname_spec='${libname}${release}${shared_ext}$major'
11131   ;;
11132
11133 aix4* | aix5*)
11134   version_type=linux
11135   need_lib_prefix=no
11136   need_version=no
11137   hardcode_into_libs=yes
11138   if test "$host_cpu" = ia64; then
11139     # AIX 5 supports IA64
11140     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11141     shlibpath_var=LD_LIBRARY_PATH
11142   else
11143     # With GCC up to 2.95.x, collect2 would create an import file
11144     # for dependence libraries.  The import file would start with
11145     # the line `#! .'.  This would cause the generated library to
11146     # depend on `.', always an invalid library.  This was fixed in
11147     # development snapshots of GCC prior to 3.0.
11148     case $host_os in
11149       aix4 | aix4.[01] | aix4.[01].*)
11150       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11151            echo ' yes '
11152            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11153         :
11154       else
11155         can_build_shared=no
11156       fi
11157       ;;
11158     esac
11159     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11160     # soname into executable. Probably we can add versioning support to
11161     # collect2, so additional links can be useful in future.
11162     if test "$aix_use_runtimelinking" = yes; then
11163       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11164       # instead of lib<name>.a to let people know that these are not
11165       # typical AIX shared libraries.
11166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167     else
11168       # We preserve .a as extension for shared libraries through AIX4.2
11169       # and later when we are not doing run time linking.
11170       library_names_spec='${libname}${release}.a $libname.a'
11171       soname_spec='${libname}${release}${shared_ext}$major'
11172     fi
11173     shlibpath_var=LIBPATH
11174   fi
11175   ;;
11176
11177 amigaos*)
11178   library_names_spec='$libname.ixlibrary $libname.a'
11179   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11180   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'
11181   ;;
11182
11183 beos*)
11184   library_names_spec='${libname}${shared_ext}'
11185   dynamic_linker="$host_os ld.so"
11186   shlibpath_var=LIBRARY_PATH
11187   ;;
11188
11189 bsdi[45]*)
11190   version_type=linux
11191   need_version=no
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193   soname_spec='${libname}${release}${shared_ext}$major'
11194   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11197   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11198   # the default ld.so.conf also contains /usr/contrib/lib and
11199   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11200   # libtool to hard-code these into programs
11201   ;;
11202
11203 cygwin* | mingw* | pw32*)
11204   version_type=windows
11205   shrext_cmds=".dll"
11206   need_version=no
11207   need_lib_prefix=no
11208
11209   case $GCC,$host_os in
11210   yes,cygwin* | yes,mingw* | yes,pw32*)
11211     library_names_spec='$libname.dll.a'
11212     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11213     postinstall_cmds='base_file=`basename \${file}`;
11214       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11215       dldir=$destdir/`dirname \$dlpath`;
11216       test -d \$dldir || mkdir -p \$dldir;
11217       $install_prog $dir/$dlname \$dldir/$dlname'
11218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11219       dlpath=$dir/\$dldll;
11220        $rm \$dlpath'
11221     shlibpath_overrides_runpath=yes
11222
11223     case $host_os in
11224     cygwin*)
11225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11226       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11228       ;;
11229     mingw*)
11230       # MinGW DLLs use traditional 'lib' prefix
11231       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11232       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11233       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11234         # It is most probably a Windows format PATH printed by
11235         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11236         # path with ; separators, and with drive letters. We can handle the
11237         # drive letters (cygwin fileutils understands them), so leave them,
11238         # especially as we might pass files found there to a mingw objdump,
11239         # which wouldn't understand a cygwinified path. Ahh.
11240         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11241       else
11242         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11243       fi
11244       ;;
11245     pw32*)
11246       # pw32 DLLs use 'pw' prefix rather than 'lib'
11247       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11248       ;;
11249     esac
11250     ;;
11251
11252   *)
11253     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11254     ;;
11255   esac
11256   dynamic_linker='Win32 ld.exe'
11257   # FIXME: first we should search . and the directory the executable is in
11258   shlibpath_var=PATH
11259   ;;
11260
11261 darwin* | rhapsody*)
11262   dynamic_linker="$host_os dyld"
11263   version_type=darwin
11264   need_lib_prefix=no
11265   need_version=no
11266   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11267   soname_spec='${libname}${release}${major}$shared_ext'
11268   shlibpath_overrides_runpath=yes
11269   shlibpath_var=DYLD_LIBRARY_PATH
11270   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11271   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11272   if test "$GCC" = yes; then
11273     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"`
11274   else
11275     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11276   fi
11277   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11278   ;;
11279
11280 dgux*)
11281   version_type=linux
11282   need_lib_prefix=no
11283   need_version=no
11284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11285   soname_spec='${libname}${release}${shared_ext}$major'
11286   shlibpath_var=LD_LIBRARY_PATH
11287   ;;
11288
11289 freebsd1*)
11290   dynamic_linker=no
11291   ;;
11292
11293 kfreebsd*-gnu)
11294   version_type=linux
11295   need_lib_prefix=no
11296   need_version=no
11297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11298   soname_spec='${libname}${release}${shared_ext}$major'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=no
11301   hardcode_into_libs=yes
11302   dynamic_linker='GNU ld.so'
11303   ;;
11304
11305 freebsd*)
11306   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11307   version_type=freebsd-$objformat
11308   case $version_type in
11309     freebsd-elf*)
11310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311       need_version=no
11312       need_lib_prefix=no
11313       ;;
11314     freebsd-*)
11315       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11316       need_version=yes
11317       ;;
11318   esac
11319   shlibpath_var=LD_LIBRARY_PATH
11320   case $host_os in
11321   freebsd2*)
11322     shlibpath_overrides_runpath=yes
11323     ;;
11324   freebsd3.01* | freebsdelf3.01*)
11325     shlibpath_overrides_runpath=yes
11326     hardcode_into_libs=yes
11327     ;;
11328   *) # from 3.2 on
11329     shlibpath_overrides_runpath=no
11330     hardcode_into_libs=yes
11331     ;;
11332   esac
11333   ;;
11334
11335 gnu*)
11336   version_type=linux
11337   need_lib_prefix=no
11338   need_version=no
11339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11340   soname_spec='${libname}${release}${shared_ext}$major'
11341   shlibpath_var=LD_LIBRARY_PATH
11342   hardcode_into_libs=yes
11343   ;;
11344
11345 hpux9* | hpux10* | hpux11*)
11346   # Give a soname corresponding to the major version so that dld.sl refuses to
11347   # link against other versions.
11348   version_type=sunos
11349   need_lib_prefix=no
11350   need_version=no
11351   case "$host_cpu" in
11352   ia64*)
11353     shrext_cmds='.so'
11354     hardcode_into_libs=yes
11355     dynamic_linker="$host_os dld.so"
11356     shlibpath_var=LD_LIBRARY_PATH
11357     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359     soname_spec='${libname}${release}${shared_ext}$major'
11360     if test "X$HPUX_IA64_MODE" = X32; then
11361       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11362     else
11363       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11364     fi
11365     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11366     ;;
11367    hppa*64*)
11368      shrext_cmds='.sl'
11369      hardcode_into_libs=yes
11370      dynamic_linker="$host_os dld.sl"
11371      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11372      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374      soname_spec='${libname}${release}${shared_ext}$major'
11375      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11376      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11377      ;;
11378    *)
11379     shrext_cmds='.sl'
11380     dynamic_linker="$host_os dld.sl"
11381     shlibpath_var=SHLIB_PATH
11382     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384     soname_spec='${libname}${release}${shared_ext}$major'
11385     ;;
11386   esac
11387   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11388   postinstall_cmds='chmod 555 $lib'
11389   ;;
11390
11391 irix5* | irix6* | nonstopux*)
11392   case $host_os in
11393     nonstopux*) version_type=nonstopux ;;
11394     *)
11395         if test "$lt_cv_prog_gnu_ld" = yes; then
11396                 version_type=linux
11397         else
11398                 version_type=irix
11399         fi ;;
11400   esac
11401   need_lib_prefix=no
11402   need_version=no
11403   soname_spec='${libname}${release}${shared_ext}$major'
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11405   case $host_os in
11406   irix5* | nonstopux*)
11407     libsuff= shlibsuff=
11408     ;;
11409   *)
11410     case $LD in # libtool.m4 will add one of these switches to LD
11411     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11412       libsuff= shlibsuff= libmagic=32-bit;;
11413     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11414       libsuff=32 shlibsuff=N32 libmagic=N32;;
11415     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11416       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11417     *) libsuff= shlibsuff= libmagic=never-match;;
11418     esac
11419     ;;
11420   esac
11421   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11422   shlibpath_overrides_runpath=no
11423   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11424   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11425   hardcode_into_libs=yes
11426   ;;
11427
11428 # No shared lib support for Linux oldld, aout, or coff.
11429 linux*oldld* | linux*aout* | linux*coff*)
11430   dynamic_linker=no
11431   ;;
11432
11433 # This must be Linux ELF.
11434 linux*)
11435   version_type=linux
11436   need_lib_prefix=no
11437   need_version=no
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439   soname_spec='${libname}${release}${shared_ext}$major'
11440   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=no
11443   # This implies no fast_install, which is unacceptable.
11444   # Some rework will be needed to allow for fast_install
11445   # before this can be enabled.
11446   hardcode_into_libs=yes
11447
11448   # Append ld.so.conf contents to the search path
11449   if test -f /etc/ld.so.conf; then
11450     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11451     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11452   fi
11453
11454   # We used to test for /lib/ld.so.1 and disable shared libraries on
11455   # powerpc, because MkLinux only supported shared libraries with the
11456   # GNU dynamic linker.  Since this was broken with cross compilers,
11457   # most powerpc-linux boxes support dynamic linking these days and
11458   # people can always --disable-shared, the test was removed, and we
11459   # assume the GNU/Linux dynamic linker is in use.
11460   dynamic_linker='GNU/Linux ld.so'
11461   ;;
11462
11463 knetbsd*-gnu)
11464   version_type=linux
11465   need_lib_prefix=no
11466   need_version=no
11467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11468   soname_spec='${libname}${release}${shared_ext}$major'
11469   shlibpath_var=LD_LIBRARY_PATH
11470   shlibpath_overrides_runpath=no
11471   hardcode_into_libs=yes
11472   dynamic_linker='GNU ld.so'
11473   ;;
11474
11475 netbsd*)
11476   version_type=sunos
11477   need_lib_prefix=no
11478   need_version=no
11479   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482     dynamic_linker='NetBSD (a.out) ld.so'
11483   else
11484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485     soname_spec='${libname}${release}${shared_ext}$major'
11486     dynamic_linker='NetBSD ld.elf_so'
11487   fi
11488   shlibpath_var=LD_LIBRARY_PATH
11489   shlibpath_overrides_runpath=yes
11490   hardcode_into_libs=yes
11491   ;;
11492
11493 newsos6)
11494   version_type=linux
11495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   shlibpath_overrides_runpath=yes
11498   ;;
11499
11500 nto-qnx*)
11501   version_type=linux
11502   need_lib_prefix=no
11503   need_version=no
11504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505   soname_spec='${libname}${release}${shared_ext}$major'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   shlibpath_overrides_runpath=yes
11508   ;;
11509
11510 openbsd*)
11511   version_type=sunos
11512   need_lib_prefix=no
11513   need_version=no
11514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11518     case $host_os in
11519       openbsd2.[89] | openbsd2.[89].*)
11520         shlibpath_overrides_runpath=no
11521         ;;
11522       *)
11523         shlibpath_overrides_runpath=yes
11524         ;;
11525       esac
11526   else
11527     shlibpath_overrides_runpath=yes
11528   fi
11529   ;;
11530
11531 os2*)
11532   libname_spec='$name'
11533   shrext_cmds=".dll"
11534   need_lib_prefix=no
11535   library_names_spec='$libname${shared_ext} $libname.a'
11536   dynamic_linker='OS/2 ld.exe'
11537   shlibpath_var=LIBPATH
11538   ;;
11539
11540 osf3* | osf4* | osf5*)
11541   version_type=osf
11542   need_lib_prefix=no
11543   need_version=no
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11548   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11549   ;;
11550
11551 sco3.2v5*)
11552   version_type=osf
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   ;;
11557
11558 solaris*)
11559   version_type=linux
11560   need_lib_prefix=no
11561   need_version=no
11562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563   soname_spec='${libname}${release}${shared_ext}$major'
11564   shlibpath_var=LD_LIBRARY_PATH
11565   shlibpath_overrides_runpath=yes
11566   hardcode_into_libs=yes
11567   # ldd complains unless libraries are executable
11568   postinstall_cmds='chmod +x $lib'
11569   ;;
11570
11571 sunos4*)
11572   version_type=sunos
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11574   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   shlibpath_overrides_runpath=yes
11577   if test "$with_gnu_ld" = yes; then
11578     need_lib_prefix=no
11579   fi
11580   need_version=yes
11581   ;;
11582
11583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11584   version_type=linux
11585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586   soname_spec='${libname}${release}${shared_ext}$major'
11587   shlibpath_var=LD_LIBRARY_PATH
11588   case $host_vendor in
11589     sni)
11590       shlibpath_overrides_runpath=no
11591       need_lib_prefix=no
11592       export_dynamic_flag_spec='${wl}-Blargedynsym'
11593       runpath_var=LD_RUN_PATH
11594       ;;
11595     siemens)
11596       need_lib_prefix=no
11597       ;;
11598     motorola)
11599       need_lib_prefix=no
11600       need_version=no
11601       shlibpath_overrides_runpath=no
11602       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11603       ;;
11604   esac
11605   ;;
11606
11607 sysv4*MP*)
11608   if test -d /usr/nec ;then
11609     version_type=linux
11610     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11611     soname_spec='$libname${shared_ext}.$major'
11612     shlibpath_var=LD_LIBRARY_PATH
11613   fi
11614   ;;
11615
11616 uts4*)
11617   version_type=linux
11618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619   soname_spec='${libname}${release}${shared_ext}$major'
11620   shlibpath_var=LD_LIBRARY_PATH
11621   ;;
11622
11623 *)
11624   dynamic_linker=no
11625   ;;
11626 esac
11627 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11628 echo "${ECHO_T}$dynamic_linker" >&6
11629 test "$dynamic_linker" = no && can_build_shared=no
11630
11631 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11632 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11633 hardcode_action_CXX=
11634 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11635    test -n "$runpath_var_CXX" || \
11636    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11637
11638   # We can hardcode non-existant directories.
11639   if test "$hardcode_direct_CXX" != no &&
11640      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11641      # have to relink, otherwise we might link with an installed library
11642      # when we should be linking with a yet-to-be-installed one
11643      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11644      test "$hardcode_minus_L_CXX" != no; then
11645     # Linking always hardcodes the temporary library directory.
11646     hardcode_action_CXX=relink
11647   else
11648     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11649     hardcode_action_CXX=immediate
11650   fi
11651 else
11652   # We cannot hardcode anything, or else we can only hardcode existing
11653   # directories.
11654   hardcode_action_CXX=unsupported
11655 fi
11656 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11657 echo "${ECHO_T}$hardcode_action_CXX" >&6
11658
11659 if test "$hardcode_action_CXX" = relink; then
11660   # Fast installation is not supported
11661   enable_fast_install=no
11662 elif test "$shlibpath_overrides_runpath" = yes ||
11663      test "$enable_shared" = no; then
11664   # Fast installation is not necessary
11665   enable_fast_install=needless
11666 fi
11667
11668 striplib=
11669 old_striplib=
11670 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11671 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11672 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11673   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11674   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11675   echo "$as_me:$LINENO: result: yes" >&5
11676 echo "${ECHO_T}yes" >&6
11677 else
11678 # FIXME - insert some real tests, host_os isn't really good enough
11679   case $host_os in
11680    darwin*)
11681        if test -n "$STRIP" ; then
11682          striplib="$STRIP -x"
11683          echo "$as_me:$LINENO: result: yes" >&5
11684 echo "${ECHO_T}yes" >&6
11685        else
11686   echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11688 fi
11689        ;;
11690    *)
11691   echo "$as_me:$LINENO: result: no" >&5
11692 echo "${ECHO_T}no" >&6
11693     ;;
11694   esac
11695 fi
11696
11697 if test "x$enable_dlopen" != xyes; then
11698   enable_dlopen=unknown
11699   enable_dlopen_self=unknown
11700   enable_dlopen_self_static=unknown
11701 else
11702   lt_cv_dlopen=no
11703   lt_cv_dlopen_libs=
11704
11705   case $host_os in
11706   beos*)
11707     lt_cv_dlopen="load_add_on"
11708     lt_cv_dlopen_libs=
11709     lt_cv_dlopen_self=yes
11710     ;;
11711
11712   mingw* | pw32*)
11713     lt_cv_dlopen="LoadLibrary"
11714     lt_cv_dlopen_libs=
11715    ;;
11716
11717   cygwin*)
11718     lt_cv_dlopen="dlopen"
11719     lt_cv_dlopen_libs=
11720    ;;
11721
11722   darwin*)
11723   # if libdl is installed we need to link against it
11724     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-ldl  $LIBS"
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h.  */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h.  */
11737
11738 /* Override any gcc2 internal prototype to avoid an error.  */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 /* We use char because int might match the return type of a gcc2
11743    builtin and then its argument prototype would still apply.  */
11744 char dlopen ();
11745 int
11746 main ()
11747 {
11748 dlopen ();
11749   ;
11750   return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755   (eval $ac_link) 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -z "$ac_cxx_werror_flag"
11763                          || test ! -s conftest.err'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest$ac_exeext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   ac_cv_lib_dl_dlopen=yes
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780 ac_cv_lib_dl_dlopen=no
11781 fi
11782 rm -f conftest.err conftest.$ac_objext \
11783       conftest$ac_exeext conftest.$ac_ext
11784 LIBS=$ac_check_lib_save_LIBS
11785 fi
11786 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11788 if test $ac_cv_lib_dl_dlopen = yes; then
11789   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11790 else
11791
11792     lt_cv_dlopen="dyld"
11793     lt_cv_dlopen_libs=
11794     lt_cv_dlopen_self=yes
11795
11796 fi
11797
11798    ;;
11799
11800   *)
11801     echo "$as_me:$LINENO: checking for shl_load" >&5
11802 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11803 if test "${ac_cv_func_shl_load+set}" = set; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h.  */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h.  */
11812 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11814 #define shl_load innocuous_shl_load
11815
11816 /* System header to define __stub macros and hopefully few prototypes,
11817     which can conflict with char shl_load (); below.
11818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819     <limits.h> exists even on freestanding compilers.  */
11820
11821 #ifdef __STDC__
11822 # include <limits.h>
11823 #else
11824 # include <assert.h>
11825 #endif
11826
11827 #undef shl_load
11828
11829 /* Override any gcc2 internal prototype to avoid an error.  */
11830 #ifdef __cplusplus
11831 extern "C"
11832 {
11833 #endif
11834 /* We use char because int might match the return type of a gcc2
11835    builtin and then its argument prototype would still apply.  */
11836 char shl_load ();
11837 /* The GNU C library defines this for functions which it implements
11838     to always fail with ENOSYS.  Some functions are actually named
11839     something starting with __ and the normal name is an alias.  */
11840 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11841 choke me
11842 #else
11843 char (*f) () = shl_load;
11844 #endif
11845 #ifdef __cplusplus
11846 }
11847 #endif
11848
11849 int
11850 main ()
11851 {
11852 return f != shl_load;
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 rm -f conftest.$ac_objext conftest$ac_exeext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11859   (eval $ac_link) 2>conftest.er1
11860   ac_status=$?
11861   grep -v '^ *+' conftest.er1 >conftest.err
11862   rm -f conftest.er1
11863   cat conftest.err >&5
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); } &&
11866          { ac_try='test -z "$ac_cxx_werror_flag"
11867                          || test ! -s conftest.err'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; } &&
11873          { ac_try='test -s conftest$ac_exeext'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   ac_cv_func_shl_load=yes
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 ac_cv_func_shl_load=no
11885 fi
11886 rm -f conftest.err conftest.$ac_objext \
11887       conftest$ac_exeext conftest.$ac_ext
11888 fi
11889 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11890 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11891 if test $ac_cv_func_shl_load = yes; then
11892   lt_cv_dlopen="shl_load"
11893 else
11894   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11895 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11896 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-ldld  $LIBS"
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907
11908 /* Override any gcc2 internal prototype to avoid an error.  */
11909 #ifdef __cplusplus
11910 extern "C"
11911 #endif
11912 /* We use char because int might match the return type of a gcc2
11913    builtin and then its argument prototype would still apply.  */
11914 char shl_load ();
11915 int
11916 main ()
11917 {
11918 shl_load ();
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925   (eval $ac_link) 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_cxx_werror_flag"
11933                          || test ! -s conftest.err'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; } &&
11939          { ac_try='test -s conftest$ac_exeext'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   ac_cv_lib_dld_shl_load=yes
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950 ac_cv_lib_dld_shl_load=no
11951 fi
11952 rm -f conftest.err conftest.$ac_objext \
11953       conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11955 fi
11956 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11957 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11958 if test $ac_cv_lib_dld_shl_load = yes; then
11959   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11960 else
11961   echo "$as_me:$LINENO: checking for dlopen" >&5
11962 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11963 if test "${ac_cv_func_dlopen+set}" = set; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11974 #define dlopen innocuous_dlopen
11975
11976 /* System header to define __stub macros and hopefully few prototypes,
11977     which can conflict with char dlopen (); below.
11978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979     <limits.h> exists even on freestanding compilers.  */
11980
11981 #ifdef __STDC__
11982 # include <limits.h>
11983 #else
11984 # include <assert.h>
11985 #endif
11986
11987 #undef dlopen
11988
11989 /* Override any gcc2 internal prototype to avoid an error.  */
11990 #ifdef __cplusplus
11991 extern "C"
11992 {
11993 #endif
11994 /* We use char because int might match the return type of a gcc2
11995    builtin and then its argument prototype would still apply.  */
11996 char dlopen ();
11997 /* The GNU C library defines this for functions which it implements
11998     to always fail with ENOSYS.  Some functions are actually named
11999     something starting with __ and the normal name is an alias.  */
12000 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12001 choke me
12002 #else
12003 char (*f) () = dlopen;
12004 #endif
12005 #ifdef __cplusplus
12006 }
12007 #endif
12008
12009 int
12010 main ()
12011 {
12012 return f != dlopen;
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019   (eval $ac_link) 2>conftest.er1
12020   ac_status=$?
12021   grep -v '^ *+' conftest.er1 >conftest.err
12022   rm -f conftest.er1
12023   cat conftest.err >&5
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -z "$ac_cxx_werror_flag"
12027                          || test ! -s conftest.err'
12028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029   (eval $ac_try) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; } &&
12033          { ac_try='test -s conftest$ac_exeext'
12034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035   (eval $ac_try) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   ac_cv_func_dlopen=yes
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_cv_func_dlopen=no
12045 fi
12046 rm -f conftest.err conftest.$ac_objext \
12047       conftest$ac_exeext conftest.$ac_ext
12048 fi
12049 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12050 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12051 if test $ac_cv_func_dlopen = yes; then
12052   lt_cv_dlopen="dlopen"
12053 else
12054   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12057   echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059   ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-ldl  $LIBS"
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067
12068 /* Override any gcc2 internal prototype to avoid an error.  */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 /* We use char because int might match the return type of a gcc2
12073    builtin and then its argument prototype would still apply.  */
12074 char dlopen ();
12075 int
12076 main ()
12077 {
12078 dlopen ();
12079   ;
12080   return 0;
12081 }
12082 _ACEOF
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085   (eval $ac_link) 2>conftest.er1
12086   ac_status=$?
12087   grep -v '^ *+' conftest.er1 >conftest.err
12088   rm -f conftest.er1
12089   cat conftest.err >&5
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } &&
12092          { ac_try='test -z "$ac_cxx_werror_flag"
12093                          || test ! -s conftest.err'
12094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095   (eval $ac_try) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; } &&
12099          { ac_try='test -s conftest$ac_exeext'
12100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101   (eval $ac_try) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; }; then
12105   ac_cv_lib_dl_dlopen=yes
12106 else
12107   echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 ac_cv_lib_dl_dlopen=no
12111 fi
12112 rm -f conftest.err conftest.$ac_objext \
12113       conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12115 fi
12116 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12117 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12118 if test $ac_cv_lib_dl_dlopen = yes; then
12119   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12120 else
12121   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12122 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12124   echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126   ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-lsvld  $LIBS"
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134
12135 /* Override any gcc2 internal prototype to avoid an error.  */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 /* We use char because int might match the return type of a gcc2
12140    builtin and then its argument prototype would still apply.  */
12141 char dlopen ();
12142 int
12143 main ()
12144 {
12145 dlopen ();
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152   (eval $ac_link) 2>conftest.er1
12153   ac_status=$?
12154   grep -v '^ *+' conftest.er1 >conftest.err
12155   rm -f conftest.er1
12156   cat conftest.err >&5
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); } &&
12159          { ac_try='test -z "$ac_cxx_werror_flag"
12160                          || test ! -s conftest.err'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; } &&
12166          { ac_try='test -s conftest$ac_exeext'
12167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168   (eval $ac_try) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; }; then
12172   ac_cv_lib_svld_dlopen=yes
12173 else
12174   echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177 ac_cv_lib_svld_dlopen=no
12178 fi
12179 rm -f conftest.err conftest.$ac_objext \
12180       conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12182 fi
12183 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12184 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12185 if test $ac_cv_lib_svld_dlopen = yes; then
12186   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12187 else
12188   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12189 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12190 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-ldld  $LIBS"
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201
12202 /* Override any gcc2 internal prototype to avoid an error.  */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 /* We use char because int might match the return type of a gcc2
12207    builtin and then its argument prototype would still apply.  */
12208 char dld_link ();
12209 int
12210 main ()
12211 {
12212 dld_link ();
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -z "$ac_cxx_werror_flag"
12227                          || test ! -s conftest.err'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; } &&
12233          { ac_try='test -s conftest$ac_exeext'
12234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235   (eval $ac_try) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   ac_cv_lib_dld_dld_link=yes
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_cv_lib_dld_dld_link=no
12245 fi
12246 rm -f conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12251 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12252 if test $ac_cv_lib_dld_dld_link = yes; then
12253   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12254 fi
12255
12256
12257 fi
12258
12259
12260 fi
12261
12262
12263 fi
12264
12265
12266 fi
12267
12268
12269 fi
12270
12271     ;;
12272   esac
12273
12274   if test "x$lt_cv_dlopen" != xno; then
12275     enable_dlopen=yes
12276   else
12277     enable_dlopen=no
12278   fi
12279
12280   case $lt_cv_dlopen in
12281   dlopen)
12282     save_CPPFLAGS="$CPPFLAGS"
12283     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12284
12285     save_LDFLAGS="$LDFLAGS"
12286     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12287
12288     save_LIBS="$LIBS"
12289     LIBS="$lt_cv_dlopen_libs $LIBS"
12290
12291     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12292 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12293 if test "${lt_cv_dlopen_self+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296           if test "$cross_compiling" = yes; then :
12297   lt_cv_dlopen_self=cross
12298 else
12299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300   lt_status=$lt_dlunknown
12301   cat > conftest.$ac_ext <<EOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12304
12305 #if HAVE_DLFCN_H
12306 #include <dlfcn.h>
12307 #endif
12308
12309 #include <stdio.h>
12310
12311 #ifdef RTLD_GLOBAL
12312 #  define LT_DLGLOBAL           RTLD_GLOBAL
12313 #else
12314 #  ifdef DL_GLOBAL
12315 #    define LT_DLGLOBAL         DL_GLOBAL
12316 #  else
12317 #    define LT_DLGLOBAL         0
12318 #  endif
12319 #endif
12320
12321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322    find out it does not work in some platform. */
12323 #ifndef LT_DLLAZY_OR_NOW
12324 #  ifdef RTLD_LAZY
12325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12326 #  else
12327 #    ifdef DL_LAZY
12328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12329 #    else
12330 #      ifdef RTLD_NOW
12331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12332 #      else
12333 #        ifdef DL_NOW
12334 #          define LT_DLLAZY_OR_NOW      DL_NOW
12335 #        else
12336 #          define LT_DLLAZY_OR_NOW      0
12337 #        endif
12338 #      endif
12339 #    endif
12340 #  endif
12341 #endif
12342
12343 #ifdef __cplusplus
12344 extern "C" void exit (int);
12345 #endif
12346
12347 void fnord() { int i=42;}
12348 int main ()
12349 {
12350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351   int status = $lt_dlunknown;
12352
12353   if (self)
12354     {
12355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357       /* dlclose (self); */
12358     }
12359
12360     exit (status);
12361 }
12362 EOF
12363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364   (eval $ac_link) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12368     (./conftest; exit; ) 2>/dev/null
12369     lt_status=$?
12370     case x$lt_status in
12371       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12372       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12373       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12374     esac
12375   else :
12376     # compilation failed
12377     lt_cv_dlopen_self=no
12378   fi
12379 fi
12380 rm -fr conftest*
12381
12382
12383 fi
12384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12385 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12386
12387     if test "x$lt_cv_dlopen_self" = xyes; then
12388       LDFLAGS="$LDFLAGS $link_static_flag"
12389       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12390 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12391 if test "${lt_cv_dlopen_self_static+set}" = set; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394           if test "$cross_compiling" = yes; then :
12395   lt_cv_dlopen_self_static=cross
12396 else
12397   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12398   lt_status=$lt_dlunknown
12399   cat > conftest.$ac_ext <<EOF
12400 #line 12400 "configure"
12401 #include "confdefs.h"
12402
12403 #if HAVE_DLFCN_H
12404 #include <dlfcn.h>
12405 #endif
12406
12407 #include <stdio.h>
12408
12409 #ifdef RTLD_GLOBAL
12410 #  define LT_DLGLOBAL           RTLD_GLOBAL
12411 #else
12412 #  ifdef DL_GLOBAL
12413 #    define LT_DLGLOBAL         DL_GLOBAL
12414 #  else
12415 #    define LT_DLGLOBAL         0
12416 #  endif
12417 #endif
12418
12419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12420    find out it does not work in some platform. */
12421 #ifndef LT_DLLAZY_OR_NOW
12422 #  ifdef RTLD_LAZY
12423 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12424 #  else
12425 #    ifdef DL_LAZY
12426 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12427 #    else
12428 #      ifdef RTLD_NOW
12429 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12430 #      else
12431 #        ifdef DL_NOW
12432 #          define LT_DLLAZY_OR_NOW      DL_NOW
12433 #        else
12434 #          define LT_DLLAZY_OR_NOW      0
12435 #        endif
12436 #      endif
12437 #    endif
12438 #  endif
12439 #endif
12440
12441 #ifdef __cplusplus
12442 extern "C" void exit (int);
12443 #endif
12444
12445 void fnord() { int i=42;}
12446 int main ()
12447 {
12448   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449   int status = $lt_dlunknown;
12450
12451   if (self)
12452     {
12453       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12454       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455       /* dlclose (self); */
12456     }
12457
12458     exit (status);
12459 }
12460 EOF
12461   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462   (eval $ac_link) 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12466     (./conftest; exit; ) 2>/dev/null
12467     lt_status=$?
12468     case x$lt_status in
12469       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12470       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12471       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12472     esac
12473   else :
12474     # compilation failed
12475     lt_cv_dlopen_self_static=no
12476   fi
12477 fi
12478 rm -fr conftest*
12479
12480
12481 fi
12482 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12483 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12484     fi
12485
12486     CPPFLAGS="$save_CPPFLAGS"
12487     LDFLAGS="$save_LDFLAGS"
12488     LIBS="$save_LIBS"
12489     ;;
12490   esac
12491
12492   case $lt_cv_dlopen_self in
12493   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12494   *) enable_dlopen_self=unknown ;;
12495   esac
12496
12497   case $lt_cv_dlopen_self_static in
12498   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12499   *) enable_dlopen_self_static=unknown ;;
12500   esac
12501 fi
12502
12503
12504 # The else clause should only fire when bootstrapping the
12505 # libtool distribution, otherwise you forgot to ship ltmain.sh
12506 # with your package, and you will get complaints that there are
12507 # no rules to generate ltmain.sh.
12508 if test -f "$ltmain"; then
12509   # See if we are running on zsh, and set the options which allow our commands through
12510   # without removal of \ escapes.
12511   if test -n "${ZSH_VERSION+set}" ; then
12512     setopt NO_GLOB_SUBST
12513   fi
12514   # Now quote all the things that may contain metacharacters while being
12515   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12516   # variables and quote the copies for generation of the libtool script.
12517   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12518     SED SHELL STRIP \
12519     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521     deplibs_check_method reload_flag reload_cmds need_locks \
12522     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523     lt_cv_sys_global_symbol_to_c_name_address \
12524     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525     old_postinstall_cmds old_postuninstall_cmds \
12526     compiler_CXX \
12527     CC_CXX \
12528     LD_CXX \
12529     lt_prog_compiler_wl_CXX \
12530     lt_prog_compiler_pic_CXX \
12531     lt_prog_compiler_static_CXX \
12532     lt_prog_compiler_no_builtin_flag_CXX \
12533     export_dynamic_flag_spec_CXX \
12534     thread_safe_flag_spec_CXX \
12535     whole_archive_flag_spec_CXX \
12536     enable_shared_with_static_runtimes_CXX \
12537     old_archive_cmds_CXX \
12538     old_archive_from_new_cmds_CXX \
12539     predep_objects_CXX \
12540     postdep_objects_CXX \
12541     predeps_CXX \
12542     postdeps_CXX \
12543     compiler_lib_search_path_CXX \
12544     archive_cmds_CXX \
12545     archive_expsym_cmds_CXX \
12546     postinstall_cmds_CXX \
12547     postuninstall_cmds_CXX \
12548     old_archive_from_expsyms_cmds_CXX \
12549     allow_undefined_flag_CXX \
12550     no_undefined_flag_CXX \
12551     export_symbols_cmds_CXX \
12552     hardcode_libdir_flag_spec_CXX \
12553     hardcode_libdir_flag_spec_ld_CXX \
12554     hardcode_libdir_separator_CXX \
12555     hardcode_automatic_CXX \
12556     module_cmds_CXX \
12557     module_expsym_cmds_CXX \
12558     lt_cv_prog_compiler_c_o_CXX \
12559     exclude_expsyms_CXX \
12560     include_expsyms_CXX; do
12561
12562     case $var in
12563     old_archive_cmds_CXX | \
12564     old_archive_from_new_cmds_CXX | \
12565     archive_cmds_CXX | \
12566     archive_expsym_cmds_CXX | \
12567     module_cmds_CXX | \
12568     module_expsym_cmds_CXX | \
12569     old_archive_from_expsyms_cmds_CXX | \
12570     export_symbols_cmds_CXX | \
12571     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12572     postinstall_cmds | postuninstall_cmds | \
12573     old_postinstall_cmds | old_postuninstall_cmds | \
12574     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12575       # Double-quote double-evaled strings.
12576       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12577       ;;
12578     *)
12579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12580       ;;
12581     esac
12582   done
12583
12584   case $lt_echo in
12585   *'\$0 --fallback-echo"')
12586     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12587     ;;
12588   esac
12589
12590 cfgfile="$ofile"
12591
12592   cat <<__EOF__ >> "$cfgfile"
12593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12594
12595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12596
12597 # Shell to use when invoking shell scripts.
12598 SHELL=$lt_SHELL
12599
12600 # Whether or not to build shared libraries.
12601 build_libtool_libs=$enable_shared
12602
12603 # Whether or not to build static libraries.
12604 build_old_libs=$enable_static
12605
12606 # Whether or not to add -lc for building shared libraries.
12607 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12608
12609 # Whether or not to disallow shared libs when runtime libs are static
12610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12611
12612 # Whether or not to optimize for fast installation.
12613 fast_install=$enable_fast_install
12614
12615 # The host system.
12616 host_alias=$host_alias
12617 host=$host
12618
12619 # An echo program that does not interpret backslashes.
12620 echo=$lt_echo
12621
12622 # The archiver.
12623 AR=$lt_AR
12624 AR_FLAGS=$lt_AR_FLAGS
12625
12626 # A C compiler.
12627 LTCC=$lt_LTCC
12628
12629 # A language-specific compiler.
12630 CC=$lt_compiler_CXX
12631
12632 # Is the compiler the GNU C compiler?
12633 with_gcc=$GCC_CXX
12634
12635 # An ERE matcher.
12636 EGREP=$lt_EGREP
12637
12638 # The linker used to build libraries.
12639 LD=$lt_LD_CXX
12640
12641 # Whether we need hard or soft links.
12642 LN_S=$lt_LN_S
12643
12644 # A BSD-compatible nm program.
12645 NM=$lt_NM
12646
12647 # A symbol stripping program
12648 STRIP=$lt_STRIP
12649
12650 # Used to examine libraries when file_magic_cmd begins "file"
12651 MAGIC_CMD=$MAGIC_CMD
12652
12653 # Used on cygwin: DLL creation program.
12654 DLLTOOL="$DLLTOOL"
12655
12656 # Used on cygwin: object dumper.
12657 OBJDUMP="$OBJDUMP"
12658
12659 # Used on cygwin: assembler.
12660 AS="$AS"
12661
12662 # The name of the directory that contains temporary libtool files.
12663 objdir=$objdir
12664
12665 # How to create reloadable object files.
12666 reload_flag=$lt_reload_flag
12667 reload_cmds=$lt_reload_cmds
12668
12669 # How to pass a linker flag through the compiler.
12670 wl=$lt_lt_prog_compiler_wl_CXX
12671
12672 # Object file suffix (normally "o").
12673 objext="$ac_objext"
12674
12675 # Old archive suffix (normally "a").
12676 libext="$libext"
12677
12678 # Shared library suffix (normally ".so").
12679 shrext_cmds='$shrext_cmds'
12680
12681 # Executable file suffix (normally "").
12682 exeext="$exeext"
12683
12684 # Additional compiler flags for building library objects.
12685 pic_flag=$lt_lt_prog_compiler_pic_CXX
12686 pic_mode=$pic_mode
12687
12688 # What is the maximum length of a command?
12689 max_cmd_len=$lt_cv_sys_max_cmd_len
12690
12691 # Does compiler simultaneously support -c and -o options?
12692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12693
12694 # Must we lock files when doing compilation ?
12695 need_locks=$lt_need_locks
12696
12697 # Do we need the lib prefix for modules?
12698 need_lib_prefix=$need_lib_prefix
12699
12700 # Do we need a version for libraries?
12701 need_version=$need_version
12702
12703 # Whether dlopen is supported.
12704 dlopen_support=$enable_dlopen
12705
12706 # Whether dlopen of programs is supported.
12707 dlopen_self=$enable_dlopen_self
12708
12709 # Whether dlopen of statically linked programs is supported.
12710 dlopen_self_static=$enable_dlopen_self_static
12711
12712 # Compiler flag to prevent dynamic linking.
12713 link_static_flag=$lt_lt_prog_compiler_static_CXX
12714
12715 # Compiler flag to turn off builtin functions.
12716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12717
12718 # Compiler flag to allow reflexive dlopens.
12719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12720
12721 # Compiler flag to generate shared objects directly from archives.
12722 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12723
12724 # Compiler flag to generate thread-safe objects.
12725 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12726
12727 # Library versioning type.
12728 version_type=$version_type
12729
12730 # Format of library name prefix.
12731 libname_spec=$lt_libname_spec
12732
12733 # List of archive names.  First name is the real one, the rest are links.
12734 # The last name is the one that the linker finds with -lNAME.
12735 library_names_spec=$lt_library_names_spec
12736
12737 # The coded name of the library, if different from the real name.
12738 soname_spec=$lt_soname_spec
12739
12740 # Commands used to build and install an old-style archive.
12741 RANLIB=$lt_RANLIB
12742 old_archive_cmds=$lt_old_archive_cmds_CXX
12743 old_postinstall_cmds=$lt_old_postinstall_cmds
12744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12745
12746 # Create an old-style archive from a shared archive.
12747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12748
12749 # Create a temporary old-style archive to link instead of a shared archive.
12750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12751
12752 # Commands used to build and install a shared archive.
12753 archive_cmds=$lt_archive_cmds_CXX
12754 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12755 postinstall_cmds=$lt_postinstall_cmds
12756 postuninstall_cmds=$lt_postuninstall_cmds
12757
12758 # Commands used to build a loadable module (assumed same as above if empty)
12759 module_cmds=$lt_module_cmds_CXX
12760 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12761
12762 # Commands to strip libraries.
12763 old_striplib=$lt_old_striplib
12764 striplib=$lt_striplib
12765
12766 # Dependencies to place before the objects being linked to create a
12767 # shared library.
12768 predep_objects=$lt_predep_objects_CXX
12769
12770 # Dependencies to place after the objects being linked to create a
12771 # shared library.
12772 postdep_objects=$lt_postdep_objects_CXX
12773
12774 # Dependencies to place before the objects being linked to create a
12775 # shared library.
12776 predeps=$lt_predeps_CXX
12777
12778 # Dependencies to place after the objects being linked to create a
12779 # shared library.
12780 postdeps=$lt_postdeps_CXX
12781
12782 # The library search path used internally by the compiler when linking
12783 # a shared library.
12784 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12785
12786 # Method to check whether dependent libraries are shared objects.
12787 deplibs_check_method=$lt_deplibs_check_method
12788
12789 # Command to use when deplibs_check_method == file_magic.
12790 file_magic_cmd=$lt_file_magic_cmd
12791
12792 # Flag that allows shared libraries with undefined symbols to be built.
12793 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12794
12795 # Flag that forces no undefined symbols.
12796 no_undefined_flag=$lt_no_undefined_flag_CXX
12797
12798 # Commands used to finish a libtool library installation in a directory.
12799 finish_cmds=$lt_finish_cmds
12800
12801 # Same as above, but a single script fragment to be evaled but not shown.
12802 finish_eval=$lt_finish_eval
12803
12804 # Take the output of nm and produce a listing of raw symbols and C names.
12805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12806
12807 # Transform the output of nm in a proper C declaration
12808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12809
12810 # Transform the output of nm in a C name address pair
12811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12812
12813 # This is the shared library runtime path variable.
12814 runpath_var=$runpath_var
12815
12816 # This is the shared library path variable.
12817 shlibpath_var=$shlibpath_var
12818
12819 # Is shlibpath searched before the hard-coded library search path?
12820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12821
12822 # How to hardcode a shared library path into an executable.
12823 hardcode_action=$hardcode_action_CXX
12824
12825 # Whether we should hardcode library paths into libraries.
12826 hardcode_into_libs=$hardcode_into_libs
12827
12828 # Flag to hardcode \$libdir into a binary during linking.
12829 # This must work even if \$libdir does not exist.
12830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12831
12832 # If ld is used when linking, flag to hardcode \$libdir into
12833 # a binary during linking. This must work even if \$libdir does
12834 # not exist.
12835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12836
12837 # Whether we need a single -rpath flag with a separated argument.
12838 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12839
12840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12841 # resulting binary.
12842 hardcode_direct=$hardcode_direct_CXX
12843
12844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12845 # resulting binary.
12846 hardcode_minus_L=$hardcode_minus_L_CXX
12847
12848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12849 # the resulting binary.
12850 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12851
12852 # Set to yes if building a shared library automatically hardcodes DIR into the library
12853 # and all subsequent libraries and executables linked against it.
12854 hardcode_automatic=$hardcode_automatic_CXX
12855
12856 # Variables whose values should be saved in libtool wrapper scripts and
12857 # restored at relink time.
12858 variables_saved_for_relink="$variables_saved_for_relink"
12859
12860 # Whether libtool must link a program against all its dependency libraries.
12861 link_all_deplibs=$link_all_deplibs_CXX
12862
12863 # Compile-time system search path for libraries
12864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12865
12866 # Run-time system search path for libraries
12867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12868
12869 # Fix the shell variable \$srcfile for the compiler.
12870 fix_srcfile_path="$fix_srcfile_path_CXX"
12871
12872 # Set to yes if exported symbols are required.
12873 always_export_symbols=$always_export_symbols_CXX
12874
12875 # The commands to list exported symbols.
12876 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12877
12878 # The commands to extract the exported symbol list from a shared archive.
12879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12880
12881 # Symbols that should not be listed in the preloaded symbols.
12882 exclude_expsyms=$lt_exclude_expsyms_CXX
12883
12884 # Symbols that must always be exported.
12885 include_expsyms=$lt_include_expsyms_CXX
12886
12887 # ### END LIBTOOL TAG CONFIG: $tagname
12888
12889 __EOF__
12890
12891
12892 else
12893   # If there is no Makefile yet, we rely on a make rule to execute
12894   # `config.status --recheck' to rerun these tests and create the
12895   # libtool script then.
12896   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12897   if test -f "$ltmain_in"; then
12898     test -f Makefile && make "$ltmain"
12899   fi
12900 fi
12901
12902
12903 ac_ext=c
12904 ac_cpp='$CPP $CPPFLAGS'
12905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908
12909 CC=$lt_save_CC
12910 LDCXX=$LD
12911 LD=$lt_save_LD
12912 GCC=$lt_save_GCC
12913 with_gnu_ldcxx=$with_gnu_ld
12914 with_gnu_ld=$lt_save_with_gnu_ld
12915 lt_cv_path_LDCXX=$lt_cv_path_LD
12916 lt_cv_path_LD=$lt_save_path_LD
12917 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12918 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12919
12920         else
12921           tagname=""
12922         fi
12923         ;;
12924
12925       F77)
12926         if test -n "$F77" && test "X$F77" != "Xno"; then
12927
12928 ac_ext=f
12929 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12930 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12932
12933
12934 archive_cmds_need_lc_F77=no
12935 allow_undefined_flag_F77=
12936 always_export_symbols_F77=no
12937 archive_expsym_cmds_F77=
12938 export_dynamic_flag_spec_F77=
12939 hardcode_direct_F77=no
12940 hardcode_libdir_flag_spec_F77=
12941 hardcode_libdir_flag_spec_ld_F77=
12942 hardcode_libdir_separator_F77=
12943 hardcode_minus_L_F77=no
12944 hardcode_automatic_F77=no
12945 module_cmds_F77=
12946 module_expsym_cmds_F77=
12947 link_all_deplibs_F77=unknown
12948 old_archive_cmds_F77=$old_archive_cmds
12949 no_undefined_flag_F77=
12950 whole_archive_flag_spec_F77=
12951 enable_shared_with_static_runtimes_F77=no
12952
12953 # Source file extension for f77 test sources.
12954 ac_ext=f
12955
12956 # Object file extension for compiled f77 test sources.
12957 objext=o
12958 objext_F77=$objext
12959
12960 # Code to be used in simple compile tests
12961 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12962
12963 # Code to be used in simple link tests
12964 lt_simple_link_test_code="      program t\n      end\n"
12965
12966 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12967
12968 # If no C compiler was specified, use CC.
12969 LTCC=${LTCC-"$CC"}
12970
12971 # Allow CC to be a program name with arguments.
12972 compiler=$CC
12973
12974
12975 # Allow CC to be a program name with arguments.
12976 lt_save_CC="$CC"
12977 CC=${F77-"f77"}
12978 compiler=$CC
12979 compiler_F77=$CC
12980 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12981
12982 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12983 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12984 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12985 echo "${ECHO_T}$can_build_shared" >&6
12986
12987 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12988 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12989 test "$can_build_shared" = "no" && enable_shared=no
12990
12991 # On AIX, shared libraries and static libraries use the same namespace, and
12992 # are all built from PIC.
12993 case "$host_os" in
12994 aix3*)
12995   test "$enable_shared" = yes && enable_static=no
12996   if test -n "$RANLIB"; then
12997     archive_cmds="$archive_cmds;\$RANLIB \$lib"
12998     postinstall_cmds='$RANLIB $lib'
12999   fi
13000   ;;
13001 aix4* | aix5*)
13002   test "$enable_shared" = yes && enable_static=no
13003   ;;
13004 esac
13005 echo "$as_me:$LINENO: result: $enable_shared" >&5
13006 echo "${ECHO_T}$enable_shared" >&6
13007
13008 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13009 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13010 # Make sure either enable_shared or enable_static is yes.
13011 test "$enable_shared" = yes || enable_static=yes
13012 echo "$as_me:$LINENO: result: $enable_static" >&5
13013 echo "${ECHO_T}$enable_static" >&6
13014
13015 test "$ld_shlibs_F77" = no && can_build_shared=no
13016
13017 GCC_F77="$G77"
13018 LD_F77="$LD"
13019
13020 lt_prog_compiler_wl_F77=
13021 lt_prog_compiler_pic_F77=
13022 lt_prog_compiler_static_F77=
13023
13024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13026
13027   if test "$GCC" = yes; then
13028     lt_prog_compiler_wl_F77='-Wl,'
13029     lt_prog_compiler_static_F77='-static'
13030
13031     case $host_os in
13032       aix*)
13033       # All AIX code is PIC.
13034       if test "$host_cpu" = ia64; then
13035         # AIX 5 now supports IA64 processor
13036         lt_prog_compiler_static_F77='-Bstatic'
13037       fi
13038       ;;
13039
13040     amigaos*)
13041       # FIXME: we need at least 68020 code to build shared libraries, but
13042       # adding the `-m68020' flag to GCC prevents building anything better,
13043       # like `-m68040'.
13044       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13045       ;;
13046
13047     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13048       # PIC is the default for these OSes.
13049       ;;
13050
13051     mingw* | pw32* | os2*)
13052       # This hack is so that the source file can tell whether it is being
13053       # built for inclusion in a dll (and should export symbols for example).
13054       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13055       ;;
13056
13057     darwin* | rhapsody*)
13058       # PIC is the default on this platform
13059       # Common symbols not allowed in MH_DYLIB files
13060       lt_prog_compiler_pic_F77='-fno-common'
13061       ;;
13062
13063     msdosdjgpp*)
13064       # Just because we use GCC doesn't mean we suddenly get shared libraries
13065       # on systems that don't support them.
13066       lt_prog_compiler_can_build_shared_F77=no
13067       enable_shared=no
13068       ;;
13069
13070     sysv4*MP*)
13071       if test -d /usr/nec; then
13072         lt_prog_compiler_pic_F77=-Kconform_pic
13073       fi
13074       ;;
13075
13076     hpux*)
13077       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13078       # not for PA HP-UX.
13079       case "$host_cpu" in
13080       hppa*64*|ia64*)
13081         # +Z the default
13082         ;;
13083       *)
13084         lt_prog_compiler_pic_F77='-fPIC'
13085         ;;
13086       esac
13087       ;;
13088
13089     *)
13090       lt_prog_compiler_pic_F77='-fPIC'
13091       ;;
13092     esac
13093   else
13094     # PORTME Check for flag to pass linker flags through the system compiler.
13095     case $host_os in
13096     aix*)
13097       lt_prog_compiler_wl_F77='-Wl,'
13098       if test "$host_cpu" = ia64; then
13099         # AIX 5 now supports IA64 processor
13100         lt_prog_compiler_static_F77='-Bstatic'
13101       else
13102         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13103       fi
13104       ;;
13105       darwin*)
13106         # PIC is the default on this platform
13107         # Common symbols not allowed in MH_DYLIB files
13108        case "$cc_basename" in
13109          xlc*)
13110          lt_prog_compiler_pic_F77='-qnocommon'
13111          lt_prog_compiler_wl_F77='-Wl,'
13112          ;;
13113        esac
13114        ;;
13115
13116     mingw* | pw32* | os2*)
13117       # This hack is so that the source file can tell whether it is being
13118       # built for inclusion in a dll (and should export symbols for example).
13119       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13120       ;;
13121
13122     hpux9* | hpux10* | hpux11*)
13123       lt_prog_compiler_wl_F77='-Wl,'
13124       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13125       # not for PA HP-UX.
13126       case "$host_cpu" in
13127       hppa*64*|ia64*)
13128         # +Z the default
13129         ;;
13130       *)
13131         lt_prog_compiler_pic_F77='+Z'
13132         ;;
13133       esac
13134       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13135       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13136       ;;
13137
13138     irix5* | irix6* | nonstopux*)
13139       lt_prog_compiler_wl_F77='-Wl,'
13140       # PIC (with -KPIC) is the default.
13141       lt_prog_compiler_static_F77='-non_shared'
13142       ;;
13143
13144     newsos6)
13145       lt_prog_compiler_pic_F77='-KPIC'
13146       lt_prog_compiler_static_F77='-Bstatic'
13147       ;;
13148
13149     linux*)
13150       case $CC in
13151       icc* | ecc*)
13152         lt_prog_compiler_wl_F77='-Wl,'
13153         lt_prog_compiler_pic_F77='-KPIC'
13154         lt_prog_compiler_static_F77='-static'
13155         ;;
13156       ccc*)
13157         lt_prog_compiler_wl_F77='-Wl,'
13158         # All Alpha code is PIC.
13159         lt_prog_compiler_static_F77='-non_shared'
13160         ;;
13161       esac
13162       ;;
13163
13164     osf3* | osf4* | osf5*)
13165       lt_prog_compiler_wl_F77='-Wl,'
13166       # All OSF/1 code is PIC.
13167       lt_prog_compiler_static_F77='-non_shared'
13168       ;;
13169
13170     sco3.2v5*)
13171       lt_prog_compiler_pic_F77='-Kpic'
13172       lt_prog_compiler_static_F77='-dn'
13173       ;;
13174
13175     solaris*)
13176       lt_prog_compiler_wl_F77='-Wl,'
13177       lt_prog_compiler_pic_F77='-KPIC'
13178       lt_prog_compiler_static_F77='-Bstatic'
13179       ;;
13180
13181     sunos4*)
13182       lt_prog_compiler_wl_F77='-Qoption ld '
13183       lt_prog_compiler_pic_F77='-PIC'
13184       lt_prog_compiler_static_F77='-Bstatic'
13185       ;;
13186
13187     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13188       lt_prog_compiler_wl_F77='-Wl,'
13189       lt_prog_compiler_pic_F77='-KPIC'
13190       lt_prog_compiler_static_F77='-Bstatic'
13191       ;;
13192
13193     sysv4*MP*)
13194       if test -d /usr/nec ;then
13195         lt_prog_compiler_pic_F77='-Kconform_pic'
13196         lt_prog_compiler_static_F77='-Bstatic'
13197       fi
13198       ;;
13199
13200     uts4*)
13201       lt_prog_compiler_pic_F77='-pic'
13202       lt_prog_compiler_static_F77='-Bstatic'
13203       ;;
13204
13205     *)
13206       lt_prog_compiler_can_build_shared_F77=no
13207       ;;
13208     esac
13209   fi
13210
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13213
13214 #
13215 # Check to make sure the PIC flag actually works.
13216 #
13217 if test -n "$lt_prog_compiler_pic_F77"; then
13218
13219 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13220 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13221 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   lt_prog_compiler_pic_works_F77=no
13225   ac_outfile=conftest.$ac_objext
13226    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13227    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13228    # Insert the option either (1) after the last *FLAGS variable, or
13229    # (2) before a word containing "conftest.", or (3) at the end.
13230    # Note that $ac_compile itself does not contain backslashes and begins
13231    # with a dollar sign (not a hyphen), so the echo should work correctly.
13232    # The option is referenced via a variable to avoid confusing sed.
13233    lt_compile=`echo "$ac_compile" | $SED \
13234    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13235    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13236    -e 's:$: $lt_compiler_flag:'`
13237    (eval echo "\"\$as_me:13237: $lt_compile\"" >&5)
13238    (eval "$lt_compile" 2>conftest.err)
13239    ac_status=$?
13240    cat conftest.err >&5
13241    echo "$as_me:13241: \$? = $ac_status" >&5
13242    if (exit $ac_status) && test -s "$ac_outfile"; then
13243      # The compiler can only warn and ignore the option if not recognized
13244      # So say no if there are warnings
13245      if test ! -s conftest.err; then
13246        lt_prog_compiler_pic_works_F77=yes
13247      fi
13248    fi
13249    $rm conftest*
13250
13251 fi
13252 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13253 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13254
13255 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13256     case $lt_prog_compiler_pic_F77 in
13257      "" | " "*) ;;
13258      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13259      esac
13260 else
13261     lt_prog_compiler_pic_F77=
13262      lt_prog_compiler_can_build_shared_F77=no
13263 fi
13264
13265 fi
13266 case "$host_os" in
13267   # For platforms which do not support PIC, -DPIC is meaningless:
13268   *djgpp*)
13269     lt_prog_compiler_pic_F77=
13270     ;;
13271   *)
13272     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13273     ;;
13274 esac
13275
13276 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13278 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   lt_cv_prog_compiler_c_o_F77=no
13282    $rm -r conftest 2>/dev/null
13283    mkdir conftest
13284    cd conftest
13285    mkdir out
13286    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13287
13288    lt_compiler_flag="-o out/conftest2.$ac_objext"
13289    # Insert the option either (1) after the last *FLAGS variable, or
13290    # (2) before a word containing "conftest.", or (3) at the end.
13291    # Note that $ac_compile itself does not contain backslashes and begins
13292    # with a dollar sign (not a hyphen), so the echo should work correctly.
13293    lt_compile=`echo "$ac_compile" | $SED \
13294    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13296    -e 's:$: $lt_compiler_flag:'`
13297    (eval echo "\"\$as_me:13297: $lt_compile\"" >&5)
13298    (eval "$lt_compile" 2>out/conftest.err)
13299    ac_status=$?
13300    cat out/conftest.err >&5
13301    echo "$as_me:13301: \$? = $ac_status" >&5
13302    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13303    then
13304      # The compiler can only warn and ignore the option if not recognized
13305      # So say no if there are warnings
13306      if test ! -s out/conftest.err; then
13307        lt_cv_prog_compiler_c_o_F77=yes
13308      fi
13309    fi
13310    chmod u+w .
13311    $rm conftest*
13312    # SGI C++ compiler will create directory out/ii_files/ for
13313    # template instantiation
13314    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13315    $rm out/* && rmdir out
13316    cd ..
13317    rmdir conftest
13318    $rm conftest*
13319
13320 fi
13321 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13322 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13323
13324
13325 hard_links="nottested"
13326 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13327   # do not overwrite the value of need_locks provided by the user
13328   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13329 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13330   hard_links=yes
13331   $rm conftest*
13332   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13333   touch conftest.a
13334   ln conftest.a conftest.b 2>&5 || hard_links=no
13335   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336   echo "$as_me:$LINENO: result: $hard_links" >&5
13337 echo "${ECHO_T}$hard_links" >&6
13338   if test "$hard_links" = no; then
13339     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13340 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13341     need_locks=warn
13342   fi
13343 else
13344   need_locks=no
13345 fi
13346
13347 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13348 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13349
13350   runpath_var=
13351   allow_undefined_flag_F77=
13352   enable_shared_with_static_runtimes_F77=no
13353   archive_cmds_F77=
13354   archive_expsym_cmds_F77=
13355   old_archive_From_new_cmds_F77=
13356   old_archive_from_expsyms_cmds_F77=
13357   export_dynamic_flag_spec_F77=
13358   whole_archive_flag_spec_F77=
13359   thread_safe_flag_spec_F77=
13360   hardcode_libdir_flag_spec_F77=
13361   hardcode_libdir_flag_spec_ld_F77=
13362   hardcode_libdir_separator_F77=
13363   hardcode_direct_F77=no
13364   hardcode_minus_L_F77=no
13365   hardcode_shlibpath_var_F77=unsupported
13366   link_all_deplibs_F77=unknown
13367   hardcode_automatic_F77=no
13368   module_cmds_F77=
13369   module_expsym_cmds_F77=
13370   always_export_symbols_F77=no
13371   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13372   # include_expsyms should be a list of space-separated symbols to be *always*
13373   # included in the symbol list
13374   include_expsyms_F77=
13375   # exclude_expsyms can be an extended regexp of symbols to exclude
13376   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13377   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13378   # as well as any symbol that contains `d'.
13379   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13380   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13381   # platforms (ab)use it in PIC code, but their linkers get confused if
13382   # the symbol is explicitly referenced.  Since portable code cannot
13383   # rely on this symbol name, it's probably fine to never include it in
13384   # preloaded symbol tables.
13385   extract_expsyms_cmds=
13386
13387   case $host_os in
13388   cygwin* | mingw* | pw32*)
13389     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13390     # When not using gcc, we currently assume that we are using
13391     # Microsoft Visual C++.
13392     if test "$GCC" != yes; then
13393       with_gnu_ld=no
13394     fi
13395     ;;
13396   openbsd*)
13397     with_gnu_ld=no
13398     ;;
13399   esac
13400
13401   ld_shlibs_F77=yes
13402   if test "$with_gnu_ld" = yes; then
13403     # If archive_cmds runs LD, not CC, wlarc should be empty
13404     wlarc='${wl}'
13405
13406     # See if GNU ld supports shared libraries.
13407     case $host_os in
13408     aix3* | aix4* | aix5*)
13409       # On AIX/PPC, the GNU linker is very broken
13410       if test "$host_cpu" != ia64; then
13411         ld_shlibs_F77=no
13412         cat <<EOF 1>&2
13413
13414 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13415 *** to be unable to reliably create shared libraries on AIX.
13416 *** Therefore, libtool is disabling shared libraries support.  If you
13417 *** really care for shared libraries, you may want to modify your PATH
13418 *** so that a non-GNU linker is found, and then restart.
13419
13420 EOF
13421       fi
13422       ;;
13423
13424     amigaos*)
13425       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)'
13426       hardcode_libdir_flag_spec_F77='-L$libdir'
13427       hardcode_minus_L_F77=yes
13428
13429       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13430       # that the semantics of dynamic libraries on AmigaOS, at least up
13431       # to version 4, is to share data among multiple programs linked
13432       # with the same dynamic library.  Since this doesn't match the
13433       # behavior of shared libraries on other platforms, we can't use
13434       # them.
13435       ld_shlibs_F77=no
13436       ;;
13437
13438     beos*)
13439       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13440         allow_undefined_flag_F77=unsupported
13441         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13442         # support --undefined.  This deserves some investigation.  FIXME
13443         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444       else
13445         ld_shlibs_F77=no
13446       fi
13447       ;;
13448
13449     cygwin* | mingw* | pw32*)
13450       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13451       # as there is no search path for DLLs.
13452       hardcode_libdir_flag_spec_F77='-L$libdir'
13453       allow_undefined_flag_F77=unsupported
13454       always_export_symbols_F77=no
13455       enable_shared_with_static_runtimes_F77=yes
13456       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13457
13458       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13459         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13460         # If the export-symbols file already is a .def file (1st line
13461         # is EXPORTS), use it as is; otherwise, prepend...
13462         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13463           cp $export_symbols $output_objdir/$soname.def;
13464         else
13465           echo EXPORTS > $output_objdir/$soname.def;
13466           cat $export_symbols >> $output_objdir/$soname.def;
13467         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13468       else
13469         ld_shlibs=no
13470       fi
13471       ;;
13472
13473     netbsd*)
13474       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13475         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13476         wlarc=
13477       else
13478         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13479         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13480       fi
13481       ;;
13482
13483     solaris* | sysv5*)
13484       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13485         ld_shlibs_F77=no
13486         cat <<EOF 1>&2
13487
13488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13489 *** create shared libraries on Solaris systems.  Therefore, libtool
13490 *** is disabling shared libraries support.  We urge you to upgrade GNU
13491 *** binutils to release 2.9.1 or newer.  Another option is to modify
13492 *** your PATH or compiler configuration so that the native linker is
13493 *** used, and then restart.
13494
13495 EOF
13496       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13497         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13498         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13499       else
13500         ld_shlibs_F77=no
13501       fi
13502       ;;
13503
13504     sunos4*)
13505       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13506       wlarc=
13507       hardcode_direct_F77=yes
13508       hardcode_shlibpath_var_F77=no
13509       ;;
13510
13511   linux*)
13512     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514         archive_cmds_F77="$tmp_archive_cmds"
13515       supports_anon_versioning=no
13516       case `$LD -v 2>/dev/null` in
13517         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13518         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13519         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13520         *\ 2.11.*) ;; # other 2.11 versions
13521         *) supports_anon_versioning=yes ;;
13522       esac
13523       if test $supports_anon_versioning = yes; then
13524         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13525         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13526       else
13527         archive_expsym_cmds_F77="$tmp_archive_cmds"
13528       fi
13529     else
13530       ld_shlibs_F77=no
13531     fi
13532     ;;
13533
13534     *)
13535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538       else
13539         ld_shlibs_F77=no
13540       fi
13541       ;;
13542     esac
13543
13544     if test "$ld_shlibs_F77" = yes; then
13545       runpath_var=LD_RUN_PATH
13546       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13547       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13548       # ancient GNU ld didn't support --whole-archive et. al.
13549       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13550         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13551       else
13552         whole_archive_flag_spec_F77=
13553       fi
13554     fi
13555   else
13556     # PORTME fill in a description of your system's linker (not GNU ld)
13557     case $host_os in
13558     aix3*)
13559       allow_undefined_flag_F77=unsupported
13560       always_export_symbols_F77=yes
13561       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'
13562       # Note: this linker hardcodes the directories in LIBPATH if there
13563       # are no directories specified by -L.
13564       hardcode_minus_L_F77=yes
13565       if test "$GCC" = yes && test -z "$link_static_flag"; then
13566         # Neither direct hardcoding nor static linking is supported with a
13567         # broken collect2.
13568         hardcode_direct_F77=unsupported
13569       fi
13570       ;;
13571
13572     aix4* | aix5*)
13573       if test "$host_cpu" = ia64; then
13574         # On IA64, the linker does run time linking by default, so we don't
13575         # have to do anything special.
13576         aix_use_runtimelinking=no
13577         exp_sym_flag='-Bexport'
13578         no_entry_flag=""
13579       else
13580         # If we're using GNU nm, then we don't want the "-C" option.
13581         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13582         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13583           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'
13584         else
13585           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'
13586         fi
13587         aix_use_runtimelinking=no
13588
13589         # Test if we are trying to use run time linking or normal
13590         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13591         # need to do runtime linking.
13592         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13593           for ld_flag in $LDFLAGS; do
13594           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13595             aix_use_runtimelinking=yes
13596             break
13597           fi
13598           done
13599         esac
13600
13601         exp_sym_flag='-bexport'
13602         no_entry_flag='-bnoentry'
13603       fi
13604
13605       # When large executables or shared objects are built, AIX ld can
13606       # have problems creating the table of contents.  If linking a library
13607       # or program results in "error TOC overflow" add -mminimal-toc to
13608       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13609       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13610
13611       archive_cmds_F77=''
13612       hardcode_direct_F77=yes
13613       hardcode_libdir_separator_F77=':'
13614       link_all_deplibs_F77=yes
13615
13616       if test "$GCC" = yes; then
13617         case $host_os in aix4.012|aix4.012.*)
13618         # We only want to do this on AIX 4.2 and lower, the check
13619         # below for broken collect2 doesn't work under 4.3+
13620           collect2name=`${CC} -print-prog-name=collect2`
13621           if test -f "$collect2name" && \
13622            strings "$collect2name" | grep resolve_lib_name >/dev/null
13623           then
13624           # We have reworked collect2
13625           hardcode_direct_F77=yes
13626           else
13627           # We have old collect2
13628           hardcode_direct_F77=unsupported
13629           # It fails to find uninstalled libraries when the uninstalled
13630           # path is not listed in the libpath.  Setting hardcode_minus_L
13631           # to unsupported forces relinking
13632           hardcode_minus_L_F77=yes
13633           hardcode_libdir_flag_spec_F77='-L$libdir'
13634           hardcode_libdir_separator_F77=
13635           fi
13636         esac
13637         shared_flag='-shared'
13638       else
13639         # not using gcc
13640         if test "$host_cpu" = ia64; then
13641         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13642         # chokes on -Wl,-G. The following line is correct:
13643           shared_flag='-G'
13644         else
13645         if test "$aix_use_runtimelinking" = yes; then
13646             shared_flag='${wl}-G'
13647           else
13648             shared_flag='${wl}-bM:SRE'
13649         fi
13650         fi
13651       fi
13652
13653       # It seems that -bexpall does not export symbols beginning with
13654       # underscore (_), so it is better to generate a list of symbols to export.
13655       always_export_symbols_F77=yes
13656       if test "$aix_use_runtimelinking" = yes; then
13657         # Warning - without using the other runtime loading flags (-brtl),
13658         # -berok will link without error, but may produce a broken library.
13659         allow_undefined_flag_F77='-berok'
13660        # Determine the default libpath from the value encoded in an empty executable.
13661        cat >conftest.$ac_ext <<_ACEOF
13662       program main
13663
13664       end
13665 _ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668   (eval $ac_link) 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -z "$ac_f77_werror_flag"
13676                          || test ! -s conftest.err'
13677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678   (eval $ac_try) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; } &&
13682          { ac_try='test -s conftest$ac_exeext'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688
13689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13690 }'`
13691 # Check for a 64-bit object if we didn't find anything.
13692 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; }
13693 }'`; fi
13694 else
13695   echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698 fi
13699 rm -f conftest.err conftest.$ac_objext \
13700       conftest$ac_exeext conftest.$ac_ext
13701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13702
13703        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13704         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"
13705        else
13706         if test "$host_cpu" = ia64; then
13707           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13708           allow_undefined_flag_F77="-z nodefs"
13709           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"
13710         else
13711          # Determine the default libpath from the value encoded in an empty executable.
13712          cat >conftest.$ac_ext <<_ACEOF
13713       program main
13714
13715       end
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719   (eval $ac_link) 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } &&
13726          { ac_try='test -z "$ac_f77_werror_flag"
13727                          || test ! -s conftest.err'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; } &&
13733          { ac_try='test -s conftest$ac_exeext'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; }; then
13739
13740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13741 }'`
13742 # Check for a 64-bit object if we didn't find anything.
13743 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; }
13744 }'`; fi
13745 else
13746   echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13748
13749 fi
13750 rm -f conftest.err conftest.$ac_objext \
13751       conftest$ac_exeext conftest.$ac_ext
13752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13753
13754          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13755           # Warning - without using the other run time loading flags,
13756           # -berok will link without error, but may produce a broken library.
13757           no_undefined_flag_F77=' ${wl}-bernotok'
13758           allow_undefined_flag_F77=' ${wl}-berok'
13759           # -bexpall does not export symbols beginning with underscore (_)
13760           always_export_symbols_F77=yes
13761           # Exported symbols can be pulled into shared objects from archives
13762           whole_archive_flag_spec_F77=' '
13763           archive_cmds_need_lc_F77=yes
13764           # This is similar to how AIX traditionally builds it's shared libraries.
13765           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'
13766         fi
13767       fi
13768       ;;
13769
13770     amigaos*)
13771       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)'
13772       hardcode_libdir_flag_spec_F77='-L$libdir'
13773       hardcode_minus_L_F77=yes
13774       # see comment about different semantics on the GNU ld section
13775       ld_shlibs_F77=no
13776       ;;
13777
13778     bsdi[45]*)
13779       export_dynamic_flag_spec_F77=-rdynamic
13780       ;;
13781
13782     cygwin* | mingw* | pw32*)
13783       # When not using gcc, we currently assume that we are using
13784       # Microsoft Visual C++.
13785       # hardcode_libdir_flag_spec is actually meaningless, as there is
13786       # no search path for DLLs.
13787       hardcode_libdir_flag_spec_F77=' '
13788       allow_undefined_flag_F77=unsupported
13789       # Tell ltmain to make .lib files, not .a files.
13790       libext=lib
13791       # Tell ltmain to make .dll files, not .so files.
13792       shrext_cmds=".dll"
13793       # FIXME: Setting linknames here is a bad hack.
13794       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13795       # The linker will automatically build a .lib file if we build a DLL.
13796       old_archive_From_new_cmds_F77='true'
13797       # FIXME: Should let the user specify the lib program.
13798       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13799       fix_srcfile_path='`cygpath -w "$srcfile"`'
13800       enable_shared_with_static_runtimes_F77=yes
13801       ;;
13802
13803     darwin* | rhapsody*)
13804       case "$host_os" in
13805         rhapsody* | darwin1.[012])
13806          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13807          ;;
13808        *) # Darwin 1.3 on
13809          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13810            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13811          else
13812            case ${MACOSX_DEPLOYMENT_TARGET} in
13813              10.[012])
13814                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13815                ;;
13816              10.*)
13817                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13818                ;;
13819            esac
13820          fi
13821          ;;
13822       esac
13823       archive_cmds_need_lc_F77=no
13824       hardcode_direct_F77=no
13825       hardcode_automatic_F77=yes
13826       hardcode_shlibpath_var_F77=unsupported
13827       whole_archive_flag_spec_F77=''
13828       link_all_deplibs_F77=yes
13829     if test "$GCC" = yes ; then
13830         output_verbose_link_cmd='echo'
13831         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13832       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13833       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13834       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13835       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13836     else
13837       case "$cc_basename" in
13838         xlc*)
13839          output_verbose_link_cmd='echo'
13840          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13841          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13842           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13843          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13844           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13845           ;;
13846        *)
13847          ld_shlibs_F77=no
13848           ;;
13849       esac
13850     fi
13851       ;;
13852
13853     dgux*)
13854       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855       hardcode_libdir_flag_spec_F77='-L$libdir'
13856       hardcode_shlibpath_var_F77=no
13857       ;;
13858
13859     freebsd1*)
13860       ld_shlibs_F77=no
13861       ;;
13862
13863     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13864     # support.  Future versions do this automatically, but an explicit c++rt0.o
13865     # does not break anything, and helps significantly (at the cost of a little
13866     # extra space).
13867     freebsd2.2*)
13868       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13869       hardcode_libdir_flag_spec_F77='-R$libdir'
13870       hardcode_direct_F77=yes
13871       hardcode_shlibpath_var_F77=no
13872       ;;
13873
13874     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13875     freebsd2*)
13876       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13877       hardcode_direct_F77=yes
13878       hardcode_minus_L_F77=yes
13879       hardcode_shlibpath_var_F77=no
13880       ;;
13881
13882     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13883     freebsd* | kfreebsd*-gnu)
13884       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13885       hardcode_libdir_flag_spec_F77='-R$libdir'
13886       hardcode_direct_F77=yes
13887       hardcode_shlibpath_var_F77=no
13888       ;;
13889
13890     hpux9*)
13891       if test "$GCC" = yes; then
13892         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'
13893       else
13894         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'
13895       fi
13896       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13897       hardcode_libdir_separator_F77=:
13898       hardcode_direct_F77=yes
13899
13900       # hardcode_minus_L: Not really in the search PATH,
13901       # but as the default location of the library.
13902       hardcode_minus_L_F77=yes
13903       export_dynamic_flag_spec_F77='${wl}-E'
13904       ;;
13905
13906     hpux10* | hpux11*)
13907       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13908         case "$host_cpu" in
13909         hppa*64*|ia64*)
13910           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911           ;;
13912         *)
13913           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13914           ;;
13915         esac
13916       else
13917         case "$host_cpu" in
13918         hppa*64*|ia64*)
13919           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13920           ;;
13921         *)
13922           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13923           ;;
13924         esac
13925       fi
13926       if test "$with_gnu_ld" = no; then
13927         case "$host_cpu" in
13928         hppa*64*)
13929           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13930           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13931           hardcode_libdir_separator_F77=:
13932           hardcode_direct_F77=no
13933           hardcode_shlibpath_var_F77=no
13934           ;;
13935         ia64*)
13936           hardcode_libdir_flag_spec_F77='-L$libdir'
13937           hardcode_direct_F77=no
13938           hardcode_shlibpath_var_F77=no
13939
13940           # hardcode_minus_L: Not really in the search PATH,
13941           # but as the default location of the library.
13942           hardcode_minus_L_F77=yes
13943           ;;
13944         *)
13945           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13946           hardcode_libdir_separator_F77=:
13947           hardcode_direct_F77=yes
13948           export_dynamic_flag_spec_F77='${wl}-E'
13949
13950           # hardcode_minus_L: Not really in the search PATH,
13951           # but as the default location of the library.
13952           hardcode_minus_L_F77=yes
13953           ;;
13954         esac
13955       fi
13956       ;;
13957
13958     irix5* | irix6* | nonstopux*)
13959       if test "$GCC" = yes; then
13960         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'
13961       else
13962         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'
13963         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13964       fi
13965       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13966       hardcode_libdir_separator_F77=:
13967       link_all_deplibs_F77=yes
13968       ;;
13969
13970     netbsd*)
13971       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13972         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13973       else
13974         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13975       fi
13976       hardcode_libdir_flag_spec_F77='-R$libdir'
13977       hardcode_direct_F77=yes
13978       hardcode_shlibpath_var_F77=no
13979       ;;
13980
13981     newsos6)
13982       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983       hardcode_direct_F77=yes
13984       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13985       hardcode_libdir_separator_F77=:
13986       hardcode_shlibpath_var_F77=no
13987       ;;
13988
13989     openbsd*)
13990       hardcode_direct_F77=yes
13991       hardcode_shlibpath_var_F77=no
13992       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13993         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13994         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13995         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13996         export_dynamic_flag_spec_F77='${wl}-E'
13997       else
13998        case $host_os in
13999          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14000            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14001            hardcode_libdir_flag_spec_F77='-R$libdir'
14002            ;;
14003          *)
14004            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14005            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14006            ;;
14007        esac
14008       fi
14009       ;;
14010
14011     os2*)
14012       hardcode_libdir_flag_spec_F77='-L$libdir'
14013       hardcode_minus_L_F77=yes
14014       allow_undefined_flag_F77=unsupported
14015       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'
14016       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14017       ;;
14018
14019     osf3*)
14020       if test "$GCC" = yes; then
14021         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14022         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'
14023       else
14024         allow_undefined_flag_F77=' -expect_unresolved \*'
14025         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'
14026       fi
14027       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14028       hardcode_libdir_separator_F77=:
14029       ;;
14030
14031     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14032       if test "$GCC" = yes; then
14033         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14034         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'
14035         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14036       else
14037         allow_undefined_flag_F77=' -expect_unresolved \*'
14038         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'
14039         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; $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'
14040         # Both c and cxx compiler support -rpath directly
14041         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14042       fi
14043       hardcode_libdir_separator_F77=:
14044       ;;
14045
14046     sco3.2v5*)
14047       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14048       hardcode_shlibpath_var_F77=no
14049       export_dynamic_flag_spec_F77='${wl}-Bexport'
14050       runpath_var=LD_RUN_PATH
14051       hardcode_runpath_var=yes
14052       ;;
14053
14054     solaris*)
14055       no_undefined_flag_F77=' -z text'
14056       if test "$GCC" = yes; then
14057         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14058         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
14059       else
14060         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14061         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14062       fi
14063       hardcode_libdir_flag_spec_F77='-R$libdir'
14064       hardcode_shlibpath_var_F77=no
14065       case $host_os in
14066       solaris2.[0-5] | solaris2.[0-5].*) ;;
14067       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14068         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14069       esac
14070       link_all_deplibs_F77=yes
14071       ;;
14072
14073     sunos4*)
14074       if test "x$host_vendor" = xsequent; then
14075         # Use $CC to link under sequent, because it throws in some extra .o
14076         # files that make .init and .fini sections work.
14077         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14078       else
14079         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14080       fi
14081       hardcode_libdir_flag_spec_F77='-L$libdir'
14082       hardcode_direct_F77=yes
14083       hardcode_minus_L_F77=yes
14084       hardcode_shlibpath_var_F77=no
14085       ;;
14086
14087     sysv4)
14088       case $host_vendor in
14089         sni)
14090           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14091           hardcode_direct_F77=yes # is this really true???
14092         ;;
14093         siemens)
14094           ## LD is ld it makes a PLAMLIB
14095           ## CC just makes a GrossModule.
14096           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14097           reload_cmds_F77='$CC -r -o $output$reload_objs'
14098           hardcode_direct_F77=no
14099         ;;
14100         motorola)
14101           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14102           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14103         ;;
14104       esac
14105       runpath_var='LD_RUN_PATH'
14106       hardcode_shlibpath_var_F77=no
14107       ;;
14108
14109     sysv4.3*)
14110       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14111       hardcode_shlibpath_var_F77=no
14112       export_dynamic_flag_spec_F77='-Bexport'
14113       ;;
14114
14115     sysv4*MP*)
14116       if test -d /usr/nec; then
14117         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14118         hardcode_shlibpath_var_F77=no
14119         runpath_var=LD_RUN_PATH
14120         hardcode_runpath_var=yes
14121         ld_shlibs_F77=yes
14122       fi
14123       ;;
14124
14125     sysv4.2uw2*)
14126       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14127       hardcode_direct_F77=yes
14128       hardcode_minus_L_F77=no
14129       hardcode_shlibpath_var_F77=no
14130       hardcode_runpath_var=yes
14131       runpath_var=LD_RUN_PATH
14132       ;;
14133
14134    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14135       no_undefined_flag_F77='${wl}-z ${wl}text'
14136       if test "$GCC" = yes; then
14137         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14138       else
14139         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14140       fi
14141       runpath_var='LD_RUN_PATH'
14142       hardcode_shlibpath_var_F77=no
14143       ;;
14144
14145     sysv5*)
14146       no_undefined_flag_F77=' -z text'
14147       # $CC -shared without GNU ld will not create a library from C++
14148       # object files and a static libstdc++, better avoid it by now
14149       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14151       hardcode_libdir_flag_spec_F77=
14152       hardcode_shlibpath_var_F77=no
14153       runpath_var='LD_RUN_PATH'
14154       ;;
14155
14156     uts4*)
14157       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158       hardcode_libdir_flag_spec_F77='-L$libdir'
14159       hardcode_shlibpath_var_F77=no
14160       ;;
14161
14162     *)
14163       ld_shlibs_F77=no
14164       ;;
14165     esac
14166   fi
14167
14168 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14169 echo "${ECHO_T}$ld_shlibs_F77" >&6
14170 test "$ld_shlibs_F77" = no && can_build_shared=no
14171
14172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14173 if test "$GCC" = yes; then
14174   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14175 fi
14176
14177 #
14178 # Do we need to explicitly link libc?
14179 #
14180 case "x$archive_cmds_need_lc_F77" in
14181 x|xyes)
14182   # Assume -lc should be added
14183   archive_cmds_need_lc_F77=yes
14184
14185   if test "$enable_shared" = yes && test "$GCC" = yes; then
14186     case $archive_cmds_F77 in
14187     *'~'*)
14188       # FIXME: we may have to deal with multi-command sequences.
14189       ;;
14190     '$CC '*)
14191       # Test whether the compiler implicitly links with -lc since on some
14192       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14193       # to ld, don't add -lc before -lgcc.
14194       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14195 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14196       $rm conftest*
14197       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14198
14199       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200   (eval $ac_compile) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } 2>conftest.err; then
14204         soname=conftest
14205         lib=conftest
14206         libobjs=conftest.$ac_objext
14207         deplibs=
14208         wl=$lt_prog_compiler_wl_F77
14209         compiler_flags=-v
14210         linker_flags=-v
14211         verstring=
14212         output_objdir=.
14213         libname=conftest
14214         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14215         allow_undefined_flag_F77=
14216         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14217   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }
14221         then
14222           archive_cmds_need_lc_F77=no
14223         else
14224           archive_cmds_need_lc_F77=yes
14225         fi
14226         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14227       else
14228         cat conftest.err 1>&5
14229       fi
14230       $rm conftest*
14231       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14232 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14233       ;;
14234     esac
14235   fi
14236   ;;
14237 esac
14238
14239 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14241 library_names_spec=
14242 libname_spec='lib$name'
14243 soname_spec=
14244 shrext_cmds=".so"
14245 postinstall_cmds=
14246 postuninstall_cmds=
14247 finish_cmds=
14248 finish_eval=
14249 shlibpath_var=
14250 shlibpath_overrides_runpath=unknown
14251 version_type=none
14252 dynamic_linker="$host_os ld.so"
14253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14254 if test "$GCC" = yes; then
14255   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14256   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14257     # if the path contains ";" then we assume it to be the separator
14258     # otherwise default to the standard path separator (i.e. ":") - it is
14259     # assumed that no part of a normal pathname contains ";" but that should
14260     # okay in the real world where ";" in dirpaths is itself problematic.
14261     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14262   else
14263     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14264   fi
14265 else
14266   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14267 fi
14268 need_lib_prefix=unknown
14269 hardcode_into_libs=no
14270
14271 # when you set need_version to no, make sure it does not cause -set_version
14272 # flags to be left without arguments
14273 need_version=unknown
14274
14275 case $host_os in
14276 aix3*)
14277   version_type=linux
14278   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14279   shlibpath_var=LIBPATH
14280
14281   # AIX 3 has no versioning support, so we append a major version to the name.
14282   soname_spec='${libname}${release}${shared_ext}$major'
14283   ;;
14284
14285 aix4* | aix5*)
14286   version_type=linux
14287   need_lib_prefix=no
14288   need_version=no
14289   hardcode_into_libs=yes
14290   if test "$host_cpu" = ia64; then
14291     # AIX 5 supports IA64
14292     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14293     shlibpath_var=LD_LIBRARY_PATH
14294   else
14295     # With GCC up to 2.95.x, collect2 would create an import file
14296     # for dependence libraries.  The import file would start with
14297     # the line `#! .'.  This would cause the generated library to
14298     # depend on `.', always an invalid library.  This was fixed in
14299     # development snapshots of GCC prior to 3.0.
14300     case $host_os in
14301       aix4 | aix4.[01] | aix4.[01].*)
14302       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14303            echo ' yes '
14304            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14305         :
14306       else
14307         can_build_shared=no
14308       fi
14309       ;;
14310     esac
14311     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14312     # soname into executable. Probably we can add versioning support to
14313     # collect2, so additional links can be useful in future.
14314     if test "$aix_use_runtimelinking" = yes; then
14315       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14316       # instead of lib<name>.a to let people know that these are not
14317       # typical AIX shared libraries.
14318       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319     else
14320       # We preserve .a as extension for shared libraries through AIX4.2
14321       # and later when we are not doing run time linking.
14322       library_names_spec='${libname}${release}.a $libname.a'
14323       soname_spec='${libname}${release}${shared_ext}$major'
14324     fi
14325     shlibpath_var=LIBPATH
14326   fi
14327   ;;
14328
14329 amigaos*)
14330   library_names_spec='$libname.ixlibrary $libname.a'
14331   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14332   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'
14333   ;;
14334
14335 beos*)
14336   library_names_spec='${libname}${shared_ext}'
14337   dynamic_linker="$host_os ld.so"
14338   shlibpath_var=LIBRARY_PATH
14339   ;;
14340
14341 bsdi[45]*)
14342   version_type=linux
14343   need_version=no
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345   soname_spec='${libname}${release}${shared_ext}$major'
14346   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14347   shlibpath_var=LD_LIBRARY_PATH
14348   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14349   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14350   # the default ld.so.conf also contains /usr/contrib/lib and
14351   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14352   # libtool to hard-code these into programs
14353   ;;
14354
14355 cygwin* | mingw* | pw32*)
14356   version_type=windows
14357   shrext_cmds=".dll"
14358   need_version=no
14359   need_lib_prefix=no
14360
14361   case $GCC,$host_os in
14362   yes,cygwin* | yes,mingw* | yes,pw32*)
14363     library_names_spec='$libname.dll.a'
14364     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14365     postinstall_cmds='base_file=`basename \${file}`;
14366       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14367       dldir=$destdir/`dirname \$dlpath`;
14368       test -d \$dldir || mkdir -p \$dldir;
14369       $install_prog $dir/$dlname \$dldir/$dlname'
14370     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14371       dlpath=$dir/\$dldll;
14372        $rm \$dlpath'
14373     shlibpath_overrides_runpath=yes
14374
14375     case $host_os in
14376     cygwin*)
14377       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14378       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14379       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14380       ;;
14381     mingw*)
14382       # MinGW DLLs use traditional 'lib' prefix
14383       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14384       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14385       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14386         # It is most probably a Windows format PATH printed by
14387         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14388         # path with ; separators, and with drive letters. We can handle the
14389         # drive letters (cygwin fileutils understands them), so leave them,
14390         # especially as we might pass files found there to a mingw objdump,
14391         # which wouldn't understand a cygwinified path. Ahh.
14392         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14393       else
14394         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14395       fi
14396       ;;
14397     pw32*)
14398       # pw32 DLLs use 'pw' prefix rather than 'lib'
14399       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14400       ;;
14401     esac
14402     ;;
14403
14404   *)
14405     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14406     ;;
14407   esac
14408   dynamic_linker='Win32 ld.exe'
14409   # FIXME: first we should search . and the directory the executable is in
14410   shlibpath_var=PATH
14411   ;;
14412
14413 darwin* | rhapsody*)
14414   dynamic_linker="$host_os dyld"
14415   version_type=darwin
14416   need_lib_prefix=no
14417   need_version=no
14418   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14419   soname_spec='${libname}${release}${major}$shared_ext'
14420   shlibpath_overrides_runpath=yes
14421   shlibpath_var=DYLD_LIBRARY_PATH
14422   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14423   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14424   if test "$GCC" = yes; then
14425     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"`
14426   else
14427     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14428   fi
14429   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14430   ;;
14431
14432 dgux*)
14433   version_type=linux
14434   need_lib_prefix=no
14435   need_version=no
14436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14437   soname_spec='${libname}${release}${shared_ext}$major'
14438   shlibpath_var=LD_LIBRARY_PATH
14439   ;;
14440
14441 freebsd1*)
14442   dynamic_linker=no
14443   ;;
14444
14445 kfreebsd*-gnu)
14446   version_type=linux
14447   need_lib_prefix=no
14448   need_version=no
14449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14450   soname_spec='${libname}${release}${shared_ext}$major'
14451   shlibpath_var=LD_LIBRARY_PATH
14452   shlibpath_overrides_runpath=no
14453   hardcode_into_libs=yes
14454   dynamic_linker='GNU ld.so'
14455   ;;
14456
14457 freebsd*)
14458   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14459   version_type=freebsd-$objformat
14460   case $version_type in
14461     freebsd-elf*)
14462       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14463       need_version=no
14464       need_lib_prefix=no
14465       ;;
14466     freebsd-*)
14467       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14468       need_version=yes
14469       ;;
14470   esac
14471   shlibpath_var=LD_LIBRARY_PATH
14472   case $host_os in
14473   freebsd2*)
14474     shlibpath_overrides_runpath=yes
14475     ;;
14476   freebsd3.01* | freebsdelf3.01*)
14477     shlibpath_overrides_runpath=yes
14478     hardcode_into_libs=yes
14479     ;;
14480   *) # from 3.2 on
14481     shlibpath_overrides_runpath=no
14482     hardcode_into_libs=yes
14483     ;;
14484   esac
14485   ;;
14486
14487 gnu*)
14488   version_type=linux
14489   need_lib_prefix=no
14490   need_version=no
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14492   soname_spec='${libname}${release}${shared_ext}$major'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   hardcode_into_libs=yes
14495   ;;
14496
14497 hpux9* | hpux10* | hpux11*)
14498   # Give a soname corresponding to the major version so that dld.sl refuses to
14499   # link against other versions.
14500   version_type=sunos
14501   need_lib_prefix=no
14502   need_version=no
14503   case "$host_cpu" in
14504   ia64*)
14505     shrext_cmds='.so'
14506     hardcode_into_libs=yes
14507     dynamic_linker="$host_os dld.so"
14508     shlibpath_var=LD_LIBRARY_PATH
14509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511     soname_spec='${libname}${release}${shared_ext}$major'
14512     if test "X$HPUX_IA64_MODE" = X32; then
14513       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14514     else
14515       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14516     fi
14517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14518     ;;
14519    hppa*64*)
14520      shrext_cmds='.sl'
14521      hardcode_into_libs=yes
14522      dynamic_linker="$host_os dld.sl"
14523      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14524      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526      soname_spec='${libname}${release}${shared_ext}$major'
14527      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14528      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14529      ;;
14530    *)
14531     shrext_cmds='.sl'
14532     dynamic_linker="$host_os dld.sl"
14533     shlibpath_var=SHLIB_PATH
14534     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536     soname_spec='${libname}${release}${shared_ext}$major'
14537     ;;
14538   esac
14539   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14540   postinstall_cmds='chmod 555 $lib'
14541   ;;
14542
14543 irix5* | irix6* | nonstopux*)
14544   case $host_os in
14545     nonstopux*) version_type=nonstopux ;;
14546     *)
14547         if test "$lt_cv_prog_gnu_ld" = yes; then
14548                 version_type=linux
14549         else
14550                 version_type=irix
14551         fi ;;
14552   esac
14553   need_lib_prefix=no
14554   need_version=no
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14557   case $host_os in
14558   irix5* | nonstopux*)
14559     libsuff= shlibsuff=
14560     ;;
14561   *)
14562     case $LD in # libtool.m4 will add one of these switches to LD
14563     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14564       libsuff= shlibsuff= libmagic=32-bit;;
14565     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14566       libsuff=32 shlibsuff=N32 libmagic=N32;;
14567     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14568       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14569     *) libsuff= shlibsuff= libmagic=never-match;;
14570     esac
14571     ;;
14572   esac
14573   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14574   shlibpath_overrides_runpath=no
14575   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14576   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14577   hardcode_into_libs=yes
14578   ;;
14579
14580 # No shared lib support for Linux oldld, aout, or coff.
14581 linux*oldld* | linux*aout* | linux*coff*)
14582   dynamic_linker=no
14583   ;;
14584
14585 # This must be Linux ELF.
14586 linux*)
14587   version_type=linux
14588   need_lib_prefix=no
14589   need_version=no
14590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591   soname_spec='${libname}${release}${shared_ext}$major'
14592   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14593   shlibpath_var=LD_LIBRARY_PATH
14594   shlibpath_overrides_runpath=no
14595   # This implies no fast_install, which is unacceptable.
14596   # Some rework will be needed to allow for fast_install
14597   # before this can be enabled.
14598   hardcode_into_libs=yes
14599
14600   # Append ld.so.conf contents to the search path
14601   if test -f /etc/ld.so.conf; then
14602     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14603     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14604   fi
14605
14606   # We used to test for /lib/ld.so.1 and disable shared libraries on
14607   # powerpc, because MkLinux only supported shared libraries with the
14608   # GNU dynamic linker.  Since this was broken with cross compilers,
14609   # most powerpc-linux boxes support dynamic linking these days and
14610   # people can always --disable-shared, the test was removed, and we
14611   # assume the GNU/Linux dynamic linker is in use.
14612   dynamic_linker='GNU/Linux ld.so'
14613   ;;
14614
14615 knetbsd*-gnu)
14616   version_type=linux
14617   need_lib_prefix=no
14618   need_version=no
14619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14620   soname_spec='${libname}${release}${shared_ext}$major'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   shlibpath_overrides_runpath=no
14623   hardcode_into_libs=yes
14624   dynamic_linker='GNU ld.so'
14625   ;;
14626
14627 netbsd*)
14628   version_type=sunos
14629   need_lib_prefix=no
14630   need_version=no
14631   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14633     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14634     dynamic_linker='NetBSD (a.out) ld.so'
14635   else
14636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14637     soname_spec='${libname}${release}${shared_ext}$major'
14638     dynamic_linker='NetBSD ld.elf_so'
14639   fi
14640   shlibpath_var=LD_LIBRARY_PATH
14641   shlibpath_overrides_runpath=yes
14642   hardcode_into_libs=yes
14643   ;;
14644
14645 newsos6)
14646   version_type=linux
14647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648   shlibpath_var=LD_LIBRARY_PATH
14649   shlibpath_overrides_runpath=yes
14650   ;;
14651
14652 nto-qnx*)
14653   version_type=linux
14654   need_lib_prefix=no
14655   need_version=no
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657   soname_spec='${libname}${release}${shared_ext}$major'
14658   shlibpath_var=LD_LIBRARY_PATH
14659   shlibpath_overrides_runpath=yes
14660   ;;
14661
14662 openbsd*)
14663   version_type=sunos
14664   need_lib_prefix=no
14665   need_version=no
14666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14670     case $host_os in
14671       openbsd2.[89] | openbsd2.[89].*)
14672         shlibpath_overrides_runpath=no
14673         ;;
14674       *)
14675         shlibpath_overrides_runpath=yes
14676         ;;
14677       esac
14678   else
14679     shlibpath_overrides_runpath=yes
14680   fi
14681   ;;
14682
14683 os2*)
14684   libname_spec='$name'
14685   shrext_cmds=".dll"
14686   need_lib_prefix=no
14687   library_names_spec='$libname${shared_ext} $libname.a'
14688   dynamic_linker='OS/2 ld.exe'
14689   shlibpath_var=LIBPATH
14690   ;;
14691
14692 osf3* | osf4* | osf5*)
14693   version_type=osf
14694   need_lib_prefix=no
14695   need_version=no
14696   soname_spec='${libname}${release}${shared_ext}$major'
14697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14700   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14701   ;;
14702
14703 sco3.2v5*)
14704   version_type=osf
14705   soname_spec='${libname}${release}${shared_ext}$major'
14706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707   shlibpath_var=LD_LIBRARY_PATH
14708   ;;
14709
14710 solaris*)
14711   version_type=linux
14712   need_lib_prefix=no
14713   need_version=no
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715   soname_spec='${libname}${release}${shared_ext}$major'
14716   shlibpath_var=LD_LIBRARY_PATH
14717   shlibpath_overrides_runpath=yes
14718   hardcode_into_libs=yes
14719   # ldd complains unless libraries are executable
14720   postinstall_cmds='chmod +x $lib'
14721   ;;
14722
14723 sunos4*)
14724   version_type=sunos
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   shlibpath_overrides_runpath=yes
14729   if test "$with_gnu_ld" = yes; then
14730     need_lib_prefix=no
14731   fi
14732   need_version=yes
14733   ;;
14734
14735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14736   version_type=linux
14737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738   soname_spec='${libname}${release}${shared_ext}$major'
14739   shlibpath_var=LD_LIBRARY_PATH
14740   case $host_vendor in
14741     sni)
14742       shlibpath_overrides_runpath=no
14743       need_lib_prefix=no
14744       export_dynamic_flag_spec='${wl}-Blargedynsym'
14745       runpath_var=LD_RUN_PATH
14746       ;;
14747     siemens)
14748       need_lib_prefix=no
14749       ;;
14750     motorola)
14751       need_lib_prefix=no
14752       need_version=no
14753       shlibpath_overrides_runpath=no
14754       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14755       ;;
14756   esac
14757   ;;
14758
14759 sysv4*MP*)
14760   if test -d /usr/nec ;then
14761     version_type=linux
14762     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14763     soname_spec='$libname${shared_ext}.$major'
14764     shlibpath_var=LD_LIBRARY_PATH
14765   fi
14766   ;;
14767
14768 uts4*)
14769   version_type=linux
14770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771   soname_spec='${libname}${release}${shared_ext}$major'
14772   shlibpath_var=LD_LIBRARY_PATH
14773   ;;
14774
14775 *)
14776   dynamic_linker=no
14777   ;;
14778 esac
14779 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14780 echo "${ECHO_T}$dynamic_linker" >&6
14781 test "$dynamic_linker" = no && can_build_shared=no
14782
14783 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14784 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14785 hardcode_action_F77=
14786 if test -n "$hardcode_libdir_flag_spec_F77" || \
14787    test -n "$runpath_var_F77" || \
14788    test "X$hardcode_automatic_F77" = "Xyes" ; then
14789
14790   # We can hardcode non-existant directories.
14791   if test "$hardcode_direct_F77" != no &&
14792      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14793      # have to relink, otherwise we might link with an installed library
14794      # when we should be linking with a yet-to-be-installed one
14795      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14796      test "$hardcode_minus_L_F77" != no; then
14797     # Linking always hardcodes the temporary library directory.
14798     hardcode_action_F77=relink
14799   else
14800     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14801     hardcode_action_F77=immediate
14802   fi
14803 else
14804   # We cannot hardcode anything, or else we can only hardcode existing
14805   # directories.
14806   hardcode_action_F77=unsupported
14807 fi
14808 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14809 echo "${ECHO_T}$hardcode_action_F77" >&6
14810
14811 if test "$hardcode_action_F77" = relink; then
14812   # Fast installation is not supported
14813   enable_fast_install=no
14814 elif test "$shlibpath_overrides_runpath" = yes ||
14815      test "$enable_shared" = no; then
14816   # Fast installation is not necessary
14817   enable_fast_install=needless
14818 fi
14819
14820 striplib=
14821 old_striplib=
14822 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14823 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14824 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14825   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14826   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14827   echo "$as_me:$LINENO: result: yes" >&5
14828 echo "${ECHO_T}yes" >&6
14829 else
14830 # FIXME - insert some real tests, host_os isn't really good enough
14831   case $host_os in
14832    darwin*)
14833        if test -n "$STRIP" ; then
14834          striplib="$STRIP -x"
14835          echo "$as_me:$LINENO: result: yes" >&5
14836 echo "${ECHO_T}yes" >&6
14837        else
14838   echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6
14840 fi
14841        ;;
14842    *)
14843   echo "$as_me:$LINENO: result: no" >&5
14844 echo "${ECHO_T}no" >&6
14845     ;;
14846   esac
14847 fi
14848
14849
14850
14851 # The else clause should only fire when bootstrapping the
14852 # libtool distribution, otherwise you forgot to ship ltmain.sh
14853 # with your package, and you will get complaints that there are
14854 # no rules to generate ltmain.sh.
14855 if test -f "$ltmain"; then
14856   # See if we are running on zsh, and set the options which allow our commands through
14857   # without removal of \ escapes.
14858   if test -n "${ZSH_VERSION+set}" ; then
14859     setopt NO_GLOB_SUBST
14860   fi
14861   # Now quote all the things that may contain metacharacters while being
14862   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14863   # variables and quote the copies for generation of the libtool script.
14864   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14865     SED SHELL STRIP \
14866     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14867     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14868     deplibs_check_method reload_flag reload_cmds need_locks \
14869     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14870     lt_cv_sys_global_symbol_to_c_name_address \
14871     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14872     old_postinstall_cmds old_postuninstall_cmds \
14873     compiler_F77 \
14874     CC_F77 \
14875     LD_F77 \
14876     lt_prog_compiler_wl_F77 \
14877     lt_prog_compiler_pic_F77 \
14878     lt_prog_compiler_static_F77 \
14879     lt_prog_compiler_no_builtin_flag_F77 \
14880     export_dynamic_flag_spec_F77 \
14881     thread_safe_flag_spec_F77 \
14882     whole_archive_flag_spec_F77 \
14883     enable_shared_with_static_runtimes_F77 \
14884     old_archive_cmds_F77 \
14885     old_archive_from_new_cmds_F77 \
14886     predep_objects_F77 \
14887     postdep_objects_F77 \
14888     predeps_F77 \
14889     postdeps_F77 \
14890     compiler_lib_search_path_F77 \
14891     archive_cmds_F77 \
14892     archive_expsym_cmds_F77 \
14893     postinstall_cmds_F77 \
14894     postuninstall_cmds_F77 \
14895     old_archive_from_expsyms_cmds_F77 \
14896     allow_undefined_flag_F77 \
14897     no_undefined_flag_F77 \
14898     export_symbols_cmds_F77 \
14899     hardcode_libdir_flag_spec_F77 \
14900     hardcode_libdir_flag_spec_ld_F77 \
14901     hardcode_libdir_separator_F77 \
14902     hardcode_automatic_F77 \
14903     module_cmds_F77 \
14904     module_expsym_cmds_F77 \
14905     lt_cv_prog_compiler_c_o_F77 \
14906     exclude_expsyms_F77 \
14907     include_expsyms_F77; do
14908
14909     case $var in
14910     old_archive_cmds_F77 | \
14911     old_archive_from_new_cmds_F77 | \
14912     archive_cmds_F77 | \
14913     archive_expsym_cmds_F77 | \
14914     module_cmds_F77 | \
14915     module_expsym_cmds_F77 | \
14916     old_archive_from_expsyms_cmds_F77 | \
14917     export_symbols_cmds_F77 | \
14918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14919     postinstall_cmds | postuninstall_cmds | \
14920     old_postinstall_cmds | old_postuninstall_cmds | \
14921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14922       # Double-quote double-evaled strings.
14923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14924       ;;
14925     *)
14926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14927       ;;
14928     esac
14929   done
14930
14931   case $lt_echo in
14932   *'\$0 --fallback-echo"')
14933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14934     ;;
14935   esac
14936
14937 cfgfile="$ofile"
14938
14939   cat <<__EOF__ >> "$cfgfile"
14940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14941
14942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14943
14944 # Shell to use when invoking shell scripts.
14945 SHELL=$lt_SHELL
14946
14947 # Whether or not to build shared libraries.
14948 build_libtool_libs=$enable_shared
14949
14950 # Whether or not to build static libraries.
14951 build_old_libs=$enable_static
14952
14953 # Whether or not to add -lc for building shared libraries.
14954 build_libtool_need_lc=$archive_cmds_need_lc_F77
14955
14956 # Whether or not to disallow shared libs when runtime libs are static
14957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14958
14959 # Whether or not to optimize for fast installation.
14960 fast_install=$enable_fast_install
14961
14962 # The host system.
14963 host_alias=$host_alias
14964 host=$host
14965
14966 # An echo program that does not interpret backslashes.
14967 echo=$lt_echo
14968
14969 # The archiver.
14970 AR=$lt_AR
14971 AR_FLAGS=$lt_AR_FLAGS
14972
14973 # A C compiler.
14974 LTCC=$lt_LTCC
14975
14976 # A language-specific compiler.
14977 CC=$lt_compiler_F77
14978
14979 # Is the compiler the GNU C compiler?
14980 with_gcc=$GCC_F77
14981
14982 # An ERE matcher.
14983 EGREP=$lt_EGREP
14984
14985 # The linker used to build libraries.
14986 LD=$lt_LD_F77
14987
14988 # Whether we need hard or soft links.
14989 LN_S=$lt_LN_S
14990
14991 # A BSD-compatible nm program.
14992 NM=$lt_NM
14993
14994 # A symbol stripping program
14995 STRIP=$lt_STRIP
14996
14997 # Used to examine libraries when file_magic_cmd begins "file"
14998 MAGIC_CMD=$MAGIC_CMD
14999
15000 # Used on cygwin: DLL creation program.
15001 DLLTOOL="$DLLTOOL"
15002
15003 # Used on cygwin: object dumper.
15004 OBJDUMP="$OBJDUMP"
15005
15006 # Used on cygwin: assembler.
15007 AS="$AS"
15008
15009 # The name of the directory that contains temporary libtool files.
15010 objdir=$objdir
15011
15012 # How to create reloadable object files.
15013 reload_flag=$lt_reload_flag
15014 reload_cmds=$lt_reload_cmds
15015
15016 # How to pass a linker flag through the compiler.
15017 wl=$lt_lt_prog_compiler_wl_F77
15018
15019 # Object file suffix (normally "o").
15020 objext="$ac_objext"
15021
15022 # Old archive suffix (normally "a").
15023 libext="$libext"
15024
15025 # Shared library suffix (normally ".so").
15026 shrext_cmds='$shrext_cmds'
15027
15028 # Executable file suffix (normally "").
15029 exeext="$exeext"
15030
15031 # Additional compiler flags for building library objects.
15032 pic_flag=$lt_lt_prog_compiler_pic_F77
15033 pic_mode=$pic_mode
15034
15035 # What is the maximum length of a command?
15036 max_cmd_len=$lt_cv_sys_max_cmd_len
15037
15038 # Does compiler simultaneously support -c and -o options?
15039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15040
15041 # Must we lock files when doing compilation ?
15042 need_locks=$lt_need_locks
15043
15044 # Do we need the lib prefix for modules?
15045 need_lib_prefix=$need_lib_prefix
15046
15047 # Do we need a version for libraries?
15048 need_version=$need_version
15049
15050 # Whether dlopen is supported.
15051 dlopen_support=$enable_dlopen
15052
15053 # Whether dlopen of programs is supported.
15054 dlopen_self=$enable_dlopen_self
15055
15056 # Whether dlopen of statically linked programs is supported.
15057 dlopen_self_static=$enable_dlopen_self_static
15058
15059 # Compiler flag to prevent dynamic linking.
15060 link_static_flag=$lt_lt_prog_compiler_static_F77
15061
15062 # Compiler flag to turn off builtin functions.
15063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15064
15065 # Compiler flag to allow reflexive dlopens.
15066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15067
15068 # Compiler flag to generate shared objects directly from archives.
15069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15070
15071 # Compiler flag to generate thread-safe objects.
15072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15073
15074 # Library versioning type.
15075 version_type=$version_type
15076
15077 # Format of library name prefix.
15078 libname_spec=$lt_libname_spec
15079
15080 # List of archive names.  First name is the real one, the rest are links.
15081 # The last name is the one that the linker finds with -lNAME.
15082 library_names_spec=$lt_library_names_spec
15083
15084 # The coded name of the library, if different from the real name.
15085 soname_spec=$lt_soname_spec
15086
15087 # Commands used to build and install an old-style archive.
15088 RANLIB=$lt_RANLIB
15089 old_archive_cmds=$lt_old_archive_cmds_F77
15090 old_postinstall_cmds=$lt_old_postinstall_cmds
15091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15092
15093 # Create an old-style archive from a shared archive.
15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15095
15096 # Create a temporary old-style archive to link instead of a shared archive.
15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15098
15099 # Commands used to build and install a shared archive.
15100 archive_cmds=$lt_archive_cmds_F77
15101 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15102 postinstall_cmds=$lt_postinstall_cmds
15103 postuninstall_cmds=$lt_postuninstall_cmds
15104
15105 # Commands used to build a loadable module (assumed same as above if empty)
15106 module_cmds=$lt_module_cmds_F77
15107 module_expsym_cmds=$lt_module_expsym_cmds_F77
15108
15109 # Commands to strip libraries.
15110 old_striplib=$lt_old_striplib
15111 striplib=$lt_striplib
15112
15113 # Dependencies to place before the objects being linked to create a
15114 # shared library.
15115 predep_objects=$lt_predep_objects_F77
15116
15117 # Dependencies to place after the objects being linked to create a
15118 # shared library.
15119 postdep_objects=$lt_postdep_objects_F77
15120
15121 # Dependencies to place before the objects being linked to create a
15122 # shared library.
15123 predeps=$lt_predeps_F77
15124
15125 # Dependencies to place after the objects being linked to create a
15126 # shared library.
15127 postdeps=$lt_postdeps_F77
15128
15129 # The library search path used internally by the compiler when linking
15130 # a shared library.
15131 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15132
15133 # Method to check whether dependent libraries are shared objects.
15134 deplibs_check_method=$lt_deplibs_check_method
15135
15136 # Command to use when deplibs_check_method == file_magic.
15137 file_magic_cmd=$lt_file_magic_cmd
15138
15139 # Flag that allows shared libraries with undefined symbols to be built.
15140 allow_undefined_flag=$lt_allow_undefined_flag_F77
15141
15142 # Flag that forces no undefined symbols.
15143 no_undefined_flag=$lt_no_undefined_flag_F77
15144
15145 # Commands used to finish a libtool library installation in a directory.
15146 finish_cmds=$lt_finish_cmds
15147
15148 # Same as above, but a single script fragment to be evaled but not shown.
15149 finish_eval=$lt_finish_eval
15150
15151 # Take the output of nm and produce a listing of raw symbols and C names.
15152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15153
15154 # Transform the output of nm in a proper C declaration
15155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15156
15157 # Transform the output of nm in a C name address pair
15158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15159
15160 # This is the shared library runtime path variable.
15161 runpath_var=$runpath_var
15162
15163 # This is the shared library path variable.
15164 shlibpath_var=$shlibpath_var
15165
15166 # Is shlibpath searched before the hard-coded library search path?
15167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15168
15169 # How to hardcode a shared library path into an executable.
15170 hardcode_action=$hardcode_action_F77
15171
15172 # Whether we should hardcode library paths into libraries.
15173 hardcode_into_libs=$hardcode_into_libs
15174
15175 # Flag to hardcode \$libdir into a binary during linking.
15176 # This must work even if \$libdir does not exist.
15177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15178
15179 # If ld is used when linking, flag to hardcode \$libdir into
15180 # a binary during linking. This must work even if \$libdir does
15181 # not exist.
15182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15183
15184 # Whether we need a single -rpath flag with a separated argument.
15185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15186
15187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15188 # resulting binary.
15189 hardcode_direct=$hardcode_direct_F77
15190
15191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15192 # resulting binary.
15193 hardcode_minus_L=$hardcode_minus_L_F77
15194
15195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15196 # the resulting binary.
15197 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15198
15199 # Set to yes if building a shared library automatically hardcodes DIR into the library
15200 # and all subsequent libraries and executables linked against it.
15201 hardcode_automatic=$hardcode_automatic_F77
15202
15203 # Variables whose values should be saved in libtool wrapper scripts and
15204 # restored at relink time.
15205 variables_saved_for_relink="$variables_saved_for_relink"
15206
15207 # Whether libtool must link a program against all its dependency libraries.
15208 link_all_deplibs=$link_all_deplibs_F77
15209
15210 # Compile-time system search path for libraries
15211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15212
15213 # Run-time system search path for libraries
15214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15215
15216 # Fix the shell variable \$srcfile for the compiler.
15217 fix_srcfile_path="$fix_srcfile_path_F77"
15218
15219 # Set to yes if exported symbols are required.
15220 always_export_symbols=$always_export_symbols_F77
15221
15222 # The commands to list exported symbols.
15223 export_symbols_cmds=$lt_export_symbols_cmds_F77
15224
15225 # The commands to extract the exported symbol list from a shared archive.
15226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15227
15228 # Symbols that should not be listed in the preloaded symbols.
15229 exclude_expsyms=$lt_exclude_expsyms_F77
15230
15231 # Symbols that must always be exported.
15232 include_expsyms=$lt_include_expsyms_F77
15233
15234 # ### END LIBTOOL TAG CONFIG: $tagname
15235
15236 __EOF__
15237
15238
15239 else
15240   # If there is no Makefile yet, we rely on a make rule to execute
15241   # `config.status --recheck' to rerun these tests and create the
15242   # libtool script then.
15243   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15244   if test -f "$ltmain_in"; then
15245     test -f Makefile && make "$ltmain"
15246   fi
15247 fi
15248
15249
15250 ac_ext=c
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256 CC="$lt_save_CC"
15257
15258         else
15259           tagname=""
15260         fi
15261         ;;
15262
15263       GCJ)
15264         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15265           ac_ext=c
15266 ac_cpp='$CPP $CPPFLAGS'
15267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15270
15271
15272 # Source file extension for Java test sources.
15273 ac_ext=java
15274
15275 # Object file extension for compiled Java test sources.
15276 objext=o
15277 objext_GCJ=$objext
15278
15279 # Code to be used in simple compile tests
15280 lt_simple_compile_test_code="class foo {}\n"
15281
15282 # Code to be used in simple link tests
15283 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15284
15285 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15286
15287 # If no C compiler was specified, use CC.
15288 LTCC=${LTCC-"$CC"}
15289
15290 # Allow CC to be a program name with arguments.
15291 compiler=$CC
15292
15293
15294 # Allow CC to be a program name with arguments.
15295 lt_save_CC="$CC"
15296 CC=${GCJ-"gcj"}
15297 compiler=$CC
15298 compiler_GCJ=$CC
15299
15300 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15301 archive_cmds_need_lc_GCJ=no
15302
15303
15304 lt_prog_compiler_no_builtin_flag_GCJ=
15305
15306 if test "$GCC" = yes; then
15307   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15308
15309
15310 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15311 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15313   echo $ECHO_N "(cached) $ECHO_C" >&6
15314 else
15315   lt_cv_prog_compiler_rtti_exceptions=no
15316   ac_outfile=conftest.$ac_objext
15317    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15318    lt_compiler_flag="-fno-rtti -fno-exceptions"
15319    # Insert the option either (1) after the last *FLAGS variable, or
15320    # (2) before a word containing "conftest.", or (3) at the end.
15321    # Note that $ac_compile itself does not contain backslashes and begins
15322    # with a dollar sign (not a hyphen), so the echo should work correctly.
15323    # The option is referenced via a variable to avoid confusing sed.
15324    lt_compile=`echo "$ac_compile" | $SED \
15325    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327    -e 's:$: $lt_compiler_flag:'`
15328    (eval echo "\"\$as_me:15328: $lt_compile\"" >&5)
15329    (eval "$lt_compile" 2>conftest.err)
15330    ac_status=$?
15331    cat conftest.err >&5
15332    echo "$as_me:15332: \$? = $ac_status" >&5
15333    if (exit $ac_status) && test -s "$ac_outfile"; then
15334      # The compiler can only warn and ignore the option if not recognized
15335      # So say no if there are warnings
15336      if test ! -s conftest.err; then
15337        lt_cv_prog_compiler_rtti_exceptions=yes
15338      fi
15339    fi
15340    $rm conftest*
15341
15342 fi
15343 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15344 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15345
15346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15347     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15348 else
15349     :
15350 fi
15351
15352 fi
15353
15354 lt_prog_compiler_wl_GCJ=
15355 lt_prog_compiler_pic_GCJ=
15356 lt_prog_compiler_static_GCJ=
15357
15358 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15359 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15360
15361   if test "$GCC" = yes; then
15362     lt_prog_compiler_wl_GCJ='-Wl,'
15363     lt_prog_compiler_static_GCJ='-static'
15364
15365     case $host_os in
15366       aix*)
15367       # All AIX code is PIC.
15368       if test "$host_cpu" = ia64; then
15369         # AIX 5 now supports IA64 processor
15370         lt_prog_compiler_static_GCJ='-Bstatic'
15371       fi
15372       ;;
15373
15374     amigaos*)
15375       # FIXME: we need at least 68020 code to build shared libraries, but
15376       # adding the `-m68020' flag to GCC prevents building anything better,
15377       # like `-m68040'.
15378       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15379       ;;
15380
15381     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15382       # PIC is the default for these OSes.
15383       ;;
15384
15385     mingw* | pw32* | os2*)
15386       # This hack is so that the source file can tell whether it is being
15387       # built for inclusion in a dll (and should export symbols for example).
15388       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15389       ;;
15390
15391     darwin* | rhapsody*)
15392       # PIC is the default on this platform
15393       # Common symbols not allowed in MH_DYLIB files
15394       lt_prog_compiler_pic_GCJ='-fno-common'
15395       ;;
15396
15397     msdosdjgpp*)
15398       # Just because we use GCC doesn't mean we suddenly get shared libraries
15399       # on systems that don't support them.
15400       lt_prog_compiler_can_build_shared_GCJ=no
15401       enable_shared=no
15402       ;;
15403
15404     sysv4*MP*)
15405       if test -d /usr/nec; then
15406         lt_prog_compiler_pic_GCJ=-Kconform_pic
15407       fi
15408       ;;
15409
15410     hpux*)
15411       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15412       # not for PA HP-UX.
15413       case "$host_cpu" in
15414       hppa*64*|ia64*)
15415         # +Z the default
15416         ;;
15417       *)
15418         lt_prog_compiler_pic_GCJ='-fPIC'
15419         ;;
15420       esac
15421       ;;
15422
15423     *)
15424       lt_prog_compiler_pic_GCJ='-fPIC'
15425       ;;
15426     esac
15427   else
15428     # PORTME Check for flag to pass linker flags through the system compiler.
15429     case $host_os in
15430     aix*)
15431       lt_prog_compiler_wl_GCJ='-Wl,'
15432       if test "$host_cpu" = ia64; then
15433         # AIX 5 now supports IA64 processor
15434         lt_prog_compiler_static_GCJ='-Bstatic'
15435       else
15436         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15437       fi
15438       ;;
15439       darwin*)
15440         # PIC is the default on this platform
15441         # Common symbols not allowed in MH_DYLIB files
15442        case "$cc_basename" in
15443          xlc*)
15444          lt_prog_compiler_pic_GCJ='-qnocommon'
15445          lt_prog_compiler_wl_GCJ='-Wl,'
15446          ;;
15447        esac
15448        ;;
15449
15450     mingw* | pw32* | os2*)
15451       # This hack is so that the source file can tell whether it is being
15452       # built for inclusion in a dll (and should export symbols for example).
15453       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15454       ;;
15455
15456     hpux9* | hpux10* | hpux11*)
15457       lt_prog_compiler_wl_GCJ='-Wl,'
15458       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15459       # not for PA HP-UX.
15460       case "$host_cpu" in
15461       hppa*64*|ia64*)
15462         # +Z the default
15463         ;;
15464       *)
15465         lt_prog_compiler_pic_GCJ='+Z'
15466         ;;
15467       esac
15468       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15469       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15470       ;;
15471
15472     irix5* | irix6* | nonstopux*)
15473       lt_prog_compiler_wl_GCJ='-Wl,'
15474       # PIC (with -KPIC) is the default.
15475       lt_prog_compiler_static_GCJ='-non_shared'
15476       ;;
15477
15478     newsos6)
15479       lt_prog_compiler_pic_GCJ='-KPIC'
15480       lt_prog_compiler_static_GCJ='-Bstatic'
15481       ;;
15482
15483     linux*)
15484       case $CC in
15485       icc* | ecc*)
15486         lt_prog_compiler_wl_GCJ='-Wl,'
15487         lt_prog_compiler_pic_GCJ='-KPIC'
15488         lt_prog_compiler_static_GCJ='-static'
15489         ;;
15490       ccc*)
15491         lt_prog_compiler_wl_GCJ='-Wl,'
15492         # All Alpha code is PIC.
15493         lt_prog_compiler_static_GCJ='-non_shared'
15494         ;;
15495       esac
15496       ;;
15497
15498     osf3* | osf4* | osf5*)
15499       lt_prog_compiler_wl_GCJ='-Wl,'
15500       # All OSF/1 code is PIC.
15501       lt_prog_compiler_static_GCJ='-non_shared'
15502       ;;
15503
15504     sco3.2v5*)
15505       lt_prog_compiler_pic_GCJ='-Kpic'
15506       lt_prog_compiler_static_GCJ='-dn'
15507       ;;
15508
15509     solaris*)
15510       lt_prog_compiler_wl_GCJ='-Wl,'
15511       lt_prog_compiler_pic_GCJ='-KPIC'
15512       lt_prog_compiler_static_GCJ='-Bstatic'
15513       ;;
15514
15515     sunos4*)
15516       lt_prog_compiler_wl_GCJ='-Qoption ld '
15517       lt_prog_compiler_pic_GCJ='-PIC'
15518       lt_prog_compiler_static_GCJ='-Bstatic'
15519       ;;
15520
15521     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15522       lt_prog_compiler_wl_GCJ='-Wl,'
15523       lt_prog_compiler_pic_GCJ='-KPIC'
15524       lt_prog_compiler_static_GCJ='-Bstatic'
15525       ;;
15526
15527     sysv4*MP*)
15528       if test -d /usr/nec ;then
15529         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15530         lt_prog_compiler_static_GCJ='-Bstatic'
15531       fi
15532       ;;
15533
15534     uts4*)
15535       lt_prog_compiler_pic_GCJ='-pic'
15536       lt_prog_compiler_static_GCJ='-Bstatic'
15537       ;;
15538
15539     *)
15540       lt_prog_compiler_can_build_shared_GCJ=no
15541       ;;
15542     esac
15543   fi
15544
15545 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15546 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15547
15548 #
15549 # Check to make sure the PIC flag actually works.
15550 #
15551 if test -n "$lt_prog_compiler_pic_GCJ"; then
15552
15553 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15554 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15555 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558   lt_prog_compiler_pic_works_GCJ=no
15559   ac_outfile=conftest.$ac_objext
15560    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15561    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15562    # Insert the option either (1) after the last *FLAGS variable, or
15563    # (2) before a word containing "conftest.", or (3) at the end.
15564    # Note that $ac_compile itself does not contain backslashes and begins
15565    # with a dollar sign (not a hyphen), so the echo should work correctly.
15566    # The option is referenced via a variable to avoid confusing sed.
15567    lt_compile=`echo "$ac_compile" | $SED \
15568    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15569    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570    -e 's:$: $lt_compiler_flag:'`
15571    (eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
15572    (eval "$lt_compile" 2>conftest.err)
15573    ac_status=$?
15574    cat conftest.err >&5
15575    echo "$as_me:15575: \$? = $ac_status" >&5
15576    if (exit $ac_status) && test -s "$ac_outfile"; then
15577      # The compiler can only warn and ignore the option if not recognized
15578      # So say no if there are warnings
15579      if test ! -s conftest.err; then
15580        lt_prog_compiler_pic_works_GCJ=yes
15581      fi
15582    fi
15583    $rm conftest*
15584
15585 fi
15586 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15587 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15588
15589 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15590     case $lt_prog_compiler_pic_GCJ in
15591      "" | " "*) ;;
15592      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15593      esac
15594 else
15595     lt_prog_compiler_pic_GCJ=
15596      lt_prog_compiler_can_build_shared_GCJ=no
15597 fi
15598
15599 fi
15600 case "$host_os" in
15601   # For platforms which do not support PIC, -DPIC is meaningless:
15602   *djgpp*)
15603     lt_prog_compiler_pic_GCJ=
15604     ;;
15605   *)
15606     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15607     ;;
15608 esac
15609
15610 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15611 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15612 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   lt_cv_prog_compiler_c_o_GCJ=no
15616    $rm -r conftest 2>/dev/null
15617    mkdir conftest
15618    cd conftest
15619    mkdir out
15620    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15621
15622    lt_compiler_flag="-o out/conftest2.$ac_objext"
15623    # Insert the option either (1) after the last *FLAGS variable, or
15624    # (2) before a word containing "conftest.", or (3) at the end.
15625    # Note that $ac_compile itself does not contain backslashes and begins
15626    # with a dollar sign (not a hyphen), so the echo should work correctly.
15627    lt_compile=`echo "$ac_compile" | $SED \
15628    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15629    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15630    -e 's:$: $lt_compiler_flag:'`
15631    (eval echo "\"\$as_me:15631: $lt_compile\"" >&5)
15632    (eval "$lt_compile" 2>out/conftest.err)
15633    ac_status=$?
15634    cat out/conftest.err >&5
15635    echo "$as_me:15635: \$? = $ac_status" >&5
15636    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15637    then
15638      # The compiler can only warn and ignore the option if not recognized
15639      # So say no if there are warnings
15640      if test ! -s out/conftest.err; then
15641        lt_cv_prog_compiler_c_o_GCJ=yes
15642      fi
15643    fi
15644    chmod u+w .
15645    $rm conftest*
15646    # SGI C++ compiler will create directory out/ii_files/ for
15647    # template instantiation
15648    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15649    $rm out/* && rmdir out
15650    cd ..
15651    rmdir conftest
15652    $rm conftest*
15653
15654 fi
15655 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15656 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15657
15658
15659 hard_links="nottested"
15660 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15661   # do not overwrite the value of need_locks provided by the user
15662   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15663 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15664   hard_links=yes
15665   $rm conftest*
15666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15667   touch conftest.a
15668   ln conftest.a conftest.b 2>&5 || hard_links=no
15669   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15670   echo "$as_me:$LINENO: result: $hard_links" >&5
15671 echo "${ECHO_T}$hard_links" >&6
15672   if test "$hard_links" = no; then
15673     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15674 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15675     need_locks=warn
15676   fi
15677 else
15678   need_locks=no
15679 fi
15680
15681 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15682 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15683
15684   runpath_var=
15685   allow_undefined_flag_GCJ=
15686   enable_shared_with_static_runtimes_GCJ=no
15687   archive_cmds_GCJ=
15688   archive_expsym_cmds_GCJ=
15689   old_archive_From_new_cmds_GCJ=
15690   old_archive_from_expsyms_cmds_GCJ=
15691   export_dynamic_flag_spec_GCJ=
15692   whole_archive_flag_spec_GCJ=
15693   thread_safe_flag_spec_GCJ=
15694   hardcode_libdir_flag_spec_GCJ=
15695   hardcode_libdir_flag_spec_ld_GCJ=
15696   hardcode_libdir_separator_GCJ=
15697   hardcode_direct_GCJ=no
15698   hardcode_minus_L_GCJ=no
15699   hardcode_shlibpath_var_GCJ=unsupported
15700   link_all_deplibs_GCJ=unknown
15701   hardcode_automatic_GCJ=no
15702   module_cmds_GCJ=
15703   module_expsym_cmds_GCJ=
15704   always_export_symbols_GCJ=no
15705   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15706   # include_expsyms should be a list of space-separated symbols to be *always*
15707   # included in the symbol list
15708   include_expsyms_GCJ=
15709   # exclude_expsyms can be an extended regexp of symbols to exclude
15710   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15711   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15712   # as well as any symbol that contains `d'.
15713   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15714   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15715   # platforms (ab)use it in PIC code, but their linkers get confused if
15716   # the symbol is explicitly referenced.  Since portable code cannot
15717   # rely on this symbol name, it's probably fine to never include it in
15718   # preloaded symbol tables.
15719   extract_expsyms_cmds=
15720
15721   case $host_os in
15722   cygwin* | mingw* | pw32*)
15723     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15724     # When not using gcc, we currently assume that we are using
15725     # Microsoft Visual C++.
15726     if test "$GCC" != yes; then
15727       with_gnu_ld=no
15728     fi
15729     ;;
15730   openbsd*)
15731     with_gnu_ld=no
15732     ;;
15733   esac
15734
15735   ld_shlibs_GCJ=yes
15736   if test "$with_gnu_ld" = yes; then
15737     # If archive_cmds runs LD, not CC, wlarc should be empty
15738     wlarc='${wl}'
15739
15740     # See if GNU ld supports shared libraries.
15741     case $host_os in
15742     aix3* | aix4* | aix5*)
15743       # On AIX/PPC, the GNU linker is very broken
15744       if test "$host_cpu" != ia64; then
15745         ld_shlibs_GCJ=no
15746         cat <<EOF 1>&2
15747
15748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15749 *** to be unable to reliably create shared libraries on AIX.
15750 *** Therefore, libtool is disabling shared libraries support.  If you
15751 *** really care for shared libraries, you may want to modify your PATH
15752 *** so that a non-GNU linker is found, and then restart.
15753
15754 EOF
15755       fi
15756       ;;
15757
15758     amigaos*)
15759       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)'
15760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761       hardcode_minus_L_GCJ=yes
15762
15763       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15764       # that the semantics of dynamic libraries on AmigaOS, at least up
15765       # to version 4, is to share data among multiple programs linked
15766       # with the same dynamic library.  Since this doesn't match the
15767       # behavior of shared libraries on other platforms, we can't use
15768       # them.
15769       ld_shlibs_GCJ=no
15770       ;;
15771
15772     beos*)
15773       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15774         allow_undefined_flag_GCJ=unsupported
15775         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15776         # support --undefined.  This deserves some investigation.  FIXME
15777         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778       else
15779         ld_shlibs_GCJ=no
15780       fi
15781       ;;
15782
15783     cygwin* | mingw* | pw32*)
15784       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15785       # as there is no search path for DLLs.
15786       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787       allow_undefined_flag_GCJ=unsupported
15788       always_export_symbols_GCJ=no
15789       enable_shared_with_static_runtimes_GCJ=yes
15790       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15791
15792       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15793         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15794         # If the export-symbols file already is a .def file (1st line
15795         # is EXPORTS), use it as is; otherwise, prepend...
15796         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15797           cp $export_symbols $output_objdir/$soname.def;
15798         else
15799           echo EXPORTS > $output_objdir/$soname.def;
15800           cat $export_symbols >> $output_objdir/$soname.def;
15801         fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15802       else
15803         ld_shlibs=no
15804       fi
15805       ;;
15806
15807     netbsd*)
15808       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15809         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15810         wlarc=
15811       else
15812         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15814       fi
15815       ;;
15816
15817     solaris* | sysv5*)
15818       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15819         ld_shlibs_GCJ=no
15820         cat <<EOF 1>&2
15821
15822 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15823 *** create shared libraries on Solaris systems.  Therefore, libtool
15824 *** is disabling shared libraries support.  We urge you to upgrade GNU
15825 *** binutils to release 2.9.1 or newer.  Another option is to modify
15826 *** your PATH or compiler configuration so that the native linker is
15827 *** used, and then restart.
15828
15829 EOF
15830       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15831         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15832         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15833       else
15834         ld_shlibs_GCJ=no
15835       fi
15836       ;;
15837
15838     sunos4*)
15839       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15840       wlarc=
15841       hardcode_direct_GCJ=yes
15842       hardcode_shlibpath_var_GCJ=no
15843       ;;
15844
15845   linux*)
15846     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15847         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848         archive_cmds_GCJ="$tmp_archive_cmds"
15849       supports_anon_versioning=no
15850       case `$LD -v 2>/dev/null` in
15851         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15852         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15853         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15854         *\ 2.11.*) ;; # other 2.11 versions
15855         *) supports_anon_versioning=yes ;;
15856       esac
15857       if test $supports_anon_versioning = yes; then
15858         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15859         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15860       else
15861         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15862       fi
15863     else
15864       ld_shlibs_GCJ=no
15865     fi
15866     ;;
15867
15868     *)
15869       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15870         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15871         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15872       else
15873         ld_shlibs_GCJ=no
15874       fi
15875       ;;
15876     esac
15877
15878     if test "$ld_shlibs_GCJ" = yes; then
15879       runpath_var=LD_RUN_PATH
15880       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15881       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15882       # ancient GNU ld didn't support --whole-archive et. al.
15883       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15884         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15885       else
15886         whole_archive_flag_spec_GCJ=
15887       fi
15888     fi
15889   else
15890     # PORTME fill in a description of your system's linker (not GNU ld)
15891     case $host_os in
15892     aix3*)
15893       allow_undefined_flag_GCJ=unsupported
15894       always_export_symbols_GCJ=yes
15895       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'
15896       # Note: this linker hardcodes the directories in LIBPATH if there
15897       # are no directories specified by -L.
15898       hardcode_minus_L_GCJ=yes
15899       if test "$GCC" = yes && test -z "$link_static_flag"; then
15900         # Neither direct hardcoding nor static linking is supported with a
15901         # broken collect2.
15902         hardcode_direct_GCJ=unsupported
15903       fi
15904       ;;
15905
15906     aix4* | aix5*)
15907       if test "$host_cpu" = ia64; then
15908         # On IA64, the linker does run time linking by default, so we don't
15909         # have to do anything special.
15910         aix_use_runtimelinking=no
15911         exp_sym_flag='-Bexport'
15912         no_entry_flag=""
15913       else
15914         # If we're using GNU nm, then we don't want the "-C" option.
15915         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15916         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15917           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'
15918         else
15919           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'
15920         fi
15921         aix_use_runtimelinking=no
15922
15923         # Test if we are trying to use run time linking or normal
15924         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15925         # need to do runtime linking.
15926         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15927           for ld_flag in $LDFLAGS; do
15928           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15929             aix_use_runtimelinking=yes
15930             break
15931           fi
15932           done
15933         esac
15934
15935         exp_sym_flag='-bexport'
15936         no_entry_flag='-bnoentry'
15937       fi
15938
15939       # When large executables or shared objects are built, AIX ld can
15940       # have problems creating the table of contents.  If linking a library
15941       # or program results in "error TOC overflow" add -mminimal-toc to
15942       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15943       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15944
15945       archive_cmds_GCJ=''
15946       hardcode_direct_GCJ=yes
15947       hardcode_libdir_separator_GCJ=':'
15948       link_all_deplibs_GCJ=yes
15949
15950       if test "$GCC" = yes; then
15951         case $host_os in aix4.012|aix4.012.*)
15952         # We only want to do this on AIX 4.2 and lower, the check
15953         # below for broken collect2 doesn't work under 4.3+
15954           collect2name=`${CC} -print-prog-name=collect2`
15955           if test -f "$collect2name" && \
15956            strings "$collect2name" | grep resolve_lib_name >/dev/null
15957           then
15958           # We have reworked collect2
15959           hardcode_direct_GCJ=yes
15960           else
15961           # We have old collect2
15962           hardcode_direct_GCJ=unsupported
15963           # It fails to find uninstalled libraries when the uninstalled
15964           # path is not listed in the libpath.  Setting hardcode_minus_L
15965           # to unsupported forces relinking
15966           hardcode_minus_L_GCJ=yes
15967           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15968           hardcode_libdir_separator_GCJ=
15969           fi
15970         esac
15971         shared_flag='-shared'
15972       else
15973         # not using gcc
15974         if test "$host_cpu" = ia64; then
15975         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15976         # chokes on -Wl,-G. The following line is correct:
15977           shared_flag='-G'
15978         else
15979         if test "$aix_use_runtimelinking" = yes; then
15980             shared_flag='${wl}-G'
15981           else
15982             shared_flag='${wl}-bM:SRE'
15983         fi
15984         fi
15985       fi
15986
15987       # It seems that -bexpall does not export symbols beginning with
15988       # underscore (_), so it is better to generate a list of symbols to export.
15989       always_export_symbols_GCJ=yes
15990       if test "$aix_use_runtimelinking" = yes; then
15991         # Warning - without using the other runtime loading flags (-brtl),
15992         # -berok will link without error, but may produce a broken library.
15993         allow_undefined_flag_GCJ='-berok'
15994        # Determine the default libpath from the value encoded in an empty executable.
15995        cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001
16002 int
16003 main ()
16004 {
16005
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012   (eval $ac_link) 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -z "$ac_c_werror_flag"
16020                          || test ! -s conftest.err'
16021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022   (eval $ac_try) 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); }; } &&
16026          { ac_try='test -s conftest$ac_exeext'
16027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028   (eval $ac_try) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; }; then
16032
16033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16034 }'`
16035 # Check for a 64-bit object if we didn't find anything.
16036 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; }
16037 }'`; fi
16038 else
16039   echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 fi
16043 rm -f conftest.err conftest.$ac_objext \
16044       conftest$ac_exeext conftest.$ac_ext
16045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16046
16047        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16048         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"
16049        else
16050         if test "$host_cpu" = ia64; then
16051           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16052           allow_undefined_flag_GCJ="-z nodefs"
16053           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"
16054         else
16055          # Determine the default libpath from the value encoded in an empty executable.
16056          cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h.  */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h.  */
16062
16063 int
16064 main ()
16065 {
16066
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073   (eval $ac_link) 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -z "$ac_c_werror_flag"
16081                          || test ! -s conftest.err'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; } &&
16087          { ac_try='test -s conftest$ac_exeext'
16088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089   (eval $ac_try) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; }; then
16093
16094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16095 }'`
16096 # Check for a 64-bit object if we didn't find anything.
16097 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; }
16098 }'`; fi
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 fi
16104 rm -f conftest.err conftest.$ac_objext \
16105       conftest$ac_exeext conftest.$ac_ext
16106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16107
16108          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16109           # Warning - without using the other run time loading flags,
16110           # -berok will link without error, but may produce a broken library.
16111           no_undefined_flag_GCJ=' ${wl}-bernotok'
16112           allow_undefined_flag_GCJ=' ${wl}-berok'
16113           # -bexpall does not export symbols beginning with underscore (_)
16114           always_export_symbols_GCJ=yes
16115           # Exported symbols can be pulled into shared objects from archives
16116           whole_archive_flag_spec_GCJ=' '
16117           archive_cmds_need_lc_GCJ=yes
16118           # This is similar to how AIX traditionally builds it's shared libraries.
16119           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'
16120         fi
16121       fi
16122       ;;
16123
16124     amigaos*)
16125       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)'
16126       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16127       hardcode_minus_L_GCJ=yes
16128       # see comment about different semantics on the GNU ld section
16129       ld_shlibs_GCJ=no
16130       ;;
16131
16132     bsdi[45]*)
16133       export_dynamic_flag_spec_GCJ=-rdynamic
16134       ;;
16135
16136     cygwin* | mingw* | pw32*)
16137       # When not using gcc, we currently assume that we are using
16138       # Microsoft Visual C++.
16139       # hardcode_libdir_flag_spec is actually meaningless, as there is
16140       # no search path for DLLs.
16141       hardcode_libdir_flag_spec_GCJ=' '
16142       allow_undefined_flag_GCJ=unsupported
16143       # Tell ltmain to make .lib files, not .a files.
16144       libext=lib
16145       # Tell ltmain to make .dll files, not .so files.
16146       shrext_cmds=".dll"
16147       # FIXME: Setting linknames here is a bad hack.
16148       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16149       # The linker will automatically build a .lib file if we build a DLL.
16150       old_archive_From_new_cmds_GCJ='true'
16151       # FIXME: Should let the user specify the lib program.
16152       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16153       fix_srcfile_path='`cygpath -w "$srcfile"`'
16154       enable_shared_with_static_runtimes_GCJ=yes
16155       ;;
16156
16157     darwin* | rhapsody*)
16158       case "$host_os" in
16159         rhapsody* | darwin1.[012])
16160          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16161          ;;
16162        *) # Darwin 1.3 on
16163          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16164            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16165          else
16166            case ${MACOSX_DEPLOYMENT_TARGET} in
16167              10.[012])
16168                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16169                ;;
16170              10.*)
16171                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16172                ;;
16173            esac
16174          fi
16175          ;;
16176       esac
16177       archive_cmds_need_lc_GCJ=no
16178       hardcode_direct_GCJ=no
16179       hardcode_automatic_GCJ=yes
16180       hardcode_shlibpath_var_GCJ=unsupported
16181       whole_archive_flag_spec_GCJ=''
16182       link_all_deplibs_GCJ=yes
16183     if test "$GCC" = yes ; then
16184         output_verbose_link_cmd='echo'
16185         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16186       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16187       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16188       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16189       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16190     else
16191       case "$cc_basename" in
16192         xlc*)
16193          output_verbose_link_cmd='echo'
16194          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16195          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16196           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16197          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16198           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16199           ;;
16200        *)
16201          ld_shlibs_GCJ=no
16202           ;;
16203       esac
16204     fi
16205       ;;
16206
16207     dgux*)
16208       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16210       hardcode_shlibpath_var_GCJ=no
16211       ;;
16212
16213     freebsd1*)
16214       ld_shlibs_GCJ=no
16215       ;;
16216
16217     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16218     # support.  Future versions do this automatically, but an explicit c++rt0.o
16219     # does not break anything, and helps significantly (at the cost of a little
16220     # extra space).
16221     freebsd2.2*)
16222       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16223       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16224       hardcode_direct_GCJ=yes
16225       hardcode_shlibpath_var_GCJ=no
16226       ;;
16227
16228     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16229     freebsd2*)
16230       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16231       hardcode_direct_GCJ=yes
16232       hardcode_minus_L_GCJ=yes
16233       hardcode_shlibpath_var_GCJ=no
16234       ;;
16235
16236     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16237     freebsd* | kfreebsd*-gnu)
16238       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16239       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16240       hardcode_direct_GCJ=yes
16241       hardcode_shlibpath_var_GCJ=no
16242       ;;
16243
16244     hpux9*)
16245       if test "$GCC" = yes; then
16246         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'
16247       else
16248         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'
16249       fi
16250       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16251       hardcode_libdir_separator_GCJ=:
16252       hardcode_direct_GCJ=yes
16253
16254       # hardcode_minus_L: Not really in the search PATH,
16255       # but as the default location of the library.
16256       hardcode_minus_L_GCJ=yes
16257       export_dynamic_flag_spec_GCJ='${wl}-E'
16258       ;;
16259
16260     hpux10* | hpux11*)
16261       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16262         case "$host_cpu" in
16263         hppa*64*|ia64*)
16264           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265           ;;
16266         *)
16267           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16268           ;;
16269         esac
16270       else
16271         case "$host_cpu" in
16272         hppa*64*|ia64*)
16273           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16274           ;;
16275         *)
16276           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16277           ;;
16278         esac
16279       fi
16280       if test "$with_gnu_ld" = no; then
16281         case "$host_cpu" in
16282         hppa*64*)
16283           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16285           hardcode_libdir_separator_GCJ=:
16286           hardcode_direct_GCJ=no
16287           hardcode_shlibpath_var_GCJ=no
16288           ;;
16289         ia64*)
16290           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16291           hardcode_direct_GCJ=no
16292           hardcode_shlibpath_var_GCJ=no
16293
16294           # hardcode_minus_L: Not really in the search PATH,
16295           # but as the default location of the library.
16296           hardcode_minus_L_GCJ=yes
16297           ;;
16298         *)
16299           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16300           hardcode_libdir_separator_GCJ=:
16301           hardcode_direct_GCJ=yes
16302           export_dynamic_flag_spec_GCJ='${wl}-E'
16303
16304           # hardcode_minus_L: Not really in the search PATH,
16305           # but as the default location of the library.
16306           hardcode_minus_L_GCJ=yes
16307           ;;
16308         esac
16309       fi
16310       ;;
16311
16312     irix5* | irix6* | nonstopux*)
16313       if test "$GCC" = yes; then
16314         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'
16315       else
16316         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'
16317         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16318       fi
16319       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16320       hardcode_libdir_separator_GCJ=:
16321       link_all_deplibs_GCJ=yes
16322       ;;
16323
16324     netbsd*)
16325       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16326         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16327       else
16328         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16329       fi
16330       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16331       hardcode_direct_GCJ=yes
16332       hardcode_shlibpath_var_GCJ=no
16333       ;;
16334
16335     newsos6)
16336       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337       hardcode_direct_GCJ=yes
16338       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339       hardcode_libdir_separator_GCJ=:
16340       hardcode_shlibpath_var_GCJ=no
16341       ;;
16342
16343     openbsd*)
16344       hardcode_direct_GCJ=yes
16345       hardcode_shlibpath_var_GCJ=no
16346       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16348         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16349         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16350         export_dynamic_flag_spec_GCJ='${wl}-E'
16351       else
16352        case $host_os in
16353          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16354            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16355            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16356            ;;
16357          *)
16358            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16359            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16360            ;;
16361        esac
16362       fi
16363       ;;
16364
16365     os2*)
16366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16367       hardcode_minus_L_GCJ=yes
16368       allow_undefined_flag_GCJ=unsupported
16369       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'
16370       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16371       ;;
16372
16373     osf3*)
16374       if test "$GCC" = yes; then
16375         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16376         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'
16377       else
16378         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16379         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'
16380       fi
16381       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16382       hardcode_libdir_separator_GCJ=:
16383       ;;
16384
16385     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16386       if test "$GCC" = yes; then
16387         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16388         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'
16389         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16390       else
16391         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16392         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'
16393         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; $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'
16394         # Both c and cxx compiler support -rpath directly
16395         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16396       fi
16397       hardcode_libdir_separator_GCJ=:
16398       ;;
16399
16400     sco3.2v5*)
16401       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402       hardcode_shlibpath_var_GCJ=no
16403       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16404       runpath_var=LD_RUN_PATH
16405       hardcode_runpath_var=yes
16406       ;;
16407
16408     solaris*)
16409       no_undefined_flag_GCJ=' -z text'
16410       if test "$GCC" = yes; then
16411         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16412         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
16413       else
16414         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16415         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16416       fi
16417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418       hardcode_shlibpath_var_GCJ=no
16419       case $host_os in
16420       solaris2.[0-5] | solaris2.[0-5].*) ;;
16421       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16422         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16423       esac
16424       link_all_deplibs_GCJ=yes
16425       ;;
16426
16427     sunos4*)
16428       if test "x$host_vendor" = xsequent; then
16429         # Use $CC to link under sequent, because it throws in some extra .o
16430         # files that make .init and .fini sections work.
16431         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16432       else
16433         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16434       fi
16435       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16436       hardcode_direct_GCJ=yes
16437       hardcode_minus_L_GCJ=yes
16438       hardcode_shlibpath_var_GCJ=no
16439       ;;
16440
16441     sysv4)
16442       case $host_vendor in
16443         sni)
16444           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445           hardcode_direct_GCJ=yes # is this really true???
16446         ;;
16447         siemens)
16448           ## LD is ld it makes a PLAMLIB
16449           ## CC just makes a GrossModule.
16450           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16451           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16452           hardcode_direct_GCJ=no
16453         ;;
16454         motorola)
16455           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16457         ;;
16458       esac
16459       runpath_var='LD_RUN_PATH'
16460       hardcode_shlibpath_var_GCJ=no
16461       ;;
16462
16463     sysv4.3*)
16464       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465       hardcode_shlibpath_var_GCJ=no
16466       export_dynamic_flag_spec_GCJ='-Bexport'
16467       ;;
16468
16469     sysv4*MP*)
16470       if test -d /usr/nec; then
16471         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472         hardcode_shlibpath_var_GCJ=no
16473         runpath_var=LD_RUN_PATH
16474         hardcode_runpath_var=yes
16475         ld_shlibs_GCJ=yes
16476       fi
16477       ;;
16478
16479     sysv4.2uw2*)
16480       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481       hardcode_direct_GCJ=yes
16482       hardcode_minus_L_GCJ=no
16483       hardcode_shlibpath_var_GCJ=no
16484       hardcode_runpath_var=yes
16485       runpath_var=LD_RUN_PATH
16486       ;;
16487
16488    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16489       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16490       if test "$GCC" = yes; then
16491         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492       else
16493         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16494       fi
16495       runpath_var='LD_RUN_PATH'
16496       hardcode_shlibpath_var_GCJ=no
16497       ;;
16498
16499     sysv5*)
16500       no_undefined_flag_GCJ=' -z text'
16501       # $CC -shared without GNU ld will not create a library from C++
16502       # object files and a static libstdc++, better avoid it by now
16503       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16505       hardcode_libdir_flag_spec_GCJ=
16506       hardcode_shlibpath_var_GCJ=no
16507       runpath_var='LD_RUN_PATH'
16508       ;;
16509
16510     uts4*)
16511       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16513       hardcode_shlibpath_var_GCJ=no
16514       ;;
16515
16516     *)
16517       ld_shlibs_GCJ=no
16518       ;;
16519     esac
16520   fi
16521
16522 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16523 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16524 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16525
16526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16527 if test "$GCC" = yes; then
16528   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16529 fi
16530
16531 #
16532 # Do we need to explicitly link libc?
16533 #
16534 case "x$archive_cmds_need_lc_GCJ" in
16535 x|xyes)
16536   # Assume -lc should be added
16537   archive_cmds_need_lc_GCJ=yes
16538
16539   if test "$enable_shared" = yes && test "$GCC" = yes; then
16540     case $archive_cmds_GCJ in
16541     *'~'*)
16542       # FIXME: we may have to deal with multi-command sequences.
16543       ;;
16544     '$CC '*)
16545       # Test whether the compiler implicitly links with -lc since on some
16546       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16547       # to ld, don't add -lc before -lgcc.
16548       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16550       $rm conftest*
16551       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552
16553       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554   (eval $ac_compile) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } 2>conftest.err; then
16558         soname=conftest
16559         lib=conftest
16560         libobjs=conftest.$ac_objext
16561         deplibs=
16562         wl=$lt_prog_compiler_wl_GCJ
16563         compiler_flags=-v
16564         linker_flags=-v
16565         verstring=
16566         output_objdir=.
16567         libname=conftest
16568         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16569         allow_undefined_flag_GCJ=
16570         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16571   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); }
16575         then
16576           archive_cmds_need_lc_GCJ=no
16577         else
16578           archive_cmds_need_lc_GCJ=yes
16579         fi
16580         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16581       else
16582         cat conftest.err 1>&5
16583       fi
16584       $rm conftest*
16585       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16586 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16587       ;;
16588     esac
16589   fi
16590   ;;
16591 esac
16592
16593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16595 library_names_spec=
16596 libname_spec='lib$name'
16597 soname_spec=
16598 shrext_cmds=".so"
16599 postinstall_cmds=
16600 postuninstall_cmds=
16601 finish_cmds=
16602 finish_eval=
16603 shlibpath_var=
16604 shlibpath_overrides_runpath=unknown
16605 version_type=none
16606 dynamic_linker="$host_os ld.so"
16607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16608 if test "$GCC" = yes; then
16609   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16610   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16611     # if the path contains ";" then we assume it to be the separator
16612     # otherwise default to the standard path separator (i.e. ":") - it is
16613     # assumed that no part of a normal pathname contains ";" but that should
16614     # okay in the real world where ";" in dirpaths is itself problematic.
16615     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16616   else
16617     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16618   fi
16619 else
16620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16621 fi
16622 need_lib_prefix=unknown
16623 hardcode_into_libs=no
16624
16625 # when you set need_version to no, make sure it does not cause -set_version
16626 # flags to be left without arguments
16627 need_version=unknown
16628
16629 case $host_os in
16630 aix3*)
16631   version_type=linux
16632   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16633   shlibpath_var=LIBPATH
16634
16635   # AIX 3 has no versioning support, so we append a major version to the name.
16636   soname_spec='${libname}${release}${shared_ext}$major'
16637   ;;
16638
16639 aix4* | aix5*)
16640   version_type=linux
16641   need_lib_prefix=no
16642   need_version=no
16643   hardcode_into_libs=yes
16644   if test "$host_cpu" = ia64; then
16645     # AIX 5 supports IA64
16646     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16647     shlibpath_var=LD_LIBRARY_PATH
16648   else
16649     # With GCC up to 2.95.x, collect2 would create an import file
16650     # for dependence libraries.  The import file would start with
16651     # the line `#! .'.  This would cause the generated library to
16652     # depend on `.', always an invalid library.  This was fixed in
16653     # development snapshots of GCC prior to 3.0.
16654     case $host_os in
16655       aix4 | aix4.[01] | aix4.[01].*)
16656       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16657            echo ' yes '
16658            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16659         :
16660       else
16661         can_build_shared=no
16662       fi
16663       ;;
16664     esac
16665     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16666     # soname into executable. Probably we can add versioning support to
16667     # collect2, so additional links can be useful in future.
16668     if test "$aix_use_runtimelinking" = yes; then
16669       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16670       # instead of lib<name>.a to let people know that these are not
16671       # typical AIX shared libraries.
16672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673     else
16674       # We preserve .a as extension for shared libraries through AIX4.2
16675       # and later when we are not doing run time linking.
16676       library_names_spec='${libname}${release}.a $libname.a'
16677       soname_spec='${libname}${release}${shared_ext}$major'
16678     fi
16679     shlibpath_var=LIBPATH
16680   fi
16681   ;;
16682
16683 amigaos*)
16684   library_names_spec='$libname.ixlibrary $libname.a'
16685   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16686   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'
16687   ;;
16688
16689 beos*)
16690   library_names_spec='${libname}${shared_ext}'
16691   dynamic_linker="$host_os ld.so"
16692   shlibpath_var=LIBRARY_PATH
16693   ;;
16694
16695 bsdi[45]*)
16696   version_type=linux
16697   need_version=no
16698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699   soname_spec='${libname}${release}${shared_ext}$major'
16700   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16701   shlibpath_var=LD_LIBRARY_PATH
16702   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16703   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16704   # the default ld.so.conf also contains /usr/contrib/lib and
16705   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16706   # libtool to hard-code these into programs
16707   ;;
16708
16709 cygwin* | mingw* | pw32*)
16710   version_type=windows
16711   shrext_cmds=".dll"
16712   need_version=no
16713   need_lib_prefix=no
16714
16715   case $GCC,$host_os in
16716   yes,cygwin* | yes,mingw* | yes,pw32*)
16717     library_names_spec='$libname.dll.a'
16718     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16719     postinstall_cmds='base_file=`basename \${file}`;
16720       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16721       dldir=$destdir/`dirname \$dlpath`;
16722       test -d \$dldir || mkdir -p \$dldir;
16723       $install_prog $dir/$dlname \$dldir/$dlname'
16724     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16725       dlpath=$dir/\$dldll;
16726        $rm \$dlpath'
16727     shlibpath_overrides_runpath=yes
16728
16729     case $host_os in
16730     cygwin*)
16731       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16732       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16733       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16734       ;;
16735     mingw*)
16736       # MinGW DLLs use traditional 'lib' prefix
16737       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16738       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16739       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16740         # It is most probably a Windows format PATH printed by
16741         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16742         # path with ; separators, and with drive letters. We can handle the
16743         # drive letters (cygwin fileutils understands them), so leave them,
16744         # especially as we might pass files found there to a mingw objdump,
16745         # which wouldn't understand a cygwinified path. Ahh.
16746         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16747       else
16748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16749       fi
16750       ;;
16751     pw32*)
16752       # pw32 DLLs use 'pw' prefix rather than 'lib'
16753       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16754       ;;
16755     esac
16756     ;;
16757
16758   *)
16759     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16760     ;;
16761   esac
16762   dynamic_linker='Win32 ld.exe'
16763   # FIXME: first we should search . and the directory the executable is in
16764   shlibpath_var=PATH
16765   ;;
16766
16767 darwin* | rhapsody*)
16768   dynamic_linker="$host_os dyld"
16769   version_type=darwin
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16773   soname_spec='${libname}${release}${major}$shared_ext'
16774   shlibpath_overrides_runpath=yes
16775   shlibpath_var=DYLD_LIBRARY_PATH
16776   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16777   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16778   if test "$GCC" = yes; then
16779     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"`
16780   else
16781     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16782   fi
16783   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16784   ;;
16785
16786 dgux*)
16787   version_type=linux
16788   need_lib_prefix=no
16789   need_version=no
16790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16791   soname_spec='${libname}${release}${shared_ext}$major'
16792   shlibpath_var=LD_LIBRARY_PATH
16793   ;;
16794
16795 freebsd1*)
16796   dynamic_linker=no
16797   ;;
16798
16799 kfreebsd*-gnu)
16800   version_type=linux
16801   need_lib_prefix=no
16802   need_version=no
16803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16804   soname_spec='${libname}${release}${shared_ext}$major'
16805   shlibpath_var=LD_LIBRARY_PATH
16806   shlibpath_overrides_runpath=no
16807   hardcode_into_libs=yes
16808   dynamic_linker='GNU ld.so'
16809   ;;
16810
16811 freebsd*)
16812   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16813   version_type=freebsd-$objformat
16814   case $version_type in
16815     freebsd-elf*)
16816       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16817       need_version=no
16818       need_lib_prefix=no
16819       ;;
16820     freebsd-*)
16821       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16822       need_version=yes
16823       ;;
16824   esac
16825   shlibpath_var=LD_LIBRARY_PATH
16826   case $host_os in
16827   freebsd2*)
16828     shlibpath_overrides_runpath=yes
16829     ;;
16830   freebsd3.01* | freebsdelf3.01*)
16831     shlibpath_overrides_runpath=yes
16832     hardcode_into_libs=yes
16833     ;;
16834   *) # from 3.2 on
16835     shlibpath_overrides_runpath=no
16836     hardcode_into_libs=yes
16837     ;;
16838   esac
16839   ;;
16840
16841 gnu*)
16842   version_type=linux
16843   need_lib_prefix=no
16844   need_version=no
16845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16846   soname_spec='${libname}${release}${shared_ext}$major'
16847   shlibpath_var=LD_LIBRARY_PATH
16848   hardcode_into_libs=yes
16849   ;;
16850
16851 hpux9* | hpux10* | hpux11*)
16852   # Give a soname corresponding to the major version so that dld.sl refuses to
16853   # link against other versions.
16854   version_type=sunos
16855   need_lib_prefix=no
16856   need_version=no
16857   case "$host_cpu" in
16858   ia64*)
16859     shrext_cmds='.so'
16860     hardcode_into_libs=yes
16861     dynamic_linker="$host_os dld.so"
16862     shlibpath_var=LD_LIBRARY_PATH
16863     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865     soname_spec='${libname}${release}${shared_ext}$major'
16866     if test "X$HPUX_IA64_MODE" = X32; then
16867       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16868     else
16869       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16870     fi
16871     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16872     ;;
16873    hppa*64*)
16874      shrext_cmds='.sl'
16875      hardcode_into_libs=yes
16876      dynamic_linker="$host_os dld.sl"
16877      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16878      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16879      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880      soname_spec='${libname}${release}${shared_ext}$major'
16881      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16882      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16883      ;;
16884    *)
16885     shrext_cmds='.sl'
16886     dynamic_linker="$host_os dld.sl"
16887     shlibpath_var=SHLIB_PATH
16888     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890     soname_spec='${libname}${release}${shared_ext}$major'
16891     ;;
16892   esac
16893   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16894   postinstall_cmds='chmod 555 $lib'
16895   ;;
16896
16897 irix5* | irix6* | nonstopux*)
16898   case $host_os in
16899     nonstopux*) version_type=nonstopux ;;
16900     *)
16901         if test "$lt_cv_prog_gnu_ld" = yes; then
16902                 version_type=linux
16903         else
16904                 version_type=irix
16905         fi ;;
16906   esac
16907   need_lib_prefix=no
16908   need_version=no
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16911   case $host_os in
16912   irix5* | nonstopux*)
16913     libsuff= shlibsuff=
16914     ;;
16915   *)
16916     case $LD in # libtool.m4 will add one of these switches to LD
16917     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16918       libsuff= shlibsuff= libmagic=32-bit;;
16919     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16920       libsuff=32 shlibsuff=N32 libmagic=N32;;
16921     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16922       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16923     *) libsuff= shlibsuff= libmagic=never-match;;
16924     esac
16925     ;;
16926   esac
16927   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16928   shlibpath_overrides_runpath=no
16929   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16930   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16931   hardcode_into_libs=yes
16932   ;;
16933
16934 # No shared lib support for Linux oldld, aout, or coff.
16935 linux*oldld* | linux*aout* | linux*coff*)
16936   dynamic_linker=no
16937   ;;
16938
16939 # This must be Linux ELF.
16940 linux*)
16941   version_type=linux
16942   need_lib_prefix=no
16943   need_version=no
16944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945   soname_spec='${libname}${release}${shared_ext}$major'
16946   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16947   shlibpath_var=LD_LIBRARY_PATH
16948   shlibpath_overrides_runpath=no
16949   # This implies no fast_install, which is unacceptable.
16950   # Some rework will be needed to allow for fast_install
16951   # before this can be enabled.
16952   hardcode_into_libs=yes
16953
16954   # Append ld.so.conf contents to the search path
16955   if test -f /etc/ld.so.conf; then
16956     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16957     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16958   fi
16959
16960   # We used to test for /lib/ld.so.1 and disable shared libraries on
16961   # powerpc, because MkLinux only supported shared libraries with the
16962   # GNU dynamic linker.  Since this was broken with cross compilers,
16963   # most powerpc-linux boxes support dynamic linking these days and
16964   # people can always --disable-shared, the test was removed, and we
16965   # assume the GNU/Linux dynamic linker is in use.
16966   dynamic_linker='GNU/Linux ld.so'
16967   ;;
16968
16969 knetbsd*-gnu)
16970   version_type=linux
16971   need_lib_prefix=no
16972   need_version=no
16973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974   soname_spec='${libname}${release}${shared_ext}$major'
16975   shlibpath_var=LD_LIBRARY_PATH
16976   shlibpath_overrides_runpath=no
16977   hardcode_into_libs=yes
16978   dynamic_linker='GNU ld.so'
16979   ;;
16980
16981 netbsd*)
16982   version_type=sunos
16983   need_lib_prefix=no
16984   need_version=no
16985   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16987     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16988     dynamic_linker='NetBSD (a.out) ld.so'
16989   else
16990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16991     soname_spec='${libname}${release}${shared_ext}$major'
16992     dynamic_linker='NetBSD ld.elf_so'
16993   fi
16994   shlibpath_var=LD_LIBRARY_PATH
16995   shlibpath_overrides_runpath=yes
16996   hardcode_into_libs=yes
16997   ;;
16998
16999 newsos6)
17000   version_type=linux
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002   shlibpath_var=LD_LIBRARY_PATH
17003   shlibpath_overrides_runpath=yes
17004   ;;
17005
17006 nto-qnx*)
17007   version_type=linux
17008   need_lib_prefix=no
17009   need_version=no
17010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011   soname_spec='${libname}${release}${shared_ext}$major'
17012   shlibpath_var=LD_LIBRARY_PATH
17013   shlibpath_overrides_runpath=yes
17014   ;;
17015
17016 openbsd*)
17017   version_type=sunos
17018   need_lib_prefix=no
17019   need_version=no
17020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17022   shlibpath_var=LD_LIBRARY_PATH
17023   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17024     case $host_os in
17025       openbsd2.[89] | openbsd2.[89].*)
17026         shlibpath_overrides_runpath=no
17027         ;;
17028       *)
17029         shlibpath_overrides_runpath=yes
17030         ;;
17031       esac
17032   else
17033     shlibpath_overrides_runpath=yes
17034   fi
17035   ;;
17036
17037 os2*)
17038   libname_spec='$name'
17039   shrext_cmds=".dll"
17040   need_lib_prefix=no
17041   library_names_spec='$libname${shared_ext} $libname.a'
17042   dynamic_linker='OS/2 ld.exe'
17043   shlibpath_var=LIBPATH
17044   ;;
17045
17046 osf3* | osf4* | osf5*)
17047   version_type=osf
17048   need_lib_prefix=no
17049   need_version=no
17050   soname_spec='${libname}${release}${shared_ext}$major'
17051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052   shlibpath_var=LD_LIBRARY_PATH
17053   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17054   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17055   ;;
17056
17057 sco3.2v5*)
17058   version_type=osf
17059   soname_spec='${libname}${release}${shared_ext}$major'
17060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061   shlibpath_var=LD_LIBRARY_PATH
17062   ;;
17063
17064 solaris*)
17065   version_type=linux
17066   need_lib_prefix=no
17067   need_version=no
17068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069   soname_spec='${libname}${release}${shared_ext}$major'
17070   shlibpath_var=LD_LIBRARY_PATH
17071   shlibpath_overrides_runpath=yes
17072   hardcode_into_libs=yes
17073   # ldd complains unless libraries are executable
17074   postinstall_cmds='chmod +x $lib'
17075   ;;
17076
17077 sunos4*)
17078   version_type=sunos
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17081   shlibpath_var=LD_LIBRARY_PATH
17082   shlibpath_overrides_runpath=yes
17083   if test "$with_gnu_ld" = yes; then
17084     need_lib_prefix=no
17085   fi
17086   need_version=yes
17087   ;;
17088
17089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17090   version_type=linux
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092   soname_spec='${libname}${release}${shared_ext}$major'
17093   shlibpath_var=LD_LIBRARY_PATH
17094   case $host_vendor in
17095     sni)
17096       shlibpath_overrides_runpath=no
17097       need_lib_prefix=no
17098       export_dynamic_flag_spec='${wl}-Blargedynsym'
17099       runpath_var=LD_RUN_PATH
17100       ;;
17101     siemens)
17102       need_lib_prefix=no
17103       ;;
17104     motorola)
17105       need_lib_prefix=no
17106       need_version=no
17107       shlibpath_overrides_runpath=no
17108       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17109       ;;
17110   esac
17111   ;;
17112
17113 sysv4*MP*)
17114   if test -d /usr/nec ;then
17115     version_type=linux
17116     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17117     soname_spec='$libname${shared_ext}.$major'
17118     shlibpath_var=LD_LIBRARY_PATH
17119   fi
17120   ;;
17121
17122 uts4*)
17123   version_type=linux
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   ;;
17128
17129 *)
17130   dynamic_linker=no
17131   ;;
17132 esac
17133 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17134 echo "${ECHO_T}$dynamic_linker" >&6
17135 test "$dynamic_linker" = no && can_build_shared=no
17136
17137 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17139 hardcode_action_GCJ=
17140 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17141    test -n "$runpath_var_GCJ" || \
17142    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17143
17144   # We can hardcode non-existant directories.
17145   if test "$hardcode_direct_GCJ" != no &&
17146      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17147      # have to relink, otherwise we might link with an installed library
17148      # when we should be linking with a yet-to-be-installed one
17149      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17150      test "$hardcode_minus_L_GCJ" != no; then
17151     # Linking always hardcodes the temporary library directory.
17152     hardcode_action_GCJ=relink
17153   else
17154     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17155     hardcode_action_GCJ=immediate
17156   fi
17157 else
17158   # We cannot hardcode anything, or else we can only hardcode existing
17159   # directories.
17160   hardcode_action_GCJ=unsupported
17161 fi
17162 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17163 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17164
17165 if test "$hardcode_action_GCJ" = relink; then
17166   # Fast installation is not supported
17167   enable_fast_install=no
17168 elif test "$shlibpath_overrides_runpath" = yes ||
17169      test "$enable_shared" = no; then
17170   # Fast installation is not necessary
17171   enable_fast_install=needless
17172 fi
17173
17174 striplib=
17175 old_striplib=
17176 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17177 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17178 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17179   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17180   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17181   echo "$as_me:$LINENO: result: yes" >&5
17182 echo "${ECHO_T}yes" >&6
17183 else
17184 # FIXME - insert some real tests, host_os isn't really good enough
17185   case $host_os in
17186    darwin*)
17187        if test -n "$STRIP" ; then
17188          striplib="$STRIP -x"
17189          echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6
17191        else
17192   echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6
17194 fi
17195        ;;
17196    *)
17197   echo "$as_me:$LINENO: result: no" >&5
17198 echo "${ECHO_T}no" >&6
17199     ;;
17200   esac
17201 fi
17202
17203 if test "x$enable_dlopen" != xyes; then
17204   enable_dlopen=unknown
17205   enable_dlopen_self=unknown
17206   enable_dlopen_self_static=unknown
17207 else
17208   lt_cv_dlopen=no
17209   lt_cv_dlopen_libs=
17210
17211   case $host_os in
17212   beos*)
17213     lt_cv_dlopen="load_add_on"
17214     lt_cv_dlopen_libs=
17215     lt_cv_dlopen_self=yes
17216     ;;
17217
17218   mingw* | pw32*)
17219     lt_cv_dlopen="LoadLibrary"
17220     lt_cv_dlopen_libs=
17221    ;;
17222
17223   cygwin*)
17224     lt_cv_dlopen="dlopen"
17225     lt_cv_dlopen_libs=
17226    ;;
17227
17228   darwin*)
17229   # if libdl is installed we need to link against it
17230     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17233   echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235   ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-ldl  $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243
17244 /* Override any gcc2 internal prototype to avoid an error.  */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 /* We use char because int might match the return type of a gcc2
17249    builtin and then its argument prototype would still apply.  */
17250 char dlopen ();
17251 int
17252 main ()
17253 {
17254 dlopen ();
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261   (eval $ac_link) 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag"
17269                          || test ! -s conftest.err'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   ac_cv_lib_dl_dlopen=yes
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 ac_cv_lib_dl_dlopen=no
17287 fi
17288 rm -f conftest.err conftest.$ac_objext \
17289       conftest$ac_exeext conftest.$ac_ext
17290 LIBS=$ac_check_lib_save_LIBS
17291 fi
17292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17294 if test $ac_cv_lib_dl_dlopen = yes; then
17295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17296 else
17297
17298     lt_cv_dlopen="dyld"
17299     lt_cv_dlopen_libs=
17300     lt_cv_dlopen_self=yes
17301
17302 fi
17303
17304    ;;
17305
17306   *)
17307     echo "$as_me:$LINENO: checking for shl_load" >&5
17308 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17309 if test "${ac_cv_func_shl_load+set}" = set; then
17310   echo $ECHO_N "(cached) $ECHO_C" >&6
17311 else
17312   cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h.  */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h.  */
17318 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17320 #define shl_load innocuous_shl_load
17321
17322 /* System header to define __stub macros and hopefully few prototypes,
17323     which can conflict with char shl_load (); below.
17324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325     <limits.h> exists even on freestanding compilers.  */
17326
17327 #ifdef __STDC__
17328 # include <limits.h>
17329 #else
17330 # include <assert.h>
17331 #endif
17332
17333 #undef shl_load
17334
17335 /* Override any gcc2 internal prototype to avoid an error.  */
17336 #ifdef __cplusplus
17337 extern "C"
17338 {
17339 #endif
17340 /* We use char because int might match the return type of a gcc2
17341    builtin and then its argument prototype would still apply.  */
17342 char shl_load ();
17343 /* The GNU C library defines this for functions which it implements
17344     to always fail with ENOSYS.  Some functions are actually named
17345     something starting with __ and the normal name is an alias.  */
17346 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17347 choke me
17348 #else
17349 char (*f) () = shl_load;
17350 #endif
17351 #ifdef __cplusplus
17352 }
17353 #endif
17354
17355 int
17356 main ()
17357 {
17358 return f != shl_load;
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365   (eval $ac_link) 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } &&
17372          { ac_try='test -z "$ac_c_werror_flag"
17373                          || test ! -s conftest.err'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; } &&
17379          { ac_try='test -s conftest$ac_exeext'
17380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381   (eval $ac_try) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; }; then
17385   ac_cv_func_shl_load=yes
17386 else
17387   echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17389
17390 ac_cv_func_shl_load=no
17391 fi
17392 rm -f conftest.err conftest.$ac_objext \
17393       conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17396 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17397 if test $ac_cv_func_shl_load = yes; then
17398   lt_cv_dlopen="shl_load"
17399 else
17400   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17401 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17402 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   ac_check_lib_save_LIBS=$LIBS
17406 LIBS="-ldld  $LIBS"
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413
17414 /* Override any gcc2 internal prototype to avoid an error.  */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 /* We use char because int might match the return type of a gcc2
17419    builtin and then its argument prototype would still apply.  */
17420 char shl_load ();
17421 int
17422 main ()
17423 {
17424 shl_load ();
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431   (eval $ac_link) 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } &&
17438          { ac_try='test -z "$ac_c_werror_flag"
17439                          || test ! -s conftest.err'
17440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441   (eval $ac_try) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; } &&
17445          { ac_try='test -s conftest$ac_exeext'
17446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447   (eval $ac_try) 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; }; then
17451   ac_cv_lib_dld_shl_load=yes
17452 else
17453   echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 ac_cv_lib_dld_shl_load=no
17457 fi
17458 rm -f conftest.err conftest.$ac_objext \
17459       conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17461 fi
17462 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17463 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17464 if test $ac_cv_lib_dld_shl_load = yes; then
17465   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17466 else
17467   echo "$as_me:$LINENO: checking for dlopen" >&5
17468 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17469 if test "${ac_cv_func_dlopen+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17480 #define dlopen innocuous_dlopen
17481
17482 /* System header to define __stub macros and hopefully few prototypes,
17483     which can conflict with char dlopen (); below.
17484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485     <limits.h> exists even on freestanding compilers.  */
17486
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492
17493 #undef dlopen
17494
17495 /* Override any gcc2 internal prototype to avoid an error.  */
17496 #ifdef __cplusplus
17497 extern "C"
17498 {
17499 #endif
17500 /* We use char because int might match the return type of a gcc2
17501    builtin and then its argument prototype would still apply.  */
17502 char dlopen ();
17503 /* The GNU C library defines this for functions which it implements
17504     to always fail with ENOSYS.  Some functions are actually named
17505     something starting with __ and the normal name is an alias.  */
17506 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17507 choke me
17508 #else
17509 char (*f) () = dlopen;
17510 #endif
17511 #ifdef __cplusplus
17512 }
17513 #endif
17514
17515 int
17516 main ()
17517 {
17518 return f != dlopen;
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525   (eval $ac_link) 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_c_werror_flag"
17533                          || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest$ac_exeext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_func_dlopen=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 ac_cv_func_dlopen=no
17551 fi
17552 rm -f conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17556 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17557 if test $ac_cv_func_dlopen = yes; then
17558   lt_cv_dlopen="dlopen"
17559 else
17560   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   ac_check_lib_save_LIBS=$LIBS
17566 LIBS="-ldl  $LIBS"
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h.  */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h.  */
17573
17574 /* Override any gcc2 internal prototype to avoid an error.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 /* We use char because int might match the return type of a gcc2
17579    builtin and then its argument prototype would still apply.  */
17580 char dlopen ();
17581 int
17582 main ()
17583 {
17584 dlopen ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591   (eval $ac_link) 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } &&
17598          { ac_try='test -z "$ac_c_werror_flag"
17599                          || test ! -s conftest.err'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; } &&
17605          { ac_try='test -s conftest$ac_exeext'
17606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607   (eval $ac_try) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   ac_cv_lib_dl_dlopen=yes
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 ac_cv_lib_dl_dlopen=no
17617 fi
17618 rm -f conftest.err conftest.$ac_objext \
17619       conftest$ac_exeext conftest.$ac_ext
17620 LIBS=$ac_check_lib_save_LIBS
17621 fi
17622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17624 if test $ac_cv_lib_dl_dlopen = yes; then
17625   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17626 else
17627   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17628 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17629 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632   ac_check_lib_save_LIBS=$LIBS
17633 LIBS="-lsvld  $LIBS"
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640
17641 /* Override any gcc2 internal prototype to avoid an error.  */
17642 #ifdef __cplusplus
17643 extern "C"
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646    builtin and then its argument prototype would still apply.  */
17647 char dlopen ();
17648 int
17649 main ()
17650 {
17651 dlopen ();
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658   (eval $ac_link) 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -z "$ac_c_werror_flag"
17666                          || test ! -s conftest.err'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest$ac_exeext'
17673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674   (eval $ac_try) 2>&5
17675   ac_status=$?
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); }; }; then
17678   ac_cv_lib_svld_dlopen=yes
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 ac_cv_lib_svld_dlopen=no
17684 fi
17685 rm -f conftest.err conftest.$ac_objext \
17686       conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17688 fi
17689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17691 if test $ac_cv_lib_svld_dlopen = yes; then
17692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17693 else
17694   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   ac_check_lib_save_LIBS=$LIBS
17700 LIBS="-ldld  $LIBS"
17701 cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707
17708 /* Override any gcc2 internal prototype to avoid an error.  */
17709 #ifdef __cplusplus
17710 extern "C"
17711 #endif
17712 /* We use char because int might match the return type of a gcc2
17713    builtin and then its argument prototype would still apply.  */
17714 char dld_link ();
17715 int
17716 main ()
17717 {
17718 dld_link ();
17719   ;
17720   return 0;
17721 }
17722 _ACEOF
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725   (eval $ac_link) 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag"
17733                          || test ! -s conftest.err'
17734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735   (eval $ac_try) 2>&5
17736   ac_status=$?
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); }; } &&
17739          { ac_try='test -s conftest$ac_exeext'
17740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741   (eval $ac_try) 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; }; then
17745   ac_cv_lib_dld_dld_link=yes
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 ac_cv_lib_dld_dld_link=no
17751 fi
17752 rm -f conftest.err conftest.$ac_objext \
17753       conftest$ac_exeext conftest.$ac_ext
17754 LIBS=$ac_check_lib_save_LIBS
17755 fi
17756 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17757 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17758 if test $ac_cv_lib_dld_dld_link = yes; then
17759   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17760 fi
17761
17762
17763 fi
17764
17765
17766 fi
17767
17768
17769 fi
17770
17771
17772 fi
17773
17774
17775 fi
17776
17777     ;;
17778   esac
17779
17780   if test "x$lt_cv_dlopen" != xno; then
17781     enable_dlopen=yes
17782   else
17783     enable_dlopen=no
17784   fi
17785
17786   case $lt_cv_dlopen in
17787   dlopen)
17788     save_CPPFLAGS="$CPPFLAGS"
17789     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17790
17791     save_LDFLAGS="$LDFLAGS"
17792     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17793
17794     save_LIBS="$LIBS"
17795     LIBS="$lt_cv_dlopen_libs $LIBS"
17796
17797     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17798 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17799 if test "${lt_cv_dlopen_self+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802           if test "$cross_compiling" = yes; then :
17803   lt_cv_dlopen_self=cross
17804 else
17805   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17806   lt_status=$lt_dlunknown
17807   cat > conftest.$ac_ext <<EOF
17808 #line 17808 "configure"
17809 #include "confdefs.h"
17810
17811 #if HAVE_DLFCN_H
17812 #include <dlfcn.h>
17813 #endif
17814
17815 #include <stdio.h>
17816
17817 #ifdef RTLD_GLOBAL
17818 #  define LT_DLGLOBAL           RTLD_GLOBAL
17819 #else
17820 #  ifdef DL_GLOBAL
17821 #    define LT_DLGLOBAL         DL_GLOBAL
17822 #  else
17823 #    define LT_DLGLOBAL         0
17824 #  endif
17825 #endif
17826
17827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17828    find out it does not work in some platform. */
17829 #ifndef LT_DLLAZY_OR_NOW
17830 #  ifdef RTLD_LAZY
17831 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17832 #  else
17833 #    ifdef DL_LAZY
17834 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17835 #    else
17836 #      ifdef RTLD_NOW
17837 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17838 #      else
17839 #        ifdef DL_NOW
17840 #          define LT_DLLAZY_OR_NOW      DL_NOW
17841 #        else
17842 #          define LT_DLLAZY_OR_NOW      0
17843 #        endif
17844 #      endif
17845 #    endif
17846 #  endif
17847 #endif
17848
17849 #ifdef __cplusplus
17850 extern "C" void exit (int);
17851 #endif
17852
17853 void fnord() { int i=42;}
17854 int main ()
17855 {
17856   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17857   int status = $lt_dlunknown;
17858
17859   if (self)
17860     {
17861       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17862       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17863       /* dlclose (self); */
17864     }
17865
17866     exit (status);
17867 }
17868 EOF
17869   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870   (eval $ac_link) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17874     (./conftest; exit; ) 2>/dev/null
17875     lt_status=$?
17876     case x$lt_status in
17877       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17878       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17879       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17880     esac
17881   else :
17882     # compilation failed
17883     lt_cv_dlopen_self=no
17884   fi
17885 fi
17886 rm -fr conftest*
17887
17888
17889 fi
17890 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17892
17893     if test "x$lt_cv_dlopen_self" = xyes; then
17894       LDFLAGS="$LDFLAGS $link_static_flag"
17895       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17897 if test "${lt_cv_dlopen_self_static+set}" = set; then
17898   echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900           if test "$cross_compiling" = yes; then :
17901   lt_cv_dlopen_self_static=cross
17902 else
17903   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17904   lt_status=$lt_dlunknown
17905   cat > conftest.$ac_ext <<EOF
17906 #line 17906 "configure"
17907 #include "confdefs.h"
17908
17909 #if HAVE_DLFCN_H
17910 #include <dlfcn.h>
17911 #endif
17912
17913 #include <stdio.h>
17914
17915 #ifdef RTLD_GLOBAL
17916 #  define LT_DLGLOBAL           RTLD_GLOBAL
17917 #else
17918 #  ifdef DL_GLOBAL
17919 #    define LT_DLGLOBAL         DL_GLOBAL
17920 #  else
17921 #    define LT_DLGLOBAL         0
17922 #  endif
17923 #endif
17924
17925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17926    find out it does not work in some platform. */
17927 #ifndef LT_DLLAZY_OR_NOW
17928 #  ifdef RTLD_LAZY
17929 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17930 #  else
17931 #    ifdef DL_LAZY
17932 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17933 #    else
17934 #      ifdef RTLD_NOW
17935 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17936 #      else
17937 #        ifdef DL_NOW
17938 #          define LT_DLLAZY_OR_NOW      DL_NOW
17939 #        else
17940 #          define LT_DLLAZY_OR_NOW      0
17941 #        endif
17942 #      endif
17943 #    endif
17944 #  endif
17945 #endif
17946
17947 #ifdef __cplusplus
17948 extern "C" void exit (int);
17949 #endif
17950
17951 void fnord() { int i=42;}
17952 int main ()
17953 {
17954   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17955   int status = $lt_dlunknown;
17956
17957   if (self)
17958     {
17959       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17960       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17961       /* dlclose (self); */
17962     }
17963
17964     exit (status);
17965 }
17966 EOF
17967   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968   (eval $ac_link) 2>&5
17969   ac_status=$?
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17972     (./conftest; exit; ) 2>/dev/null
17973     lt_status=$?
17974     case x$lt_status in
17975       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17976       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17977       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17978     esac
17979   else :
17980     # compilation failed
17981     lt_cv_dlopen_self_static=no
17982   fi
17983 fi
17984 rm -fr conftest*
17985
17986
17987 fi
17988 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17989 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17990     fi
17991
17992     CPPFLAGS="$save_CPPFLAGS"
17993     LDFLAGS="$save_LDFLAGS"
17994     LIBS="$save_LIBS"
17995     ;;
17996   esac
17997
17998   case $lt_cv_dlopen_self in
17999   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18000   *) enable_dlopen_self=unknown ;;
18001   esac
18002
18003   case $lt_cv_dlopen_self_static in
18004   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18005   *) enable_dlopen_self_static=unknown ;;
18006   esac
18007 fi
18008
18009
18010 # The else clause should only fire when bootstrapping the
18011 # libtool distribution, otherwise you forgot to ship ltmain.sh
18012 # with your package, and you will get complaints that there are
18013 # no rules to generate ltmain.sh.
18014 if test -f "$ltmain"; then
18015   # See if we are running on zsh, and set the options which allow our commands through
18016   # without removal of \ escapes.
18017   if test -n "${ZSH_VERSION+set}" ; then
18018     setopt NO_GLOB_SUBST
18019   fi
18020   # Now quote all the things that may contain metacharacters while being
18021   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18022   # variables and quote the copies for generation of the libtool script.
18023   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18024     SED SHELL STRIP \
18025     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18026     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18027     deplibs_check_method reload_flag reload_cmds need_locks \
18028     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18029     lt_cv_sys_global_symbol_to_c_name_address \
18030     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18031     old_postinstall_cmds old_postuninstall_cmds \
18032     compiler_GCJ \
18033     CC_GCJ \
18034     LD_GCJ \
18035     lt_prog_compiler_wl_GCJ \
18036     lt_prog_compiler_pic_GCJ \
18037     lt_prog_compiler_static_GCJ \
18038     lt_prog_compiler_no_builtin_flag_GCJ \
18039     export_dynamic_flag_spec_GCJ \
18040     thread_safe_flag_spec_GCJ \
18041     whole_archive_flag_spec_GCJ \
18042     enable_shared_with_static_runtimes_GCJ \
18043     old_archive_cmds_GCJ \
18044     old_archive_from_new_cmds_GCJ \
18045     predep_objects_GCJ \
18046     postdep_objects_GCJ \
18047     predeps_GCJ \
18048     postdeps_GCJ \
18049     compiler_lib_search_path_GCJ \
18050     archive_cmds_GCJ \
18051     archive_expsym_cmds_GCJ \
18052     postinstall_cmds_GCJ \
18053     postuninstall_cmds_GCJ \
18054     old_archive_from_expsyms_cmds_GCJ \
18055     allow_undefined_flag_GCJ \
18056     no_undefined_flag_GCJ \
18057     export_symbols_cmds_GCJ \
18058     hardcode_libdir_flag_spec_GCJ \
18059     hardcode_libdir_flag_spec_ld_GCJ \
18060     hardcode_libdir_separator_GCJ \
18061     hardcode_automatic_GCJ \
18062     module_cmds_GCJ \
18063     module_expsym_cmds_GCJ \
18064     lt_cv_prog_compiler_c_o_GCJ \
18065     exclude_expsyms_GCJ \
18066     include_expsyms_GCJ; do
18067
18068     case $var in
18069     old_archive_cmds_GCJ | \
18070     old_archive_from_new_cmds_GCJ | \
18071     archive_cmds_GCJ | \
18072     archive_expsym_cmds_GCJ | \
18073     module_cmds_GCJ | \
18074     module_expsym_cmds_GCJ | \
18075     old_archive_from_expsyms_cmds_GCJ | \
18076     export_symbols_cmds_GCJ | \
18077     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18078     postinstall_cmds | postuninstall_cmds | \
18079     old_postinstall_cmds | old_postuninstall_cmds | \
18080     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18081       # Double-quote double-evaled strings.
18082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18083       ;;
18084     *)
18085       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18086       ;;
18087     esac
18088   done
18089
18090   case $lt_echo in
18091   *'\$0 --fallback-echo"')
18092     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18093     ;;
18094   esac
18095
18096 cfgfile="$ofile"
18097
18098   cat <<__EOF__ >> "$cfgfile"
18099 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18100
18101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18102
18103 # Shell to use when invoking shell scripts.
18104 SHELL=$lt_SHELL
18105
18106 # Whether or not to build shared libraries.
18107 build_libtool_libs=$enable_shared
18108
18109 # Whether or not to build static libraries.
18110 build_old_libs=$enable_static
18111
18112 # Whether or not to add -lc for building shared libraries.
18113 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18114
18115 # Whether or not to disallow shared libs when runtime libs are static
18116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18117
18118 # Whether or not to optimize for fast installation.
18119 fast_install=$enable_fast_install
18120
18121 # The host system.
18122 host_alias=$host_alias
18123 host=$host
18124
18125 # An echo program that does not interpret backslashes.
18126 echo=$lt_echo
18127
18128 # The archiver.
18129 AR=$lt_AR
18130 AR_FLAGS=$lt_AR_FLAGS
18131
18132 # A C compiler.
18133 LTCC=$lt_LTCC
18134
18135 # A language-specific compiler.
18136 CC=$lt_compiler_GCJ
18137
18138 # Is the compiler the GNU C compiler?
18139 with_gcc=$GCC_GCJ
18140
18141 # An ERE matcher.
18142 EGREP=$lt_EGREP
18143
18144 # The linker used to build libraries.
18145 LD=$lt_LD_GCJ
18146
18147 # Whether we need hard or soft links.
18148 LN_S=$lt_LN_S
18149
18150 # A BSD-compatible nm program.
18151 NM=$lt_NM
18152
18153 # A symbol stripping program
18154 STRIP=$lt_STRIP
18155
18156 # Used to examine libraries when file_magic_cmd begins "file"
18157 MAGIC_CMD=$MAGIC_CMD
18158
18159 # Used on cygwin: DLL creation program.
18160 DLLTOOL="$DLLTOOL"
18161
18162 # Used on cygwin: object dumper.
18163 OBJDUMP="$OBJDUMP"
18164
18165 # Used on cygwin: assembler.
18166 AS="$AS"
18167
18168 # The name of the directory that contains temporary libtool files.
18169 objdir=$objdir
18170
18171 # How to create reloadable object files.
18172 reload_flag=$lt_reload_flag
18173 reload_cmds=$lt_reload_cmds
18174
18175 # How to pass a linker flag through the compiler.
18176 wl=$lt_lt_prog_compiler_wl_GCJ
18177
18178 # Object file suffix (normally "o").
18179 objext="$ac_objext"
18180
18181 # Old archive suffix (normally "a").
18182 libext="$libext"
18183
18184 # Shared library suffix (normally ".so").
18185 shrext_cmds='$shrext_cmds'
18186
18187 # Executable file suffix (normally "").
18188 exeext="$exeext"
18189
18190 # Additional compiler flags for building library objects.
18191 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18192 pic_mode=$pic_mode
18193
18194 # What is the maximum length of a command?
18195 max_cmd_len=$lt_cv_sys_max_cmd_len
18196
18197 # Does compiler simultaneously support -c and -o options?
18198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18199
18200 # Must we lock files when doing compilation ?
18201 need_locks=$lt_need_locks
18202
18203 # Do we need the lib prefix for modules?
18204 need_lib_prefix=$need_lib_prefix
18205
18206 # Do we need a version for libraries?
18207 need_version=$need_version
18208
18209 # Whether dlopen is supported.
18210 dlopen_support=$enable_dlopen
18211
18212 # Whether dlopen of programs is supported.
18213 dlopen_self=$enable_dlopen_self
18214
18215 # Whether dlopen of statically linked programs is supported.
18216 dlopen_self_static=$enable_dlopen_self_static
18217
18218 # Compiler flag to prevent dynamic linking.
18219 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18220
18221 # Compiler flag to turn off builtin functions.
18222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18223
18224 # Compiler flag to allow reflexive dlopens.
18225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18226
18227 # Compiler flag to generate shared objects directly from archives.
18228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18229
18230 # Compiler flag to generate thread-safe objects.
18231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18232
18233 # Library versioning type.
18234 version_type=$version_type
18235
18236 # Format of library name prefix.
18237 libname_spec=$lt_libname_spec
18238
18239 # List of archive names.  First name is the real one, the rest are links.
18240 # The last name is the one that the linker finds with -lNAME.
18241 library_names_spec=$lt_library_names_spec
18242
18243 # The coded name of the library, if different from the real name.
18244 soname_spec=$lt_soname_spec
18245
18246 # Commands used to build and install an old-style archive.
18247 RANLIB=$lt_RANLIB
18248 old_archive_cmds=$lt_old_archive_cmds_GCJ
18249 old_postinstall_cmds=$lt_old_postinstall_cmds
18250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18251
18252 # Create an old-style archive from a shared archive.
18253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18254
18255 # Create a temporary old-style archive to link instead of a shared archive.
18256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18257
18258 # Commands used to build and install a shared archive.
18259 archive_cmds=$lt_archive_cmds_GCJ
18260 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18261 postinstall_cmds=$lt_postinstall_cmds
18262 postuninstall_cmds=$lt_postuninstall_cmds
18263
18264 # Commands used to build a loadable module (assumed same as above if empty)
18265 module_cmds=$lt_module_cmds_GCJ
18266 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18267
18268 # Commands to strip libraries.
18269 old_striplib=$lt_old_striplib
18270 striplib=$lt_striplib
18271
18272 # Dependencies to place before the objects being linked to create a
18273 # shared library.
18274 predep_objects=$lt_predep_objects_GCJ
18275
18276 # Dependencies to place after the objects being linked to create a
18277 # shared library.
18278 postdep_objects=$lt_postdep_objects_GCJ
18279
18280 # Dependencies to place before the objects being linked to create a
18281 # shared library.
18282 predeps=$lt_predeps_GCJ
18283
18284 # Dependencies to place after the objects being linked to create a
18285 # shared library.
18286 postdeps=$lt_postdeps_GCJ
18287
18288 # The library search path used internally by the compiler when linking
18289 # a shared library.
18290 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18291
18292 # Method to check whether dependent libraries are shared objects.
18293 deplibs_check_method=$lt_deplibs_check_method
18294
18295 # Command to use when deplibs_check_method == file_magic.
18296 file_magic_cmd=$lt_file_magic_cmd
18297
18298 # Flag that allows shared libraries with undefined symbols to be built.
18299 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18300
18301 # Flag that forces no undefined symbols.
18302 no_undefined_flag=$lt_no_undefined_flag_GCJ
18303
18304 # Commands used to finish a libtool library installation in a directory.
18305 finish_cmds=$lt_finish_cmds
18306
18307 # Same as above, but a single script fragment to be evaled but not shown.
18308 finish_eval=$lt_finish_eval
18309
18310 # Take the output of nm and produce a listing of raw symbols and C names.
18311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18312
18313 # Transform the output of nm in a proper C declaration
18314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18315
18316 # Transform the output of nm in a C name address pair
18317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18318
18319 # This is the shared library runtime path variable.
18320 runpath_var=$runpath_var
18321
18322 # This is the shared library path variable.
18323 shlibpath_var=$shlibpath_var
18324
18325 # Is shlibpath searched before the hard-coded library search path?
18326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18327
18328 # How to hardcode a shared library path into an executable.
18329 hardcode_action=$hardcode_action_GCJ
18330
18331 # Whether we should hardcode library paths into libraries.
18332 hardcode_into_libs=$hardcode_into_libs
18333
18334 # Flag to hardcode \$libdir into a binary during linking.
18335 # This must work even if \$libdir does not exist.
18336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18337
18338 # If ld is used when linking, flag to hardcode \$libdir into
18339 # a binary during linking. This must work even if \$libdir does
18340 # not exist.
18341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18342
18343 # Whether we need a single -rpath flag with a separated argument.
18344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18345
18346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_direct=$hardcode_direct_GCJ
18349
18350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18351 # resulting binary.
18352 hardcode_minus_L=$hardcode_minus_L_GCJ
18353
18354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18355 # the resulting binary.
18356 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18357
18358 # Set to yes if building a shared library automatically hardcodes DIR into the library
18359 # and all subsequent libraries and executables linked against it.
18360 hardcode_automatic=$hardcode_automatic_GCJ
18361
18362 # Variables whose values should be saved in libtool wrapper scripts and
18363 # restored at relink time.
18364 variables_saved_for_relink="$variables_saved_for_relink"
18365
18366 # Whether libtool must link a program against all its dependency libraries.
18367 link_all_deplibs=$link_all_deplibs_GCJ
18368
18369 # Compile-time system search path for libraries
18370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18371
18372 # Run-time system search path for libraries
18373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18374
18375 # Fix the shell variable \$srcfile for the compiler.
18376 fix_srcfile_path="$fix_srcfile_path_GCJ"
18377
18378 # Set to yes if exported symbols are required.
18379 always_export_symbols=$always_export_symbols_GCJ
18380
18381 # The commands to list exported symbols.
18382 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18383
18384 # The commands to extract the exported symbol list from a shared archive.
18385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18386
18387 # Symbols that should not be listed in the preloaded symbols.
18388 exclude_expsyms=$lt_exclude_expsyms_GCJ
18389
18390 # Symbols that must always be exported.
18391 include_expsyms=$lt_include_expsyms_GCJ
18392
18393 # ### END LIBTOOL TAG CONFIG: $tagname
18394
18395 __EOF__
18396
18397
18398 else
18399   # If there is no Makefile yet, we rely on a make rule to execute
18400   # `config.status --recheck' to rerun these tests and create the
18401   # libtool script then.
18402   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18403   if test -f "$ltmain_in"; then
18404     test -f Makefile && make "$ltmain"
18405   fi
18406 fi
18407
18408
18409 ac_ext=c
18410 ac_cpp='$CPP $CPPFLAGS'
18411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18414
18415 CC="$lt_save_CC"
18416
18417         else
18418           tagname=""
18419         fi
18420         ;;
18421
18422       RC)
18423         ac_ext=c
18424 ac_cpp='$CPP $CPPFLAGS'
18425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18428
18429
18430 # Source file extension for RC test sources.
18431 ac_ext=rc
18432
18433 # Object file extension for compiled RC test sources.
18434 objext=o
18435 objext_RC=$objext
18436
18437 # Code to be used in simple compile tests
18438 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18439
18440 # Code to be used in simple link tests
18441 lt_simple_link_test_code="$lt_simple_compile_test_code"
18442
18443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18444
18445 # If no C compiler was specified, use CC.
18446 LTCC=${LTCC-"$CC"}
18447
18448 # Allow CC to be a program name with arguments.
18449 compiler=$CC
18450
18451
18452 # Allow CC to be a program name with arguments.
18453 lt_save_CC="$CC"
18454 CC=${RC-"windres"}
18455 compiler=$CC
18456 compiler_RC=$CC
18457 lt_cv_prog_compiler_c_o_RC=yes
18458
18459 # The else clause should only fire when bootstrapping the
18460 # libtool distribution, otherwise you forgot to ship ltmain.sh
18461 # with your package, and you will get complaints that there are
18462 # no rules to generate ltmain.sh.
18463 if test -f "$ltmain"; then
18464   # See if we are running on zsh, and set the options which allow our commands through
18465   # without removal of \ escapes.
18466   if test -n "${ZSH_VERSION+set}" ; then
18467     setopt NO_GLOB_SUBST
18468   fi
18469   # Now quote all the things that may contain metacharacters while being
18470   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18471   # variables and quote the copies for generation of the libtool script.
18472   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18473     SED SHELL STRIP \
18474     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476     deplibs_check_method reload_flag reload_cmds need_locks \
18477     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478     lt_cv_sys_global_symbol_to_c_name_address \
18479     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480     old_postinstall_cmds old_postuninstall_cmds \
18481     compiler_RC \
18482     CC_RC \
18483     LD_RC \
18484     lt_prog_compiler_wl_RC \
18485     lt_prog_compiler_pic_RC \
18486     lt_prog_compiler_static_RC \
18487     lt_prog_compiler_no_builtin_flag_RC \
18488     export_dynamic_flag_spec_RC \
18489     thread_safe_flag_spec_RC \
18490     whole_archive_flag_spec_RC \
18491     enable_shared_with_static_runtimes_RC \
18492     old_archive_cmds_RC \
18493     old_archive_from_new_cmds_RC \
18494     predep_objects_RC \
18495     postdep_objects_RC \
18496     predeps_RC \
18497     postdeps_RC \
18498     compiler_lib_search_path_RC \
18499     archive_cmds_RC \
18500     archive_expsym_cmds_RC \
18501     postinstall_cmds_RC \
18502     postuninstall_cmds_RC \
18503     old_archive_from_expsyms_cmds_RC \
18504     allow_undefined_flag_RC \
18505     no_undefined_flag_RC \
18506     export_symbols_cmds_RC \
18507     hardcode_libdir_flag_spec_RC \
18508     hardcode_libdir_flag_spec_ld_RC \
18509     hardcode_libdir_separator_RC \
18510     hardcode_automatic_RC \
18511     module_cmds_RC \
18512     module_expsym_cmds_RC \
18513     lt_cv_prog_compiler_c_o_RC \
18514     exclude_expsyms_RC \
18515     include_expsyms_RC; do
18516
18517     case $var in
18518     old_archive_cmds_RC | \
18519     old_archive_from_new_cmds_RC | \
18520     archive_cmds_RC | \
18521     archive_expsym_cmds_RC | \
18522     module_cmds_RC | \
18523     module_expsym_cmds_RC | \
18524     old_archive_from_expsyms_cmds_RC | \
18525     export_symbols_cmds_RC | \
18526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527     postinstall_cmds | postuninstall_cmds | \
18528     old_postinstall_cmds | old_postuninstall_cmds | \
18529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530       # Double-quote double-evaled strings.
18531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18532       ;;
18533     *)
18534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535       ;;
18536     esac
18537   done
18538
18539   case $lt_echo in
18540   *'\$0 --fallback-echo"')
18541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542     ;;
18543   esac
18544
18545 cfgfile="$ofile"
18546
18547   cat <<__EOF__ >> "$cfgfile"
18548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18549
18550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18551
18552 # Shell to use when invoking shell scripts.
18553 SHELL=$lt_SHELL
18554
18555 # Whether or not to build shared libraries.
18556 build_libtool_libs=$enable_shared
18557
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18560
18561 # Whether or not to add -lc for building shared libraries.
18562 build_libtool_need_lc=$archive_cmds_need_lc_RC
18563
18564 # Whether or not to disallow shared libs when runtime libs are static
18565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18566
18567 # Whether or not to optimize for fast installation.
18568 fast_install=$enable_fast_install
18569
18570 # The host system.
18571 host_alias=$host_alias
18572 host=$host
18573
18574 # An echo program that does not interpret backslashes.
18575 echo=$lt_echo
18576
18577 # The archiver.
18578 AR=$lt_AR
18579 AR_FLAGS=$lt_AR_FLAGS
18580
18581 # A C compiler.
18582 LTCC=$lt_LTCC
18583
18584 # A language-specific compiler.
18585 CC=$lt_compiler_RC
18586
18587 # Is the compiler the GNU C compiler?
18588 with_gcc=$GCC_RC
18589
18590 # An ERE matcher.
18591 EGREP=$lt_EGREP
18592
18593 # The linker used to build libraries.
18594 LD=$lt_LD_RC
18595
18596 # Whether we need hard or soft links.
18597 LN_S=$lt_LN_S
18598
18599 # A BSD-compatible nm program.
18600 NM=$lt_NM
18601
18602 # A symbol stripping program
18603 STRIP=$lt_STRIP
18604
18605 # Used to examine libraries when file_magic_cmd begins "file"
18606 MAGIC_CMD=$MAGIC_CMD
18607
18608 # Used on cygwin: DLL creation program.
18609 DLLTOOL="$DLLTOOL"
18610
18611 # Used on cygwin: object dumper.
18612 OBJDUMP="$OBJDUMP"
18613
18614 # Used on cygwin: assembler.
18615 AS="$AS"
18616
18617 # The name of the directory that contains temporary libtool files.
18618 objdir=$objdir
18619
18620 # How to create reloadable object files.
18621 reload_flag=$lt_reload_flag
18622 reload_cmds=$lt_reload_cmds
18623
18624 # How to pass a linker flag through the compiler.
18625 wl=$lt_lt_prog_compiler_wl_RC
18626
18627 # Object file suffix (normally "o").
18628 objext="$ac_objext"
18629
18630 # Old archive suffix (normally "a").
18631 libext="$libext"
18632
18633 # Shared library suffix (normally ".so").
18634 shrext_cmds='$shrext_cmds'
18635
18636 # Executable file suffix (normally "").
18637 exeext="$exeext"
18638
18639 # Additional compiler flags for building library objects.
18640 pic_flag=$lt_lt_prog_compiler_pic_RC
18641 pic_mode=$pic_mode
18642
18643 # What is the maximum length of a command?
18644 max_cmd_len=$lt_cv_sys_max_cmd_len
18645
18646 # Does compiler simultaneously support -c and -o options?
18647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18648
18649 # Must we lock files when doing compilation ?
18650 need_locks=$lt_need_locks
18651
18652 # Do we need the lib prefix for modules?
18653 need_lib_prefix=$need_lib_prefix
18654
18655 # Do we need a version for libraries?
18656 need_version=$need_version
18657
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18660
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18663
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18666
18667 # Compiler flag to prevent dynamic linking.
18668 link_static_flag=$lt_lt_prog_compiler_static_RC
18669
18670 # Compiler flag to turn off builtin functions.
18671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18672
18673 # Compiler flag to allow reflexive dlopens.
18674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18675
18676 # Compiler flag to generate shared objects directly from archives.
18677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18678
18679 # Compiler flag to generate thread-safe objects.
18680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18681
18682 # Library versioning type.
18683 version_type=$version_type
18684
18685 # Format of library name prefix.
18686 libname_spec=$lt_libname_spec
18687
18688 # List of archive names.  First name is the real one, the rest are links.
18689 # The last name is the one that the linker finds with -lNAME.
18690 library_names_spec=$lt_library_names_spec
18691
18692 # The coded name of the library, if different from the real name.
18693 soname_spec=$lt_soname_spec
18694
18695 # Commands used to build and install an old-style archive.
18696 RANLIB=$lt_RANLIB
18697 old_archive_cmds=$lt_old_archive_cmds_RC
18698 old_postinstall_cmds=$lt_old_postinstall_cmds
18699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18700
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18703
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18706
18707 # Commands used to build and install a shared archive.
18708 archive_cmds=$lt_archive_cmds_RC
18709 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18710 postinstall_cmds=$lt_postinstall_cmds
18711 postuninstall_cmds=$lt_postuninstall_cmds
18712
18713 # Commands used to build a loadable module (assumed same as above if empty)
18714 module_cmds=$lt_module_cmds_RC
18715 module_expsym_cmds=$lt_module_expsym_cmds_RC
18716
18717 # Commands to strip libraries.
18718 old_striplib=$lt_old_striplib
18719 striplib=$lt_striplib
18720
18721 # Dependencies to place before the objects being linked to create a
18722 # shared library.
18723 predep_objects=$lt_predep_objects_RC
18724
18725 # Dependencies to place after the objects being linked to create a
18726 # shared library.
18727 postdep_objects=$lt_postdep_objects_RC
18728
18729 # Dependencies to place before the objects being linked to create a
18730 # shared library.
18731 predeps=$lt_predeps_RC
18732
18733 # Dependencies to place after the objects being linked to create a
18734 # shared library.
18735 postdeps=$lt_postdeps_RC
18736
18737 # The library search path used internally by the compiler when linking
18738 # a shared library.
18739 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18740
18741 # Method to check whether dependent libraries are shared objects.
18742 deplibs_check_method=$lt_deplibs_check_method
18743
18744 # Command to use when deplibs_check_method == file_magic.
18745 file_magic_cmd=$lt_file_magic_cmd
18746
18747 # Flag that allows shared libraries with undefined symbols to be built.
18748 allow_undefined_flag=$lt_allow_undefined_flag_RC
18749
18750 # Flag that forces no undefined symbols.
18751 no_undefined_flag=$lt_no_undefined_flag_RC
18752
18753 # Commands used to finish a libtool library installation in a directory.
18754 finish_cmds=$lt_finish_cmds
18755
18756 # Same as above, but a single script fragment to be evaled but not shown.
18757 finish_eval=$lt_finish_eval
18758
18759 # Take the output of nm and produce a listing of raw symbols and C names.
18760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18761
18762 # Transform the output of nm in a proper C declaration
18763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18764
18765 # Transform the output of nm in a C name address pair
18766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18767
18768 # This is the shared library runtime path variable.
18769 runpath_var=$runpath_var
18770
18771 # This is the shared library path variable.
18772 shlibpath_var=$shlibpath_var
18773
18774 # Is shlibpath searched before the hard-coded library search path?
18775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18776
18777 # How to hardcode a shared library path into an executable.
18778 hardcode_action=$hardcode_action_RC
18779
18780 # Whether we should hardcode library paths into libraries.
18781 hardcode_into_libs=$hardcode_into_libs
18782
18783 # Flag to hardcode \$libdir into a binary during linking.
18784 # This must work even if \$libdir does not exist.
18785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18786
18787 # If ld is used when linking, flag to hardcode \$libdir into
18788 # a binary during linking. This must work even if \$libdir does
18789 # not exist.
18790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18791
18792 # Whether we need a single -rpath flag with a separated argument.
18793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18794
18795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_direct=$hardcode_direct_RC
18798
18799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_minus_L=$hardcode_minus_L_RC
18802
18803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804 # the resulting binary.
18805 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18806
18807 # Set to yes if building a shared library automatically hardcodes DIR into the library
18808 # and all subsequent libraries and executables linked against it.
18809 hardcode_automatic=$hardcode_automatic_RC
18810
18811 # Variables whose values should be saved in libtool wrapper scripts and
18812 # restored at relink time.
18813 variables_saved_for_relink="$variables_saved_for_relink"
18814
18815 # Whether libtool must link a program against all its dependency libraries.
18816 link_all_deplibs=$link_all_deplibs_RC
18817
18818 # Compile-time system search path for libraries
18819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18820
18821 # Run-time system search path for libraries
18822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18823
18824 # Fix the shell variable \$srcfile for the compiler.
18825 fix_srcfile_path="$fix_srcfile_path_RC"
18826
18827 # Set to yes if exported symbols are required.
18828 always_export_symbols=$always_export_symbols_RC
18829
18830 # The commands to list exported symbols.
18831 export_symbols_cmds=$lt_export_symbols_cmds_RC
18832
18833 # The commands to extract the exported symbol list from a shared archive.
18834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18835
18836 # Symbols that should not be listed in the preloaded symbols.
18837 exclude_expsyms=$lt_exclude_expsyms_RC
18838
18839 # Symbols that must always be exported.
18840 include_expsyms=$lt_include_expsyms_RC
18841
18842 # ### END LIBTOOL TAG CONFIG: $tagname
18843
18844 __EOF__
18845
18846
18847 else
18848   # If there is no Makefile yet, we rely on a make rule to execute
18849   # `config.status --recheck' to rerun these tests and create the
18850   # libtool script then.
18851   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852   if test -f "$ltmain_in"; then
18853     test -f Makefile && make "$ltmain"
18854   fi
18855 fi
18856
18857
18858 ac_ext=c
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863
18864 CC="$lt_save_CC"
18865
18866         ;;
18867
18868       *)
18869         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18870 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18871    { (exit 1); exit 1; }; }
18872         ;;
18873       esac
18874
18875       # Append the new tag name to the list of available tags.
18876       if test -n "$tagname" ; then
18877       available_tags="$available_tags $tagname"
18878     fi
18879     fi
18880   done
18881   IFS="$lt_save_ifs"
18882
18883   # Now substitute the updated list of available tags.
18884   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18885     mv "${ofile}T" "$ofile"
18886     chmod +x "$ofile"
18887   else
18888     rm -f "${ofile}T"
18889     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18890 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18891    { (exit 1); exit 1; }; }
18892   fi
18893 fi
18894
18895
18896
18897 # This can be used to rebuild libtool when needed
18898 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18899
18900 # Always use our own libtool.
18901 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18902
18903 # Prevent multiple expansion
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925 # Extract the first word of "dot", so it can be a program name with args.
18926 set dummy dot; ac_word=$2
18927 echo "$as_me:$LINENO: checking for $ac_word" >&5
18928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18929 if test "${ac_cv_path_DOT+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   case $DOT in
18933   [\\/]* | ?:[\\/]*)
18934   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18935   ;;
18936   *)
18937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18938 for as_dir in $PATH
18939 do
18940   IFS=$as_save_IFS
18941   test -z "$as_dir" && as_dir=.
18942   for ac_exec_ext in '' $ac_executable_extensions; do
18943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18944     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18946     break 2
18947   fi
18948 done
18949 done
18950
18951   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18952   ;;
18953 esac
18954 fi
18955 DOT=$ac_cv_path_DOT
18956
18957 if test -n "$DOT"; then
18958   echo "$as_me:$LINENO: result: $DOT" >&5
18959 echo "${ECHO_T}$DOT" >&6
18960 else
18961   echo "$as_me:$LINENO: result: no" >&5
18962 echo "${ECHO_T}no" >&6
18963 fi
18964
18965 # Extract the first word of "etags", so it can be a program name with args.
18966 set dummy etags; ac_word=$2
18967 echo "$as_me:$LINENO: checking for $ac_word" >&5
18968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969 if test "${ac_cv_path_ETAGS+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   case $ETAGS in
18973   [\\/]* | ?:[\\/]*)
18974   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18975   ;;
18976   *)
18977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $PATH
18979 do
18980   IFS=$as_save_IFS
18981   test -z "$as_dir" && as_dir=.
18982   for ac_exec_ext in '' $ac_executable_extensions; do
18983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986     break 2
18987   fi
18988 done
18989 done
18990
18991   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18992   ;;
18993 esac
18994 fi
18995 ETAGS=$ac_cv_path_ETAGS
18996
18997 if test -n "$ETAGS"; then
18998   echo "$as_me:$LINENO: result: $ETAGS" >&5
18999 echo "${ECHO_T}$ETAGS" >&6
19000 else
19001   echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6
19003 fi
19004
19005 etags_version=`$ETAGS --version 2>&1`
19006 case "$etags_version" in
19007         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19008         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19009         *) ETAGSFLAGS="" ;;
19010 esac
19011 ETAGSFLAGS=$ETAGSFLAGS
19012
19013 # Extract the first word of "python", so it can be a program name with args.
19014 set dummy python; ac_word=$2
19015 echo "$as_me:$LINENO: checking for $ac_word" >&5
19016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19017 if test "${ac_cv_path_PYTHON+set}" = set; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020   case $PYTHON in
19021   [\\/]* | ?:[\\/]*)
19022   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19023   ;;
19024   *)
19025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19026 for as_dir in $PATH
19027 do
19028   IFS=$as_save_IFS
19029   test -z "$as_dir" && as_dir=.
19030   for ac_exec_ext in '' $ac_executable_extensions; do
19031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19032     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19034     break 2
19035   fi
19036 done
19037 done
19038
19039   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19040   ;;
19041 esac
19042 fi
19043 PYTHON=$ac_cv_path_PYTHON
19044
19045 if test -n "$PYTHON"; then
19046   echo "$as_me:$LINENO: result: $PYTHON" >&5
19047 echo "${ECHO_T}$PYTHON" >&6
19048 else
19049   echo "$as_me:$LINENO: result: no" >&5
19050 echo "${ECHO_T}no" >&6
19051 fi
19052
19053 if test "$PYTHON" = "false"
19054 then
19055         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19056 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19057 fi
19058 # Extract the first word of "qmtest", so it can be a program name with args.
19059 set dummy qmtest; ac_word=$2
19060 echo "$as_me:$LINENO: checking for $ac_word" >&5
19061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19062 if test "${ac_cv_path_QMTEST+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   case $QMTEST in
19066   [\\/]* | ?:[\\/]*)
19067   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19068   ;;
19069   *)
19070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19071 for as_dir in $PATH
19072 do
19073   IFS=$as_save_IFS
19074   test -z "$as_dir" && as_dir=.
19075   for ac_exec_ext in '' $ac_executable_extensions; do
19076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19077     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19079     break 2
19080   fi
19081 done
19082 done
19083
19084   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19085   ;;
19086 esac
19087 fi
19088 QMTEST=$ac_cv_path_QMTEST
19089
19090 if test -n "$QMTEST"; then
19091   echo "$as_me:$LINENO: result: $QMTEST" >&5
19092 echo "${ECHO_T}$QMTEST" >&6
19093 else
19094   echo "$as_me:$LINENO: result: no" >&5
19095 echo "${ECHO_T}no" >&6
19096 fi
19097
19098 if test "$QMTEST" = "false"
19099 then
19100         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19101 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19102 fi
19103
19104 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19105 pymajor=`echo $pyversion | cut -d. -f1`
19106 pyminor=`echo $pyversion | cut -d. -f2`
19107
19108 if test "$pymajor" -ge "2"
19109 then
19110         if test "$pymajor" -eq "2"
19111         then
19112                 if test "$pyminor" -lt "2"
19113                 then
19114                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19115 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19116                 fi
19117         fi
19118 else
19119         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19120 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19121 fi
19122
19123
19124 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19125 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19126 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   ac_check_lib_save_LIBS=$LIBS
19130 LIBS="-lelf  $LIBS"
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137
19138 /* Override any gcc2 internal prototype to avoid an error.  */
19139 #ifdef __cplusplus
19140 extern "C"
19141 #endif
19142 /* We use char because int might match the return type of a gcc2
19143    builtin and then its argument prototype would still apply.  */
19144 char elf_begin ();
19145 int
19146 main ()
19147 {
19148 elf_begin ();
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19155   (eval $ac_link) 2>conftest.er1
19156   ac_status=$?
19157   grep -v '^ *+' conftest.er1 >conftest.err
19158   rm -f conftest.er1
19159   cat conftest.err >&5
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } &&
19162          { ac_try='test -z "$ac_c_werror_flag"
19163                          || test ! -s conftest.err'
19164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165   (eval $ac_try) 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; } &&
19169          { ac_try='test -s conftest$ac_exeext'
19170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171   (eval $ac_try) 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; }; then
19175   ac_cv_lib_elf_elf_begin=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180 ac_cv_lib_elf_elf_begin=no
19181 fi
19182 rm -f conftest.err conftest.$ac_objext \
19183       conftest$ac_exeext conftest.$ac_ext
19184 LIBS=$ac_check_lib_save_LIBS
19185 fi
19186 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19187 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19188 if test $ac_cv_lib_elf_elf_begin = yes; then
19189   cat >>confdefs.h <<_ACEOF
19190 #define HAVE_LIBELF 1
19191 _ACEOF
19192
19193   LIBS="-lelf $LIBS"
19194
19195 fi
19196
19197
19198 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19199 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19200 if test "${ac_cv_search_dlopen+set}" = set; then
19201   echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203   ac_func_search_save_LIBS=$LIBS
19204 ac_cv_search_dlopen=no
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211
19212 /* Override any gcc2 internal prototype to avoid an error.  */
19213 #ifdef __cplusplus
19214 extern "C"
19215 #endif
19216 /* We use char because int might match the return type of a gcc2
19217    builtin and then its argument prototype would still apply.  */
19218 char dlopen ();
19219 int
19220 main ()
19221 {
19222 dlopen ();
19223   ;
19224   return 0;
19225 }
19226 _ACEOF
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229   (eval $ac_link) 2>conftest.er1
19230   ac_status=$?
19231   grep -v '^ *+' conftest.er1 >conftest.err
19232   rm -f conftest.er1
19233   cat conftest.err >&5
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); } &&
19236          { ac_try='test -z "$ac_c_werror_flag"
19237                          || test ! -s conftest.err'
19238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239   (eval $ac_try) 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; } &&
19243          { ac_try='test -s conftest$ac_exeext'
19244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245   (eval $ac_try) 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; }; then
19249   ac_cv_search_dlopen="none required"
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 fi
19255 rm -f conftest.err conftest.$ac_objext \
19256       conftest$ac_exeext conftest.$ac_ext
19257 if test "$ac_cv_search_dlopen" = no; then
19258   for ac_lib in dl; do
19259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19260     cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266
19267 /* Override any gcc2 internal prototype to avoid an error.  */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 /* We use char because int might match the return type of a gcc2
19272    builtin and then its argument prototype would still apply.  */
19273 char dlopen ();
19274 int
19275 main ()
19276 {
19277 dlopen ();
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284   (eval $ac_link) 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -z "$ac_c_werror_flag"
19292                          || test ! -s conftest.err'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; } &&
19298          { ac_try='test -s conftest$ac_exeext'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; }; then
19304   ac_cv_search_dlopen="-l$ac_lib"
19305 break
19306 else
19307   echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310 fi
19311 rm -f conftest.err conftest.$ac_objext \
19312       conftest$ac_exeext conftest.$ac_ext
19313   done
19314 fi
19315 LIBS=$ac_func_search_save_LIBS
19316 fi
19317 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19318 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19319 if test "$ac_cv_search_dlopen" != no; then
19320   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19321
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_DLOPEN 1
19324 _ACEOF
19325
19326 else
19327   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19328 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19329 fi
19330
19331
19332 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19333 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19334 if test "${ac_cv_search_mallinfo+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_func_search_save_LIBS=$LIBS
19338 ac_cv_search_mallinfo=no
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345
19346 /* Override any gcc2 internal prototype to avoid an error.  */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 /* We use char because int might match the return type of a gcc2
19351    builtin and then its argument prototype would still apply.  */
19352 char mallinfo ();
19353 int
19354 main ()
19355 {
19356 mallinfo ();
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19363   (eval $ac_link) 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_c_werror_flag"
19371                          || test ! -s conftest.err'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest$ac_exeext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   ac_cv_search_mallinfo="none required"
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 fi
19389 rm -f conftest.err conftest.$ac_objext \
19390       conftest$ac_exeext conftest.$ac_ext
19391 if test "$ac_cv_search_mallinfo" = no; then
19392   for ac_lib in malloc; do
19393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19394     cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 /* Override any gcc2 internal prototype to avoid an error.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 /* We use char because int might match the return type of a gcc2
19406    builtin and then its argument prototype would still apply.  */
19407 char mallinfo ();
19408 int
19409 main ()
19410 {
19411 mallinfo ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_search_mallinfo="-l$ac_lib"
19439 break
19440 else
19441   echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446       conftest$ac_exeext conftest.$ac_ext
19447   done
19448 fi
19449 LIBS=$ac_func_search_save_LIBS
19450 fi
19451 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19452 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19453 if test "$ac_cv_search_mallinfo" != no; then
19454   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19455
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE_MALLINFO 1
19458 _ACEOF
19459
19460 fi
19461
19462
19463 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19464 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19465 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   ac_func_search_save_LIBS=$LIBS
19469 ac_cv_search_pthread_mutex_lock=no
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
19477 /* Override any gcc2 internal prototype to avoid an error.  */
19478 #ifdef __cplusplus
19479 extern "C"
19480 #endif
19481 /* We use char because int might match the return type of a gcc2
19482    builtin and then its argument prototype would still apply.  */
19483 char pthread_mutex_lock ();
19484 int
19485 main ()
19486 {
19487 pthread_mutex_lock ();
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19494   (eval $ac_link) 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } &&
19501          { ac_try='test -z "$ac_c_werror_flag"
19502                          || test ! -s conftest.err'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; } &&
19508          { ac_try='test -s conftest$ac_exeext'
19509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510   (eval $ac_try) 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); }; }; then
19514   ac_cv_search_pthread_mutex_lock="none required"
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 fi
19520 rm -f conftest.err conftest.$ac_objext \
19521       conftest$ac_exeext conftest.$ac_ext
19522 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19523   for ac_lib in pthread; do
19524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19525     cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531
19532 /* Override any gcc2 internal prototype to avoid an error.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 /* We use char because int might match the return type of a gcc2
19537    builtin and then its argument prototype would still apply.  */
19538 char pthread_mutex_lock ();
19539 int
19540 main ()
19541 {
19542 pthread_mutex_lock ();
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549   (eval $ac_link) 2>conftest.er1
19550   ac_status=$?
19551   grep -v '^ *+' conftest.er1 >conftest.err
19552   rm -f conftest.er1
19553   cat conftest.err >&5
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); } &&
19556          { ac_try='test -z "$ac_c_werror_flag"
19557                          || test ! -s conftest.err'
19558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559   (eval $ac_try) 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; } &&
19563          { ac_try='test -s conftest$ac_exeext'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19570 break
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 fi
19576 rm -f conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578   done
19579 fi
19580 LIBS=$ac_func_search_save_LIBS
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19583 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19584 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19585   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19586   HAVE_PTHREAD_MUTEX_LOCK=1
19587 else
19588   HAVE_PTHREAD_MUTEX_LOCK=0
19589 fi
19590
19591
19592
19593 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19595 if test "${ac_cv_header_stdc+set}" = set; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598   cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 #include <stdlib.h>
19605 #include <stdarg.h>
19606 #include <string.h>
19607 #include <float.h>
19608
19609 int
19610 main ()
19611 {
19612
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19619   (eval $ac_compile) 2>conftest.er1
19620   ac_status=$?
19621   grep -v '^ *+' conftest.er1 >conftest.err
19622   rm -f conftest.er1
19623   cat conftest.err >&5
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } &&
19626          { ac_try='test -z "$ac_c_werror_flag"
19627                          || test ! -s conftest.err'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; } &&
19633          { ac_try='test -s conftest.$ac_objext'
19634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635   (eval $ac_try) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   ac_cv_header_stdc=yes
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 ac_cv_header_stdc=no
19645 fi
19646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19647
19648 if test $ac_cv_header_stdc = yes; then
19649   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19650   cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 #include <string.h>
19657
19658 _ACEOF
19659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19660   $EGREP "memchr" >/dev/null 2>&1; then
19661   :
19662 else
19663   ac_cv_header_stdc=no
19664 fi
19665 rm -f conftest*
19666
19667 fi
19668
19669 if test $ac_cv_header_stdc = yes; then
19670   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19671   cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 #include <stdlib.h>
19678
19679 _ACEOF
19680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19681   $EGREP "free" >/dev/null 2>&1; then
19682   :
19683 else
19684   ac_cv_header_stdc=no
19685 fi
19686 rm -f conftest*
19687
19688 fi
19689
19690 if test $ac_cv_header_stdc = yes; then
19691   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19692   if test "$cross_compiling" = yes; then
19693   :
19694 else
19695   cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701 #include <ctype.h>
19702 #if ((' ' & 0x0FF) == 0x020)
19703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19705 #else
19706 # define ISLOWER(c) \
19707                    (('a' <= (c) && (c) <= 'i') \
19708                      || ('j' <= (c) && (c) <= 'r') \
19709                      || ('s' <= (c) && (c) <= 'z'))
19710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19711 #endif
19712
19713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19714 int
19715 main ()
19716 {
19717   int i;
19718   for (i = 0; i < 256; i++)
19719     if (XOR (islower (i), ISLOWER (i))
19720         || toupper (i) != TOUPPER (i))
19721       exit(2);
19722   exit (0);
19723 }
19724 _ACEOF
19725 rm -f conftest$ac_exeext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727   (eval $ac_link) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   :
19737 else
19738   echo "$as_me: program exited with status $ac_status" >&5
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742 ( exit $ac_status )
19743 ac_cv_header_stdc=no
19744 fi
19745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19746 fi
19747 fi
19748 fi
19749 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19750 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19751 if test $ac_cv_header_stdc = yes; then
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define STDC_HEADERS 1
19755 _ACEOF
19756
19757 fi
19758
19759 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19760 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19761 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19762   echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764   cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 #include <sys/types.h>
19771 #include <sys/wait.h>
19772 #ifndef WEXITSTATUS
19773 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19774 #endif
19775 #ifndef WIFEXITED
19776 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19777 #endif
19778
19779 int
19780 main ()
19781 {
19782   int s;
19783   wait (&s);
19784   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791   (eval $ac_compile) 2>conftest.er1
19792   ac_status=$?
19793   grep -v '^ *+' conftest.er1 >conftest.err
19794   rm -f conftest.er1
19795   cat conftest.err >&5
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); } &&
19798          { ac_try='test -z "$ac_c_werror_flag"
19799                          || test ! -s conftest.err'
19800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801   (eval $ac_try) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; } &&
19805          { ac_try='test -s conftest.$ac_objext'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   ac_cv_header_sys_wait_h=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ac_cv_header_sys_wait_h=no
19817 fi
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19819 fi
19820 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19821 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19822 if test $ac_cv_header_sys_wait_h = yes; then
19823
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_SYS_WAIT_H 1
19826 _ACEOF
19827
19828 fi
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842 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
19843 do
19844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846   echo "$as_me:$LINENO: checking for $ac_header" >&5
19847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 fi
19851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19853 else
19854   # Is the header compilable?
19855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863 $ac_includes_default
19864 #include <$ac_header>
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868   (eval $ac_compile) 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } &&
19875          { ac_try='test -z "$ac_c_werror_flag"
19876                          || test ! -s conftest.err'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; } &&
19882          { ac_try='test -s conftest.$ac_objext'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_header_compiler=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_header_compiler=no
19894 fi
19895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897 echo "${ECHO_T}$ac_header_compiler" >&6
19898
19899 # Is the header present?
19900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908 #include <$ac_header>
19909 _ACEOF
19910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19912   ac_status=$?
19913   grep -v '^ *+' conftest.er1 >conftest.err
19914   rm -f conftest.er1
19915   cat conftest.err >&5
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } >/dev/null; then
19918   if test -s conftest.err; then
19919     ac_cpp_err=$ac_c_preproc_warn_flag
19920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19921   else
19922     ac_cpp_err=
19923   fi
19924 else
19925   ac_cpp_err=yes
19926 fi
19927 if test -z "$ac_cpp_err"; then
19928   ac_header_preproc=yes
19929 else
19930   echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933   ac_header_preproc=no
19934 fi
19935 rm -f conftest.err conftest.$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6
19938
19939 # So?  What about this header?
19940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941   yes:no: )
19942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19946     ac_header_preproc=yes
19947     ;;
19948   no:yes:* )
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19961     (
19962       cat <<\_ASBOX
19963 ## ----------------------------------- ##
19964 ## Report this to llvmbugs@cs.uiuc.edu ##
19965 ## ----------------------------------- ##
19966 _ASBOX
19967     ) |
19968       sed "s/^/$as_me: WARNING:     /" >&2
19969     ;;
19970 esac
19971 echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974   echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976   eval "$as_ac_Header=\$ac_header_preproc"
19977 fi
19978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19980
19981 fi
19982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19983   cat >>confdefs.h <<_ACEOF
19984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19985 _ACEOF
19986
19987 fi
19988
19989 done
19990
19991
19992 if test "${ac_cv_header_sys_types_h+set}" = set; then
19993   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19994 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19995 if test "${ac_cv_header_sys_types_h+set}" = set; then
19996   echo $ECHO_N "(cached) $ECHO_C" >&6
19997 fi
19998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19999 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20000 else
20001   # Is the header compilable?
20002 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20003 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 $ac_includes_default
20011 #include <sys/types.h>
20012 _ACEOF
20013 rm -f conftest.$ac_objext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015   (eval $ac_compile) 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } &&
20022          { ac_try='test -z "$ac_c_werror_flag"
20023                          || test ! -s conftest.err'
20024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025   (eval $ac_try) 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; } &&
20029          { ac_try='test -s conftest.$ac_objext'
20030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031   (eval $ac_try) 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; }; then
20035   ac_header_compiler=yes
20036 else
20037   echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040 ac_header_compiler=no
20041 fi
20042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20044 echo "${ECHO_T}$ac_header_compiler" >&6
20045
20046 # Is the header present?
20047 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20048 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20049 cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h.  */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h.  */
20055 #include <sys/types.h>
20056 _ACEOF
20057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } >/dev/null; then
20065   if test -s conftest.err; then
20066     ac_cpp_err=$ac_c_preproc_warn_flag
20067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20068   else
20069     ac_cpp_err=
20070   fi
20071 else
20072   ac_cpp_err=yes
20073 fi
20074 if test -z "$ac_cpp_err"; then
20075   ac_header_preproc=yes
20076 else
20077   echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080   ac_header_preproc=no
20081 fi
20082 rm -f conftest.err conftest.$ac_ext
20083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20084 echo "${ECHO_T}$ac_header_preproc" >&6
20085
20086 # So?  What about this header?
20087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20088   yes:no: )
20089     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20090 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20091     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20092 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20093     ac_header_preproc=yes
20094     ;;
20095   no:yes:* )
20096     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20097 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20099 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20101 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20103 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20104     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20105 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20106     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20107 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20108     (
20109       cat <<\_ASBOX
20110 ## ----------------------------------- ##
20111 ## Report this to llvmbugs@cs.uiuc.edu ##
20112 ## ----------------------------------- ##
20113 _ASBOX
20114     ) |
20115       sed "s/^/$as_me: WARNING:     /" >&2
20116     ;;
20117 esac
20118 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20119 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20120 if test "${ac_cv_header_sys_types_h+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123   ac_cv_header_sys_types_h=$ac_header_preproc
20124 fi
20125 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20126 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20127
20128 fi
20129
20130
20131 if test "${ac_cv_header_inttypes_h+set}" = set; then
20132   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20133 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20134 if test "${ac_cv_header_inttypes_h+set}" = set; then
20135   echo $ECHO_N "(cached) $ECHO_C" >&6
20136 fi
20137 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20138 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20139 else
20140   # Is the header compilable?
20141 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20142 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h.  */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h.  */
20149 $ac_includes_default
20150 #include <inttypes.h>
20151 _ACEOF
20152 rm -f conftest.$ac_objext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154   (eval $ac_compile) 2>conftest.er1
20155   ac_status=$?
20156   grep -v '^ *+' conftest.er1 >conftest.err
20157   rm -f conftest.er1
20158   cat conftest.err >&5
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); } &&
20161          { ac_try='test -z "$ac_c_werror_flag"
20162                          || test ! -s conftest.err'
20163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164   (eval $ac_try) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; } &&
20168          { ac_try='test -s conftest.$ac_objext'
20169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170   (eval $ac_try) 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; }; then
20174   ac_header_compiler=yes
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_header_compiler=no
20180 fi
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183 echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185 # Is the header present?
20186 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20187 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194 #include <inttypes.h>
20195 _ACEOF
20196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } >/dev/null; then
20204   if test -s conftest.err; then
20205     ac_cpp_err=$ac_c_preproc_warn_flag
20206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20207   else
20208     ac_cpp_err=
20209   fi
20210 else
20211   ac_cpp_err=yes
20212 fi
20213 if test -z "$ac_cpp_err"; then
20214   ac_header_preproc=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219   ac_header_preproc=no
20220 fi
20221 rm -f conftest.err conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223 echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225 # So?  What about this header?
20226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227   yes:no: )
20228     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20230     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20231 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20232     ac_header_preproc=yes
20233     ;;
20234   no:yes:* )
20235     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20236 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20238 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20239     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20240 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20241     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20242 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20243     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20244 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20245     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20246 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20247     (
20248       cat <<\_ASBOX
20249 ## ----------------------------------- ##
20250 ## Report this to llvmbugs@cs.uiuc.edu ##
20251 ## ----------------------------------- ##
20252 _ASBOX
20253     ) |
20254       sed "s/^/$as_me: WARNING:     /" >&2
20255     ;;
20256 esac
20257 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260   echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262   ac_cv_header_inttypes_h=$ac_header_preproc
20263 fi
20264 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20266
20267 fi
20268
20269
20270 if test "${ac_cv_header_stdint_h+set}" = set; then
20271   echo "$as_me:$LINENO: checking for stdint.h" >&5
20272 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20273 if test "${ac_cv_header_stdint_h+set}" = set; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 fi
20276 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20277 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20278 else
20279   # Is the header compilable?
20280 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20281 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 $ac_includes_default
20289 #include <stdint.h>
20290 _ACEOF
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293   (eval $ac_compile) 2>conftest.er1
20294   ac_status=$?
20295   grep -v '^ *+' conftest.er1 >conftest.err
20296   rm -f conftest.er1
20297   cat conftest.err >&5
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } &&
20300          { ac_try='test -z "$ac_c_werror_flag"
20301                          || test ! -s conftest.err'
20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; } &&
20307          { ac_try='test -s conftest.$ac_objext'
20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309   (eval $ac_try) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   ac_header_compiler=yes
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 ac_header_compiler=no
20319 fi
20320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20322 echo "${ECHO_T}$ac_header_compiler" >&6
20323
20324 # Is the header present?
20325 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20326 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333 #include <stdint.h>
20334 _ACEOF
20335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } >/dev/null; then
20343   if test -s conftest.err; then
20344     ac_cpp_err=$ac_c_preproc_warn_flag
20345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20346   else
20347     ac_cpp_err=
20348   fi
20349 else
20350   ac_cpp_err=yes
20351 fi
20352 if test -z "$ac_cpp_err"; then
20353   ac_header_preproc=yes
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358   ac_header_preproc=no
20359 fi
20360 rm -f conftest.err conftest.$ac_ext
20361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20362 echo "${ECHO_T}$ac_header_preproc" >&6
20363
20364 # So?  What about this header?
20365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20366   yes:no: )
20367     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20368 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20369     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20370 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20371     ac_header_preproc=yes
20372     ;;
20373   no:yes:* )
20374     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20375 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20377 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20378     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20379 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20380     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20381 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20382     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20383 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20384     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20385 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20386     (
20387       cat <<\_ASBOX
20388 ## ----------------------------------- ##
20389 ## Report this to llvmbugs@cs.uiuc.edu ##
20390 ## ----------------------------------- ##
20391 _ASBOX
20392     ) |
20393       sed "s/^/$as_me: WARNING:     /" >&2
20394     ;;
20395 esac
20396 echo "$as_me:$LINENO: checking for stdint.h" >&5
20397 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20398 if test "${ac_cv_header_stdint_h+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401   ac_cv_header_stdint_h=$ac_header_preproc
20402 fi
20403 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20404 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20405
20406 fi
20407
20408
20409
20410 echo "$as_me:$LINENO: checking for pid_t" >&5
20411 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20412 if test "${ac_cv_type_pid_t+set}" = set; then
20413   echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415   cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20421 $ac_includes_default
20422 int
20423 main ()
20424 {
20425 if ((pid_t *) 0)
20426   return 0;
20427 if (sizeof (pid_t))
20428   return 0;
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20435   (eval $ac_compile) 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } &&
20442          { ac_try='test -z "$ac_c_werror_flag"
20443                          || test ! -s conftest.err'
20444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445   (eval $ac_try) 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; } &&
20449          { ac_try='test -s conftest.$ac_objext'
20450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451   (eval $ac_try) 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); }; }; then
20455   ac_cv_type_pid_t=yes
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 ac_cv_type_pid_t=no
20461 fi
20462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20463 fi
20464 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20465 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20466 if test $ac_cv_type_pid_t = yes; then
20467   :
20468 else
20469
20470 cat >>confdefs.h <<_ACEOF
20471 #define pid_t int
20472 _ACEOF
20473
20474 fi
20475
20476 echo "$as_me:$LINENO: checking for size_t" >&5
20477 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20478 if test "${ac_cv_type_size_t+set}" = set; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487 $ac_includes_default
20488 int
20489 main ()
20490 {
20491 if ((size_t *) 0)
20492   return 0;
20493 if (sizeof (size_t))
20494   return 0;
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501   (eval $ac_compile) 2>conftest.er1
20502   ac_status=$?
20503   grep -v '^ *+' conftest.er1 >conftest.err
20504   rm -f conftest.er1
20505   cat conftest.err >&5
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } &&
20508          { ac_try='test -z "$ac_c_werror_flag"
20509                          || test ! -s conftest.err'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; } &&
20515          { ac_try='test -s conftest.$ac_objext'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; }; then
20521   ac_cv_type_size_t=yes
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_cv_type_size_t=no
20527 fi
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 fi
20530 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20531 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20532 if test $ac_cv_type_size_t = yes; then
20533   :
20534 else
20535
20536 cat >>confdefs.h <<_ACEOF
20537 #define size_t unsigned
20538 _ACEOF
20539
20540 fi
20541
20542 echo "$as_me:$LINENO: checking for int64_t" >&5
20543 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20544 if test "${ac_cv_type_int64_t+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553 $ac_includes_default
20554 int
20555 main ()
20556 {
20557 if ((int64_t *) 0)
20558   return 0;
20559 if (sizeof (int64_t))
20560   return 0;
20561   ;
20562   return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20567   (eval $ac_compile) 2>conftest.er1
20568   ac_status=$?
20569   grep -v '^ *+' conftest.er1 >conftest.err
20570   rm -f conftest.er1
20571   cat conftest.err >&5
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); } &&
20574          { ac_try='test -z "$ac_c_werror_flag"
20575                          || test ! -s conftest.err'
20576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577   (eval $ac_try) 2>&5
20578   ac_status=$?
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); }; } &&
20581          { ac_try='test -s conftest.$ac_objext'
20582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583   (eval $ac_try) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; }; then
20587   ac_cv_type_int64_t=yes
20588 else
20589   echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592 ac_cv_type_int64_t=no
20593 fi
20594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20595 fi
20596 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20597 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20598 if test $ac_cv_type_int64_t = yes; then
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_INT64_T 1
20602 _ACEOF
20603
20604
20605 else
20606   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20607 echo "$as_me: error: Type int64_t required but not found" >&2;}
20608    { (exit 1); exit 1; }; }
20609 fi
20610
20611 echo "$as_me:$LINENO: checking for uint64_t" >&5
20612 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20613 if test "${ac_cv_type_uint64_t+set}" = set; then
20614   echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616   cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622 $ac_includes_default
20623 int
20624 main ()
20625 {
20626 if ((uint64_t *) 0)
20627   return 0;
20628 if (sizeof (uint64_t))
20629   return 0;
20630   ;
20631   return 0;
20632 }
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20636   (eval $ac_compile) 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -z "$ac_c_werror_flag"
20644                          || test ! -s conftest.err'
20645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646   (eval $ac_try) 2>&5
20647   ac_status=$?
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); }; } &&
20650          { ac_try='test -s conftest.$ac_objext'
20651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652   (eval $ac_try) 2>&5
20653   ac_status=$?
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); }; }; then
20656   ac_cv_type_uint64_t=yes
20657 else
20658   echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20660
20661 ac_cv_type_uint64_t=no
20662 fi
20663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20664 fi
20665 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20666 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20667 if test $ac_cv_type_uint64_t = yes; then
20668
20669 cat >>confdefs.h <<_ACEOF
20670 #define HAVE_UINT64_T 1
20671 _ACEOF
20672
20673
20674 else
20675   echo "$as_me:$LINENO: checking for u_int64_t" >&5
20676 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20677 if test "${ac_cv_type_u_int64_t+set}" = set; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680   cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 $ac_includes_default
20687 int
20688 main ()
20689 {
20690 if ((u_int64_t *) 0)
20691   return 0;
20692 if (sizeof (u_int64_t))
20693   return 0;
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700   (eval $ac_compile) 2>conftest.er1
20701   ac_status=$?
20702   grep -v '^ *+' conftest.er1 >conftest.err
20703   rm -f conftest.er1
20704   cat conftest.err >&5
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -z "$ac_c_werror_flag"
20708                          || test ! -s conftest.err'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; } &&
20714          { ac_try='test -s conftest.$ac_objext'
20715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716   (eval $ac_try) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   ac_cv_type_u_int64_t=yes
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 ac_cv_type_u_int64_t=no
20726 fi
20727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20728 fi
20729 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20730 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20731 if test $ac_cv_type_u_int64_t = yes; then
20732
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_U_INT64_T 1
20735 _ACEOF
20736
20737
20738 else
20739   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20740 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20741    { (exit 1); exit 1; }; }
20742 fi
20743
20744 fi
20745
20746 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20747 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20748 if test "${ac_cv_header_time+set}" = set; then
20749   echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751   cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757 #include <sys/types.h>
20758 #include <sys/time.h>
20759 #include <time.h>
20760
20761 int
20762 main ()
20763 {
20764 if ((struct tm *) 0)
20765 return 0;
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20772   (eval $ac_compile) 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -z "$ac_c_werror_flag"
20780                          || test ! -s conftest.err'
20781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782   (eval $ac_try) 2>&5
20783   ac_status=$?
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); }; } &&
20786          { ac_try='test -s conftest.$ac_objext'
20787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788   (eval $ac_try) 2>&5
20789   ac_status=$?
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); }; }; then
20792   ac_cv_header_time=yes
20793 else
20794   echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ac_cv_header_time=no
20798 fi
20799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20800 fi
20801 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20802 echo "${ECHO_T}$ac_cv_header_time" >&6
20803 if test $ac_cv_header_time = yes; then
20804
20805 cat >>confdefs.h <<\_ACEOF
20806 #define TIME_WITH_SYS_TIME 1
20807 _ACEOF
20808
20809 fi
20810
20811 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20812 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20813 if test "${ac_cv_struct_tm+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 #include <sys/types.h>
20823 #include <time.h>
20824
20825 int
20826 main ()
20827 {
20828 struct tm *tp; tp->tm_sec;
20829   ;
20830   return 0;
20831 }
20832 _ACEOF
20833 rm -f conftest.$ac_objext
20834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20835   (eval $ac_compile) 2>conftest.er1
20836   ac_status=$?
20837   grep -v '^ *+' conftest.er1 >conftest.err
20838   rm -f conftest.er1
20839   cat conftest.err >&5
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); } &&
20842          { ac_try='test -z "$ac_c_werror_flag"
20843                          || test ! -s conftest.err'
20844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845   (eval $ac_try) 2>&5
20846   ac_status=$?
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); }; } &&
20849          { ac_try='test -s conftest.$ac_objext'
20850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851   (eval $ac_try) 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); }; }; then
20855   ac_cv_struct_tm=time.h
20856 else
20857   echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20859
20860 ac_cv_struct_tm=sys/time.h
20861 fi
20862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20863 fi
20864 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20865 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20866 if test $ac_cv_struct_tm = sys/time.h; then
20867
20868 cat >>confdefs.h <<\_ACEOF
20869 #define TM_IN_SYS_TIME 1
20870 _ACEOF
20871
20872 fi
20873
20874
20875
20876   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20877 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20878   ac_ext=c
20879 ac_cpp='$CPP $CPPFLAGS'
20880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883
20884   if test "$cross_compiling" = yes; then
20885   ac_c_printf_a=no
20886 else
20887   cat >conftest.$ac_ext <<_ACEOF
20888
20889     /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894
20895 #include <stdio.h>
20896 #include <stdlib.h>
20897
20898 int
20899 main ()
20900 {
20901
20902 volatile double A, B;
20903 char Buffer[100];
20904 A = 1;
20905 A /= 10.0;
20906 sprintf(Buffer, "%a", A);
20907 B = atof(Buffer);
20908 if (A != B)
20909   return (1);
20910 if (A != 0x1.999999999999ap-4)
20911   return (1);
20912 return (0);
20913   ;
20914   return 0;
20915 }
20916 _ACEOF
20917 rm -f conftest$ac_exeext
20918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20919   (eval $ac_link) 2>&5
20920   ac_status=$?
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; }; then
20928   ac_c_printf_a=yes
20929 else
20930   echo "$as_me: program exited with status $ac_status" >&5
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 ( exit $ac_status )
20935 ac_c_printf_a=no
20936 fi
20937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20938 fi
20939  ac_ext=c
20940 ac_cpp='$CPP $CPPFLAGS'
20941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
20945  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20946 echo "${ECHO_T}$ac_c_printf_a" >&6
20947  if test "$ac_c_printf_a" = "yes"; then
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_PRINTF_A 1
20951 _ACEOF
20952
20953  fi
20954
20955
20956 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20957 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20958 if test "${ac_cv_c_bigendian+set}" = set; then
20959   echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961   # See if sys/param.h defines the BYTE_ORDER macro.
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968 #include <sys/types.h>
20969 #include <sys/param.h>
20970
20971 int
20972 main ()
20973 {
20974 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20975  bogus endian macros
20976 #endif
20977
20978   ;
20979   return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext
20983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20984   (eval $ac_compile) 2>conftest.er1
20985   ac_status=$?
20986   grep -v '^ *+' conftest.er1 >conftest.err
20987   rm -f conftest.er1
20988   cat conftest.err >&5
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } &&
20991          { ac_try='test -z "$ac_c_werror_flag"
20992                          || test ! -s conftest.err'
20993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994   (eval $ac_try) 2>&5
20995   ac_status=$?
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); }; } &&
20998          { ac_try='test -s conftest.$ac_objext'
20999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000   (eval $ac_try) 2>&5
21001   ac_status=$?
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); }; }; then
21004   # It does; now see whether it defined to BIG_ENDIAN or not.
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011 #include <sys/types.h>
21012 #include <sys/param.h>
21013
21014 int
21015 main ()
21016 {
21017 #if BYTE_ORDER != BIG_ENDIAN
21018  not big endian
21019 #endif
21020
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21027   (eval $ac_compile) 2>conftest.er1
21028   ac_status=$?
21029   grep -v '^ *+' conftest.er1 >conftest.err
21030   rm -f conftest.er1
21031   cat conftest.err >&5
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } &&
21034          { ac_try='test -z "$ac_c_werror_flag"
21035                          || test ! -s conftest.err'
21036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037   (eval $ac_try) 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; } &&
21041          { ac_try='test -s conftest.$ac_objext'
21042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043   (eval $ac_try) 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   ac_cv_c_bigendian=yes
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 ac_cv_c_bigendian=no
21053 fi
21054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 # It does not; compile a test program.
21060 if test "$cross_compiling" = yes; then
21061   # try to guess the endianness by grepping values into an object file
21062   ac_cv_c_bigendian=unknown
21063   cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h.  */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h.  */
21069 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21070 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21072 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21073 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21075 int
21076 main ()
21077 {
21078  _ascii (); _ebcdic ();
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21085   (eval $ac_compile) 2>conftest.er1
21086   ac_status=$?
21087   grep -v '^ *+' conftest.er1 >conftest.err
21088   rm -f conftest.er1
21089   cat conftest.err >&5
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } &&
21092          { ac_try='test -z "$ac_c_werror_flag"
21093                          || test ! -s conftest.err'
21094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095   (eval $ac_try) 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; } &&
21099          { ac_try='test -s conftest.$ac_objext'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; }; then
21105   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21106   ac_cv_c_bigendian=yes
21107 fi
21108 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21109   if test "$ac_cv_c_bigendian" = unknown; then
21110     ac_cv_c_bigendian=no
21111   else
21112     # finding both strings is unlikely to happen, but who knows?
21113     ac_cv_c_bigendian=unknown
21114   fi
21115 fi
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 fi
21121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 int
21130 main ()
21131 {
21132   /* Are we little or big endian?  From Harbison&Steele.  */
21133   union
21134   {
21135     long l;
21136     char c[sizeof (long)];
21137   } u;
21138   u.l = 1;
21139   exit (u.c[sizeof (long) - 1] == 1);
21140 }
21141 _ACEOF
21142 rm -f conftest$ac_exeext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21144   (eval $ac_link) 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_cv_c_bigendian=no
21154 else
21155   echo "$as_me: program exited with status $ac_status" >&5
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159 ( exit $ac_status )
21160 ac_cv_c_bigendian=yes
21161 fi
21162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21163 fi
21164 fi
21165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21166 fi
21167 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21168 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21169 case $ac_cv_c_bigendian in
21170   yes)
21171     ENDIAN=big
21172  ;;
21173   no)
21174     ENDIAN=little
21175  ;;
21176   *)
21177     { { echo "$as_me:$LINENO: error: unknown endianness
21178 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21179 echo "$as_me: error: unknown endianness
21180 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21181    { (exit 1); exit 1; }; } ;;
21182 esac
21183
21184
21185 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21186 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21187 if test "${ac_cv_cxx_namespaces+set}" = set; then
21188   echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190   ac_ext=cc
21191 ac_cpp='$CXXCPP $CPPFLAGS'
21192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195
21196  cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 namespace Outer { namespace Inner { int i = 0; }}
21203 int
21204 main ()
21205 {
21206 using namespace Outer::Inner; return i;
21207   ;
21208   return 0;
21209 }
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213   (eval $ac_compile) 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } &&
21220          { ac_try='test -z "$ac_cxx_werror_flag"
21221                          || test ! -s conftest.err'
21222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223   (eval $ac_try) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; } &&
21227          { ac_try='test -s conftest.$ac_objext'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_cv_cxx_namespaces=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ac_cv_cxx_namespaces=no
21239 fi
21240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241  ac_ext=c
21242 ac_cpp='$CPP $CPPFLAGS'
21243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21246
21247
21248 fi
21249 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21250 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21251 if test "$ac_cv_cxx_namespaces" = yes; then
21252
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_NAMESPACES
21255 _ACEOF
21256
21257 fi
21258
21259 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21260 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21261 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264
21265   ac_ext=cc
21266 ac_cpp='$CXXCPP $CPPFLAGS'
21267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21270
21271   cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 #include <ext/hash_map>
21278 #ifdef HAVE_NAMESPACES
21279 using namespace std;
21280 #endif
21281 int
21282 main ()
21283 {
21284 hash_map<int, int> t;
21285   ;
21286   return 0;
21287 }
21288 _ACEOF
21289 rm -f conftest.$ac_objext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21291   (eval $ac_compile) 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } &&
21298          { ac_try='test -z "$ac_cxx_werror_flag"
21299                          || test ! -s conftest.err'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; } &&
21305          { ac_try='test -s conftest.$ac_objext'
21306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307   (eval $ac_try) 2>&5
21308   ac_status=$?
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); }; }; then
21311   ac_cv_cxx_have_std_ext_hash_map=yes
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 ac_cv_cxx_have_std_ext_hash_map=no
21317 fi
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319   ac_ext=c
21320 ac_cpp='$CPP $CPPFLAGS'
21321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21324
21325 fi
21326 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21327 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21328  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21329  then
21330
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_STD_EXT_HASH_MAP 1
21333 _ACEOF
21334
21335  else
21336
21337 cat >>confdefs.h <<\_ACEOF
21338 #define HAVE_STD_EXT_HASH_MAP 0
21339 _ACEOF
21340
21341  fi
21342
21343  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21344 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21345 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348
21349   ac_ext=cc
21350 ac_cpp='$CXXCPP $CPPFLAGS'
21351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21354
21355   cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361 #include <ext/hash_map>
21362 #ifdef HAVE_NAMESPACES
21363 using namespace __gnu_cxx;
21364 #endif
21365 int
21366 main ()
21367 {
21368 hash_map<int,int> t;
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375   (eval $ac_compile) 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -z "$ac_cxx_werror_flag"
21383                          || test ! -s conftest.err'
21384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385   (eval $ac_try) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; } &&
21389          { ac_try='test -s conftest.$ac_objext'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; }; then
21395   ac_cv_cxx_have_gnu_ext_hash_map=yes
21396 else
21397   echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ac_cv_cxx_have_gnu_ext_hash_map=no
21401 fi
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403   ac_ext=c
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21408
21409 fi
21410 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21411 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21412  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21413  then
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_GNU_EXT_HASH_MAP 1
21417 _ACEOF
21418
21419  else
21420
21421 cat >>confdefs.h <<\_ACEOF
21422 #define HAVE_GNU_EXT_HASH_MAP 0
21423 _ACEOF
21424
21425  fi
21426
21427  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21428 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21429 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21430   echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432
21433   ac_ext=cc
21434 ac_cpp='$CXXCPP $CPPFLAGS'
21435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21438
21439   cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 #include <hash_map>
21446 int
21447 main ()
21448 {
21449 hash_map<int,int> t;
21450   ;
21451   return 0;
21452 }
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456   (eval $ac_compile) 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } &&
21463          { ac_try='test -z "$ac_cxx_werror_flag"
21464                          || test ! -s conftest.err'
21465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466   (eval $ac_try) 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); }; } &&
21470          { ac_try='test -s conftest.$ac_objext'
21471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472   (eval $ac_try) 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; }; then
21476   ac_cv_cxx_have_global_hash_map=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 ac_cv_cxx_have_global_hash_map=no
21482 fi
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484   ac_ext=c
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490 fi
21491 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21492 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21493  if test "$ac_cv_cxx_have_global_hash_map" = yes
21494  then
21495
21496 cat >>confdefs.h <<\_ACEOF
21497 #define HAVE_GLOBAL_HASH_MAP 1
21498 _ACEOF
21499
21500  else
21501
21502 cat >>confdefs.h <<\_ACEOF
21503 #define HAVE_GLOBAL_HASH_MAP 0
21504 _ACEOF
21505
21506  fi
21507
21508 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21509 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21510 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21511   echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513
21514   ac_ext=cc
21515 ac_cpp='$CXXCPP $CPPFLAGS'
21516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21519
21520   cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h.  */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h.  */
21526 #include <ext/hash_set>
21527 #ifdef HAVE_NAMESPACES
21528 using namespace std;
21529 #endif
21530 int
21531 main ()
21532 {
21533 hash_set<int> t;
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540   (eval $ac_compile) 2>conftest.er1
21541   ac_status=$?
21542   grep -v '^ *+' conftest.er1 >conftest.err
21543   rm -f conftest.er1
21544   cat conftest.err >&5
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); } &&
21547          { ac_try='test -z "$ac_cxx_werror_flag"
21548                          || test ! -s conftest.err'
21549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; } &&
21554          { ac_try='test -s conftest.$ac_objext'
21555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556   (eval $ac_try) 2>&5
21557   ac_status=$?
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); }; }; then
21560   ac_cv_cxx_have_std_ext_hash_set=yes
21561 else
21562   echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_cxx_have_std_ext_hash_set=no
21566 fi
21567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21568   ac_ext=c
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21573
21574 fi
21575 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21576 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21577  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21578  then
21579
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_STD_EXT_HASH_SET 1
21582 _ACEOF
21583
21584  else
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_STD_EXT_HASH_SET 0
21588 _ACEOF
21589
21590  fi
21591
21592  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21593 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21594 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21595   echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597
21598   ac_ext=cc
21599 ac_cpp='$CXXCPP $CPPFLAGS'
21600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21603
21604   cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h.  */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h.  */
21610 #include <ext/hash_set>
21611 #ifdef HAVE_NAMESPACES
21612 using namespace __gnu_cxx;
21613 #endif
21614 int
21615 main ()
21616 {
21617 hash_set<int> t;
21618   ;
21619   return 0;
21620 }
21621 _ACEOF
21622 rm -f conftest.$ac_objext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21624   (eval $ac_compile) 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } &&
21631          { ac_try='test -z "$ac_cxx_werror_flag"
21632                          || test ! -s conftest.err'
21633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634   (eval $ac_try) 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); }; } &&
21638          { ac_try='test -s conftest.$ac_objext'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; }; then
21644   ac_cv_cxx_have_gnu_ext_hash_set=yes
21645 else
21646   echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ac_cv_cxx_have_gnu_ext_hash_set=no
21650 fi
21651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652   ac_ext=c
21653 ac_cpp='$CPP $CPPFLAGS'
21654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21657
21658 fi
21659 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21660 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21661  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21662  then
21663
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_GNU_EXT_HASH_SET 1
21666 _ACEOF
21667
21668  else
21669
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_GNU_EXT_HASH_SET 0
21672 _ACEOF
21673
21674  fi
21675
21676  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21677 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21678 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21679   echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681
21682   ac_ext=cc
21683 ac_cpp='$CXXCPP $CPPFLAGS'
21684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21687
21688   cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h.  */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h.  */
21694 #include <hash_set>
21695 int
21696 main ()
21697 {
21698 hash_set<int> t; return 0;
21699   ;
21700   return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21705   (eval $ac_compile) 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } &&
21712          { ac_try='test -z "$ac_cxx_werror_flag"
21713                          || test ! -s conftest.err'
21714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715   (eval $ac_try) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); }; } &&
21719          { ac_try='test -s conftest.$ac_objext'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725   ac_cv_cxx_have_global_hash_set=yes
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730 ac_cv_cxx_have_global_hash_set=no
21731 fi
21732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21733   ac_ext=c
21734 ac_cpp='$CPP $CPPFLAGS'
21735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21738
21739 fi
21740 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21741 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21742  if test "$ac_cv_cxx_have_global_hash_set" = yes
21743  then
21744
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_GLOBAL_HASH_SET 1
21747 _ACEOF
21748
21749  else
21750
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_GLOBAL_HASH_SET 0
21753 _ACEOF
21754
21755  fi
21756
21757 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21758 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21759 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21760   echo $ECHO_N "(cached) $ECHO_C" >&6
21761 else
21762
21763   ac_ext=cc
21764 ac_cpp='$CXXCPP $CPPFLAGS'
21765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21768
21769   cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h.  */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h.  */
21775 #include <iterator>
21776 #ifdef HAVE_NAMESPACES
21777 using namespace std;
21778 #endif
21779 int
21780 main ()
21781 {
21782 iterator<int,int,int> t; return 0;
21783   ;
21784   return 0;
21785 }
21786 _ACEOF
21787 rm -f conftest.$ac_objext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21789   (eval $ac_compile) 2>conftest.er1
21790   ac_status=$?
21791   grep -v '^ *+' conftest.er1 >conftest.err
21792   rm -f conftest.er1
21793   cat conftest.err >&5
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } &&
21796          { ac_try='test -z "$ac_cxx_werror_flag"
21797                          || test ! -s conftest.err'
21798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799   (eval $ac_try) 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); }; } &&
21803          { ac_try='test -s conftest.$ac_objext'
21804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805   (eval $ac_try) 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; }; then
21809   ac_cv_cxx_have_std_iterator=yes
21810 else
21811   echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814 ac_cv_cxx_have_std_iterator=no
21815 fi
21816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21817   ac_ext=c
21818 ac_cpp='$CPP $CPPFLAGS'
21819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21822
21823
21824 fi
21825 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21826 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21827 HAVE_STD_ITERATOR=0
21828 if test "$ac_cv_cxx_have_std_iterator" = yes
21829 then
21830    HAVE_STD_ITERATOR=1
21831 fi
21832
21833 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21834 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21835 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838
21839   ac_ext=cc
21840 ac_cpp='$CXXCPP $CPPFLAGS'
21841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21844
21845   cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 #include <iterator>
21852 #ifdef HAVE_NAMESPACES
21853 using namespace std;
21854 #endif
21855 int
21856 main ()
21857 {
21858 bidirectional_iterator<int,int> t; return 0;
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865   (eval $ac_compile) 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } &&
21872          { ac_try='test -z "$ac_cxx_werror_flag"
21873                          || test ! -s conftest.err'
21874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875   (eval $ac_try) 2>&5
21876   ac_status=$?
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); }; } &&
21879          { ac_try='test -s conftest.$ac_objext'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; }; then
21885   ac_cv_cxx_have_bi_iterator=yes
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 ac_cv_cxx_have_bi_iterator=no
21891 fi
21892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21893   ac_ext=c
21894 ac_cpp='$CPP $CPPFLAGS'
21895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21898
21899
21900 fi
21901 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21902 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21903 HAVE_BI_ITERATOR=0
21904 if test "$ac_cv_cxx_have_bi_iterator" = yes
21905 then
21906    HAVE_BI_ITERATOR=1
21907 fi
21908
21909 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21910 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21911 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21912   echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914
21915   ac_ext=cc
21916 ac_cpp='$CXXCPP $CPPFLAGS'
21917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21920
21921   cat >conftest.$ac_ext <<_ACEOF
21922 /* confdefs.h.  */
21923 _ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h.  */
21927 #include <iterator>
21928 #ifdef HAVE_NAMESPACES
21929 using namespace std;
21930 #endif
21931 int
21932 main ()
21933 {
21934 forward_iterator<int,int> t; return 0;
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21941   (eval $ac_compile) 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } &&
21948          { ac_try='test -z "$ac_cxx_werror_flag"
21949                          || test ! -s conftest.err'
21950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951   (eval $ac_try) 2>&5
21952   ac_status=$?
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); }; } &&
21955          { ac_try='test -s conftest.$ac_objext'
21956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957   (eval $ac_try) 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; }; then
21961   ac_cv_cxx_have_fwd_iterator=yes
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966 ac_cv_cxx_have_fwd_iterator=no
21967 fi
21968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21969   ac_ext=c
21970 ac_cpp='$CPP $CPPFLAGS'
21971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21974
21975
21976 fi
21977 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21978 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21979 HAVE_FWD_ITERATOR=0
21980 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21981 then
21982    HAVE_FWD_ITERATOR=1
21983 fi
21984
21985
21986
21987 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21988 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21989 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21990   echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992   ac_ext=cc
21993 ac_cpp='$CXXCPP $CPPFLAGS'
21994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997
21998   cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 #include <math.h>
22005                      int foo(float f) {return isnan(f);}
22006 _ACEOF
22007 rm -f conftest.$ac_objext
22008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22009   (eval $ac_compile) 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } &&
22016          { ac_try='test -z "$ac_cxx_werror_flag"
22017                          || test ! -s conftest.err'
22018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019   (eval $ac_try) 2>&5
22020   ac_status=$?
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); }; } &&
22023          { ac_try='test -s conftest.$ac_objext'
22024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025   (eval $ac_try) 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); }; }; then
22029   ac_cv_func_isnan_in_math_h=yes
22030 else
22031   echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.$ac_ext >&5
22033
22034 ac_cv_func_isnan_in_math_h=no
22035 fi
22036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22037  ac_ext=c
22038 ac_cpp='$CPP $CPPFLAGS'
22039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22042
22043 fi
22044 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22045 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22046  if test "$ac_cv_func_isnan_in_math_h" = "yes"
22047  then
22048
22049 cat >>confdefs.h <<\_ACEOF
22050 #define HAVE_ISNAN_IN_MATH_H 1
22051 _ACEOF
22052
22053  fi
22054 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22055 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22056 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   ac_ext=cc
22060 ac_cpp='$CXXCPP $CPPFLAGS'
22061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22064
22065   cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071 #include <cmath>
22072                      int foo(float f) {return isnan(f);}
22073 _ACEOF
22074 rm -f conftest.$ac_objext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22076   (eval $ac_compile) 2>conftest.er1
22077   ac_status=$?
22078   grep -v '^ *+' conftest.er1 >conftest.err
22079   rm -f conftest.er1
22080   cat conftest.err >&5
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); } &&
22083          { ac_try='test -z "$ac_cxx_werror_flag"
22084                          || test ! -s conftest.err'
22085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086   (eval $ac_try) 2>&5
22087   ac_status=$?
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); }; } &&
22090          { ac_try='test -s conftest.$ac_objext'
22091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092   (eval $ac_try) 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); }; }; then
22096   ac_cv_func_isnan_in_cmath=yes
22097 else
22098   echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101 ac_cv_func_isnan_in_cmath=no
22102 fi
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104  ac_ext=c
22105 ac_cpp='$CPP $CPPFLAGS'
22106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22109
22110 fi
22111 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22112 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22113  if test "$ac_cv_func_isnan_in_cmath" = "yes"
22114  then
22115
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_ISNAN_IN_CMATH 1
22118 _ACEOF
22119
22120  fi
22121 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22122 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22123 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126   ac_ext=cc
22127 ac_cpp='$CXXCPP $CPPFLAGS'
22128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22131
22132   cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138 #include <cmath>
22139                      using std::isnan; int foo(float f) {return isnan(f);}
22140 _ACEOF
22141 rm -f conftest.$ac_objext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143   (eval $ac_compile) 2>conftest.er1
22144   ac_status=$?
22145   grep -v '^ *+' conftest.er1 >conftest.err
22146   rm -f conftest.er1
22147   cat conftest.err >&5
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); } &&
22150          { ac_try='test -z "$ac_cxx_werror_flag"
22151                          || test ! -s conftest.err'
22152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153   (eval $ac_try) 2>&5
22154   ac_status=$?
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); }; } &&
22157          { ac_try='test -s conftest.$ac_objext'
22158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159   (eval $ac_try) 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); }; }; then
22163   ac_cv_func_std_isnan_in_cmath=yes
22164 else
22165   echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168 ac_cv_func_std_isnan_in_cmath=no
22169 fi
22170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22171  ac_ext=c
22172 ac_cpp='$CPP $CPPFLAGS'
22173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22176
22177 fi
22178 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22179 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22180  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22181  then
22182
22183 cat >>confdefs.h <<\_ACEOF
22184 #define HAVE_STD_ISNAN_IN_CMATH 1
22185 _ACEOF
22186
22187  fi
22188
22189
22190 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22191 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22192 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22193   echo $ECHO_N "(cached) $ECHO_C" >&6
22194 else
22195   ac_ext=cc
22196 ac_cpp='$CXXCPP $CPPFLAGS'
22197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22200
22201   cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h.  */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h.  */
22207 #include <math.h>
22208                      int foo(float f) {return isinf(f);}
22209 _ACEOF
22210 rm -f conftest.$ac_objext
22211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22212   (eval $ac_compile) 2>conftest.er1
22213   ac_status=$?
22214   grep -v '^ *+' conftest.er1 >conftest.err
22215   rm -f conftest.er1
22216   cat conftest.err >&5
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); } &&
22219          { ac_try='test -z "$ac_cxx_werror_flag"
22220                          || test ! -s conftest.err'
22221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; } &&
22226          { ac_try='test -s conftest.$ac_objext'
22227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228   (eval $ac_try) 2>&5
22229   ac_status=$?
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); }; }; then
22232   ac_cv_func_isinf_in_math_h=yes
22233 else
22234   echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 ac_cv_func_isinf_in_math_h=no
22238 fi
22239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22240  ac_ext=c
22241 ac_cpp='$CPP $CPPFLAGS'
22242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22245
22246 fi
22247 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22248 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22249  if test "$ac_cv_func_isinf_in_math_h" = "yes"
22250  then
22251
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_ISINF_IN_MATH_H 1
22254 _ACEOF
22255
22256  fi
22257 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22258 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22259 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22260   echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262   ac_ext=cc
22263 ac_cpp='$CXXCPP $CPPFLAGS'
22264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22267
22268   cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h.  */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h.  */
22274 #include <cmath>
22275                      int foo(float f) {return isinf(f);}
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279   (eval $ac_compile) 2>conftest.er1
22280   ac_status=$?
22281   grep -v '^ *+' conftest.er1 >conftest.err
22282   rm -f conftest.er1
22283   cat conftest.err >&5
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); } &&
22286          { ac_try='test -z "$ac_cxx_werror_flag"
22287                          || test ! -s conftest.err'
22288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289   (eval $ac_try) 2>&5
22290   ac_status=$?
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); }; } &&
22293          { ac_try='test -s conftest.$ac_objext'
22294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295   (eval $ac_try) 2>&5
22296   ac_status=$?
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); }; }; then
22299   ac_cv_func_isinf_in_cmath=yes
22300 else
22301   echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ac_cv_func_isinf_in_cmath=no
22305 fi
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22307  ac_ext=c
22308 ac_cpp='$CPP $CPPFLAGS'
22309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22312
22313 fi
22314 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22315 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22316  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22317  then
22318
22319 cat >>confdefs.h <<\_ACEOF
22320 #define HAVE_ISINF_IN_CMATH 1
22321 _ACEOF
22322
22323  fi
22324 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22325 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22326 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22327   echo $ECHO_N "(cached) $ECHO_C" >&6
22328 else
22329   ac_ext=cc
22330 ac_cpp='$CXXCPP $CPPFLAGS'
22331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22334
22335   cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 #include <cmath>
22342                      using std::isinf; int foo(float f) {return isinf(f);}
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346   (eval $ac_compile) 2>conftest.er1
22347   ac_status=$?
22348   grep -v '^ *+' conftest.er1 >conftest.err
22349   rm -f conftest.er1
22350   cat conftest.err >&5
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); } &&
22353          { ac_try='test -z "$ac_cxx_werror_flag"
22354                          || test ! -s conftest.err'
22355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356   (eval $ac_try) 2>&5
22357   ac_status=$?
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); }; } &&
22360          { ac_try='test -s conftest.$ac_objext'
22361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362   (eval $ac_try) 2>&5
22363   ac_status=$?
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); }; }; then
22366   ac_cv_func_std_isinf_in_cmath=yes
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371 ac_cv_func_std_isinf_in_cmath=no
22372 fi
22373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22374  ac_ext=c
22375 ac_cpp='$CPP $CPPFLAGS'
22376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22379
22380 fi
22381 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22382 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22383  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22384  then
22385
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_STD_ISINF_IN_CMATH 1
22388 _ACEOF
22389
22390  fi
22391 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22392 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22393 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   ac_ext=cc
22397 ac_cpp='$CXXCPP $CPPFLAGS'
22398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22401
22402   cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h.  */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h.  */
22408 #include <ieeefp.h>
22409                      int foo(float f) {return finite(f);}
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22413   (eval $ac_compile) 2>conftest.er1
22414   ac_status=$?
22415   grep -v '^ *+' conftest.er1 >conftest.err
22416   rm -f conftest.er1
22417   cat conftest.err >&5
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); } &&
22420          { ac_try='test -z "$ac_cxx_werror_flag"
22421                          || test ! -s conftest.err'
22422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423   (eval $ac_try) 2>&5
22424   ac_status=$?
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); }; } &&
22427          { ac_try='test -s conftest.$ac_objext'
22428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429   (eval $ac_try) 2>&5
22430   ac_status=$?
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); }; }; then
22433   ac_cv_func_finite_in_ieeefp_h=yes
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 ac_cv_func_finite_in_ieeefp_h=no
22439 fi
22440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22441  ac_ext=c
22442 ac_cpp='$CPP $CPPFLAGS'
22443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22446
22447 fi
22448 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22449 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22450  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22451  then
22452
22453 cat >>confdefs.h <<\_ACEOF
22454 #define HAVE_FINITE_IN_IEEEFP_H 1
22455 _ACEOF
22456
22457  fi
22458
22459
22460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22461 # for constant arguments.  Useless!
22462 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22463 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22464 if test "${ac_cv_working_alloca_h+set}" = set; then
22465   echo $ECHO_N "(cached) $ECHO_C" >&6
22466 else
22467   cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473 #include <alloca.h>
22474 int
22475 main ()
22476 {
22477 char *p = (char *) alloca (2 * sizeof (int));
22478   ;
22479   return 0;
22480 }
22481 _ACEOF
22482 rm -f conftest.$ac_objext conftest$ac_exeext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484   (eval $ac_link) 2>conftest.er1
22485   ac_status=$?
22486   grep -v '^ *+' conftest.er1 >conftest.err
22487   rm -f conftest.er1
22488   cat conftest.err >&5
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); } &&
22491          { ac_try='test -z "$ac_c_werror_flag"
22492                          || test ! -s conftest.err'
22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494   (eval $ac_try) 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); }; } &&
22498          { ac_try='test -s conftest$ac_exeext'
22499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500   (eval $ac_try) 2>&5
22501   ac_status=$?
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); }; }; then
22504   ac_cv_working_alloca_h=yes
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509 ac_cv_working_alloca_h=no
22510 fi
22511 rm -f conftest.err conftest.$ac_objext \
22512       conftest$ac_exeext conftest.$ac_ext
22513 fi
22514 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22515 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22516 if test $ac_cv_working_alloca_h = yes; then
22517
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_ALLOCA_H 1
22520 _ACEOF
22521
22522 fi
22523
22524 echo "$as_me:$LINENO: checking for alloca" >&5
22525 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22526 if test "${ac_cv_func_alloca_works+set}" = set; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 #ifdef __GNUC__
22536 # define alloca __builtin_alloca
22537 #else
22538 # ifdef _MSC_VER
22539 #  include <malloc.h>
22540 #  define alloca _alloca
22541 # else
22542 #  if HAVE_ALLOCA_H
22543 #   include <alloca.h>
22544 #  else
22545 #   ifdef _AIX
22546  #pragma alloca
22547 #   else
22548 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22549 char *alloca ();
22550 #    endif
22551 #   endif
22552 #  endif
22553 # endif
22554 #endif
22555
22556 int
22557 main ()
22558 {
22559 char *p = (char *) alloca (1);
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566   (eval $ac_link) 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } &&
22573          { ac_try='test -z "$ac_c_werror_flag"
22574                          || test ! -s conftest.err'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; } &&
22580          { ac_try='test -s conftest$ac_exeext'
22581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582   (eval $ac_try) 2>&5
22583   ac_status=$?
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); }; }; then
22586   ac_cv_func_alloca_works=yes
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 ac_cv_func_alloca_works=no
22592 fi
22593 rm -f conftest.err conftest.$ac_objext \
22594       conftest$ac_exeext conftest.$ac_ext
22595 fi
22596 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22597 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22598
22599 if test $ac_cv_func_alloca_works = yes; then
22600
22601 cat >>confdefs.h <<\_ACEOF
22602 #define HAVE_ALLOCA 1
22603 _ACEOF
22604
22605 else
22606   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22607 # that cause trouble.  Some versions do not even contain alloca or
22608 # contain a buggy version.  If you still want to use their alloca,
22609 # use ar to extract alloca.o from them instead of compiling alloca.c.
22610
22611 ALLOCA=alloca.$ac_objext
22612
22613 cat >>confdefs.h <<\_ACEOF
22614 #define C_ALLOCA 1
22615 _ACEOF
22616
22617
22618 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22619 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22620 if test "${ac_cv_os_cray+set}" = set; then
22621   echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623   cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h.  */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h.  */
22629 #if defined(CRAY) && ! defined(CRAY2)
22630 webecray
22631 #else
22632 wenotbecray
22633 #endif
22634
22635 _ACEOF
22636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22637   $EGREP "webecray" >/dev/null 2>&1; then
22638   ac_cv_os_cray=yes
22639 else
22640   ac_cv_os_cray=no
22641 fi
22642 rm -f conftest*
22643
22644 fi
22645 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22646 echo "${ECHO_T}$ac_cv_os_cray" >&6
22647 if test $ac_cv_os_cray = yes; then
22648   for ac_func in _getb67 GETB67 getb67; do
22649     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22650 echo "$as_me:$LINENO: checking for $ac_func" >&5
22651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22652 if eval "test \"\${$as_ac_var+set}\" = set"; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h.  */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h.  */
22661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22663 #define $ac_func innocuous_$ac_func
22664
22665 /* System header to define __stub macros and hopefully few prototypes,
22666     which can conflict with char $ac_func (); below.
22667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22668     <limits.h> exists even on freestanding compilers.  */
22669
22670 #ifdef __STDC__
22671 # include <limits.h>
22672 #else
22673 # include <assert.h>
22674 #endif
22675
22676 #undef $ac_func
22677
22678 /* Override any gcc2 internal prototype to avoid an error.  */
22679 #ifdef __cplusplus
22680 extern "C"
22681 {
22682 #endif
22683 /* We use char because int might match the return type of a gcc2
22684    builtin and then its argument prototype would still apply.  */
22685 char $ac_func ();
22686 /* The GNU C library defines this for functions which it implements
22687     to always fail with ENOSYS.  Some functions are actually named
22688     something starting with __ and the normal name is an alias.  */
22689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22690 choke me
22691 #else
22692 char (*f) () = $ac_func;
22693 #endif
22694 #ifdef __cplusplus
22695 }
22696 #endif
22697
22698 int
22699 main ()
22700 {
22701 return f != $ac_func;
22702   ;
22703   return 0;
22704 }
22705 _ACEOF
22706 rm -f conftest.$ac_objext conftest$ac_exeext
22707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22708   (eval $ac_link) 2>conftest.er1
22709   ac_status=$?
22710   grep -v '^ *+' conftest.er1 >conftest.err
22711   rm -f conftest.er1
22712   cat conftest.err >&5
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); } &&
22715          { ac_try='test -z "$ac_c_werror_flag"
22716                          || test ! -s conftest.err'
22717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718   (eval $ac_try) 2>&5
22719   ac_status=$?
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); }; } &&
22722          { ac_try='test -s conftest$ac_exeext'
22723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724   (eval $ac_try) 2>&5
22725   ac_status=$?
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); }; }; then
22728   eval "$as_ac_var=yes"
22729 else
22730   echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733 eval "$as_ac_var=no"
22734 fi
22735 rm -f conftest.err conftest.$ac_objext \
22736       conftest$ac_exeext conftest.$ac_ext
22737 fi
22738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22740 if test `eval echo '${'$as_ac_var'}'` = yes; then
22741
22742 cat >>confdefs.h <<_ACEOF
22743 #define CRAY_STACKSEG_END $ac_func
22744 _ACEOF
22745
22746     break
22747 fi
22748
22749   done
22750 fi
22751
22752 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22753 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22754 if test "${ac_cv_c_stack_direction+set}" = set; then
22755   echo $ECHO_N "(cached) $ECHO_C" >&6
22756 else
22757   if test "$cross_compiling" = yes; then
22758   ac_cv_c_stack_direction=0
22759 else
22760   cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h.  */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h.  */
22766 int
22767 find_stack_direction ()
22768 {
22769   static char *addr = 0;
22770   auto char dummy;
22771   if (addr == 0)
22772     {
22773       addr = &dummy;
22774       return find_stack_direction ();
22775     }
22776   else
22777     return (&dummy > addr) ? 1 : -1;
22778 }
22779
22780 int
22781 main ()
22782 {
22783   exit (find_stack_direction () < 0);
22784 }
22785 _ACEOF
22786 rm -f conftest$ac_exeext
22787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788   (eval $ac_link) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793   (eval $ac_try) 2>&5
22794   ac_status=$?
22795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796   (exit $ac_status); }; }; then
22797   ac_cv_c_stack_direction=1
22798 else
22799   echo "$as_me: program exited with status $ac_status" >&5
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ( exit $ac_status )
22804 ac_cv_c_stack_direction=-1
22805 fi
22806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22807 fi
22808 fi
22809 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22810 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22811
22812 cat >>confdefs.h <<_ACEOF
22813 #define STACK_DIRECTION $ac_cv_c_stack_direction
22814 _ACEOF
22815
22816
22817 fi
22818
22819
22820
22821 for ac_header in stdlib.h unistd.h
22822 do
22823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22825   echo "$as_me:$LINENO: checking for $ac_header" >&5
22826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22828   echo $ECHO_N "(cached) $ECHO_C" >&6
22829 fi
22830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22832 else
22833   # Is the header compilable?
22834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 $ac_includes_default
22843 #include <$ac_header>
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22847   (eval $ac_compile) 2>conftest.er1
22848   ac_status=$?
22849   grep -v '^ *+' conftest.er1 >conftest.err
22850   rm -f conftest.er1
22851   cat conftest.err >&5
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } &&
22854          { ac_try='test -z "$ac_c_werror_flag"
22855                          || test ! -s conftest.err'
22856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857   (eval $ac_try) 2>&5
22858   ac_status=$?
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); }; } &&
22861          { ac_try='test -s conftest.$ac_objext'
22862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863   (eval $ac_try) 2>&5
22864   ac_status=$?
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); }; }; then
22867   ac_header_compiler=yes
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872 ac_header_compiler=no
22873 fi
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22876 echo "${ECHO_T}$ac_header_compiler" >&6
22877
22878 # Is the header present?
22879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22881 cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887 #include <$ac_header>
22888 _ACEOF
22889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22891   ac_status=$?
22892   grep -v '^ *+' conftest.er1 >conftest.err
22893   rm -f conftest.er1
22894   cat conftest.err >&5
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); } >/dev/null; then
22897   if test -s conftest.err; then
22898     ac_cpp_err=$ac_c_preproc_warn_flag
22899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22900   else
22901     ac_cpp_err=
22902   fi
22903 else
22904   ac_cpp_err=yes
22905 fi
22906 if test -z "$ac_cpp_err"; then
22907   ac_header_preproc=yes
22908 else
22909   echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22911
22912   ac_header_preproc=no
22913 fi
22914 rm -f conftest.err conftest.$ac_ext
22915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22916 echo "${ECHO_T}$ac_header_preproc" >&6
22917
22918 # So?  What about this header?
22919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22920   yes:no: )
22921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22925     ac_header_preproc=yes
22926     ;;
22927   no:yes:* )
22928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22940     (
22941       cat <<\_ASBOX
22942 ## ----------------------------------- ##
22943 ## Report this to llvmbugs@cs.uiuc.edu ##
22944 ## ----------------------------------- ##
22945 _ASBOX
22946     ) |
22947       sed "s/^/$as_me: WARNING:     /" >&2
22948     ;;
22949 esac
22950 echo "$as_me:$LINENO: checking for $ac_header" >&5
22951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22953   echo $ECHO_N "(cached) $ECHO_C" >&6
22954 else
22955   eval "$as_ac_Header=\$ac_header_preproc"
22956 fi
22957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22959
22960 fi
22961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22962   cat >>confdefs.h <<_ACEOF
22963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22964 _ACEOF
22965
22966 fi
22967
22968 done
22969
22970
22971 for ac_func in getpagesize
22972 do
22973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22974 echo "$as_me:$LINENO: checking for $ac_func" >&5
22975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22976 if eval "test \"\${$as_ac_var+set}\" = set"; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22987 #define $ac_func innocuous_$ac_func
22988
22989 /* System header to define __stub macros and hopefully few prototypes,
22990     which can conflict with char $ac_func (); below.
22991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992     <limits.h> exists even on freestanding compilers.  */
22993
22994 #ifdef __STDC__
22995 # include <limits.h>
22996 #else
22997 # include <assert.h>
22998 #endif
22999
23000 #undef $ac_func
23001
23002 /* Override any gcc2 internal prototype to avoid an error.  */
23003 #ifdef __cplusplus
23004 extern "C"
23005 {
23006 #endif
23007 /* We use char because int might match the return type of a gcc2
23008    builtin and then its argument prototype would still apply.  */
23009 char $ac_func ();
23010 /* The GNU C library defines this for functions which it implements
23011     to always fail with ENOSYS.  Some functions are actually named
23012     something starting with __ and the normal name is an alias.  */
23013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23014 choke me
23015 #else
23016 char (*f) () = $ac_func;
23017 #endif
23018 #ifdef __cplusplus
23019 }
23020 #endif
23021
23022 int
23023 main ()
23024 {
23025 return f != $ac_func;
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032   (eval $ac_link) 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } &&
23039          { ac_try='test -z "$ac_c_werror_flag"
23040                          || test ! -s conftest.err'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; } &&
23046          { ac_try='test -s conftest$ac_exeext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   eval "$as_ac_var=yes"
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 eval "$as_ac_var=no"
23058 fi
23059 rm -f conftest.err conftest.$ac_objext \
23060       conftest$ac_exeext conftest.$ac_ext
23061 fi
23062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23064 if test `eval echo '${'$as_ac_var'}'` = yes; then
23065   cat >>confdefs.h <<_ACEOF
23066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23067 _ACEOF
23068
23069 fi
23070 done
23071
23072 echo "$as_me:$LINENO: checking for working mmap" >&5
23073 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23075   echo $ECHO_N "(cached) $ECHO_C" >&6
23076 else
23077   if test "$cross_compiling" = yes; then
23078   ac_cv_func_mmap_fixed_mapped=no
23079 else
23080   cat >conftest.$ac_ext <<_ACEOF
23081 /* confdefs.h.  */
23082 _ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h.  */
23086 $ac_includes_default
23087 /* malloc might have been renamed as rpl_malloc. */
23088 #undef malloc
23089
23090 /* Thanks to Mike Haertel and Jim Avera for this test.
23091    Here is a matrix of mmap possibilities:
23092         mmap private not fixed
23093         mmap private fixed at somewhere currently unmapped
23094         mmap private fixed at somewhere already mapped
23095         mmap shared not fixed
23096         mmap shared fixed at somewhere currently unmapped
23097         mmap shared fixed at somewhere already mapped
23098    For private mappings, we should verify that changes cannot be read()
23099    back from the file, nor mmap's back from the file at a different
23100    address.  (There have been systems where private was not correctly
23101    implemented like the infamous i386 svr4.0, and systems where the
23102    VM page cache was not coherent with the file system buffer cache
23103    like early versions of FreeBSD and possibly contemporary NetBSD.)
23104    For shared mappings, we should conversely verify that changes get
23105    propagated back to all the places they're supposed to be.
23106
23107    Grep wants private fixed already mapped.
23108    The main things grep needs to know about mmap are:
23109    * does it exist and is it safe to write into the mmap'd area
23110    * how to use it (BSD variants)  */
23111
23112 #include <fcntl.h>
23113 #include <sys/mman.h>
23114
23115 #if !STDC_HEADERS && !HAVE_STDLIB_H
23116 char *malloc ();
23117 #endif
23118
23119 /* This mess was copied from the GNU getpagesize.h.  */
23120 #if !HAVE_GETPAGESIZE
23121 /* Assume that all systems that can run configure have sys/param.h.  */
23122 # if !HAVE_SYS_PARAM_H
23123 #  define HAVE_SYS_PARAM_H 1
23124 # endif
23125
23126 # ifdef _SC_PAGESIZE
23127 #  define getpagesize() sysconf(_SC_PAGESIZE)
23128 # else /* no _SC_PAGESIZE */
23129 #  if HAVE_SYS_PARAM_H
23130 #   include <sys/param.h>
23131 #   ifdef EXEC_PAGESIZE
23132 #    define getpagesize() EXEC_PAGESIZE
23133 #   else /* no EXEC_PAGESIZE */
23134 #    ifdef NBPG
23135 #     define getpagesize() NBPG * CLSIZE
23136 #     ifndef CLSIZE
23137 #      define CLSIZE 1
23138 #     endif /* no CLSIZE */
23139 #    else /* no NBPG */
23140 #     ifdef NBPC
23141 #      define getpagesize() NBPC
23142 #     else /* no NBPC */
23143 #      ifdef PAGESIZE
23144 #       define getpagesize() PAGESIZE
23145 #      endif /* PAGESIZE */
23146 #     endif /* no NBPC */
23147 #    endif /* no NBPG */
23148 #   endif /* no EXEC_PAGESIZE */
23149 #  else /* no HAVE_SYS_PARAM_H */
23150 #   define getpagesize() 8192   /* punt totally */
23151 #  endif /* no HAVE_SYS_PARAM_H */
23152 # endif /* no _SC_PAGESIZE */
23153
23154 #endif /* no HAVE_GETPAGESIZE */
23155
23156 int
23157 main ()
23158 {
23159   char *data, *data2, *data3;
23160   int i, pagesize;
23161   int fd;
23162
23163   pagesize = getpagesize ();
23164
23165   /* First, make a file with some known garbage in it. */
23166   data = (char *) malloc (pagesize);
23167   if (!data)
23168     exit (1);
23169   for (i = 0; i < pagesize; ++i)
23170     *(data + i) = rand ();
23171   umask (0);
23172   fd = creat ("conftest.mmap", 0600);
23173   if (fd < 0)
23174     exit (1);
23175   if (write (fd, data, pagesize) != pagesize)
23176     exit (1);
23177   close (fd);
23178
23179   /* Next, try to mmap the file at a fixed address which already has
23180      something else allocated at it.  If we can, also make sure that
23181      we see the same garbage.  */
23182   fd = open ("conftest.mmap", O_RDWR);
23183   if (fd < 0)
23184     exit (1);
23185   data2 = (char *) malloc (2 * pagesize);
23186   if (!data2)
23187     exit (1);
23188   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23189   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23190                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23191     exit (1);
23192   for (i = 0; i < pagesize; ++i)
23193     if (*(data + i) != *(data2 + i))
23194       exit (1);
23195
23196   /* Finally, make sure that changes to the mapped area do not
23197      percolate back to the file as seen by read().  (This is a bug on
23198      some variants of i386 svr4.0.)  */
23199   for (i = 0; i < pagesize; ++i)
23200     *(data2 + i) = *(data2 + i) + 1;
23201   data3 = (char *) malloc (pagesize);
23202   if (!data3)
23203     exit (1);
23204   if (read (fd, data3, pagesize) != pagesize)
23205     exit (1);
23206   for (i = 0; i < pagesize; ++i)
23207     if (*(data + i) != *(data3 + i))
23208       exit (1);
23209   close (fd);
23210   exit (0);
23211 }
23212 _ACEOF
23213 rm -f conftest$ac_exeext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215   (eval $ac_link) 2>&5
23216   ac_status=$?
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; }; then
23224   ac_cv_func_mmap_fixed_mapped=yes
23225 else
23226   echo "$as_me: program exited with status $ac_status" >&5
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ( exit $ac_status )
23231 ac_cv_func_mmap_fixed_mapped=no
23232 fi
23233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23234 fi
23235 fi
23236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23239
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_MMAP 1
23242 _ACEOF
23243
23244 fi
23245 rm -f conftest.mmap
23246
23247 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23248 then
23249         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23250 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23251 fi
23252 echo "$as_me:$LINENO: checking for mmap of files" >&5
23253 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23254 if test "${ac_cv_func_mmap_file+set}" = set; then
23255   echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257    ac_ext=c
23258 ac_cpp='$CPP $CPPFLAGS'
23259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23262
23263   if test "$cross_compiling" = yes; then
23264   ac_cv_func_mmap_file=no
23265 else
23266   cat >conftest.$ac_ext <<_ACEOF
23267
23268     /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273
23274 #include <sys/types.h>
23275 #include <sys/mman.h>
23276 #include <fcntl.h>
23277
23278 int
23279 main ()
23280 {
23281
23282   int fd;
23283   fd = creat ("foo",0777);
23284   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23285   unlink ("foo");
23286   return (fd != (int) MAP_FAILED);
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest$ac_exeext
23292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23293   (eval $ac_link) 2>&5
23294   ac_status=$?
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298   (eval $ac_try) 2>&5
23299   ac_status=$?
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); }; }; then
23302   ac_cv_func_mmap_file=yes
23303 else
23304   echo "$as_me: program exited with status $ac_status" >&5
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 ( exit $ac_status )
23309 ac_cv_func_mmap_file=no
23310 fi
23311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23312 fi
23313   ac_ext=c
23314 ac_cpp='$CPP $CPPFLAGS'
23315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23318
23319
23320 fi
23321 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23322 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23323 if test "$ac_cv_func_mmap_file" = yes; then
23324
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_MMAP_FILE
23327 _ACEOF
23328
23329    MMAP_FILE=yes
23330
23331 fi
23332
23333 if test "$ac_cv_func_mmap_file" = "no"
23334 then
23335         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23336 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23337 fi
23338 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23339 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23340 if test "${ac_cv_header_mmap_anon+set}" = set; then
23341   echo $ECHO_N "(cached) $ECHO_C" >&6
23342 else
23343    ac_ext=c
23344 ac_cpp='$CPP $CPPFLAGS'
23345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23348
23349   cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355 #include <sys/mman.h>
23356 #include <unistd.h>
23357 #include <fcntl.h>
23358 int
23359 main ()
23360 {
23361 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23368   (eval $ac_compile) 2>conftest.er1
23369   ac_status=$?
23370   grep -v '^ *+' conftest.er1 >conftest.err
23371   rm -f conftest.er1
23372   cat conftest.err >&5
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); } &&
23375          { ac_try='test -z "$ac_c_werror_flag"
23376                          || test ! -s conftest.err'
23377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378   (eval $ac_try) 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); }; } &&
23382          { ac_try='test -s conftest.$ac_objext'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; }; then
23388   ac_cv_header_mmap_anon=yes
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393 ac_cv_header_mmap_anon=no
23394 fi
23395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396   ac_ext=c
23397 ac_cpp='$CPP $CPPFLAGS'
23398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23401
23402
23403 fi
23404 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23405 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23406 if test "$ac_cv_header_mmap_anon" = yes; then
23407
23408 cat >>confdefs.h <<\_ACEOF
23409 #define HAVE_MMAP_ANONYMOUS
23410 _ACEOF
23411
23412 fi
23413
23414 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23415 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23416 if test "${ac_cv_type_signal+set}" = set; then
23417   echo $ECHO_N "(cached) $ECHO_C" >&6
23418 else
23419   cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 #include <sys/types.h>
23426 #include <signal.h>
23427 #ifdef signal
23428 # undef signal
23429 #endif
23430 #ifdef __cplusplus
23431 extern "C" void (*signal (int, void (*)(int)))(int);
23432 #else
23433 void (*signal ()) ();
23434 #endif
23435
23436 int
23437 main ()
23438 {
23439 int i;
23440   ;
23441   return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23446   (eval $ac_compile) 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } &&
23453          { ac_try='test -z "$ac_c_werror_flag"
23454                          || test ! -s conftest.err'
23455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456   (eval $ac_try) 2>&5
23457   ac_status=$?
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); }; } &&
23460          { ac_try='test -s conftest.$ac_objext'
23461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462   (eval $ac_try) 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; }; then
23466   ac_cv_type_signal=void
23467 else
23468   echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 ac_cv_type_signal=int
23472 fi
23473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23474 fi
23475 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23476 echo "${ECHO_T}$ac_cv_type_signal" >&6
23477
23478 cat >>confdefs.h <<_ACEOF
23479 #define RETSIGTYPE $ac_cv_type_signal
23480 _ACEOF
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23493 do
23494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23495 echo "$as_me:$LINENO: checking for $ac_func" >&5
23496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23497 if eval "test \"\${$as_ac_var+set}\" = set"; then
23498   echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23500   cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23508 #define $ac_func innocuous_$ac_func
23509
23510 /* System header to define __stub macros and hopefully few prototypes,
23511     which can conflict with char $ac_func (); below.
23512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23513     <limits.h> exists even on freestanding compilers.  */
23514
23515 #ifdef __STDC__
23516 # include <limits.h>
23517 #else
23518 # include <assert.h>
23519 #endif
23520
23521 #undef $ac_func
23522
23523 /* Override any gcc2 internal prototype to avoid an error.  */
23524 #ifdef __cplusplus
23525 extern "C"
23526 {
23527 #endif
23528 /* We use char because int might match the return type of a gcc2
23529    builtin and then its argument prototype would still apply.  */
23530 char $ac_func ();
23531 /* The GNU C library defines this for functions which it implements
23532     to always fail with ENOSYS.  Some functions are actually named
23533     something starting with __ and the normal name is an alias.  */
23534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23535 choke me
23536 #else
23537 char (*f) () = $ac_func;
23538 #endif
23539 #ifdef __cplusplus
23540 }
23541 #endif
23542
23543 int
23544 main ()
23545 {
23546 return f != $ac_func;
23547   ;
23548   return 0;
23549 }
23550 _ACEOF
23551 rm -f conftest.$ac_objext conftest$ac_exeext
23552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23553   (eval $ac_link) 2>conftest.er1
23554   ac_status=$?
23555   grep -v '^ *+' conftest.er1 >conftest.err
23556   rm -f conftest.er1
23557   cat conftest.err >&5
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } &&
23560          { ac_try='test -z "$ac_c_werror_flag"
23561                          || test ! -s conftest.err'
23562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563   (eval $ac_try) 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); }; } &&
23567          { ac_try='test -s conftest$ac_exeext'
23568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569   (eval $ac_try) 2>&5
23570   ac_status=$?
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); }; }; then
23573   eval "$as_ac_var=yes"
23574 else
23575   echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23577
23578 eval "$as_ac_var=no"
23579 fi
23580 rm -f conftest.err conftest.$ac_objext \
23581       conftest$ac_exeext conftest.$ac_ext
23582 fi
23583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23585 if test `eval echo '${'$as_ac_var'}'` = yes; then
23586   cat >>confdefs.h <<_ACEOF
23587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23588 _ACEOF
23589
23590 fi
23591 done
23592
23593 echo "$as_me:$LINENO: checking for mprotect" >&5
23594 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23595 if test "${ac_cv_func_mprotect+set}" = set; then
23596   echo $ECHO_N "(cached) $ECHO_C" >&6
23597 else
23598   cat >conftest.$ac_ext <<_ACEOF
23599 /* confdefs.h.  */
23600 _ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h.  */
23604 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23606 #define mprotect innocuous_mprotect
23607
23608 /* System header to define __stub macros and hopefully few prototypes,
23609     which can conflict with char mprotect (); below.
23610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23611     <limits.h> exists even on freestanding compilers.  */
23612
23613 #ifdef __STDC__
23614 # include <limits.h>
23615 #else
23616 # include <assert.h>
23617 #endif
23618
23619 #undef mprotect
23620
23621 /* Override any gcc2 internal prototype to avoid an error.  */
23622 #ifdef __cplusplus
23623 extern "C"
23624 {
23625 #endif
23626 /* We use char because int might match the return type of a gcc2
23627    builtin and then its argument prototype would still apply.  */
23628 char mprotect ();
23629 /* The GNU C library defines this for functions which it implements
23630     to always fail with ENOSYS.  Some functions are actually named
23631     something starting with __ and the normal name is an alias.  */
23632 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23633 choke me
23634 #else
23635 char (*f) () = mprotect;
23636 #endif
23637 #ifdef __cplusplus
23638 }
23639 #endif
23640
23641 int
23642 main ()
23643 {
23644 return f != mprotect;
23645   ;
23646   return 0;
23647 }
23648 _ACEOF
23649 rm -f conftest.$ac_objext conftest$ac_exeext
23650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23651   (eval $ac_link) 2>conftest.er1
23652   ac_status=$?
23653   grep -v '^ *+' conftest.er1 >conftest.err
23654   rm -f conftest.er1
23655   cat conftest.err >&5
23656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657   (exit $ac_status); } &&
23658          { ac_try='test -z "$ac_c_werror_flag"
23659                          || test ! -s conftest.err'
23660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661   (eval $ac_try) 2>&5
23662   ac_status=$?
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); }; } &&
23665          { ac_try='test -s conftest$ac_exeext'
23666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667   (eval $ac_try) 2>&5
23668   ac_status=$?
23669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670   (exit $ac_status); }; }; then
23671   ac_cv_func_mprotect=yes
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676 ac_cv_func_mprotect=no
23677 fi
23678 rm -f conftest.err conftest.$ac_objext \
23679       conftest$ac_exeext conftest.$ac_ext
23680 fi
23681 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23682 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23683 if test $ac_cv_func_mprotect = yes; then
23684   :
23685 else
23686   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23687 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23688    { (exit 1); exit 1; }; }
23689 fi
23690
23691
23692
23693   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23694 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23695   ac_ext=c
23696 ac_cpp='$CPP $CPPFLAGS'
23697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23700
23701   oldcflags="$CFLAGS"
23702   CFLAGS="$CFLAGS -Wl,-R."
23703   cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h.  */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h.  */
23709
23710 int
23711 main ()
23712 {
23713 int main() { return 0; }
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext conftest$ac_exeext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720   (eval $ac_link) 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } &&
23727          { ac_try='test -z "$ac_c_werror_flag"
23728                          || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest$ac_exeext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   ac_cv_link_use_r=yes
23741 else
23742   echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 ac_cv_link_use_r=no
23746 fi
23747 rm -f conftest.err conftest.$ac_objext \
23748       conftest$ac_exeext conftest.$ac_ext
23749   CFLAGS="$oldcflags"
23750   ac_ext=c
23751 ac_cpp='$CPP $CPPFLAGS'
23752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23755
23756   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23757 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23758   if test "$ac_cv_link_use_r" = yes
23759   then
23760
23761 cat >>confdefs.h <<\_ACEOF
23762 #define HAVE_LINK_R 1
23763 _ACEOF
23764
23765   fi
23766
23767
23768 # Check whether --enable-optimized or --disable-optimized was given.
23769 if test "${enable_optimized+set}" = set; then
23770   enableval="$enable_optimized"
23771
23772 else
23773   enableval=no
23774 fi;
23775 if test ${enableval} = "no"
23776 then
23777         ENABLE_OPTIMIZED=
23778
23779 else
23780         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23781
23782 fi
23783
23784 # Check whether --enable-jit or --disable-jit was given.
23785 if test "${enable_jit+set}" = set; then
23786   enableval="$enable_jit"
23787
23788 else
23789   enableval=default
23790 fi;
23791 if test ${enableval} = "no"
23792 then
23793         JIT=
23794
23795 else
23796         case $target in
23797                 *i*86*)
23798                         JIT=TARGET_HAS_JIT=1
23799
23800                         ;;
23801                 *sparc*)
23802                         JIT=TARGET_HAS_JIT=1
23803
23804                         ;;
23805                 *)
23806                         JIT=
23807
23808                         ;;
23809         esac
23810 fi
23811
23812
23813 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23814 if test "${with_llvmgccdir+set}" = set; then
23815   withval="$with_llvmgccdir"
23816   LLVMGCCDIR=$withval
23817
23818 fi;
23819 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23820 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23821 LLVM_GCC_CHECK=no
23822 if test -d "$LLVMGCCDIR"
23823 then
23824         if test -x "$LLVMGCCDIR/bin/gcc"
23825         then
23826                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23827         fi
23828 fi
23829 llvmgccwarn=no
23830 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23831 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23832 if test "$LLVM_GCC_CHECK" = "no"
23833 then
23834     llvmgccwarn=yes
23835 fi
23836 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23837 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23838 LLVM_GCC_SANE=no
23839 if test -x "$LLVM_GCC_CHECK"
23840 then
23841         cp /dev/null conftest.c
23842     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23843         if test $? -eq 0
23844         then
23845                 LLVM_GCC_SANE=yes
23846         fi
23847         rm conftest.c
23848         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23849         LLVMCC1=$llvmcc1path
23850
23851         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23852         LLVMCC1PLUS=$llvmcc1pluspath
23853
23854 fi
23855 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23856 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23857 if test "$LLVM_GCC_SANE" = "no"
23858 then
23859         llvmgccwarn=yes
23860 fi
23861
23862 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23863 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23864 eval "SHLIBEXT=$shrext_cmds"
23865 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23866 echo "${ECHO_T}$SHLIBEXT" >&6
23867 SHLIBEXT=$SHLIBEXT
23868
23869
23870 cat >>confdefs.h <<_ACEOF
23871 #define SHLIBEXT "$SHLIBEXT"
23872 _ACEOF
23873
23874
23875 # Translate the various configuration directories and other basic
23876 # information into substitutions that will end up in config.h.in so
23877 # that these configured values can be hard-wired into a program.
23878 eval LLVM_PREFIX="${prefix}";
23879 eval LLVM_BINDIR="${prefix}/bin";
23880 eval LLVM_LIBDIR="${prefix}/lib";
23881 eval LLVM_DATADIR="${prefix}/data";
23882 eval LLVM_DOCSDIR="${prefix}/docs";
23883 eval LLVM_ETCDIR="${prefix}/etc";
23884 eval LLVM_INCLUDEDIR="${prefix}/include";
23885 eval LLVM_INFODIR="${prefix}/info";
23886 eval LLVM_MANDIR="${prefix}/man";
23887 LLVM_CONFIGTIME=`date`
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899 cat >>confdefs.h <<_ACEOF
23900 #define LLVM_PREFIX "$LLVM_PREFIX"
23901 _ACEOF
23902
23903
23904 cat >>confdefs.h <<_ACEOF
23905 #define LLVM_BINDIR "$LLVM_BINDIR"
23906 _ACEOF
23907
23908
23909 cat >>confdefs.h <<_ACEOF
23910 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23911 _ACEOF
23912
23913
23914 cat >>confdefs.h <<_ACEOF
23915 #define LLVM_DATADIR "$LLVM_DATADIR"
23916 _ACEOF
23917
23918
23919 cat >>confdefs.h <<_ACEOF
23920 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23921 _ACEOF
23922
23923
23924 cat >>confdefs.h <<_ACEOF
23925 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23926 _ACEOF
23927
23928
23929 cat >>confdefs.h <<_ACEOF
23930 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23931 _ACEOF
23932
23933
23934 cat >>confdefs.h <<_ACEOF
23935 #define LLVM_INFODIR "$LLVM_INFODIR"
23936 _ACEOF
23937
23938
23939 cat >>confdefs.h <<_ACEOF
23940 #define LLVM_MANDIR "$LLVM_MANDIR"
23941 _ACEOF
23942
23943
23944 cat >>confdefs.h <<_ACEOF
23945 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23946 _ACEOF
23947
23948
23949 cat >confcache <<\_ACEOF
23950 # This file is a shell script that caches the results of configure
23951 # tests run on this system so they can be shared between configure
23952 # scripts and configure runs, see configure's option --config-cache.
23953 # It is not useful on other systems.  If it contains results you don't
23954 # want to keep, you may remove or edit it.
23955 #
23956 # config.status only pays attention to the cache file if you give it
23957 # the --recheck option to rerun configure.
23958 #
23959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23961 # following values.
23962
23963 _ACEOF
23964
23965 # The following way of writing the cache mishandles newlines in values,
23966 # but we know of no workaround that is simple, portable, and efficient.
23967 # So, don't put newlines in cache variables' values.
23968 # Ultrix sh set writes to stderr and can't be redirected directly,
23969 # and sets the high bit in the cache file unless we assign to the vars.
23970 {
23971   (set) 2>&1 |
23972     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23973     *ac_space=\ *)
23974       # `set' does not quote correctly, so add quotes (double-quote
23975       # substitution turns \\\\ into \\, and sed turns \\ into \).
23976       sed -n \
23977         "s/'/'\\\\''/g;
23978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23979       ;;
23980     *)
23981       # `set' quotes correctly as required by POSIX, so do not add quotes.
23982       sed -n \
23983         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23984       ;;
23985     esac;
23986 } |
23987   sed '
23988      t clear
23989      : clear
23990      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23991      t end
23992      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23993      : end' >>confcache
23994 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23995   if test -w $cache_file; then
23996     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23997     cat confcache >$cache_file
23998   else
23999     echo "not updating unwritable cache $cache_file"
24000   fi
24001 fi
24002 rm -f confcache
24003
24004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24005 # Let make expand exec_prefix.
24006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24007
24008 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24009 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24010 # trailing colons and then remove the whole line if VPATH becomes empty
24011 # (actually we leave an empty line to preserve line numbers).
24012 if test "x$srcdir" = x.; then
24013   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24014 s/:*\$(srcdir):*/:/;
24015 s/:*\${srcdir}:*/:/;
24016 s/:*@srcdir@:*/:/;
24017 s/^\([^=]*=[     ]*\):*/\1/;
24018 s/:*$//;
24019 s/^[^=]*=[       ]*$//;
24020 }'
24021 fi
24022
24023 DEFS=-DHAVE_CONFIG_H
24024
24025 ac_libobjs=
24026 ac_ltlibobjs=
24027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24028   # 1. Remove the extension, and $U if already installed.
24029   ac_i=`echo "$ac_i" |
24030          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24031   # 2. Add them.
24032   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24033   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24034 done
24035 LIBOBJS=$ac_libobjs
24036
24037 LTLIBOBJS=$ac_ltlibobjs
24038
24039
24040
24041 : ${CONFIG_STATUS=./config.status}
24042 ac_clean_files_save=$ac_clean_files
24043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24044 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24045 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24046 cat >$CONFIG_STATUS <<_ACEOF
24047 #! $SHELL
24048 # Generated by $as_me.
24049 # Run this file to recreate the current configuration.
24050 # Compiler output produced by configure, useful for debugging
24051 # configure, is in config.log if it exists.
24052
24053 debug=false
24054 ac_cs_recheck=false
24055 ac_cs_silent=false
24056 SHELL=\${CONFIG_SHELL-$SHELL}
24057 _ACEOF
24058
24059 cat >>$CONFIG_STATUS <<\_ACEOF
24060 ## --------------------- ##
24061 ## M4sh Initialization.  ##
24062 ## --------------------- ##
24063
24064 # Be Bourne compatible
24065 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24066   emulate sh
24067   NULLCMD=:
24068   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24069   # is contrary to our usage.  Disable this feature.
24070   alias -g '${1+"$@"}'='"$@"'
24071 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24072   set -o posix
24073 fi
24074 DUALCASE=1; export DUALCASE # for MKS sh
24075
24076 # Support unset when possible.
24077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24078   as_unset=unset
24079 else
24080   as_unset=false
24081 fi
24082
24083
24084 # Work around bugs in pre-3.0 UWIN ksh.
24085 $as_unset ENV MAIL MAILPATH
24086 PS1='$ '
24087 PS2='> '
24088 PS4='+ '
24089
24090 # NLS nuisances.
24091 for as_var in \
24092   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24093   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24094   LC_TELEPHONE LC_TIME
24095 do
24096   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24097     eval $as_var=C; export $as_var
24098   else
24099     $as_unset $as_var
24100   fi
24101 done
24102
24103 # Required to use basename.
24104 if expr a : '\(a\)' >/dev/null 2>&1; then
24105   as_expr=expr
24106 else
24107   as_expr=false
24108 fi
24109
24110 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24111   as_basename=basename
24112 else
24113   as_basename=false
24114 fi
24115
24116
24117 # Name of the executable.
24118 as_me=`$as_basename "$0" ||
24119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24120          X"$0" : 'X\(//\)$' \| \
24121          X"$0" : 'X\(/\)$' \| \
24122          .     : '\(.\)' 2>/dev/null ||
24123 echo X/"$0" |
24124     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24125           /^X\/\(\/\/\)$/{ s//\1/; q; }
24126           /^X\/\(\/\).*/{ s//\1/; q; }
24127           s/.*/./; q'`
24128
24129
24130 # PATH needs CR, and LINENO needs CR and PATH.
24131 # Avoid depending upon Character Ranges.
24132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24135 as_cr_digits='0123456789'
24136 as_cr_alnum=$as_cr_Letters$as_cr_digits
24137
24138 # The user is always right.
24139 if test "${PATH_SEPARATOR+set}" != set; then
24140   echo "#! /bin/sh" >conf$$.sh
24141   echo  "exit 0"   >>conf$$.sh
24142   chmod +x conf$$.sh
24143   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24144     PATH_SEPARATOR=';'
24145   else
24146     PATH_SEPARATOR=:
24147   fi
24148   rm -f conf$$.sh
24149 fi
24150
24151
24152   as_lineno_1=$LINENO
24153   as_lineno_2=$LINENO
24154   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24155   test "x$as_lineno_1" != "x$as_lineno_2" &&
24156   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24157   # Find who we are.  Look in the path if we contain no path at all
24158   # relative or not.
24159   case $0 in
24160     *[\\/]* ) as_myself=$0 ;;
24161     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162 for as_dir in $PATH
24163 do
24164   IFS=$as_save_IFS
24165   test -z "$as_dir" && as_dir=.
24166   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24167 done
24168
24169        ;;
24170   esac
24171   # We did not find ourselves, most probably we were run as `sh COMMAND'
24172   # in which case we are not to be found in the path.
24173   if test "x$as_myself" = x; then
24174     as_myself=$0
24175   fi
24176   if test ! -f "$as_myself"; then
24177     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24178 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24179    { (exit 1); exit 1; }; }
24180   fi
24181   case $CONFIG_SHELL in
24182   '')
24183     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24185 do
24186   IFS=$as_save_IFS
24187   test -z "$as_dir" && as_dir=.
24188   for as_base in sh bash ksh sh5; do
24189          case $as_dir in
24190          /*)
24191            if ("$as_dir/$as_base" -c '
24192   as_lineno_1=$LINENO
24193   as_lineno_2=$LINENO
24194   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24195   test "x$as_lineno_1" != "x$as_lineno_2" &&
24196   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24197              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24198              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24199              CONFIG_SHELL=$as_dir/$as_base
24200              export CONFIG_SHELL
24201              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24202            fi;;
24203          esac
24204        done
24205 done
24206 ;;
24207   esac
24208
24209   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24210   # uniformly replaced by the line number.  The first 'sed' inserts a
24211   # line-number line before each line; the second 'sed' does the real
24212   # work.  The second script uses 'N' to pair each line-number line
24213   # with the numbered line, and appends trailing '-' during
24214   # substitution so that $LINENO is not a special case at line end.
24215   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24216   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24217   sed '=' <$as_myself |
24218     sed '
24219       N
24220       s,$,-,
24221       : loop
24222       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24223       t loop
24224       s,-$,,
24225       s,^['$as_cr_digits']*\n,,
24226     ' >$as_me.lineno &&
24227   chmod +x $as_me.lineno ||
24228     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24229 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24230    { (exit 1); exit 1; }; }
24231
24232   # Don't try to exec as it changes $[0], causing all sort of problems
24233   # (the dirname of $[0] is not the place where we might find the
24234   # original and so on.  Autoconf is especially sensible to this).
24235   . ./$as_me.lineno
24236   # Exit status is that of the last command.
24237   exit
24238 }
24239
24240
24241 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24242   *c*,-n*) ECHO_N= ECHO_C='
24243 ' ECHO_T='      ' ;;
24244   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24245   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24246 esac
24247
24248 if expr a : '\(a\)' >/dev/null 2>&1; then
24249   as_expr=expr
24250 else
24251   as_expr=false
24252 fi
24253
24254 rm -f conf$$ conf$$.exe conf$$.file
24255 echo >conf$$.file
24256 if ln -s conf$$.file conf$$ 2>/dev/null; then
24257   # We could just check for DJGPP; but this test a) works b) is more generic
24258   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24259   if test -f conf$$.exe; then
24260     # Don't use ln at all; we don't have any links
24261     as_ln_s='cp -p'
24262   else
24263     as_ln_s='ln -s'
24264   fi
24265 elif ln conf$$.file conf$$ 2>/dev/null; then
24266   as_ln_s=ln
24267 else
24268   as_ln_s='cp -p'
24269 fi
24270 rm -f conf$$ conf$$.exe conf$$.file
24271
24272 if mkdir -p . 2>/dev/null; then
24273   as_mkdir_p=:
24274 else
24275   test -d ./-p && rmdir ./-p
24276   as_mkdir_p=false
24277 fi
24278
24279 as_executable_p="test -f"
24280
24281 # Sed expression to map a string onto a valid CPP name.
24282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24283
24284 # Sed expression to map a string onto a valid variable name.
24285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24286
24287
24288 # IFS
24289 # We need space, tab and new line, in precisely that order.
24290 as_nl='
24291 '
24292 IFS="   $as_nl"
24293
24294 # CDPATH.
24295 $as_unset CDPATH
24296
24297 exec 6>&1
24298
24299 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24300 # report actual input values of CONFIG_FILES etc. instead of their
24301 # values after options handling.  Logging --version etc. is OK.
24302 exec 5>>config.log
24303 {
24304   echo
24305   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24306 ## Running $as_me. ##
24307 _ASBOX
24308 } >&5
24309 cat >&5 <<_CSEOF
24310
24311 This file was extended by LLVM $as_me 1.4, which was
24312 generated by GNU Autoconf 2.59.  Invocation command line was
24313
24314   CONFIG_FILES    = $CONFIG_FILES
24315   CONFIG_HEADERS  = $CONFIG_HEADERS
24316   CONFIG_LINKS    = $CONFIG_LINKS
24317   CONFIG_COMMANDS = $CONFIG_COMMANDS
24318   $ $0 $@
24319
24320 _CSEOF
24321 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24322 echo >&5
24323 _ACEOF
24324
24325 # Files that config.status was made for.
24326 if test -n "$ac_config_files"; then
24327   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24328 fi
24329
24330 if test -n "$ac_config_headers"; then
24331   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24332 fi
24333
24334 if test -n "$ac_config_links"; then
24335   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24336 fi
24337
24338 if test -n "$ac_config_commands"; then
24339   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24340 fi
24341
24342 cat >>$CONFIG_STATUS <<\_ACEOF
24343
24344 ac_cs_usage="\
24345 \`$as_me' instantiates files from templates according to the
24346 current configuration.
24347
24348 Usage: $0 [OPTIONS] [FILE]...
24349
24350   -h, --help       print this help, then exit
24351   -V, --version    print version number, then exit
24352   -q, --quiet      do not print progress messages
24353   -d, --debug      don't remove temporary files
24354       --recheck    update $as_me by reconfiguring in the same conditions
24355   --file=FILE[:TEMPLATE]
24356                    instantiate the configuration file FILE
24357   --header=FILE[:TEMPLATE]
24358                    instantiate the configuration header FILE
24359
24360 Configuration files:
24361 $config_files
24362
24363 Configuration headers:
24364 $config_headers
24365
24366 Configuration links:
24367 $config_links
24368
24369 Configuration commands:
24370 $config_commands
24371
24372 Report bugs to <bug-autoconf@gnu.org>."
24373 _ACEOF
24374
24375 cat >>$CONFIG_STATUS <<_ACEOF
24376 ac_cs_version="\\
24377 LLVM config.status 1.4
24378 configured by $0, generated by GNU Autoconf 2.59,
24379   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24380
24381 Copyright (C) 2003 Free Software Foundation, Inc.
24382 This config.status script is free software; the Free Software Foundation
24383 gives unlimited permission to copy, distribute and modify it."
24384 srcdir=$srcdir
24385 INSTALL="$INSTALL"
24386 _ACEOF
24387
24388 cat >>$CONFIG_STATUS <<\_ACEOF
24389 # If no file are specified by the user, then we need to provide default
24390 # value.  By we need to know if files were specified by the user.
24391 ac_need_defaults=:
24392 while test $# != 0
24393 do
24394   case $1 in
24395   --*=*)
24396     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24397     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24398     ac_shift=:
24399     ;;
24400   -*)
24401     ac_option=$1
24402     ac_optarg=$2
24403     ac_shift=shift
24404     ;;
24405   *) # This is not an option, so the user has probably given explicit
24406      # arguments.
24407      ac_option=$1
24408      ac_need_defaults=false;;
24409   esac
24410
24411   case $ac_option in
24412   # Handling of the options.
24413 _ACEOF
24414 cat >>$CONFIG_STATUS <<\_ACEOF
24415   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24416     ac_cs_recheck=: ;;
24417   --version | --vers* | -V )
24418     echo "$ac_cs_version"; exit 0 ;;
24419   --he | --h)
24420     # Conflict between --help and --header
24421     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24422 Try \`$0 --help' for more information." >&5
24423 echo "$as_me: error: ambiguous option: $1
24424 Try \`$0 --help' for more information." >&2;}
24425    { (exit 1); exit 1; }; };;
24426   --help | --hel | -h )
24427     echo "$ac_cs_usage"; exit 0 ;;
24428   --debug | --d* | -d )
24429     debug=: ;;
24430   --file | --fil | --fi | --f )
24431     $ac_shift
24432     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24433     ac_need_defaults=false;;
24434   --header | --heade | --head | --hea )
24435     $ac_shift
24436     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24437     ac_need_defaults=false;;
24438   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24439   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24440     ac_cs_silent=: ;;
24441
24442   # This is an error.
24443   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24444 Try \`$0 --help' for more information." >&5
24445 echo "$as_me: error: unrecognized option: $1
24446 Try \`$0 --help' for more information." >&2;}
24447    { (exit 1); exit 1; }; } ;;
24448
24449   *) ac_config_targets="$ac_config_targets $1" ;;
24450
24451   esac
24452   shift
24453 done
24454
24455 ac_configure_extra_args=
24456
24457 if $ac_cs_silent; then
24458   exec 6>/dev/null
24459   ac_configure_extra_args="$ac_configure_extra_args --silent"
24460 fi
24461
24462 _ACEOF
24463 cat >>$CONFIG_STATUS <<_ACEOF
24464 if \$ac_cs_recheck; then
24465   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24466   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24467 fi
24468
24469 _ACEOF
24470
24471 cat >>$CONFIG_STATUS <<_ACEOF
24472 #
24473 # INIT-COMMANDS section.
24474 #
24475
24476 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24477 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24478 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24479 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24480 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24483 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24484 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24485 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24486 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24487 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24488
24489 _ACEOF
24490
24491
24492
24493 cat >>$CONFIG_STATUS <<\_ACEOF
24494 for ac_config_target in $ac_config_targets
24495 do
24496   case "$ac_config_target" in
24497   # Handling of arguments.
24498   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24499   "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24500   "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24501   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24502   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24503   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24504   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24505   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24506   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24507   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24508   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24509   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24510   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24511   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24512   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24513   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24514   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24515   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
24516   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
24517   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
24518   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24520    { (exit 1); exit 1; }; };;
24521   esac
24522 done
24523
24524 # If the user did not use the arguments to specify the items to instantiate,
24525 # then the envvar interface is used.  Set only those that are not.
24526 # We use the long form for the default assignment because of an extremely
24527 # bizarre bug on SunOS 4.1.3.
24528 if $ac_need_defaults; then
24529   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24530   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24531   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24532   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24533 fi
24534
24535 # Have a temporary directory for convenience.  Make it in the build tree
24536 # simply because there is no reason to put it here, and in addition,
24537 # creating and moving files from /tmp can sometimes cause problems.
24538 # Create a temporary directory, and hook for its removal unless debugging.
24539 $debug ||
24540 {
24541   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24542   trap '{ (exit 1); exit 1; }' 1 2 13 15
24543 }
24544
24545 # Create a (secure) tmp directory for tmp files.
24546
24547 {
24548   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24549   test -n "$tmp" && test -d "$tmp"
24550 }  ||
24551 {
24552   tmp=./confstat$$-$RANDOM
24553   (umask 077 && mkdir $tmp)
24554 } ||
24555 {
24556    echo "$me: cannot create a temporary directory in ." >&2
24557    { (exit 1); exit 1; }
24558 }
24559
24560 _ACEOF
24561
24562 cat >>$CONFIG_STATUS <<_ACEOF
24563
24564 #
24565 # CONFIG_FILES section.
24566 #
24567
24568 # No need to generate the scripts if there are no CONFIG_FILES.
24569 # This happens for instance when ./config.status config.h
24570 if test -n "\$CONFIG_FILES"; then
24571   # Protect against being on the right side of a sed subst in config.status.
24572   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24573    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24574 s,@SHELL@,$SHELL,;t t
24575 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24576 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24577 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24578 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24579 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24580 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24581 s,@exec_prefix@,$exec_prefix,;t t
24582 s,@prefix@,$prefix,;t t
24583 s,@program_transform_name@,$program_transform_name,;t t
24584 s,@bindir@,$bindir,;t t
24585 s,@sbindir@,$sbindir,;t t
24586 s,@libexecdir@,$libexecdir,;t t
24587 s,@datadir@,$datadir,;t t
24588 s,@sysconfdir@,$sysconfdir,;t t
24589 s,@sharedstatedir@,$sharedstatedir,;t t
24590 s,@localstatedir@,$localstatedir,;t t
24591 s,@libdir@,$libdir,;t t
24592 s,@includedir@,$includedir,;t t
24593 s,@oldincludedir@,$oldincludedir,;t t
24594 s,@infodir@,$infodir,;t t
24595 s,@mandir@,$mandir,;t t
24596 s,@build_alias@,$build_alias,;t t
24597 s,@host_alias@,$host_alias,;t t
24598 s,@target_alias@,$target_alias,;t t
24599 s,@DEFS@,$DEFS,;t t
24600 s,@ECHO_C@,$ECHO_C,;t t
24601 s,@ECHO_N@,$ECHO_N,;t t
24602 s,@ECHO_T@,$ECHO_T,;t t
24603 s,@LIBS@,$LIBS,;t t
24604 s,@subdirs@,$subdirs,;t t
24605 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24606 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24607 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24608 s,@build@,$build,;t t
24609 s,@build_cpu@,$build_cpu,;t t
24610 s,@build_vendor@,$build_vendor,;t t
24611 s,@build_os@,$build_os,;t t
24612 s,@host@,$host,;t t
24613 s,@host_cpu@,$host_cpu,;t t
24614 s,@host_vendor@,$host_vendor,;t t
24615 s,@host_os@,$host_os,;t t
24616 s,@target@,$target,;t t
24617 s,@target_cpu@,$target_cpu,;t t
24618 s,@target_vendor@,$target_vendor,;t t
24619 s,@target_os@,$target_os,;t t
24620 s,@OS@,$OS,;t t
24621 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24622 s,@ARCH@,$ARCH,;t t
24623 s,@CXX@,$CXX,;t t
24624 s,@CXXFLAGS@,$CXXFLAGS,;t t
24625 s,@LDFLAGS@,$LDFLAGS,;t t
24626 s,@CPPFLAGS@,$CPPFLAGS,;t t
24627 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24628 s,@EXEEXT@,$EXEEXT,;t t
24629 s,@OBJEXT@,$OBJEXT,;t t
24630 s,@CC@,$CC,;t t
24631 s,@CFLAGS@,$CFLAGS,;t t
24632 s,@ac_ct_CC@,$ac_ct_CC,;t t
24633 s,@CPP@,$CPP,;t t
24634 s,@ifGNUmake@,$ifGNUmake,;t t
24635 s,@LEX@,$LEX,;t t
24636 s,@LEXLIB@,$LEXLIB,;t t
24637 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24638 s,@FLEX@,$FLEX,;t t
24639 s,@YACC@,$YACC,;t t
24640 s,@BISON@,$BISON,;t t
24641 s,@EGREP@,$EGREP,;t t
24642 s,@LN_S@,$LN_S,;t t
24643 s,@ECHO@,$ECHO,;t t
24644 s,@AR@,$AR,;t t
24645 s,@ac_ct_AR@,$ac_ct_AR,;t t
24646 s,@RANLIB@,$RANLIB,;t t
24647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24648 s,@STRIP@,$STRIP,;t t
24649 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24650 s,@CXXCPP@,$CXXCPP,;t t
24651 s,@F77@,$F77,;t t
24652 s,@FFLAGS@,$FFLAGS,;t t
24653 s,@ac_ct_F77@,$ac_ct_F77,;t t
24654 s,@LIBTOOL@,$LIBTOOL,;t t
24655 s,@DOT@,$DOT,;t t
24656 s,@ETAGS@,$ETAGS,;t t
24657 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24658 s,@PYTHON@,$PYTHON,;t t
24659 s,@QMTEST@,$QMTEST,;t t
24660 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24661 s,@ENDIAN@,$ENDIAN,;t t
24662 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24663 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24664 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24665 s,@ALLOCA@,$ALLOCA,;t t
24666 s,@MMAP_FILE@,$MMAP_FILE,;t t
24667 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24668 s,@JIT@,$JIT,;t t
24669 s,@LLVMCC1@,$LLVMCC1,;t t
24670 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24671 s,@SHLIBEXT@,$SHLIBEXT,;t t
24672 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24673 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24674 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24675 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24676 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24677 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24678 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24679 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24680 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24681 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24682 s,@LIBOBJS@,$LIBOBJS,;t t
24683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24684 CEOF
24685
24686 _ACEOF
24687
24688   cat >>$CONFIG_STATUS <<\_ACEOF
24689   # Split the substitutions into bite-sized pieces for seds with
24690   # small command number limits, like on Digital OSF/1 and HP-UX.
24691   ac_max_sed_lines=48
24692   ac_sed_frag=1 # Number of current file.
24693   ac_beg=1 # First line for current file.
24694   ac_end=$ac_max_sed_lines # Line after last line for current file.
24695   ac_more_lines=:
24696   ac_sed_cmds=
24697   while $ac_more_lines; do
24698     if test $ac_beg -gt 1; then
24699       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24700     else
24701       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24702     fi
24703     if test ! -s $tmp/subs.frag; then
24704       ac_more_lines=false
24705     else
24706       # The purpose of the label and of the branching condition is to
24707       # speed up the sed processing (if there are no `@' at all, there
24708       # is no need to browse any of the substitutions).
24709       # These are the two extra sed commands mentioned above.
24710       (echo ':t
24711   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24712       if test -z "$ac_sed_cmds"; then
24713         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24714       else
24715         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24716       fi
24717       ac_sed_frag=`expr $ac_sed_frag + 1`
24718       ac_beg=$ac_end
24719       ac_end=`expr $ac_end + $ac_max_sed_lines`
24720     fi
24721   done
24722   if test -z "$ac_sed_cmds"; then
24723     ac_sed_cmds=cat
24724   fi
24725 fi # test -n "$CONFIG_FILES"
24726
24727 _ACEOF
24728 cat >>$CONFIG_STATUS <<\_ACEOF
24729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24730   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24731   case $ac_file in
24732   - | *:- | *:-:* ) # input from stdin
24733         cat >$tmp/stdin
24734         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24735         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24736   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24737         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24738   * )   ac_file_in=$ac_file.in ;;
24739   esac
24740
24741   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24742   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24744          X"$ac_file" : 'X\(//\)[^/]' \| \
24745          X"$ac_file" : 'X\(//\)$' \| \
24746          X"$ac_file" : 'X\(/\)' \| \
24747          .     : '\(.\)' 2>/dev/null ||
24748 echo X"$ac_file" |
24749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24751           /^X\(\/\/\)$/{ s//\1/; q; }
24752           /^X\(\/\).*/{ s//\1/; q; }
24753           s/.*/./; q'`
24754   { if $as_mkdir_p; then
24755     mkdir -p "$ac_dir"
24756   else
24757     as_dir="$ac_dir"
24758     as_dirs=
24759     while test ! -d "$as_dir"; do
24760       as_dirs="$as_dir $as_dirs"
24761       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24763          X"$as_dir" : 'X\(//\)[^/]' \| \
24764          X"$as_dir" : 'X\(//\)$' \| \
24765          X"$as_dir" : 'X\(/\)' \| \
24766          .     : '\(.\)' 2>/dev/null ||
24767 echo X"$as_dir" |
24768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24770           /^X\(\/\/\)$/{ s//\1/; q; }
24771           /^X\(\/\).*/{ s//\1/; q; }
24772           s/.*/./; q'`
24773     done
24774     test ! -n "$as_dirs" || mkdir $as_dirs
24775   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24777    { (exit 1); exit 1; }; }; }
24778
24779   ac_builddir=.
24780
24781 if test "$ac_dir" != .; then
24782   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24783   # A "../" for each directory in $ac_dir_suffix.
24784   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24785 else
24786   ac_dir_suffix= ac_top_builddir=
24787 fi
24788
24789 case $srcdir in
24790   .)  # No --srcdir option.  We are building in place.
24791     ac_srcdir=.
24792     if test -z "$ac_top_builddir"; then
24793        ac_top_srcdir=.
24794     else
24795        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24796     fi ;;
24797   [\\/]* | ?:[\\/]* )  # Absolute path.
24798     ac_srcdir=$srcdir$ac_dir_suffix;
24799     ac_top_srcdir=$srcdir ;;
24800   *) # Relative path.
24801     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24802     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24803 esac
24804
24805 # Do not use `cd foo && pwd` to compute absolute paths, because
24806 # the directories may not exist.
24807 case `pwd` in
24808 .) ac_abs_builddir="$ac_dir";;
24809 *)
24810   case "$ac_dir" in
24811   .) ac_abs_builddir=`pwd`;;
24812   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24813   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24814   esac;;
24815 esac
24816 case $ac_abs_builddir in
24817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24818 *)
24819   case ${ac_top_builddir}. in
24820   .) ac_abs_top_builddir=$ac_abs_builddir;;
24821   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24822   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24823   esac;;
24824 esac
24825 case $ac_abs_builddir in
24826 .) ac_abs_srcdir=$ac_srcdir;;
24827 *)
24828   case $ac_srcdir in
24829   .) ac_abs_srcdir=$ac_abs_builddir;;
24830   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24831   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24832   esac;;
24833 esac
24834 case $ac_abs_builddir in
24835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24836 *)
24837   case $ac_top_srcdir in
24838   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24839   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24840   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24841   esac;;
24842 esac
24843
24844
24845   case $INSTALL in
24846   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24847   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24848   esac
24849
24850   if test x"$ac_file" != x-; then
24851     { echo "$as_me:$LINENO: creating $ac_file" >&5
24852 echo "$as_me: creating $ac_file" >&6;}
24853     rm -f "$ac_file"
24854   fi
24855   # Let's still pretend it is `configure' which instantiates (i.e., don't
24856   # use $as_me), people would be surprised to read:
24857   #    /* config.h.  Generated by config.status.  */
24858   if test x"$ac_file" = x-; then
24859     configure_input=
24860   else
24861     configure_input="$ac_file.  "
24862   fi
24863   configure_input=$configure_input"Generated from `echo $ac_file_in |
24864                                      sed 's,.*/,,'` by configure."
24865
24866   # First look for the input files in the build tree, otherwise in the
24867   # src tree.
24868   ac_file_inputs=`IFS=:
24869     for f in $ac_file_in; do
24870       case $f in
24871       -) echo $tmp/stdin ;;
24872       [\\/$]*)
24873          # Absolute (can't be DOS-style, as IFS=:)
24874          test -f "$f" || { { 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          echo "$f";;
24878       *) # Relative
24879          if test -f "$f"; then
24880            # Build tree
24881            echo "$f"
24882          elif test -f "$srcdir/$f"; then
24883            # Source tree
24884            echo "$srcdir/$f"
24885          else
24886            # /dev/null tree
24887            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24888 echo "$as_me: error: cannot find input file: $f" >&2;}
24889    { (exit 1); exit 1; }; }
24890          fi;;
24891       esac
24892     done` || { (exit 1); exit 1; }
24893 _ACEOF
24894 cat >>$CONFIG_STATUS <<_ACEOF
24895   sed "$ac_vpsub
24896 $extrasub
24897 _ACEOF
24898 cat >>$CONFIG_STATUS <<\_ACEOF
24899 :t
24900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24901 s,@configure_input@,$configure_input,;t t
24902 s,@srcdir@,$ac_srcdir,;t t
24903 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24904 s,@top_srcdir@,$ac_top_srcdir,;t t
24905 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24906 s,@builddir@,$ac_builddir,;t t
24907 s,@abs_builddir@,$ac_abs_builddir,;t t
24908 s,@top_builddir@,$ac_top_builddir,;t t
24909 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24910 s,@INSTALL@,$ac_INSTALL,;t t
24911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24912   rm -f $tmp/stdin
24913   if test x"$ac_file" != x-; then
24914     mv $tmp/out $ac_file
24915   else
24916     cat $tmp/out
24917     rm -f $tmp/out
24918   fi
24919
24920 done
24921 _ACEOF
24922 cat >>$CONFIG_STATUS <<\_ACEOF
24923
24924 #
24925 # CONFIG_HEADER section.
24926 #
24927
24928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24930 #
24931 # ac_d sets the value in "#define NAME VALUE" lines.
24932 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24933 ac_dB='[         ].*$,\1#\2'
24934 ac_dC=' '
24935 ac_dD=',;t'
24936 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24937 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24938 ac_uB='$,\1#\2define\3'
24939 ac_uC=' '
24940 ac_uD=',;t'
24941
24942 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24943   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24944   case $ac_file in
24945   - | *:- | *:-:* ) # input from stdin
24946         cat >$tmp/stdin
24947         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24949   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24951   * )   ac_file_in=$ac_file.in ;;
24952   esac
24953
24954   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24955 echo "$as_me: creating $ac_file" >&6;}
24956
24957   # First look for the input files in the build tree, otherwise in the
24958   # src tree.
24959   ac_file_inputs=`IFS=:
24960     for f in $ac_file_in; do
24961       case $f in
24962       -) echo $tmp/stdin ;;
24963       [\\/$]*)
24964          # Absolute (can't be DOS-style, as IFS=:)
24965          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24966 echo "$as_me: error: cannot find input file: $f" >&2;}
24967    { (exit 1); exit 1; }; }
24968          # Do quote $f, to prevent DOS paths from being IFS'd.
24969          echo "$f";;
24970       *) # Relative
24971          if test -f "$f"; then
24972            # Build tree
24973            echo "$f"
24974          elif test -f "$srcdir/$f"; then
24975            # Source tree
24976            echo "$srcdir/$f"
24977          else
24978            # /dev/null tree
24979            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24980 echo "$as_me: error: cannot find input file: $f" >&2;}
24981    { (exit 1); exit 1; }; }
24982          fi;;
24983       esac
24984     done` || { (exit 1); exit 1; }
24985   # Remove the trailing spaces.
24986   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24987
24988 _ACEOF
24989
24990 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24991 # `conftest.undefs', that substitutes the proper values into
24992 # config.h.in to produce config.h.  The first handles `#define'
24993 # templates, and the second `#undef' templates.
24994 # And first: Protect against being on the right side of a sed subst in
24995 # config.status.  Protect against being in an unquoted here document
24996 # in config.status.
24997 rm -f conftest.defines conftest.undefs
24998 # Using a here document instead of a string reduces the quoting nightmare.
24999 # Putting comments in sed scripts is not portable.
25000 #
25001 # `end' is used to avoid that the second main sed command (meant for
25002 # 0-ary CPP macros) applies to n-ary macro definitions.
25003 # See the Autoconf documentation for `clear'.
25004 cat >confdef2sed.sed <<\_ACEOF
25005 s/[\\&,]/\\&/g
25006 s,[\\$`],\\&,g
25007 t clear
25008 : clear
25009 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25010 t end
25011 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25012 : end
25013 _ACEOF
25014 # If some macros were called several times there might be several times
25015 # the same #defines, which is useless.  Nevertheless, we may not want to
25016 # sort them, since we want the *last* AC-DEFINE to be honored.
25017 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25018 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25019 rm -f confdef2sed.sed
25020
25021 # This sed command replaces #undef with comments.  This is necessary, for
25022 # example, in the case of _POSIX_SOURCE, which is predefined and required
25023 # on some systems where configure will not decide to define it.
25024 cat >>conftest.undefs <<\_ACEOF
25025 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25026 _ACEOF
25027
25028 # Break up conftest.defines because some shells have a limit on the size
25029 # of here documents, and old seds have small limits too (100 cmds).
25030 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25031 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25032 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25033 echo '  :' >>$CONFIG_STATUS
25034 rm -f conftest.tail
25035 while grep . conftest.defines >/dev/null
25036 do
25037   # Write a limited-size here document to $tmp/defines.sed.
25038   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25039   # Speed up: don't consider the non `#define' lines.
25040   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25041   # Work around the forget-to-reset-the-flag bug.
25042   echo 't clr' >>$CONFIG_STATUS
25043   echo ': clr' >>$CONFIG_STATUS
25044   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25045   echo 'CEOF
25046   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25047   rm -f $tmp/in
25048   mv $tmp/out $tmp/in
25049 ' >>$CONFIG_STATUS
25050   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25051   rm -f conftest.defines
25052   mv conftest.tail conftest.defines
25053 done
25054 rm -f conftest.defines
25055 echo '  fi # grep' >>$CONFIG_STATUS
25056 echo >>$CONFIG_STATUS
25057
25058 # Break up conftest.undefs because some shells have a limit on the size
25059 # of here documents, and old seds have small limits too (100 cmds).
25060 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25061 rm -f conftest.tail
25062 while grep . conftest.undefs >/dev/null
25063 do
25064   # Write a limited-size here document to $tmp/undefs.sed.
25065   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25066   # Speed up: don't consider the non `#undef'
25067   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25068   # Work around the forget-to-reset-the-flag bug.
25069   echo 't clr' >>$CONFIG_STATUS
25070   echo ': clr' >>$CONFIG_STATUS
25071   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25072   echo 'CEOF
25073   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25074   rm -f $tmp/in
25075   mv $tmp/out $tmp/in
25076 ' >>$CONFIG_STATUS
25077   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25078   rm -f conftest.undefs
25079   mv conftest.tail conftest.undefs
25080 done
25081 rm -f conftest.undefs
25082
25083 cat >>$CONFIG_STATUS <<\_ACEOF
25084   # Let's still pretend it is `configure' which instantiates (i.e., don't
25085   # use $as_me), people would be surprised to read:
25086   #    /* config.h.  Generated by config.status.  */
25087   if test x"$ac_file" = x-; then
25088     echo "/* Generated by configure.  */" >$tmp/config.h
25089   else
25090     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25091   fi
25092   cat $tmp/in >>$tmp/config.h
25093   rm -f $tmp/in
25094   if test x"$ac_file" != x-; then
25095     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25096       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25097 echo "$as_me: $ac_file is unchanged" >&6;}
25098     else
25099       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25101          X"$ac_file" : 'X\(//\)[^/]' \| \
25102          X"$ac_file" : 'X\(//\)$' \| \
25103          X"$ac_file" : 'X\(/\)' \| \
25104          .     : '\(.\)' 2>/dev/null ||
25105 echo X"$ac_file" |
25106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25108           /^X\(\/\/\)$/{ s//\1/; q; }
25109           /^X\(\/\).*/{ s//\1/; q; }
25110           s/.*/./; q'`
25111       { if $as_mkdir_p; then
25112     mkdir -p "$ac_dir"
25113   else
25114     as_dir="$ac_dir"
25115     as_dirs=
25116     while test ! -d "$as_dir"; do
25117       as_dirs="$as_dir $as_dirs"
25118       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25120          X"$as_dir" : 'X\(//\)[^/]' \| \
25121          X"$as_dir" : 'X\(//\)$' \| \
25122          X"$as_dir" : 'X\(/\)' \| \
25123          .     : '\(.\)' 2>/dev/null ||
25124 echo X"$as_dir" |
25125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25127           /^X\(\/\/\)$/{ s//\1/; q; }
25128           /^X\(\/\).*/{ s//\1/; q; }
25129           s/.*/./; q'`
25130     done
25131     test ! -n "$as_dirs" || mkdir $as_dirs
25132   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25134    { (exit 1); exit 1; }; }; }
25135
25136       rm -f $ac_file
25137       mv $tmp/config.h $ac_file
25138     fi
25139   else
25140     cat $tmp/config.h
25141     rm -f $tmp/config.h
25142   fi
25143 done
25144 _ACEOF
25145 cat >>$CONFIG_STATUS <<\_ACEOF
25146
25147 #
25148 # CONFIG_LINKS section.
25149 #
25150
25151 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25152   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25153   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25154
25155   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25156 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25157
25158   if test ! -r $srcdir/$ac_source; then
25159     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25160 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25161    { (exit 1); exit 1; }; }
25162   fi
25163   rm -f $ac_dest
25164
25165   # Make relative symlinks.
25166   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25167 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25168          X"$ac_dest" : 'X\(//\)[^/]' \| \
25169          X"$ac_dest" : 'X\(//\)$' \| \
25170          X"$ac_dest" : 'X\(/\)' \| \
25171          .     : '\(.\)' 2>/dev/null ||
25172 echo X"$ac_dest" |
25173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25175           /^X\(\/\/\)$/{ s//\1/; q; }
25176           /^X\(\/\).*/{ s//\1/; q; }
25177           s/.*/./; q'`
25178   { if $as_mkdir_p; then
25179     mkdir -p "$ac_dest_dir"
25180   else
25181     as_dir="$ac_dest_dir"
25182     as_dirs=
25183     while test ! -d "$as_dir"; do
25184       as_dirs="$as_dir $as_dirs"
25185       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25187          X"$as_dir" : 'X\(//\)[^/]' \| \
25188          X"$as_dir" : 'X\(//\)$' \| \
25189          X"$as_dir" : 'X\(/\)' \| \
25190          .     : '\(.\)' 2>/dev/null ||
25191 echo X"$as_dir" |
25192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25193           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25194           /^X\(\/\/\)$/{ s//\1/; q; }
25195           /^X\(\/\).*/{ s//\1/; q; }
25196           s/.*/./; q'`
25197     done
25198     test ! -n "$as_dirs" || mkdir $as_dirs
25199   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25200 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25201    { (exit 1); exit 1; }; }; }
25202
25203   ac_builddir=.
25204
25205 if test "$ac_dest_dir" != .; then
25206   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25207   # A "../" for each directory in $ac_dir_suffix.
25208   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25209 else
25210   ac_dir_suffix= ac_top_builddir=
25211 fi
25212
25213 case $srcdir in
25214   .)  # No --srcdir option.  We are building in place.
25215     ac_srcdir=.
25216     if test -z "$ac_top_builddir"; then
25217        ac_top_srcdir=.
25218     else
25219        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25220     fi ;;
25221   [\\/]* | ?:[\\/]* )  # Absolute path.
25222     ac_srcdir=$srcdir$ac_dir_suffix;
25223     ac_top_srcdir=$srcdir ;;
25224   *) # Relative path.
25225     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25226     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25227 esac
25228
25229 # Do not use `cd foo && pwd` to compute absolute paths, because
25230 # the directories may not exist.
25231 case `pwd` in
25232 .) ac_abs_builddir="$ac_dest_dir";;
25233 *)
25234   case "$ac_dest_dir" in
25235   .) ac_abs_builddir=`pwd`;;
25236   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25237   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25238   esac;;
25239 esac
25240 case $ac_abs_builddir in
25241 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25242 *)
25243   case ${ac_top_builddir}. in
25244   .) ac_abs_top_builddir=$ac_abs_builddir;;
25245   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25246   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25247   esac;;
25248 esac
25249 case $ac_abs_builddir in
25250 .) ac_abs_srcdir=$ac_srcdir;;
25251 *)
25252   case $ac_srcdir in
25253   .) ac_abs_srcdir=$ac_abs_builddir;;
25254   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25255   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25256   esac;;
25257 esac
25258 case $ac_abs_builddir in
25259 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25260 *)
25261   case $ac_top_srcdir in
25262   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25263   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25264   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25265   esac;;
25266 esac
25267
25268
25269   case $srcdir in
25270   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25271       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25272   esac
25273
25274   # Try a symlink, then a hard link, then a copy.
25275   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25276     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25277     cp -p $srcdir/$ac_source $ac_dest ||
25278     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25279 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25280    { (exit 1); exit 1; }; }
25281 done
25282 _ACEOF
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25284
25285 #
25286 # CONFIG_COMMANDS section.
25287 #
25288 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25289   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25290   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25291   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25292 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25293          X"$ac_dest" : 'X\(//\)[^/]' \| \
25294          X"$ac_dest" : 'X\(//\)$' \| \
25295          X"$ac_dest" : 'X\(/\)' \| \
25296          .     : '\(.\)' 2>/dev/null ||
25297 echo X"$ac_dest" |
25298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25299           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25300           /^X\(\/\/\)$/{ s//\1/; q; }
25301           /^X\(\/\).*/{ s//\1/; q; }
25302           s/.*/./; q'`
25303   { if $as_mkdir_p; then
25304     mkdir -p "$ac_dir"
25305   else
25306     as_dir="$ac_dir"
25307     as_dirs=
25308     while test ! -d "$as_dir"; do
25309       as_dirs="$as_dir $as_dirs"
25310       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25312          X"$as_dir" : 'X\(//\)[^/]' \| \
25313          X"$as_dir" : 'X\(//\)$' \| \
25314          X"$as_dir" : 'X\(/\)' \| \
25315          .     : '\(.\)' 2>/dev/null ||
25316 echo X"$as_dir" |
25317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25319           /^X\(\/\/\)$/{ s//\1/; q; }
25320           /^X\(\/\).*/{ s//\1/; q; }
25321           s/.*/./; q'`
25322     done
25323     test ! -n "$as_dirs" || mkdir $as_dirs
25324   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25326    { (exit 1); exit 1; }; }; }
25327
25328   ac_builddir=.
25329
25330 if test "$ac_dir" != .; then
25331   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25332   # A "../" for each directory in $ac_dir_suffix.
25333   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25334 else
25335   ac_dir_suffix= ac_top_builddir=
25336 fi
25337
25338 case $srcdir in
25339   .)  # No --srcdir option.  We are building in place.
25340     ac_srcdir=.
25341     if test -z "$ac_top_builddir"; then
25342        ac_top_srcdir=.
25343     else
25344        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25345     fi ;;
25346   [\\/]* | ?:[\\/]* )  # Absolute path.
25347     ac_srcdir=$srcdir$ac_dir_suffix;
25348     ac_top_srcdir=$srcdir ;;
25349   *) # Relative path.
25350     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25351     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25352 esac
25353
25354 # Do not use `cd foo && pwd` to compute absolute paths, because
25355 # the directories may not exist.
25356 case `pwd` in
25357 .) ac_abs_builddir="$ac_dir";;
25358 *)
25359   case "$ac_dir" in
25360   .) ac_abs_builddir=`pwd`;;
25361   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25362   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25363   esac;;
25364 esac
25365 case $ac_abs_builddir in
25366 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25367 *)
25368   case ${ac_top_builddir}. in
25369   .) ac_abs_top_builddir=$ac_abs_builddir;;
25370   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25371   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25372   esac;;
25373 esac
25374 case $ac_abs_builddir in
25375 .) ac_abs_srcdir=$ac_srcdir;;
25376 *)
25377   case $ac_srcdir in
25378   .) ac_abs_srcdir=$ac_abs_builddir;;
25379   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25380   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25381   esac;;
25382 esac
25383 case $ac_abs_builddir in
25384 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25385 *)
25386   case $ac_top_srcdir in
25387   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25388   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25389   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25390   esac;;
25391 esac
25392
25393
25394   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25395 echo "$as_me: executing $ac_dest commands" >&6;}
25396   case $ac_dest in
25397     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25398     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25399     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25400     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25401     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25402     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25403     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25404     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25405     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25406     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25407     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25408     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25409   esac
25410 done
25411 _ACEOF
25412
25413 cat >>$CONFIG_STATUS <<\_ACEOF
25414
25415 { (exit 0); exit 0; }
25416 _ACEOF
25417 chmod +x $CONFIG_STATUS
25418 ac_clean_files=$ac_clean_files_save
25419
25420
25421 # configure is writing to config.log, and then calls config.status.
25422 # config.status does its own redirection, appending to config.log.
25423 # Unfortunately, on DOS this fails, as config.log is still kept open
25424 # by configure, so config.status won't be able to write to it; its
25425 # output is simply discarded.  So we exec the FD to /dev/null,
25426 # effectively closing config.log, so it can be properly (re)opened and
25427 # appended to by config.status.  When coming back to configure, we
25428 # need to make the FD available again.
25429 if test "$no_create" != yes; then
25430   ac_cs_success=:
25431   ac_config_status_args=
25432   test "$silent" = yes &&
25433     ac_config_status_args="$ac_config_status_args --quiet"
25434   exec 5>/dev/null
25435   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25436   exec 5>>config.log
25437   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25438   # would make configure fail if this is the last instruction.
25439   $ac_cs_success || { (exit 1); exit 1; }
25440 fi
25441
25442 #
25443 # CONFIG_SUBDIRS section.
25444 #
25445 if test "$no_recursion" != yes; then
25446
25447   # Remove --cache-file and --srcdir arguments so they do not pile up.
25448   ac_sub_configure_args=
25449   ac_prev=
25450   for ac_arg in $ac_configure_args; do
25451     if test -n "$ac_prev"; then
25452       ac_prev=
25453       continue
25454     fi
25455     case $ac_arg in
25456     -cache-file | --cache-file | --cache-fil | --cache-fi \
25457     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25458       ac_prev=cache_file ;;
25459     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25460     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25461     | --c=*)
25462       ;;
25463     --config-cache | -C)
25464       ;;
25465     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25466       ac_prev=srcdir ;;
25467     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25468       ;;
25469     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25470       ac_prev=prefix ;;
25471     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25472       ;;
25473     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25474     esac
25475   done
25476
25477   # Always prepend --prefix to ensure using the same prefix
25478   # in subdir configurations.
25479   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25480
25481   ac_popdir=`pwd`
25482   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25483
25484     # Do not complain, so a configure script can configure whichever
25485     # parts of a large source tree are present.
25486     test -d $srcdir/$ac_dir || continue
25487
25488     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25489 echo "$as_me: configuring in $ac_dir" >&6;}
25490     { if $as_mkdir_p; then
25491     mkdir -p "$ac_dir"
25492   else
25493     as_dir="$ac_dir"
25494     as_dirs=
25495     while test ! -d "$as_dir"; do
25496       as_dirs="$as_dir $as_dirs"
25497       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25499          X"$as_dir" : 'X\(//\)[^/]' \| \
25500          X"$as_dir" : 'X\(//\)$' \| \
25501          X"$as_dir" : 'X\(/\)' \| \
25502          .     : '\(.\)' 2>/dev/null ||
25503 echo X"$as_dir" |
25504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25505           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25506           /^X\(\/\/\)$/{ s//\1/; q; }
25507           /^X\(\/\).*/{ s//\1/; q; }
25508           s/.*/./; q'`
25509     done
25510     test ! -n "$as_dirs" || mkdir $as_dirs
25511   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25512 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25513    { (exit 1); exit 1; }; }; }
25514
25515     ac_builddir=.
25516
25517 if test "$ac_dir" != .; then
25518   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25519   # A "../" for each directory in $ac_dir_suffix.
25520   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25521 else
25522   ac_dir_suffix= ac_top_builddir=
25523 fi
25524
25525 case $srcdir in
25526   .)  # No --srcdir option.  We are building in place.
25527     ac_srcdir=.
25528     if test -z "$ac_top_builddir"; then
25529        ac_top_srcdir=.
25530     else
25531        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25532     fi ;;
25533   [\\/]* | ?:[\\/]* )  # Absolute path.
25534     ac_srcdir=$srcdir$ac_dir_suffix;
25535     ac_top_srcdir=$srcdir ;;
25536   *) # Relative path.
25537     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25538     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25539 esac
25540
25541 # Do not use `cd foo && pwd` to compute absolute paths, because
25542 # the directories may not exist.
25543 case `pwd` in
25544 .) ac_abs_builddir="$ac_dir";;
25545 *)
25546   case "$ac_dir" in
25547   .) ac_abs_builddir=`pwd`;;
25548   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25549   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25550   esac;;
25551 esac
25552 case $ac_abs_builddir in
25553 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25554 *)
25555   case ${ac_top_builddir}. in
25556   .) ac_abs_top_builddir=$ac_abs_builddir;;
25557   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25558   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25559   esac;;
25560 esac
25561 case $ac_abs_builddir in
25562 .) ac_abs_srcdir=$ac_srcdir;;
25563 *)
25564   case $ac_srcdir in
25565   .) ac_abs_srcdir=$ac_abs_builddir;;
25566   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25567   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25568   esac;;
25569 esac
25570 case $ac_abs_builddir in
25571 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25572 *)
25573   case $ac_top_srcdir in
25574   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25575   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25576   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25577   esac;;
25578 esac
25579
25580
25581     cd $ac_dir
25582
25583     # Check for guested configure; otherwise get Cygnus style configure.
25584     if test -f $ac_srcdir/configure.gnu; then
25585       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25586     elif test -f $ac_srcdir/configure; then
25587       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25588     elif test -f $ac_srcdir/configure.in; then
25589       ac_sub_configure=$ac_configure
25590     else
25591       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25592 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25593       ac_sub_configure=
25594     fi
25595
25596     # The recursion is here.
25597     if test -n "$ac_sub_configure"; then
25598       # Make the cache file name correct relative to the subdirectory.
25599       case $cache_file in
25600       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25601       *) # Relative path.
25602         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25603       esac
25604
25605       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25606 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25607       # The eval makes quoting arguments work.
25608       eval $ac_sub_configure $ac_sub_configure_args \
25609            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25610         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25611 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25612    { (exit 1); exit 1; }; }
25613     fi
25614
25615     cd $ac_popdir
25616   done
25617 fi
25618
25619
25620 if test $llvmgccwarn = yes
25621 then
25622         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25623 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25624         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25625 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25626         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25627 echo "$as_me: WARNING: ***** " >&2;}
25628         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25629 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25630         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25631 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25632         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25633 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25634 fi
25635