Not all platforms supports sighandler_t, so I changed it to use the older
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013   --target=TARGET   configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-purify         Compile with purify (default is NO)
1034   --enable-optimized      Compile with optimizations enabled (default is NO)
1035   --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1036   --enable-precompiled_bytecode
1037                           Use pre-compiled bytecode (default is NO)
1038   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1039   --enable-jit            Enable Just In Time Compiling (default is YES)
1040
1041 Optional Packages:
1042   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045   --with-pic              try to use only PIC/non-PIC objects [default=use
1046                           both]
1047   --with-tags[=TAGS]
1048                           include additional configurations [automatic]
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
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 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.1]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.1], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522 for i in `ls ${srcdir}/projects`
1523 do
1524   if test ${i} != "CVS"
1525   then
1526     if test -f ${srcdir}/projects/${i}/configure
1527     then
1528
1529
1530 subdirs="$subdirs projects/${i}"
1531
1532     fi
1533   fi
1534 done
1535
1536           ac_config_headers="$ac_config_headers include/Config/config.h"
1537
1538           ac_config_commands="$ac_config_commands Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands Makefile.common"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands runtime/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands test/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands test/Makefile.tests"
1554
1555
1556           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560
1561
1562           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566
1567
1568           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572
1573
1574           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1668
1669
1670           ac_config_commands="$ac_config_commands tools/Makefile"
1671
1672
1673           ac_config_commands="$ac_config_commands utils/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands projects/Makefile"
1677
1678
1679
1680
1681 # Find a good install program.  We prefer a C program (faster),
1682 # so one script is as good as another.  But avoid the broken or
1683 # incompatible versions:
1684 # SysV /etc/install, /usr/sbin/install
1685 # SunOS /usr/etc/install
1686 # IRIX /sbin/install
1687 # AIX /bin/install
1688 # AmigaOS /C/install, which installs bootblocks on floppy discs
1689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1692 # ./install, which can be erroneously created by make from ./install.sh.
1693 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1695 if test -z "$INSTALL"; then
1696 if test "${ac_cv_path_install+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   # Account for people who put trailing slashes in PATH elements.
1705 case $as_dir/ in
1706   ./ | .// | /cC/* | \
1707   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1708   /usr/ucb/* ) ;;
1709   *)
1710     # OSF1 and SCO ODT 3.0 have their own names for install.
1711     # Don't use installbsd from OSF since it installs stuff as root
1712     # by default.
1713     for ac_prog in ginstall scoinst install; do
1714       for ac_exec_ext in '' $ac_executable_extensions; do
1715         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1716           if test $ac_prog = install &&
1717             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1718             # AIX install.  It has an incompatible calling convention.
1719             :
1720           elif test $ac_prog = install &&
1721             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722             # program-specific install script used by HP pwplus--don't use.
1723             :
1724           else
1725             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1726             break 3
1727           fi
1728         fi
1729       done
1730     done
1731     ;;
1732 esac
1733 done
1734
1735
1736 fi
1737   if test "${ac_cv_path_install+set}" = set; then
1738     INSTALL=$ac_cv_path_install
1739   else
1740     # As a last resort, use the slow shell script.  We don't cache a
1741     # path for INSTALL within a source directory, because that will
1742     # break other packages using the cache if that directory is
1743     # removed, or if the path is relative.
1744     INSTALL=$ac_install_sh
1745   fi
1746 fi
1747 echo "$as_me:$LINENO: result: $INSTALL" >&5
1748 echo "${ECHO_T}$INSTALL" >&6
1749
1750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1751 # It thinks the first close brace ends the variable substitution.
1752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1753
1754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1755
1756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1757
1758
1759 # Make sure we can run config.sub.
1760 $ac_config_sub sun4 >/dev/null 2>&1 ||
1761   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763    { (exit 1); exit 1; }; }
1764
1765 echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767 if test "${ac_cv_build+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   ac_cv_build_alias=$build_alias
1771 test -z "$ac_cv_build_alias" &&
1772   ac_cv_build_alias=`$ac_config_guess`
1773 test -z "$ac_cv_build_alias" &&
1774   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776    { (exit 1); exit 1; }; }
1777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780    { (exit 1); exit 1; }; }
1781
1782 fi
1783 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6
1785 build=$ac_cv_build
1786 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791 echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793 if test "${ac_cv_host+set}" = set; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   ac_cv_host_alias=$host_alias
1797 test -z "$ac_cv_host_alias" &&
1798   ac_cv_host_alias=$ac_cv_build_alias
1799 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802    { (exit 1); exit 1; }; }
1803
1804 fi
1805 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806 echo "${ECHO_T}$ac_cv_host" >&6
1807 host=$ac_cv_host
1808 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1811
1812
1813 echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815 if test "${ac_cv_target+set}" = set; then
1816   echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818   ac_cv_target_alias=$target_alias
1819 test "x$ac_cv_target_alias" = "x" &&
1820   ac_cv_target_alias=$ac_cv_host_alias
1821 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824    { (exit 1); exit 1; }; }
1825
1826 fi
1827 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828 echo "${ECHO_T}$ac_cv_target" >&6
1829 target=$ac_cv_target
1830 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1831 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1832 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1833
1834
1835 # The aliases save the names the user supplied, while $host etc.
1836 # will get canonicalized.
1837 test -n "$target_alias" &&
1838   test "$program_prefix$program_suffix$program_transform_name" = \
1839     NONENONEs,x,x, &&
1840   program_prefix=${target_alias}-
1841
1842 case $build in
1843         *-*-linux*)
1844              OS=Linux
1845
1846                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1847                          then
1848                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1849
1850                          fi
1851                  ;;
1852
1853         *-*-solaris*)
1854              OS=SunOS
1855
1856                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1857                          then
1858                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1859
1860                          fi
1861                  ;;
1862
1863         *-*-darwin*)
1864              OS=Darwin
1865
1866                  ;;
1867
1868         *)       OS=Unknown
1869
1870                  ;;
1871 esac
1872
1873 case $target in
1874         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1875
1876                             ;;
1877 esac
1878
1879 case $target in
1880         i*86-*)           ARCH=x86
1881
1882                           ;;
1883         sparc*-*)         ARCH=Sparc
1884
1885                           ;;
1886         powerpc*-*)       ARCH=PowerPC
1887
1888                           ;;
1889         *)                ARCH=Unknown
1890
1891                           ;;
1892 esac
1893
1894
1895 ac_ext=cc
1896 ac_cpp='$CXXCPP $CPPFLAGS'
1897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1902   do
1903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CXX+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$CXX"; then
1911   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926
1927 fi
1928 fi
1929 CXX=$ac_cv_prog_CXX
1930 if test -n "$CXX"; then
1931   echo "$as_me:$LINENO: result: $CXX" >&5
1932 echo "${ECHO_T}$CXX" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938     test -n "$CXX" && break
1939   done
1940 fi
1941 if test -z "$CXX"; then
1942   ac_ct_CXX=$CXX
1943   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1944 do
1945   # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   if test -n "$ac_ct_CXX"; then
1953   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958   IFS=$as_save_IFS
1959   test -z "$as_dir" && as_dir=.
1960   for ac_exec_ext in '' $ac_executable_extensions; do
1961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962     ac_cv_prog_ac_ct_CXX="$ac_prog"
1963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964     break 2
1965   fi
1966 done
1967 done
1968
1969 fi
1970 fi
1971 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972 if test -n "$ac_ct_CXX"; then
1973   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974 echo "${ECHO_T}$ac_ct_CXX" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980   test -n "$ac_ct_CXX" && break
1981 done
1982 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1983
1984   CXX=$ac_ct_CXX
1985 fi
1986
1987
1988 # Provide some information about the compiler.
1989 echo "$as_me:$LINENO:" \
1990      "checking for C++ compiler version" >&5
1991 ac_compiler=`set X $ac_compile; echo $2`
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993   (eval $ac_compiler --version </dev/null >&5) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998   (eval $ac_compiler -v </dev/null >&5) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003   (eval $ac_compiler -V </dev/null >&5) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }
2007
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 ac_clean_files_save=$ac_clean_files
2025 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026 # Try to create an executable without -o first, disregard a.out.
2027 # It will help us diagnose broken compilers, and finding out an intuition
2028 # of exeext.
2029 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033   (eval $ac_link_default) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); }; then
2037   # Find the output, starting from the most likely.  This scheme is
2038 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2039 # resort.
2040
2041 # Be careful to initialize this variable, since it used to be cached.
2042 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2043 ac_cv_exeext=
2044 # b.out is created by i960 compilers.
2045 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2046 do
2047   test -f "$ac_file" || continue
2048   case $ac_file in
2049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2050         ;;
2051     conftest.$ac_ext )
2052         # This is the source file.
2053         ;;
2054     [ab].out )
2055         # We found the default executable, but exeext='' is most
2056         # certainly right.
2057         break;;
2058     *.* )
2059         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060         # FIXME: I believe we export ac_cv_exeext for Libtool,
2061         # but it would be cool to find out if it's true.  Does anybody
2062         # maintain Libtool? --akim.
2063         export ac_cv_exeext
2064         break;;
2065     * )
2066         break;;
2067   esac
2068 done
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: C++ compiler cannot create executables
2076 See \`config.log' for more details." >&2;}
2077    { (exit 77); exit 77; }; }
2078 fi
2079
2080 ac_exeext=$ac_cv_exeext
2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2082 echo "${ECHO_T}$ac_file" >&6
2083
2084 # Check the compiler produces executables we can run.  If not, either
2085 # the compiler is broken, or we cross compile.
2086 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089 # If not cross compiling, check that we can run a simple program.
2090 if test "$cross_compiling" != yes; then
2091   if { ac_try='./$ac_file'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; }; then
2097     cross_compiling=no
2098   else
2099     if test "$cross_compiling" = maybe; then
2100         cross_compiling=yes
2101     else
2102         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot run C++ compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109     fi
2110   fi
2111 fi
2112 echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6
2114
2115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116 ac_clean_files=$ac_clean_files_save
2117 # Check the compiler produces executables we can run.  If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122 echo "${ECHO_T}$cross_compiling" >&6
2123
2124 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127   (eval $ac_link) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }; then
2131   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2133 # work properly (i.e., refer to `conftest.exe'), while it won't with
2134 # `rm'.
2135 for ac_file in conftest.exe conftest conftest.*; do
2136   test -f "$ac_file" || continue
2137   case $ac_file in
2138     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140           export ac_cv_exeext
2141           break;;
2142     * ) break;;
2143   esac
2144 done
2145 else
2146   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149 See \`config.log' for more details." >&2;}
2150    { (exit 1); exit 1; }; }
2151 fi
2152
2153 rm -f conftest$ac_cv_exeext
2154 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155 echo "${ECHO_T}$ac_cv_exeext" >&6
2156
2157 rm -f conftest.$ac_ext
2158 EXEEXT=$ac_cv_exeext
2159 ac_exeext=$EXEEXT
2160 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162 if test "${ac_cv_objext+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   cat >conftest.$ac_ext <<_ACEOF
2166 #line $LINENO "configure"
2167 /* confdefs.h.  */
2168 _ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h.  */
2172
2173 int
2174 main ()
2175 {
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183   (eval $ac_compile) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; then
2187   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191        break;;
2192   esac
2193 done
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201 See \`config.log' for more details." >&2;}
2202    { (exit 1); exit 1; }; }
2203 fi
2204
2205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2206 fi
2207 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208 echo "${ECHO_T}$ac_cv_objext" >&6
2209 OBJEXT=$ac_cv_objext
2210 ac_objext=$OBJEXT
2211 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   cat >conftest.$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2218 /* confdefs.h.  */
2219 _ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h.  */
2223
2224 int
2225 main ()
2226 {
2227 #ifndef __GNUC__
2228        choke me
2229 #endif
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237   (eval $ac_compile) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); } &&
2241          { ac_try='test -s conftest.$ac_objext'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247   ac_compiler_gnu=yes
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_compiler_gnu=no
2253 fi
2254 rm -f conftest.$ac_objext conftest.$ac_ext
2255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2256
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260 GXX=`test $ac_compiler_gnu = yes && echo yes`
2261 ac_test_CXXFLAGS=${CXXFLAGS+set}
2262 ac_save_CXXFLAGS=$CXXFLAGS
2263 CXXFLAGS="-g"
2264 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266 if test "${ac_cv_prog_cxx_g+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 /* confdefs.h.  */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h.  */
2276
2277 int
2278 main ()
2279 {
2280
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287   (eval $ac_compile) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); } &&
2291          { ac_try='test -s conftest.$ac_objext'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; }; then
2297   ac_cv_prog_cxx_g=yes
2298 else
2299   echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 ac_cv_prog_cxx_g=no
2303 fi
2304 rm -f conftest.$ac_objext conftest.$ac_ext
2305 fi
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308 if test "$ac_test_CXXFLAGS" = set; then
2309   CXXFLAGS=$ac_save_CXXFLAGS
2310 elif test $ac_cv_prog_cxx_g = yes; then
2311   if test "$GXX" = yes; then
2312     CXXFLAGS="-g -O2"
2313   else
2314     CXXFLAGS="-g"
2315   fi
2316 else
2317   if test "$GXX" = yes; then
2318     CXXFLAGS="-O2"
2319   else
2320     CXXFLAGS=
2321   fi
2322 fi
2323 for ac_declaration in \
2324    ''\
2325    '#include <stdlib.h>' \
2326    'extern "C" void std::exit (int) throw (); using std::exit;' \
2327    'extern "C" void std::exit (int); using std::exit;' \
2328    'extern "C" void exit (int) throw ();' \
2329    'extern "C" void exit (int);' \
2330    'void exit (int);'
2331 do
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339 #include <stdlib.h>
2340 $ac_declaration
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   :
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 continue
2367 fi
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2369   cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376 $ac_declaration
2377 int
2378 main ()
2379 {
2380 exit (42);
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387   (eval $ac_compile) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -s conftest.$ac_objext'
2392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393   (eval $ac_try) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   break
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 fi
2403 rm -f conftest.$ac_objext conftest.$ac_ext
2404 done
2405 rm -f conftest*
2406 if test -n "$ac_declaration"; then
2407   echo '#ifdef __cplusplus' >>confdefs.h
2408   echo $ac_declaration      >>confdefs.h
2409   echo '#endif'             >>confdefs.h
2410 fi
2411
2412 ac_ext=c
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 if test -n "$ac_tool_prefix"; then
2424   for ac_prog in gcc
2425   do
2426     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449
2450 fi
2451 fi
2452 CC=$ac_cv_prog_CC
2453 if test -n "$CC"; then
2454   echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6
2456 else
2457   echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2459 fi
2460
2461     test -n "$CC" && break
2462   done
2463 fi
2464 if test -z "$CC"; then
2465   ac_ct_CC=$CC
2466   for ac_prog in gcc
2467 do
2468   # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$ac_ct_CC"; then
2476   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485     ac_cv_prog_ac_ct_CC="$ac_prog"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491
2492 fi
2493 fi
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6
2498 else
2499   echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503   test -n "$ac_ct_CC" && break
2504 done
2505
2506   CC=$ac_ct_CC
2507 fi
2508
2509
2510 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&2;}
2514    { (exit 1); exit 1; }; }
2515
2516 # Provide some information about the compiler.
2517 echo "$as_me:$LINENO:" \
2518      "checking for C compiler version" >&5
2519 ac_compiler=`set X $ac_compile; echo $2`
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521   (eval $ac_compiler --version </dev/null >&5) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526   (eval $ac_compiler -v </dev/null >&5) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531   (eval $ac_compiler -V </dev/null >&5) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }
2535
2536 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552 #ifndef __GNUC__
2553        choke me
2554 #endif
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562   (eval $ac_compile) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -s conftest.$ac_objext'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; }; then
2572   ac_compiler_gnu=yes
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no
2578 fi
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581
2582 fi
2583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585 GCC=`test $ac_compiler_gnu = yes && echo yes`
2586 ac_test_CFLAGS=${CFLAGS+set}
2587 ac_save_CFLAGS=$CFLAGS
2588 CFLAGS="-g"
2589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_cv_prog_cc_g=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 ac_cv_prog_cc_g=no
2628 fi
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634   CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636   if test "$GCC" = yes; then
2637     CFLAGS="-g -O2"
2638   else
2639     CFLAGS="-g"
2640   fi
2641 else
2642   if test "$GCC" = yes; then
2643     CFLAGS="-O2"
2644   else
2645     CFLAGS=
2646   fi
2647 fi
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   ac_cv_prog_cc_stdc=no
2654 ac_save_CC=$CC
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662 #include <stdarg.h>
2663 #include <stdio.h>
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2670      char **p;
2671      int i;
2672 {
2673   return p[i];
2674 }
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2676 {
2677   char *s;
2678   va_list v;
2679   va_start (v,p);
2680   s = g (p, va_arg (v,int));
2681   va_end (v);
2682   return s;
2683 }
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688 int argc;
2689 char **argv;
2690 int
2691 main ()
2692 {
2693 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 # Don't try gcc -ansi; that turns off useful extensions and
2699 # breaks some systems' header files.
2700 # AIX                   -qlanglvl=ansi
2701 # Ultrix and OSF/1      -std1
2702 # HP-UX 10.20 and later -Ae
2703 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2704 # SVR4                  -Xc -D__EXTENSIONS__
2705 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 do
2707   CC="$ac_save_CC $ac_arg"
2708   rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   ac_cv_prog_cc_stdc=$ac_arg
2721 break
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 fi
2727 rm -f conftest.$ac_objext
2728 done
2729 rm -f conftest.$ac_ext conftest.$ac_objext
2730 CC=$ac_save_CC
2731
2732 fi
2733
2734 case "x$ac_cv_prog_cc_stdc" in
2735   x|xno)
2736     echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6 ;;
2738   *)
2739     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741     CC="$CC $ac_cv_prog_cc_stdc" ;;
2742 esac
2743
2744 # Some people use a C++ compiler to compile C.  Since we use `exit',
2745 # in C++ we need to declare it.  In case someone uses the same compiler
2746 # for both compiling C and C++ we need to have the C++ compiler decide
2747 # the declaration of exit, since it's the most demanding environment.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #ifndef __cplusplus
2750   choke me
2751 #endif
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755   (eval $ac_compile) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   for ac_declaration in \
2766    ''\
2767    '#include <stdlib.h>' \
2768    'extern "C" void std::exit (int) throw (); using std::exit;' \
2769    'extern "C" void std::exit (int); using std::exit;' \
2770    'extern "C" void exit (int) throw ();' \
2771    'extern "C" void exit (int);' \
2772    'void exit (int);'
2773 do
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #include <stdlib.h>
2782 $ac_declaration
2783 int
2784 main ()
2785 {
2786 exit (42);
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793   (eval $ac_compile) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   :
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 continue
2809 fi
2810 rm -f conftest.$ac_objext conftest.$ac_ext
2811   cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 $ac_declaration
2819 int
2820 main ()
2821 {
2822 exit (42);
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } &&
2833          { ac_try='test -s conftest.$ac_objext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   break
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 fi
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2846 done
2847 rm -f conftest*
2848 if test -n "$ac_declaration"; then
2849   echo '#ifdef __cplusplus' >>confdefs.h
2850   echo $ac_declaration      >>confdefs.h
2851   echo '#endif'             >>confdefs.h
2852 fi
2853
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 fi
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873 # On Suns, sometimes $CPP names a directory.
2874 if test -n "$CPP" && test -d "$CPP"; then
2875   CPP=
2876 fi
2877 if test -z "$CPP"; then
2878   if test "${ac_cv_prog_CPP+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881       # Double quotes because CPP needs to be expanded
2882     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883     do
2884       ac_preproc_ok=false
2885 for ac_c_preproc_warn_flag in '' yes
2886 do
2887   # Use a header file that comes with gcc, so configuring glibc
2888   # with a fresh cross-compiler works.
2889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890   # <limits.h> exists even on freestanding compilers.
2891   # On the NeXT, cc -E runs the code through the compiler's parser,
2892   # not just through cpp. "Syntax error" is here to catch this case.
2893   cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 #ifdef __STDC__
2901 # include <limits.h>
2902 #else
2903 # include <assert.h>
2904 #endif
2905                      Syntax error
2906 _ACEOF
2907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } >/dev/null; then
2915   if test -s conftest.err; then
2916     ac_cpp_err=$ac_c_preproc_warn_flag
2917   else
2918     ac_cpp_err=
2919   fi
2920 else
2921   ac_cpp_err=yes
2922 fi
2923 if test -z "$ac_cpp_err"; then
2924   :
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929   # Broken: fails on valid input.
2930 continue
2931 fi
2932 rm -f conftest.err conftest.$ac_ext
2933
2934   # OK, works on sane cases.  Now check whether non-existent headers
2935   # can be detected and how.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943 #include <ac_nonexistent.h>
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955   else
2956     ac_cpp_err=
2957   fi
2958 else
2959   ac_cpp_err=yes
2960 fi
2961 if test -z "$ac_cpp_err"; then
2962   # Broken: success on invalid input.
2963 continue
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Passes both tests.
2969 ac_preproc_ok=:
2970 break
2971 fi
2972 rm -f conftest.err conftest.$ac_ext
2973
2974 done
2975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976 rm -f conftest.err conftest.$ac_ext
2977 if $ac_preproc_ok; then
2978   break
2979 fi
2980
2981     done
2982     ac_cv_prog_CPP=$CPP
2983
2984 fi
2985   CPP=$ac_cv_prog_CPP
2986 else
2987   ac_cv_prog_CPP=$CPP
2988 fi
2989 echo "$as_me:$LINENO: result: $CPP" >&5
2990 echo "${ECHO_T}$CPP" >&6
2991 ac_preproc_ok=false
2992 for ac_c_preproc_warn_flag in '' yes
2993 do
2994   # Use a header file that comes with gcc, so configuring glibc
2995   # with a fresh cross-compiler works.
2996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997   # <limits.h> exists even on freestanding compilers.
2998   # On the NeXT, cc -E runs the code through the compiler's parser,
2999   # not just through cpp. "Syntax error" is here to catch this case.
3000   cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 #ifdef __STDC__
3008 # include <limits.h>
3009 #else
3010 # include <assert.h>
3011 #endif
3012                      Syntax error
3013 _ACEOF
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } >/dev/null; then
3022   if test -s conftest.err; then
3023     ac_cpp_err=$ac_c_preproc_warn_flag
3024   else
3025     ac_cpp_err=
3026   fi
3027 else
3028   ac_cpp_err=yes
3029 fi
3030 if test -z "$ac_cpp_err"; then
3031   :
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036   # Broken: fails on valid input.
3037 continue
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041   # OK, works on sane cases.  Now check whether non-existent headers
3042   # can be detected and how.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050 #include <ac_nonexistent.h>
3051 _ACEOF
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } >/dev/null; then
3060   if test -s conftest.err; then
3061     ac_cpp_err=$ac_c_preproc_warn_flag
3062   else
3063     ac_cpp_err=
3064   fi
3065 else
3066   ac_cpp_err=yes
3067 fi
3068 if test -z "$ac_cpp_err"; then
3069   # Broken: success on invalid input.
3070 continue
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Passes both tests.
3076 ac_preproc_ok=:
3077 break
3078 fi
3079 rm -f conftest.err conftest.$ac_ext
3080
3081 done
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3085   :
3086 else
3087   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091    { (exit 1); exit 1; }; }
3092 fi
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101 if test "$GCC" != "yes"
3102 then
3103         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104 echo "$as_me: error: gcc required but not found" >&2;}
3105    { (exit 1); exit 1; }; }
3106 fi
3107
3108 if test "$GXX" != "yes"
3109 then
3110         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111 echo "$as_me: error: g++ required but not found" >&2;}
3112    { (exit 1); exit 1; }; }
3113 fi
3114
3115 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116 if test "$gccmajor" -lt "3"
3117 then
3118         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3119 echo "$as_me: error: gcc 3.x required" >&2;}
3120    { (exit 1); exit 1; }; }
3121 fi
3122
3123  echo "$as_me:$LINENO: checking for GNU make" >&5
3124 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125 if test "${_cv_gnu_make_command+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128   _cv_gnu_make_command='' ;
3129                 for a in "$MAKE" make gmake gnumake ; do
3130                         if test -z "$a" ; then continue ; fi ;
3131                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3132                                 _cv_gnu_make_command=$a ;
3133                                 break;
3134                         fi
3135                 done ;
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140         if test  "x$_cv_gnu_make_command" != "x"  ; then
3141                 ifGNUmake='' ;
3142         else
3143                 ifGNUmake='#' ;
3144                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145 echo "${ECHO_T}\"Not found\"" >&6;
3146         fi
3147
3148
3149 if test -z "$_cv_gnu_make_command"
3150 then
3151         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152 echo "$as_me: error: GNU Make required but not found" >&2;}
3153    { (exit 1); exit 1; }; }
3154 fi
3155
3156
3157 echo "$as_me:$LINENO: checking " >&5
3158 echo $ECHO_N "checking ... $ECHO_C" >&6
3159 if test "${ac_cv_has_flex+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   for ac_prog in flex lex
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_LEX+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   if test -n "$LEX"; then
3172   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179   for ac_exec_ext in '' $ac_executable_extensions; do
3180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_LEX="$ac_prog"
3182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186 done
3187
3188 fi
3189 fi
3190 LEX=$ac_cv_prog_LEX
3191 if test -n "$LEX"; then
3192   echo "$as_me:$LINENO: result: $LEX" >&5
3193 echo "${ECHO_T}$LEX" >&6
3194 else
3195   echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199   test -n "$LEX" && break
3200 done
3201 test -n "$LEX" || LEX=":"
3202
3203 if test -z "$LEXLIB"
3204 then
3205   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   ac_check_lib_save_LIBS=$LIBS
3211 LIBS="-lfl  $LIBS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 /* Override any gcc2 internal prototype to avoid an error.  */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225    builtin and then its argument prototype would still apply.  */
3226 char yywrap ();
3227 int
3228 main ()
3229 {
3230 yywrap ();
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237   (eval $ac_link) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -s conftest$ac_exeext'
3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243   (eval $ac_try) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; }; then
3247   ac_cv_lib_fl_yywrap=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 ac_cv_lib_fl_yywrap=no
3253 fi
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259 if test $ac_cv_lib_fl_yywrap = yes; then
3260   LEXLIB="-lfl"
3261 else
3262   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   ac_check_lib_save_LIBS=$LIBS
3268 LIBS="-ll  $LIBS"
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 /* Override any gcc2 internal prototype to avoid an error.  */
3278 #ifdef __cplusplus
3279 extern "C"
3280 #endif
3281 /* We use char because int might match the return type of a gcc2
3282    builtin and then its argument prototype would still apply.  */
3283 char yywrap ();
3284 int
3285 main ()
3286 {
3287 yywrap ();
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294   (eval $ac_link) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -s conftest$ac_exeext'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   ac_cv_lib_l_yywrap=yes
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 ac_cv_lib_l_yywrap=no
3310 fi
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3317   LEXLIB="-ll"
3318 fi
3319
3320 fi
3321
3322 fi
3323
3324 if test "x$LEX" != "x:"; then
3325   echo "$as_me:$LINENO: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   # The minimal lex program is just a single line: %%.  But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 cat >conftest.l <<_ACEOF
3333 %%
3334 %%
3335 _ACEOF
3336 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337   (eval $LEX conftest.l) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }
3341 if test -f lex.yy.c; then
3342   ac_cv_prog_lex_root=lex.yy
3343 elif test -f lexyy.c; then
3344   ac_cv_prog_lex_root=lexyy
3345 else
3346   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348    { (exit 1); exit 1; }; }
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353 rm -f conftest.l
3354 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355
3356 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   # POSIX says lex can declare yytext either as a pointer or an array; the
3362 # default is implementation-dependent. Figure out which it is, since
3363 # not all implementations provide the %pointer and %array declarations.
3364 ac_cv_prog_lex_yytext_pointer=no
3365 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366 ac_save_LIBS=$LIBS
3367 LIBS="$LIBS $LEXLIB"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 `cat $LEX_OUTPUT_ROOT.c`
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373   (eval $ac_link) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_prog_lex_yytext_pointer=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 fi
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 LIBS=$ac_save_LIBS
3391 rm -f "${LEX_OUTPUT_ROOT}.c"
3392
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397
3398 cat >>confdefs.h <<\_ACEOF
3399 #define YYTEXT_POINTER 1
3400 _ACEOF
3401
3402 fi
3403
3404 fi
3405
3406 fi
3407 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408 echo "${ECHO_T}$ac_cv_has_flex" >&6
3409 if test "$LEX" != "flex"; then
3410   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411 echo "$as_me: error: flex not found but required" >&2;}
3412    { (exit 1); exit 1; }; }
3413 fi
3414
3415 echo "$as_me:$LINENO: checking " >&5
3416 echo $ECHO_N "checking ... $ECHO_C" >&6
3417 if test "${ac_cv_has_bison+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   for ac_prog in 'bison -y' byacc
3421 do
3422   # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_YACC+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -n "$YACC"; then
3430   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437   for ac_exec_ext in '' $ac_executable_extensions; do
3438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_prog_YACC="$ac_prog"
3440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444 done
3445
3446 fi
3447 fi
3448 YACC=$ac_cv_prog_YACC
3449 if test -n "$YACC"; then
3450   echo "$as_me:$LINENO: result: $YACC" >&5
3451 echo "${ECHO_T}$YACC" >&6
3452 else
3453   echo "$as_me:$LINENO: result: no" >&5
3454 echo "${ECHO_T}no" >&6
3455 fi
3456
3457   test -n "$YACC" && break
3458 done
3459 test -n "$YACC" || YACC="yacc"
3460
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464 echo "${ECHO_T}$ac_cv_has_bison" >&6
3465 if test "$YACC" != "bison -y"; then
3466   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467 echo "$as_me: error: bison not found but required" >&2;}
3468    { (exit 1); exit 1; }; }
3469 else
3470   YACC=bison
3471
3472 fi
3473
3474
3475 # Check whether --enable-shared or --disable-shared was given.
3476 if test "${enable_shared+set}" = set; then
3477   enableval="$enable_shared"
3478   p=${PACKAGE-default}
3479     case $enableval in
3480     yes) enable_shared=yes ;;
3481     no) enable_shared=no ;;
3482     *)
3483       enable_shared=no
3484       # Look at the argument we got.  We use all the common list separators.
3485       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3486       for pkg in $enableval; do
3487         IFS="$lt_save_ifs"
3488         if test "X$pkg" = "X$p"; then
3489           enable_shared=yes
3490         fi
3491       done
3492       IFS="$lt_save_ifs"
3493       ;;
3494     esac
3495 else
3496   enable_shared=yes
3497 fi;
3498
3499 # Check whether --enable-static or --disable-static was given.
3500 if test "${enable_static+set}" = set; then
3501   enableval="$enable_static"
3502   p=${PACKAGE-default}
3503     case $enableval in
3504     yes) enable_static=yes ;;
3505     no) enable_static=no ;;
3506     *)
3507      enable_static=no
3508       # Look at the argument we got.  We use all the common list separators.
3509       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3510       for pkg in $enableval; do
3511         IFS="$lt_save_ifs"
3512         if test "X$pkg" = "X$p"; then
3513           enable_static=yes
3514         fi
3515       done
3516       IFS="$lt_save_ifs"
3517       ;;
3518     esac
3519 else
3520   enable_static=yes
3521 fi;
3522
3523 # Check whether --enable-fast-install or --disable-fast-install was given.
3524 if test "${enable_fast_install+set}" = set; then
3525   enableval="$enable_fast_install"
3526   p=${PACKAGE-default}
3527     case $enableval in
3528     yes) enable_fast_install=yes ;;
3529     no) enable_fast_install=no ;;
3530     *)
3531       enable_fast_install=no
3532       # Look at the argument we got.  We use all the common list separators.
3533       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3534       for pkg in $enableval; do
3535         IFS="$lt_save_ifs"
3536         if test "X$pkg" = "X$p"; then
3537           enable_fast_install=yes
3538         fi
3539       done
3540       IFS="$lt_save_ifs"
3541       ;;
3542     esac
3543 else
3544   enable_fast_install=yes
3545 fi;
3546
3547 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3548 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3549 if test "${lt_cv_path_SED+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   # Loop through the user's path and test for sed and gsed.
3553 # Then use that list of sed's as ones to test for truncation.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559   for lt_ac_prog in sed gsed; do
3560     for ac_exec_ext in '' $ac_executable_extensions; do
3561       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3562         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3563       fi
3564     done
3565   done
3566 done
3567 lt_ac_max=0
3568 lt_ac_count=0
3569 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3570 # along with /bin/sed that truncates output.
3571 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3572   test ! -f $lt_ac_sed && break
3573   cat /dev/null > conftest.in
3574   lt_ac_count=0
3575   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3576   # Check for GNU sed and select it if it is found.
3577   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3578     lt_cv_path_SED=$lt_ac_sed
3579     break
3580   fi
3581   while true; do
3582     cat conftest.in conftest.in >conftest.tmp
3583     mv conftest.tmp conftest.in
3584     cp conftest.in conftest.nl
3585     echo >>conftest.nl
3586     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3587     cmp -s conftest.out conftest.nl || break
3588     # 10000 chars as input seems more than enough
3589     test $lt_ac_count -gt 10 && break
3590     lt_ac_count=`expr $lt_ac_count + 1`
3591     if test $lt_ac_count -gt $lt_ac_max; then
3592       lt_ac_max=$lt_ac_count
3593       lt_cv_path_SED=$lt_ac_sed
3594     fi
3595   done
3596 done
3597 SED=$lt_cv_path_SED
3598
3599 fi
3600
3601 echo "$as_me:$LINENO: result: $SED" >&5
3602 echo "${ECHO_T}$SED" >&6
3603
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610     then ac_cv_prog_egrep='grep -E'
3611     else ac_cv_prog_egrep='egrep'
3612     fi
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616  EGREP=$ac_cv_prog_egrep
3617
3618
3619
3620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then
3622   withval="$with_gnu_ld"
3623   test "$withval" = no || with_gnu_ld=yes
3624 else
3625   with_gnu_ld=no
3626 fi;
3627 ac_prog=ld
3628 if test "$GCC" = yes; then
3629   # Check if gcc -print-prog-name=ld gives a path.
3630   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3632   case $host in
3633   *-*-mingw*)
3634     # gcc leaves a trailing carriage return which upsets mingw
3635     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3636   *)
3637     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638   esac
3639   case $ac_prog in
3640     # Accept absolute paths.
3641     [\\/]* | ?:[\\/]*)
3642       re_direlt='/[^/][^/]*/\.\./'
3643       # Canonicalize the path of ld
3644       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3645       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3647       done
3648       test -z "$LD" && LD="$ac_prog"
3649       ;;
3650   "")
3651     # If it fails, then pretend we aren't using GCC.
3652     ac_prog=ld
3653     ;;
3654   *)
3655     # If it is relative, then search for the first ld in PATH.
3656     with_gnu_ld=unknown
3657     ;;
3658   esac
3659 elif test "$with_gnu_ld" = yes; then
3660   echo "$as_me:$LINENO: checking for GNU ld" >&5
3661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662 else
3663   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3665 fi
3666 if test "${lt_cv_path_LD+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   if test -z "$LD"; then
3670   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671   for ac_dir in $PATH; do
3672     IFS="$lt_save_ifs"
3673     test -z "$ac_dir" && ac_dir=.
3674     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675       lt_cv_path_LD="$ac_dir/$ac_prog"
3676       # Check to see if the program is GNU ld.  I'd rather use --version,
3677       # but apparently some GNU ld's only accept -v.
3678       # Break only if it was the GNU/non-GNU ld that we prefer.
3679       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680       *GNU* | *'with BFD'*)
3681         test "$with_gnu_ld" != no && break
3682         ;;
3683       *)
3684         test "$with_gnu_ld" != yes && break
3685         ;;
3686       esac
3687     fi
3688   done
3689   IFS="$lt_save_ifs"
3690 else
3691   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3692 fi
3693 fi
3694
3695 LD="$lt_cv_path_LD"
3696 if test -n "$LD"; then
3697   echo "$as_me:$LINENO: result: $LD" >&5
3698 echo "${ECHO_T}$LD" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705    { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712 case `"$LD" -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714   lt_cv_prog_gnu_ld=yes
3715   ;;
3716 *)
3717   lt_cv_prog_gnu_ld=no
3718   ;;
3719 esac
3720 fi
3721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3724
3725
3726 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3727 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3728 if test "${lt_cv_ld_reload_flag+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   lt_cv_ld_reload_flag='-r'
3732 fi
3733 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3734 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3735 reload_flag=$lt_cv_ld_reload_flag
3736 case $reload_flag in
3737 "" | " "*) ;;
3738 *) reload_flag=" $reload_flag" ;;
3739 esac
3740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3741
3742 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3743 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3744 if test "${lt_cv_path_NM+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if test -n "$NM"; then
3748   # Let the user override the test.
3749   lt_cv_path_NM="$NM"
3750 else
3751   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3752   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3753     IFS="$lt_save_ifs"
3754     test -z "$ac_dir" && ac_dir=.
3755     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3756     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3757       # Check to see if the nm accepts a BSD-compat flag.
3758       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3759       #   nm: unknown option "B" ignored
3760       # Tru64's nm complains that /dev/null is an invalid object file
3761       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3762       */dev/null* | *'Invalid file or object type'*)
3763         lt_cv_path_NM="$tmp_nm -B"
3764         break
3765         ;;
3766       *)
3767         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3768         */dev/null*)
3769           lt_cv_path_NM="$tmp_nm -p"
3770           break
3771           ;;
3772         *)
3773           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3774           continue # so that we can try to find one that supports BSD flags
3775           ;;
3776         esac
3777       esac
3778     fi
3779   done
3780   IFS="$lt_save_ifs"
3781   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3782 fi
3783 fi
3784 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3785 echo "${ECHO_T}$lt_cv_path_NM" >&6
3786 NM="$lt_cv_path_NM"
3787
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790 LN_S=$as_ln_s
3791 if test "$LN_S" = "ln -s"; then
3792   echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3797 fi
3798
3799 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3800 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3801 if test "${lt_cv_deplibs_check_method+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   lt_cv_file_magic_cmd='$MAGIC_CMD'
3805 lt_cv_file_magic_test_file=
3806 lt_cv_deplibs_check_method='unknown'
3807 # Need to set the preceding variable on all platforms that support
3808 # interlibrary dependencies.
3809 # 'none' -- dependencies not supported.
3810 # `unknown' -- same as none, but documents that we really don't know.
3811 # 'pass_all' -- all dependencies passed with no checks.
3812 # 'test_compile' -- check by making test program.
3813 # 'file_magic [[regex]]' -- check by looking for files in library path
3814 # which responds to the $file_magic_cmd with a given extended regex.
3815 # If you have `file' or equivalent on your system and you're not sure
3816 # whether `pass_all' will *always* work, you probably want this one.
3817
3818 case $host_os in
3819 aix4* | aix5*)
3820   lt_cv_deplibs_check_method=pass_all
3821   ;;
3822
3823 beos*)
3824   lt_cv_deplibs_check_method=pass_all
3825   ;;
3826
3827 bsdi4*)
3828   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3829   lt_cv_file_magic_cmd='/usr/bin/file -L'
3830   lt_cv_file_magic_test_file=/shlib/libc.so
3831   ;;
3832
3833 cygwin* | mingw* | pw32*)
3834   # win32_libid is a shell function defined in ltmain.sh
3835   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3836   lt_cv_file_magic_cmd='win32_libid'
3837   ;;
3838
3839 darwin* | rhapsody*)
3840   # this will be overwritten by pass_all, but leave it in just in case
3841   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3842   lt_cv_file_magic_cmd='/usr/bin/file -L'
3843   case "$host_os" in
3844   rhapsody* | darwin1.[012])
3845     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3846     ;;
3847   *) # Darwin 1.3 on
3848     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3849     ;;
3850   esac
3851   lt_cv_deplibs_check_method=pass_all
3852   ;;
3853
3854 freebsd*)
3855   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3856     case $host_cpu in
3857     i*86 )
3858       # Not sure whether the presence of OpenBSD here was a mistake.
3859       # Let's accept both of them until this is cleared up.
3860       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3861       lt_cv_file_magic_cmd=/usr/bin/file
3862       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3863       ;;
3864     esac
3865   else
3866     lt_cv_deplibs_check_method=pass_all
3867   fi
3868   ;;
3869
3870 gnu*)
3871   lt_cv_deplibs_check_method=pass_all
3872   ;;
3873
3874 hpux10.20* | hpux11*)
3875   lt_cv_file_magic_cmd=/usr/bin/file
3876   case "$host_cpu" in
3877   ia64*)
3878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3879     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3880     ;;
3881   hppa*64*)
3882     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]'
3883     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3884     ;;
3885   *)
3886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3887     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3888     ;;
3889   esac
3890   ;;
3891
3892 irix5* | irix6* | nonstopux*)
3893   case $host_os in
3894   irix5* | nonstopux*)
3895     # this will be overridden with pass_all, but let us keep it just in case
3896     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3897     ;;
3898   *)
3899     case $LD in
3900     *-32|*"-32 ") libmagic=32-bit;;
3901     *-n32|*"-n32 ") libmagic=N32;;
3902     *-64|*"-64 ") libmagic=64-bit;;
3903     *) libmagic=never-match;;
3904     esac
3905     # this will be overridden with pass_all, but let us keep it just in case
3906     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3907     ;;
3908   esac
3909   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3910   lt_cv_deplibs_check_method=pass_all
3911   ;;
3912
3913 # This must be Linux ELF.
3914 linux*)
3915   case $host_cpu in
3916   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3917     lt_cv_deplibs_check_method=pass_all ;;
3918   *)
3919     # glibc up to 2.1.1 does not perform some relocations on ARM
3920     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3921   esac
3922   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3923   ;;
3924
3925 netbsd*)
3926   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3927     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3928   else
3929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3930   fi
3931   ;;
3932
3933 newos6*)
3934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3935   lt_cv_file_magic_cmd=/usr/bin/file
3936   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3937   ;;
3938
3939 nto-qnx)
3940   lt_cv_deplibs_check_method=unknown
3941   ;;
3942
3943 openbsd*)
3944   lt_cv_file_magic_cmd=/usr/bin/file
3945   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3946   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3947     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3948   else
3949     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3950   fi
3951   ;;
3952
3953 osf3* | osf4* | osf5*)
3954   # this will be overridden with pass_all, but let us keep it just in case
3955   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3956   lt_cv_file_magic_test_file=/shlib/libc.so
3957   lt_cv_deplibs_check_method=pass_all
3958   ;;
3959
3960 sco3.2v5*)
3961   lt_cv_deplibs_check_method=pass_all
3962   ;;
3963
3964 solaris*)
3965   lt_cv_deplibs_check_method=pass_all
3966   lt_cv_file_magic_test_file=/lib/libc.so
3967   ;;
3968
3969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3970   case $host_vendor in
3971   motorola)
3972     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]'
3973     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3974     ;;
3975   ncr)
3976     lt_cv_deplibs_check_method=pass_all
3977     ;;
3978   sequent)
3979     lt_cv_file_magic_cmd='/bin/file'
3980     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3981     ;;
3982   sni)
3983     lt_cv_file_magic_cmd='/bin/file'
3984     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3985     lt_cv_file_magic_test_file=/lib/libc.so
3986     ;;
3987   siemens)
3988     lt_cv_deplibs_check_method=pass_all
3989     ;;
3990   esac
3991   ;;
3992
3993 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3994   lt_cv_deplibs_check_method=pass_all
3995   ;;
3996 esac
3997
3998 fi
3999 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4000 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4001 file_magic_cmd=$lt_cv_file_magic_cmd
4002 deplibs_check_method=$lt_cv_deplibs_check_method
4003 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4004
4005
4006
4007
4008 # If no C compiler was specified, use CC.
4009 LTCC=${LTCC-"$CC"}
4010
4011 # Allow CC to be a program name with arguments.
4012 compiler=$CC
4013
4014 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4015 if test "${enable_libtool_lock+set}" = set; then
4016   enableval="$enable_libtool_lock"
4017
4018 fi;
4019 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4020
4021 # Some flags need to be propagated to the compiler or linker for good
4022 # libtool support.
4023 case $host in
4024 ia64-*-hpux*)
4025   # Find out which ABI we are using.
4026   echo 'int i;' > conftest.$ac_ext
4027   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028   (eval $ac_compile) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; then
4032     case `/usr/bin/file conftest.$ac_objext` in
4033     *ELF-32*)
4034       HPUX_IA64_MODE="32"
4035       ;;
4036     *ELF-64*)
4037       HPUX_IA64_MODE="64"
4038       ;;
4039     esac
4040   fi
4041   rm -rf conftest*
4042   ;;
4043 *-*-irix6*)
4044   # Find out which ABI we are using.
4045   echo '#line 4045 "configure"' > conftest.$ac_ext
4046   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047   (eval $ac_compile) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; then
4051    if test "$lt_cv_prog_gnu_ld" = yes; then
4052     case `/usr/bin/file conftest.$ac_objext` in
4053     *32-bit*)
4054       LD="${LD-ld} -melf32bsmip"
4055       ;;
4056     *N32*)
4057       LD="${LD-ld} -melf32bmipn32"
4058       ;;
4059     *64-bit*)
4060       LD="${LD-ld} -melf64bmip"
4061       ;;
4062     esac
4063    else
4064     case `/usr/bin/file conftest.$ac_objext` in
4065     *32-bit*)
4066       LD="${LD-ld} -32"
4067       ;;
4068     *N32*)
4069       LD="${LD-ld} -n32"
4070       ;;
4071     *64-bit*)
4072       LD="${LD-ld} -64"
4073       ;;
4074     esac
4075    fi
4076   fi
4077   rm -rf conftest*
4078   ;;
4079
4080 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4081   # Find out which ABI we are using.
4082   echo 'int i;' > conftest.$ac_ext
4083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084   (eval $ac_compile) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; then
4088     case "`/usr/bin/file conftest.o`" in
4089     *32-bit*)
4090       case $host in
4091         x86_64-*linux*)
4092           LD="${LD-ld} -m elf_i386"
4093           ;;
4094         ppc64-*linux*)
4095           LD="${LD-ld} -m elf32ppclinux"
4096           ;;
4097         s390x-*linux*)
4098           LD="${LD-ld} -m elf_s390"
4099           ;;
4100         sparc64-*linux*)
4101           LD="${LD-ld} -m elf32_sparc"
4102           ;;
4103       esac
4104       ;;
4105     *64-bit*)
4106       case $host in
4107         x86_64-*linux*)
4108           LD="${LD-ld} -m elf_x86_64"
4109           ;;
4110         ppc*-*linux*|powerpc*-*linux*)
4111           LD="${LD-ld} -m elf64ppc"
4112           ;;
4113         s390*-*linux*)
4114           LD="${LD-ld} -m elf64_s390"
4115           ;;
4116         sparc*-*linux*)
4117           LD="${LD-ld} -m elf64_sparc"
4118           ;;
4119       esac
4120       ;;
4121     esac
4122   fi
4123   rm -rf conftest*
4124   ;;
4125
4126 *-*-sco3.2v5*)
4127   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4128   SAVE_CFLAGS="$CFLAGS"
4129   CFLAGS="$CFLAGS -belf"
4130   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4131 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4132 if test "${lt_cv_cc_needs_belf+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141      cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148
4149 int
4150 main ()
4151 {
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159   (eval $ac_link) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } &&
4163          { ac_try='test -s conftest$ac_exeext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   lt_cv_cc_needs_belf=yes
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 lt_cv_cc_needs_belf=no
4175 fi
4176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4177      ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183 fi
4184 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4185 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4186   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4187     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4188     CFLAGS="$SAVE_CFLAGS"
4189   fi
4190   ;;
4191
4192 esac
4193
4194 need_locks="$enable_libtool_lock"
4195
4196
4197
4198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4200 if test "${ac_cv_header_stdc+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <stdlib.h>
4211 #include <stdarg.h>
4212 #include <string.h>
4213 #include <float.h>
4214
4215 int
4216 main ()
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } &&
4229          { ac_try='test -s conftest.$ac_objext'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   ac_cv_header_stdc=yes
4236 else
4237   echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4243
4244 if test $ac_cv_header_stdc = yes; then
4245   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246   cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 #include <string.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257   $EGREP "memchr" >/dev/null 2>&1; then
4258   :
4259 else
4260   ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268   cat >conftest.$ac_ext <<_ACEOF
4269 #line $LINENO "configure"
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 #include <stdlib.h>
4276
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279   $EGREP "free" >/dev/null 2>&1; then
4280   :
4281 else
4282   ac_cv_header_stdc=no
4283 fi
4284 rm -f conftest*
4285
4286 fi
4287
4288 if test $ac_cv_header_stdc = yes; then
4289   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290   if test "$cross_compiling" = yes; then
4291   :
4292 else
4293   cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 #include <ctype.h>
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4304 #else
4305 # define ISLOWER(c) \
4306                    (('a' <= (c) && (c) <= 'i') \
4307                      || ('j' <= (c) && (c) <= 'r') \
4308                      || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310 #endif
4311
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4313 int
4314 main ()
4315 {
4316   int i;
4317   for (i = 0; i < 256; i++)
4318     if (XOR (islower (i), ISLOWER (i))
4319         || toupper (i) != TOUPPER (i))
4320       exit(2);
4321   exit (0);
4322 }
4323 _ACEOF
4324 rm -f conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326   (eval $ac_link) 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   :
4336 else
4337   echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ( exit $ac_status )
4342 ac_cv_header_stdc=no
4343 fi
4344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 fi
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4350 if test $ac_cv_header_stdc = yes; then
4351
4352 cat >>confdefs.h <<\_ACEOF
4353 #define STDC_HEADERS 1
4354 _ACEOF
4355
4356 fi
4357
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369                   inttypes.h stdint.h unistd.h
4370 do
4371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 $ac_includes_default
4385
4386 #include <$ac_header>
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390   (eval $ac_compile) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -s conftest.$ac_objext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   eval "$as_ac_Header=yes"
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 eval "$as_ac_Header=no"
4406 fi
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417
4418 done
4419
4420
4421
4422 for ac_header in dlfcn.h
4423 do
4424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426   echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 fi
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 else
4434   # Is the header compilable?
4435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 $ac_includes_default
4445 #include <$ac_header>
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -s conftest.$ac_objext'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459   ac_header_compiler=yes
4460 else
4461   echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 ac_header_compiler=no
4465 fi
4466 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4468 echo "${ECHO_T}$ac_header_compiler" >&6
4469
4470 # Is the header present?
4471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 #include <$ac_header>
4481 _ACEOF
4482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } >/dev/null; then
4490   if test -s conftest.err; then
4491     ac_cpp_err=$ac_c_preproc_warn_flag
4492   else
4493     ac_cpp_err=
4494   fi
4495 else
4496   ac_cpp_err=yes
4497 fi
4498 if test -z "$ac_cpp_err"; then
4499   ac_header_preproc=yes
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504   ac_header_preproc=no
4505 fi
4506 rm -f conftest.err conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4508 echo "${ECHO_T}$ac_header_preproc" >&6
4509
4510 # So?  What about this header?
4511 case $ac_header_compiler:$ac_header_preproc in
4512   yes:no )
4513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4517     (
4518       cat <<\_ASBOX
4519 ## ------------------------------------ ##
4520 ## Report this to bug-autoconf@gnu.org. ##
4521 ## ------------------------------------ ##
4522 _ASBOX
4523     ) |
4524       sed "s/^/$as_me: WARNING:     /" >&2
4525     ;;
4526   no:yes )
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4533     (
4534       cat <<\_ASBOX
4535 ## ------------------------------------ ##
4536 ## Report this to bug-autoconf@gnu.org. ##
4537 ## ------------------------------------ ##
4538 _ASBOX
4539     ) |
4540       sed "s/^/$as_me: WARNING:     /" >&2
4541     ;;
4542 esac
4543 echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   eval "$as_ac_Header=$ac_header_preproc"
4549 fi
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552
4553 fi
4554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4555   cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4557 _ACEOF
4558
4559 fi
4560
4561 done
4562
4563 ac_ext=cc
4564 ac_cpp='$CXXCPP $CPPFLAGS'
4565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4569 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4570 if test -z "$CXXCPP"; then
4571   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574       # Double quotes because CXXCPP needs to be expanded
4575     for CXXCPP in "$CXX -E" "/lib/cpp"
4576     do
4577       ac_preproc_ok=false
4578 for ac_cxx_preproc_warn_flag in '' yes
4579 do
4580   # Use a header file that comes with gcc, so configuring glibc
4581   # with a fresh cross-compiler works.
4582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583   # <limits.h> exists even on freestanding compilers.
4584   # On the NeXT, cc -E runs the code through the compiler's parser,
4585   # not just through cpp. "Syntax error" is here to catch this case.
4586   cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 #ifdef __STDC__
4594 # include <limits.h>
4595 #else
4596 # include <assert.h>
4597 #endif
4598                      Syntax error
4599 _ACEOF
4600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } >/dev/null; then
4608   if test -s conftest.err; then
4609     ac_cpp_err=$ac_cxx_preproc_warn_flag
4610   else
4611     ac_cpp_err=
4612   fi
4613 else
4614   ac_cpp_err=yes
4615 fi
4616 if test -z "$ac_cpp_err"; then
4617   :
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622   # Broken: fails on valid input.
4623 continue
4624 fi
4625 rm -f conftest.err conftest.$ac_ext
4626
4627   # OK, works on sane cases.  Now check whether non-existent headers
4628   # can be detected and how.
4629   cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #include <ac_nonexistent.h>
4637 _ACEOF
4638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } >/dev/null; then
4646   if test -s conftest.err; then
4647     ac_cpp_err=$ac_cxx_preproc_warn_flag
4648   else
4649     ac_cpp_err=
4650   fi
4651 else
4652   ac_cpp_err=yes
4653 fi
4654 if test -z "$ac_cpp_err"; then
4655   # Broken: success on invalid input.
4656 continue
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661   # Passes both tests.
4662 ac_preproc_ok=:
4663 break
4664 fi
4665 rm -f conftest.err conftest.$ac_ext
4666
4667 done
4668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4669 rm -f conftest.err conftest.$ac_ext
4670 if $ac_preproc_ok; then
4671   break
4672 fi
4673
4674     done
4675     ac_cv_prog_CXXCPP=$CXXCPP
4676
4677 fi
4678   CXXCPP=$ac_cv_prog_CXXCPP
4679 else
4680   ac_cv_prog_CXXCPP=$CXXCPP
4681 fi
4682 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4683 echo "${ECHO_T}$CXXCPP" >&6
4684 ac_preproc_ok=false
4685 for ac_cxx_preproc_warn_flag in '' yes
4686 do
4687   # Use a header file that comes with gcc, so configuring glibc
4688   # with a fresh cross-compiler works.
4689   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4690   # <limits.h> exists even on freestanding compilers.
4691   # On the NeXT, cc -E runs the code through the compiler's parser,
4692   # not just through cpp. "Syntax error" is here to catch this case.
4693   cat >conftest.$ac_ext <<_ACEOF
4694 #line $LINENO "configure"
4695 /* confdefs.h.  */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h.  */
4700 #ifdef __STDC__
4701 # include <limits.h>
4702 #else
4703 # include <assert.h>
4704 #endif
4705                      Syntax error
4706 _ACEOF
4707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } >/dev/null; then
4715   if test -s conftest.err; then
4716     ac_cpp_err=$ac_cxx_preproc_warn_flag
4717   else
4718     ac_cpp_err=
4719   fi
4720 else
4721   ac_cpp_err=yes
4722 fi
4723 if test -z "$ac_cpp_err"; then
4724   :
4725 else
4726   echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729   # Broken: fails on valid input.
4730 continue
4731 fi
4732 rm -f conftest.err conftest.$ac_ext
4733
4734   # OK, works on sane cases.  Now check whether non-existent headers
4735   # can be detected and how.
4736   cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #include <ac_nonexistent.h>
4744 _ACEOF
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } >/dev/null; then
4753   if test -s conftest.err; then
4754     ac_cpp_err=$ac_cxx_preproc_warn_flag
4755   else
4756     ac_cpp_err=
4757   fi
4758 else
4759   ac_cpp_err=yes
4760 fi
4761 if test -z "$ac_cpp_err"; then
4762   # Broken: success on invalid input.
4763 continue
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768   # Passes both tests.
4769 ac_preproc_ok=:
4770 break
4771 fi
4772 rm -f conftest.err conftest.$ac_ext
4773
4774 done
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then
4778   :
4779 else
4780   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783 See \`config.log' for more details." >&2;}
4784    { (exit 1); exit 1; }; }
4785 fi
4786
4787 ac_ext=cc
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792
4793
4794 ac_ext=f
4795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798 if test -n "$ac_tool_prefix"; then
4799   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4800   do
4801     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4805 if test "${ac_cv_prog_F77+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   if test -n "$F77"; then
4809   ac_cv_prog_F77="$F77" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816   for ac_exec_ext in '' $ac_executable_extensions; do
4817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823 done
4824
4825 fi
4826 fi
4827 F77=$ac_cv_prog_F77
4828 if test -n "$F77"; then
4829   echo "$as_me:$LINENO: result: $F77" >&5
4830 echo "${ECHO_T}$F77" >&6
4831 else
4832   echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4834 fi
4835
4836     test -n "$F77" && break
4837   done
4838 fi
4839 if test -z "$F77"; then
4840   ac_ct_F77=$F77
4841   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4842 do
4843   # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   if test -n "$ac_ct_F77"; then
4851   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858   for ac_exec_ext in '' $ac_executable_extensions; do
4859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_prog_ac_ct_F77="$ac_prog"
4861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865 done
4866
4867 fi
4868 fi
4869 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4870 if test -n "$ac_ct_F77"; then
4871   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4872 echo "${ECHO_T}$ac_ct_F77" >&6
4873 else
4874   echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6
4876 fi
4877
4878   test -n "$ac_ct_F77" && break
4879 done
4880
4881   F77=$ac_ct_F77
4882 fi
4883
4884
4885 # Provide some information about the compiler.
4886 echo "$as_me:4886:" \
4887      "checking for Fortran 77 compiler version" >&5
4888 ac_compiler=`set X $ac_compile; echo $2`
4889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4890   (eval $ac_compiler --version </dev/null >&5) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }
4894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4895   (eval $ac_compiler -v </dev/null >&5) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }
4899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4900   (eval $ac_compiler -V </dev/null >&5) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }
4904
4905 # If we don't use `.F' as extension, the preprocessor is not run on the
4906 # input file.
4907 ac_save_ext=$ac_ext
4908 ac_ext=F
4909 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4910 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4911 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   cat >conftest.$ac_ext <<_ACEOF
4915       program main
4916 #ifndef __GNUC__
4917        choke me
4918 #endif
4919
4920       end
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924   (eval $ac_compile) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); } &&
4928          { ac_try='test -s conftest.$ac_objext'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; }; then
4934   ac_compiler_gnu=yes
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_compiler_gnu=no
4940 fi
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4946 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4947 ac_ext=$ac_save_ext
4948 G77=`test $ac_compiler_gnu = yes && echo yes`
4949 ac_test_FFLAGS=${FFLAGS+set}
4950 ac_save_FFLAGS=$FFLAGS
4951 FFLAGS=
4952 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4953 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4954 if test "${ac_cv_prog_f77_g+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   FFLAGS=-g
4958 cat >conftest.$ac_ext <<_ACEOF
4959       program main
4960
4961       end
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965   (eval $ac_compile) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -s conftest.$ac_objext'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; }; then
4975   ac_cv_prog_f77_g=yes
4976 else
4977   echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ac_cv_prog_f77_g=no
4981 fi
4982 rm -f conftest.$ac_objext conftest.$ac_ext
4983
4984 fi
4985 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4986 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4987 if test "$ac_test_FFLAGS" = set; then
4988   FFLAGS=$ac_save_FFLAGS
4989 elif test $ac_cv_prog_f77_g = yes; then
4990   if test "$G77" = yes; then
4991     FFLAGS="-g -O2"
4992   else
4993     FFLAGS="-g"
4994   fi
4995 else
4996   if test "$G77" = yes; then
4997     FFLAGS="-O2"
4998   else
4999     FFLAGS=
5000   fi
5001 fi
5002 ac_ext=c
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009
5010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5011
5012 # find the maximum length of command line arguments
5013 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018     i=0
5019   testring="ABCD"
5020
5021   case $build_os in
5022   msdosdjgpp*)
5023     # On DJGPP, this test can blow up pretty badly due to problems in libc
5024     # (any single argument exceeding 2000 bytes causes a buffer overrun
5025     # during glob expansion).  Even if it were fixed, the result of this
5026     # check would be larger than it should be.
5027     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5028     ;;
5029
5030   gnu*)
5031     # Under GNU Hurd, this test is not required because there is
5032     # no limit to the length of command line arguments.
5033     # Libtool will interpret -1 as no limit whatsoever
5034     lt_cv_sys_max_cmd_len=-1;
5035     ;;
5036
5037   cygwin* | mingw*)
5038     # On Win9x/ME, this test blows up -- it succeeds, but takes
5039     # about 5 minutes as the teststring grows exponentially.
5040     # Worse, since 9x/ME are not pre-emptively multitasking,
5041     # you end up with a "frozen" computer, even though with patience
5042     # the test eventually succeeds (with a max line length of 256k).
5043     # Instead, let's just punt: use the minimum linelength reported by
5044     # all of the supported platforms: 8192 (on NT/2K/XP).
5045     lt_cv_sys_max_cmd_len=8192;
5046     ;;
5047
5048  *)
5049     # If test is not a shell built-in, we'll probably end up computing a
5050     # maximum length that is only half of the actual maximum length, but
5051     # we can't tell.
5052     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5053                = "XX$testring") >/dev/null 2>&1 &&
5054             new_result=`expr "X$testring" : ".*" 2>&1` &&
5055             lt_cv_sys_max_cmd_len=$new_result &&
5056             test $i != 17 # 1/2 MB should be enough
5057     do
5058       i=`expr $i + 1`
5059       testring=$testring$testring
5060     done
5061     testring=
5062     # Add a significant safety factor because C++ compilers can tack on massive
5063     # amounts of additional arguments before passing them to the linker.
5064     # It appears as though 1/2 is a usable value.
5065     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5066     ;;
5067   esac
5068
5069 fi
5070
5071 if test -n $lt_cv_sys_max_cmd_len ; then
5072   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5073 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5074 else
5075   echo "$as_me:$LINENO: result: none" >&5
5076 echo "${ECHO_T}none" >&6
5077 fi
5078
5079
5080
5081
5082 # Check for command to grab the raw symbol name followed by C symbol from nm.
5083 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5084 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5085 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088
5089 # These are sane defaults that work on at least a few old systems.
5090 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5091
5092 # Character class describing NM global symbol codes.
5093 symcode='[BCDEGRST]'
5094
5095 # Regexp to match symbols that can be accessed directly from C.
5096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5097
5098 # Transform the above into a raw symbol and a C symbol.
5099 symxfrm='\1 \2\3 \3'
5100
5101 # Transform an extracted symbol line into a proper C declaration
5102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5103
5104 # Transform an extracted symbol line into symbol name and symbol address
5105 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'"
5106
5107 # Define system-specific variables.
5108 case $host_os in
5109 aix*)
5110   symcode='[BCDT]'
5111   ;;
5112 cygwin* | mingw* | pw32*)
5113   symcode='[ABCDGISTW]'
5114   ;;
5115 hpux*) # Its linker distinguishes data from code symbols
5116   if test "$host_cpu" = ia64; then
5117     symcode='[ABCDEGRST]'
5118   fi
5119   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120   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'"
5121   ;;
5122 irix* | nonstopux*)
5123   symcode='[BCDEGRST]'
5124   ;;
5125 osf*)
5126   symcode='[BCDEGQRST]'
5127   ;;
5128 solaris* | sysv5*)
5129   symcode='[BDT]'
5130   ;;
5131 sysv4)
5132   symcode='[DFNSTU]'
5133   ;;
5134 esac
5135
5136 # Handle CRLF in mingw tool chain
5137 opt_cr=
5138 case $build_os in
5139 mingw*)
5140   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5141   ;;
5142 esac
5143
5144 # If we're using GNU nm, then use its standard symbol codes.
5145 case `$NM -V 2>&1` in
5146 *GNU* | *'with BFD'*)
5147   symcode='[ABCDGISTW]' ;;
5148 esac
5149
5150 # Try without a prefix undercore, then with it.
5151 for ac_symprfx in "" "_"; do
5152
5153   # Write the raw and C identifiers.
5154   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5155
5156   # Check to see that the pipe works correctly.
5157   pipe_works=no
5158
5159   rm -f conftest*
5160   cat > conftest.$ac_ext <<EOF
5161 #ifdef __cplusplus
5162 extern "C" {
5163 #endif
5164 char nm_test_var;
5165 void nm_test_func(){}
5166 #ifdef __cplusplus
5167 }
5168 #endif
5169 int main(){nm_test_var='a';nm_test_func();return(0);}
5170 EOF
5171
5172   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173   (eval $ac_compile) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; then
5177     # Now try to grab the symbols.
5178     nlist=conftest.nm
5179     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5180   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); } && test -s "$nlist"; then
5184       # Try sorting and uniquifying the output.
5185       if sort "$nlist" | uniq > "$nlist"T; then
5186         mv -f "$nlist"T "$nlist"
5187       else
5188         rm -f "$nlist"T
5189       fi
5190
5191       # Make sure that we snagged all the symbols we need.
5192       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5193         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5194           cat <<EOF > conftest.$ac_ext
5195 #ifdef __cplusplus
5196 extern "C" {
5197 #endif
5198
5199 EOF
5200           # Now generate the symbol file.
5201           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5202
5203           cat <<EOF >> conftest.$ac_ext
5204 #if defined (__STDC__) && __STDC__
5205 # define lt_ptr_t void *
5206 #else
5207 # define lt_ptr_t char *
5208 # define const
5209 #endif
5210
5211 /* The mapping between symbol names and symbols. */
5212 const struct {
5213   const char *name;
5214   lt_ptr_t address;
5215 }
5216 lt_preloaded_symbols[] =
5217 {
5218 EOF
5219           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5220           cat <<\EOF >> conftest.$ac_ext
5221   {0, (lt_ptr_t) 0}
5222 };
5223
5224 #ifdef __cplusplus
5225 }
5226 #endif
5227 EOF
5228           # Now try linking the two files.
5229           mv conftest.$ac_objext conftstm.$ac_objext
5230           lt_save_LIBS="$LIBS"
5231           lt_save_CFLAGS="$CFLAGS"
5232           LIBS="conftstm.$ac_objext"
5233           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5234           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235   (eval $ac_link) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5239             pipe_works=yes
5240           fi
5241           LIBS="$lt_save_LIBS"
5242           CFLAGS="$lt_save_CFLAGS"
5243         else
5244           echo "cannot find nm_test_func in $nlist" >&5
5245         fi
5246       else
5247         echo "cannot find nm_test_var in $nlist" >&5
5248       fi
5249     else
5250       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5251     fi
5252   else
5253     echo "$progname: failed program was:" >&5
5254     cat conftest.$ac_ext >&5
5255   fi
5256   rm -f conftest* conftst*
5257
5258   # Do not use the global_symbol_pipe unless it works.
5259   if test "$pipe_works" = yes; then
5260     break
5261   else
5262     lt_cv_sys_global_symbol_pipe=
5263   fi
5264 done
5265
5266 fi
5267
5268 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5269   lt_cv_sys_global_symbol_to_cdecl=
5270 fi
5271 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5272   echo "$as_me:$LINENO: result: failed" >&5
5273 echo "${ECHO_T}failed" >&6
5274 else
5275   echo "$as_me:$LINENO: result: ok" >&5
5276 echo "${ECHO_T}ok" >&6
5277 fi
5278
5279 echo "$as_me:$LINENO: checking for objdir" >&5
5280 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5281 if test "${lt_cv_objdir+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   rm -f .libs 2>/dev/null
5285 mkdir .libs 2>/dev/null
5286 if test -d .libs; then
5287   lt_cv_objdir=.libs
5288 else
5289   # MS-DOS does not allow filenames that begin with a dot.
5290   lt_cv_objdir=_libs
5291 fi
5292 rmdir .libs 2>/dev/null
5293 fi
5294 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5295 echo "${ECHO_T}$lt_cv_objdir" >&6
5296 objdir=$lt_cv_objdir
5297
5298
5299
5300
5301
5302 case $host_os in
5303 aix3*)
5304   # AIX sometimes has problems with the GCC collect2 program.  For some
5305   # reason, if we set the COLLECT_NAMES environment variable, the problems
5306   # vanish in a puff of smoke.
5307   if test "X${COLLECT_NAMES+set}" != Xset; then
5308     COLLECT_NAMES=
5309     export COLLECT_NAMES
5310   fi
5311   ;;
5312 esac
5313
5314 # Sed substitution that helps us do robust quoting.  It backslashifies
5315 # metacharacters that are still active within double-quoted strings.
5316 Xsed='sed -e s/^X//'
5317 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5318
5319 # Same as above, but do not quote variable references.
5320 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5321
5322 # Sed substitution to delay expansion of an escaped shell variable in a
5323 # double_quote_subst'ed string.
5324 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5325
5326 # Sed substitution to avoid accidental globbing in evaled expressions
5327 no_glob_subst='s/\*/\\\*/g'
5328
5329 # Constants:
5330 rm="rm -f"
5331
5332 # Global variables:
5333 default_ofile=mklib
5334 can_build_shared=yes
5335
5336 # All known linkers require a `.a' archive for static linking (except M$VC,
5337 # which needs '.lib').
5338 libext=a
5339 ltmain="$ac_aux_dir/ltmain.sh"
5340 ofile="$default_ofile"
5341 with_gnu_ld="$lt_cv_prog_gnu_ld"
5342
5343 if test -n "$ac_tool_prefix"; then
5344   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}ar; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_AR+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -n "$AR"; then
5352   ac_cv_prog_AR="$AR" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359   for ac_exec_ext in '' $ac_executable_extensions; do
5360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_prog_AR="${ac_tool_prefix}ar"
5362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366 done
5367
5368 fi
5369 fi
5370 AR=$ac_cv_prog_AR
5371 if test -n "$AR"; then
5372   echo "$as_me:$LINENO: result: $AR" >&5
5373 echo "${ECHO_T}$AR" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379 fi
5380 if test -z "$ac_cv_prog_AR"; then
5381   ac_ct_AR=$AR
5382   # Extract the first word of "ar", so it can be a program name with args.
5383 set dummy ar; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   if test -n "$ac_ct_AR"; then
5390   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397   for ac_exec_ext in '' $ac_executable_extensions; do
5398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_prog_ac_ct_AR="ar"
5400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404 done
5405
5406   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5407 fi
5408 fi
5409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410 if test -n "$ac_ct_AR"; then
5411   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5412 echo "${ECHO_T}$ac_ct_AR" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418   AR=$ac_ct_AR
5419 else
5420   AR="$ac_cv_prog_AR"
5421 fi
5422
5423 if test -n "$ac_tool_prefix"; then
5424   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_prog_RANLIB+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   if test -n "$RANLIB"; then
5432   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439   for ac_exec_ext in '' $ac_executable_extensions; do
5440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446 done
5447
5448 fi
5449 fi
5450 RANLIB=$ac_cv_prog_RANLIB
5451 if test -n "$RANLIB"; then
5452   echo "$as_me:$LINENO: result: $RANLIB" >&5
5453 echo "${ECHO_T}$RANLIB" >&6
5454 else
5455   echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457 fi
5458
5459 fi
5460 if test -z "$ac_cv_prog_RANLIB"; then
5461   ac_ct_RANLIB=$RANLIB
5462   # Extract the first word of "ranlib", so it can be a program name with args.
5463 set dummy ranlib; ac_word=$2
5464 echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   if test -n "$ac_ct_RANLIB"; then
5470   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477   for ac_exec_ext in '' $ac_executable_extensions; do
5478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_prog_ac_ct_RANLIB="ranlib"
5480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484 done
5485
5486   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5487 fi
5488 fi
5489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5490 if test -n "$ac_ct_RANLIB"; then
5491   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5492 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5493 else
5494   echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496 fi
5497
5498   RANLIB=$ac_ct_RANLIB
5499 else
5500   RANLIB="$ac_cv_prog_RANLIB"
5501 fi
5502
5503 if test -n "$ac_tool_prefix"; then
5504   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}strip; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_STRIP+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   if test -n "$STRIP"; then
5512   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519   for ac_exec_ext in '' $ac_executable_extensions; do
5520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526 done
5527
5528 fi
5529 fi
5530 STRIP=$ac_cv_prog_STRIP
5531 if test -n "$STRIP"; then
5532   echo "$as_me:$LINENO: result: $STRIP" >&5
5533 echo "${ECHO_T}$STRIP" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539 fi
5540 if test -z "$ac_cv_prog_STRIP"; then
5541   ac_ct_STRIP=$STRIP
5542   # Extract the first word of "strip", so it can be a program name with args.
5543 set dummy strip; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if test -n "$ac_ct_STRIP"; then
5550   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557   for ac_exec_ext in '' $ac_executable_extensions; do
5558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559     ac_cv_prog_ac_ct_STRIP="strip"
5560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564 done
5565
5566   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5567 fi
5568 fi
5569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570 if test -n "$ac_ct_STRIP"; then
5571   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5572 echo "${ECHO_T}$ac_ct_STRIP" >&6
5573 else
5574   echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5576 fi
5577
5578   STRIP=$ac_ct_STRIP
5579 else
5580   STRIP="$ac_cv_prog_STRIP"
5581 fi
5582
5583
5584 old_CC="$CC"
5585 old_CFLAGS="$CFLAGS"
5586
5587 # Set sane defaults for various variables
5588 test -z "$AR" && AR=ar
5589 test -z "$AR_FLAGS" && AR_FLAGS=cru
5590 test -z "$AS" && AS=as
5591 test -z "$CC" && CC=cc
5592 test -z "$LTCC" && LTCC=$CC
5593 test -z "$DLLTOOL" && DLLTOOL=dlltool
5594 test -z "$LD" && LD=ld
5595 test -z "$LN_S" && LN_S="ln -s"
5596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5597 test -z "$NM" && NM=nm
5598 test -z "$SED" && SED=sed
5599 test -z "$OBJDUMP" && OBJDUMP=objdump
5600 test -z "$RANLIB" && RANLIB=:
5601 test -z "$STRIP" && STRIP=:
5602 test -z "$ac_objext" && ac_objext=o
5603
5604 # Determine commands to create old-style static archives.
5605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5606 old_postinstall_cmds='chmod 644 $oldlib'
5607 old_postuninstall_cmds=
5608
5609 if test -n "$RANLIB"; then
5610   case $host_os in
5611   openbsd*)
5612     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5613     ;;
5614   *)
5615     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5616     ;;
5617   esac
5618   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5619 fi
5620
5621 # Only perform the check for file, if the check method requires it
5622 case $deplibs_check_method in
5623 file_magic*)
5624   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5625     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   case $MAGIC_CMD in
5631 [\\/*] |  ?:[\\/]*)
5632   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5633   ;;
5634 *)
5635   lt_save_MAGIC_CMD="$MAGIC_CMD"
5636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5638   for ac_dir in $ac_dummy; do
5639     IFS="$lt_save_ifs"
5640     test -z "$ac_dir" && ac_dir=.
5641     if test -f $ac_dir/${ac_tool_prefix}file; then
5642       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5643       if test -n "$file_magic_test_file"; then
5644         case $deplibs_check_method in
5645         "file_magic "*)
5646           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5647           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5649             $EGREP "$file_magic_regex" > /dev/null; then
5650             :
5651           else
5652             cat <<EOF 1>&2
5653
5654 *** Warning: the command libtool uses to detect shared libraries,
5655 *** $file_magic_cmd, produces output that libtool cannot recognize.
5656 *** The result is that libtool may fail to recognize shared libraries
5657 *** as such.  This will affect the creation of libtool libraries that
5658 *** depend on shared libraries, but programs linked with such libtool
5659 *** libraries will work regardless of this problem.  Nevertheless, you
5660 *** may want to report the problem to your system manager and/or to
5661 *** bug-libtool@gnu.org
5662
5663 EOF
5664           fi ;;
5665         esac
5666       fi
5667       break
5668     fi
5669   done
5670   IFS="$lt_save_ifs"
5671   MAGIC_CMD="$lt_save_MAGIC_CMD"
5672   ;;
5673 esac
5674 fi
5675
5676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5677 if test -n "$MAGIC_CMD"; then
5678   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5679 echo "${ECHO_T}$MAGIC_CMD" >&6
5680 else
5681   echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5683 fi
5684
5685 if test -z "$lt_cv_path_MAGIC_CMD"; then
5686   if test -n "$ac_tool_prefix"; then
5687     echo "$as_me:$LINENO: checking for file" >&5
5688 echo $ECHO_N "checking for file... $ECHO_C" >&6
5689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   case $MAGIC_CMD in
5693 [\\/*] |  ?:[\\/]*)
5694   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5695   ;;
5696 *)
5697   lt_save_MAGIC_CMD="$MAGIC_CMD"
5698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5700   for ac_dir in $ac_dummy; do
5701     IFS="$lt_save_ifs"
5702     test -z "$ac_dir" && ac_dir=.
5703     if test -f $ac_dir/file; then
5704       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5705       if test -n "$file_magic_test_file"; then
5706         case $deplibs_check_method in
5707         "file_magic "*)
5708           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5709           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5711             $EGREP "$file_magic_regex" > /dev/null; then
5712             :
5713           else
5714             cat <<EOF 1>&2
5715
5716 *** Warning: the command libtool uses to detect shared libraries,
5717 *** $file_magic_cmd, produces output that libtool cannot recognize.
5718 *** The result is that libtool may fail to recognize shared libraries
5719 *** as such.  This will affect the creation of libtool libraries that
5720 *** depend on shared libraries, but programs linked with such libtool
5721 *** libraries will work regardless of this problem.  Nevertheless, you
5722 *** may want to report the problem to your system manager and/or to
5723 *** bug-libtool@gnu.org
5724
5725 EOF
5726           fi ;;
5727         esac
5728       fi
5729       break
5730     fi
5731   done
5732   IFS="$lt_save_ifs"
5733   MAGIC_CMD="$lt_save_MAGIC_CMD"
5734   ;;
5735 esac
5736 fi
5737
5738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5739 if test -n "$MAGIC_CMD"; then
5740   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5741 echo "${ECHO_T}$MAGIC_CMD" >&6
5742 else
5743   echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5745 fi
5746
5747   else
5748     MAGIC_CMD=:
5749   fi
5750 fi
5751
5752   fi
5753   ;;
5754 esac
5755
5756 enable_dlopen=no
5757 enable_win32_dll=no
5758
5759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5760 if test "${enable_libtool_lock+set}" = set; then
5761   enableval="$enable_libtool_lock"
5762
5763 fi;
5764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5765
5766
5767 # Check whether --with-pic or --without-pic was given.
5768 if test "${with_pic+set}" = set; then
5769   withval="$with_pic"
5770   pic_mode="$withval"
5771 else
5772   pic_mode=default
5773 fi;
5774 test -z "$pic_mode" && pic_mode=default
5775
5776 # Use C for the default configuration in the libtool script
5777 tagname=
5778 lt_save_CC="$CC"
5779 ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785
5786 # Source file extension for C test sources.
5787 ac_ext=c
5788
5789 # Object file extension for compiled C test sources.
5790 objext=o
5791 objext=$objext
5792
5793 # Code to be used in simple compile tests
5794 lt_simple_compile_test_code="int some_variable = 0;\n"
5795
5796 # Code to be used in simple link tests
5797 lt_simple_link_test_code='int main(){return(0);}\n'
5798
5799
5800 # If no C compiler was specified, use CC.
5801 LTCC=${LTCC-"$CC"}
5802
5803 # Allow CC to be a program name with arguments.
5804 compiler=$CC
5805
5806
5807 #
5808 # Check for any special shared library compilation flags.
5809 #
5810 lt_prog_cc_shlib=
5811 if test "$GCC" = no; then
5812   case $host_os in
5813   sco3.2v5*)
5814     lt_prog_cc_shlib='-belf'
5815     ;;
5816   esac
5817 fi
5818 if test -n "$lt_prog_cc_shlib"; then
5819   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5821   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5822   else
5823     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5825     lt_cv_prog_cc_can_build_shared=no
5826   fi
5827 fi
5828
5829
5830 #
5831 # Check to make sure the static flag actually works.
5832 #
5833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5835 if test "${lt_prog_compiler_static_works+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   lt_prog_compiler_static_works=no
5839    save_LDFLAGS="$LDFLAGS"
5840    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5841    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5842    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5843      # The compiler can only warn and ignore the option if not recognized
5844      # So say no if there are warnings
5845      if test -s conftest.err; then
5846        # Append any errors to the config.log.
5847        cat conftest.err 1>&5
5848      else
5849        lt_prog_compiler_static_works=yes
5850      fi
5851    fi
5852    $rm conftest*
5853    LDFLAGS="$save_LDFLAGS"
5854
5855 fi
5856 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5858
5859 if test x"$lt_prog_compiler_static_works" = xyes; then
5860     :
5861 else
5862     lt_prog_compiler_static=
5863 fi
5864
5865
5866
5867
5868 lt_prog_compiler_no_builtin_flag=
5869
5870 if test "$GCC" = yes; then
5871   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5872
5873   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5874 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5875 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   lt_cv_prog_compiler_rtti_exceptions=no
5879   ac_outfile=conftest.$ac_objext
5880    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5881    lt_compiler_flag="-fno-rtti -fno-exceptions"
5882    # Insert the option either (1) after the last *FLAGS variable, or
5883    # (2) before a word containing "conftest.", or (3) at the end.
5884    # Note that $ac_compile itself does not contain backslashes and begins
5885    # with a dollar sign (not a hyphen), so the echo should work correctly.
5886    # The option is referenced via a variable to avoid confusing sed.
5887    lt_compile=`echo "$ac_compile" | $SED \
5888    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5890    -e 's:$: $lt_compiler_flag:'`
5891    (eval echo "\"\$as_me:5891: $lt_compile\"" >&5)
5892    (eval "$lt_compile" 2>conftest.err)
5893    ac_status=$?
5894    cat conftest.err >&5
5895    echo "$as_me:5895: \$? = $ac_status" >&5
5896    if (exit $ac_status) && test -s "$ac_outfile"; then
5897      # The compiler can only warn and ignore the option if not recognized
5898      # So say no if there are warnings
5899      if test ! -s conftest.err; then
5900        lt_cv_prog_compiler_rtti_exceptions=yes
5901      fi
5902    fi
5903    $rm conftest*
5904
5905 fi
5906 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5907 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5908
5909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5910     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5911 else
5912     :
5913 fi
5914
5915 fi
5916
5917 lt_prog_compiler_wl=
5918 lt_prog_compiler_pic=
5919 lt_prog_compiler_static=
5920
5921 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5922 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5923
5924   if test "$GCC" = yes; then
5925     lt_prog_compiler_wl='-Wl,'
5926     lt_prog_compiler_static='-static'
5927
5928     case $host_os in
5929       aix*)
5930       # All AIX code is PIC.
5931       if test "$host_cpu" = ia64; then
5932         # AIX 5 now supports IA64 processor
5933         lt_prog_compiler_static='-Bstatic'
5934       fi
5935       ;;
5936
5937     amigaos*)
5938       # FIXME: we need at least 68020 code to build shared libraries, but
5939       # adding the `-m68020' flag to GCC prevents building anything better,
5940       # like `-m68040'.
5941       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5942       ;;
5943
5944     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5945       # PIC is the default for these OSes.
5946       ;;
5947
5948     mingw* | pw32* | os2*)
5949       # This hack is so that the source file can tell whether it is being
5950       # built for inclusion in a dll (and should export symbols for example).
5951       lt_prog_compiler_pic='-DDLL_EXPORT'
5952       ;;
5953
5954     darwin* | rhapsody*)
5955       # PIC is the default on this platform
5956       # Common symbols not allowed in MH_DYLIB files
5957       lt_prog_compiler_pic='-fno-common'
5958       ;;
5959
5960     msdosdjgpp*)
5961       # Just because we use GCC doesn't mean we suddenly get shared libraries
5962       # on systems that don't support them.
5963       lt_prog_compiler_can_build_shared=no
5964       enable_shared=no
5965       ;;
5966
5967     sysv4*MP*)
5968       if test -d /usr/nec; then
5969         lt_prog_compiler_pic=-Kconform_pic
5970       fi
5971       ;;
5972
5973     hpux*)
5974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5975       # not for PA HP-UX.
5976       case "$host_cpu" in
5977       hppa*64*|ia64*)
5978         # +Z the default
5979         ;;
5980       *)
5981         lt_prog_compiler_pic='-fPIC'
5982         ;;
5983       esac
5984       ;;
5985
5986     *)
5987       lt_prog_compiler_pic='-fPIC'
5988       ;;
5989     esac
5990   else
5991     # PORTME Check for flag to pass linker flags through the system compiler.
5992     case $host_os in
5993     aix*)
5994       lt_prog_compiler_wl='-Wl,'
5995       if test "$host_cpu" = ia64; then
5996         # AIX 5 now supports IA64 processor
5997         lt_prog_compiler_static='-Bstatic'
5998       else
5999         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6000       fi
6001       ;;
6002
6003     mingw* | pw32* | os2*)
6004       # This hack is so that the source file can tell whether it is being
6005       # built for inclusion in a dll (and should export symbols for example).
6006       lt_prog_compiler_pic='-DDLL_EXPORT'
6007       ;;
6008
6009     hpux9* | hpux10* | hpux11*)
6010       lt_prog_compiler_wl='-Wl,'
6011       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6012       # not for PA HP-UX.
6013       case "$host_cpu" in
6014       hppa*64*|ia64*)
6015         # +Z the default
6016         ;;
6017       *)
6018         lt_prog_compiler_pic='+Z'
6019         ;;
6020       esac
6021       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6022       lt_prog_compiler_static='${wl}-a ${wl}archive'
6023       ;;
6024
6025     irix5* | irix6* | nonstopux*)
6026       lt_prog_compiler_wl='-Wl,'
6027       # PIC (with -KPIC) is the default.
6028       lt_prog_compiler_static='-non_shared'
6029       ;;
6030
6031     newsos6)
6032       lt_prog_compiler_pic='-KPIC'
6033       lt_prog_compiler_static='-Bstatic'
6034       ;;
6035
6036     linux*)
6037       case $CC in
6038       icc|ecc)
6039         lt_prog_compiler_wl='-Wl,'
6040         lt_prog_compiler_pic='-KPIC'
6041         lt_prog_compiler_static='-static'
6042         ;;
6043       ccc)
6044         lt_prog_compiler_wl='-Wl,'
6045         # All Alpha code is PIC.
6046         lt_prog_compiler_static='-non_shared'
6047         ;;
6048       esac
6049       ;;
6050
6051     osf3* | osf4* | osf5*)
6052       lt_prog_compiler_wl='-Wl,'
6053       # All OSF/1 code is PIC.
6054       lt_prog_compiler_static='-non_shared'
6055       ;;
6056
6057     sco3.2v5*)
6058       lt_prog_compiler_pic='-Kpic'
6059       lt_prog_compiler_static='-dn'
6060       ;;
6061
6062     solaris*)
6063       lt_prog_compiler_wl='-Wl,'
6064       lt_prog_compiler_pic='-KPIC'
6065       lt_prog_compiler_static='-Bstatic'
6066       ;;
6067
6068     sunos4*)
6069       lt_prog_compiler_wl='-Qoption ld '
6070       lt_prog_compiler_pic='-PIC'
6071       lt_prog_compiler_static='-Bstatic'
6072       ;;
6073
6074     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6075       lt_prog_compiler_wl='-Wl,'
6076       lt_prog_compiler_pic='-KPIC'
6077       lt_prog_compiler_static='-Bstatic'
6078       ;;
6079
6080     sysv4*MP*)
6081       if test -d /usr/nec ;then
6082         lt_prog_compiler_pic='-Kconform_pic'
6083         lt_prog_compiler_static='-Bstatic'
6084       fi
6085       ;;
6086
6087     uts4*)
6088       lt_prog_compiler_pic='-pic'
6089       lt_prog_compiler_static='-Bstatic'
6090       ;;
6091
6092     *)
6093       lt_prog_compiler_can_build_shared=no
6094       ;;
6095     esac
6096   fi
6097
6098 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6099 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6100
6101 #
6102 # Check to make sure the PIC flag actually works.
6103 #
6104 if test -n "$lt_prog_compiler_pic"; then
6105   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6107 if test "${lt_prog_compiler_pic_works+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   lt_prog_compiler_pic_works=no
6111   ac_outfile=conftest.$ac_objext
6112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6113    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6114    # Insert the option either (1) after the last *FLAGS variable, or
6115    # (2) before a word containing "conftest.", or (3) at the end.
6116    # Note that $ac_compile itself does not contain backslashes and begins
6117    # with a dollar sign (not a hyphen), so the echo should work correctly.
6118    # The option is referenced via a variable to avoid confusing sed.
6119    lt_compile=`echo "$ac_compile" | $SED \
6120    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6122    -e 's:$: $lt_compiler_flag:'`
6123    (eval echo "\"\$as_me:6123: $lt_compile\"" >&5)
6124    (eval "$lt_compile" 2>conftest.err)
6125    ac_status=$?
6126    cat conftest.err >&5
6127    echo "$as_me:6127: \$? = $ac_status" >&5
6128    if (exit $ac_status) && test -s "$ac_outfile"; then
6129      # The compiler can only warn and ignore the option if not recognized
6130      # So say no if there are warnings
6131      if test ! -s conftest.err; then
6132        lt_prog_compiler_pic_works=yes
6133      fi
6134    fi
6135    $rm conftest*
6136
6137 fi
6138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6139 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6140
6141 if test x"$lt_prog_compiler_pic_works" = xyes; then
6142     case $lt_prog_compiler_pic in
6143      "" | " "*) ;;
6144      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6145      esac
6146 else
6147     lt_prog_compiler_pic=
6148      lt_prog_compiler_can_build_shared=no
6149 fi
6150
6151 fi
6152 case "$host_os" in
6153   # For platforms which do not support PIC, -DPIC is meaningless:
6154   *djgpp*)
6155     lt_prog_compiler_pic=
6156     ;;
6157   *)
6158     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6159     ;;
6160 esac
6161
6162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   lt_cv_prog_compiler_c_o=no
6168    $rm -r conftest 2>/dev/null
6169    mkdir conftest
6170    cd conftest
6171    mkdir out
6172    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6173
6174    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6175    # that will create temporary files in the current directory regardless of
6176    # the output directory.  Thus, making CWD read-only will cause this test
6177    # to fail, enabling locking or at least warning the user not to do parallel
6178    # builds.
6179    chmod -w .
6180
6181    lt_compiler_flag="-o out/conftest2.$ac_objext"
6182    # Insert the option either (1) after the last *FLAGS variable, or
6183    # (2) before a word containing "conftest.", or (3) at the end.
6184    # Note that $ac_compile itself does not contain backslashes and begins
6185    # with a dollar sign (not a hyphen), so the echo should work correctly.
6186    lt_compile=`echo "$ac_compile" | $SED \
6187    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6189    -e 's:$: $lt_compiler_flag:'`
6190    (eval echo "\"\$as_me:6190: $lt_compile\"" >&5)
6191    (eval "$lt_compile" 2>out/conftest.err)
6192    ac_status=$?
6193    cat out/conftest.err >&5
6194    echo "$as_me:6194: \$? = $ac_status" >&5
6195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6196    then
6197      # The compiler can only warn and ignore the option if not recognized
6198      # So say no if there are warnings
6199      if test ! -s out/conftest.err; then
6200        lt_cv_prog_compiler_c_o=yes
6201      fi
6202    fi
6203    chmod u+w .
6204    $rm conftest* out/*
6205    rmdir out
6206    cd ..
6207    rmdir conftest
6208    $rm conftest*
6209
6210 fi
6211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6213
6214
6215 hard_links="nottested"
6216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6217   # do not overwrite the value of need_locks provided by the user
6218   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6220   hard_links=yes
6221   $rm conftest*
6222   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6223   touch conftest.a
6224   ln conftest.a conftest.b 2>&5 || hard_links=no
6225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6226   echo "$as_me:$LINENO: result: $hard_links" >&5
6227 echo "${ECHO_T}$hard_links" >&6
6228   if test "$hard_links" = no; then
6229     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6231     need_locks=warn
6232   fi
6233 else
6234   need_locks=no
6235 fi
6236
6237 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6239
6240   runpath_var=
6241   allow_undefined_flag=
6242   enable_shared_with_static_runtimes=no
6243   archive_cmds=
6244   archive_expsym_cmds=
6245   old_archive_From_new_cmds=
6246   old_archive_from_expsyms_cmds=
6247   export_dynamic_flag_spec=
6248   whole_archive_flag_spec=
6249   thread_safe_flag_spec=
6250   hardcode_libdir_flag_spec=
6251   hardcode_libdir_flag_spec_ld=
6252   hardcode_libdir_separator=
6253   hardcode_direct=no
6254   hardcode_minus_L=no
6255   hardcode_shlibpath_var=unsupported
6256   link_all_deplibs=unknown
6257   hardcode_automatic=no
6258   module_cmds=
6259   module_expsym_cmds=
6260   always_export_symbols=no
6261   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6262   # include_expsyms should be a list of space-separated symbols to be *always*
6263   # included in the symbol list
6264   include_expsyms=
6265   # exclude_expsyms can be an extended regexp of symbols to exclude
6266   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6267   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6268   # as well as any symbol that contains `d'.
6269   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6270   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6271   # platforms (ab)use it in PIC code, but their linkers get confused if
6272   # the symbol is explicitly referenced.  Since portable code cannot
6273   # rely on this symbol name, it's probably fine to never include it in
6274   # preloaded symbol tables.
6275   extract_expsyms_cmds=
6276
6277   case $host_os in
6278   cygwin* | mingw* | pw32*)
6279     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6280     # When not using gcc, we currently assume that we are using
6281     # Microsoft Visual C++.
6282     if test "$GCC" != yes; then
6283       with_gnu_ld=no
6284     fi
6285     ;;
6286   openbsd*)
6287     with_gnu_ld=no
6288     ;;
6289   esac
6290
6291   ld_shlibs=yes
6292   if test "$with_gnu_ld" = yes; then
6293     # If archive_cmds runs LD, not CC, wlarc should be empty
6294     wlarc='${wl}'
6295
6296     # See if GNU ld supports shared libraries.
6297     case $host_os in
6298     aix3* | aix4* | aix5*)
6299       # On AIX/PPC, the GNU linker is very broken
6300       if test "$host_cpu" != ia64; then
6301         ld_shlibs=no
6302         cat <<EOF 1>&2
6303
6304 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6305 *** to be unable to reliably create shared libraries on AIX.
6306 *** Therefore, libtool is disabling shared libraries support.  If you
6307 *** really care for shared libraries, you may want to modify your PATH
6308 *** so that a non-GNU linker is found, and then restart.
6309
6310 EOF
6311       fi
6312       ;;
6313
6314     amigaos*)
6315       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)'
6316       hardcode_libdir_flag_spec='-L$libdir'
6317       hardcode_minus_L=yes
6318
6319       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6320       # that the semantics of dynamic libraries on AmigaOS, at least up
6321       # to version 4, is to share data among multiple programs linked
6322       # with the same dynamic library.  Since this doesn't match the
6323       # behavior of shared libraries on other platforms, we can't use
6324       # them.
6325       ld_shlibs=no
6326       ;;
6327
6328     beos*)
6329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6330         allow_undefined_flag=unsupported
6331         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6332         # support --undefined.  This deserves some investigation.  FIXME
6333         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6334       else
6335         ld_shlibs=no
6336       fi
6337       ;;
6338
6339     cygwin* | mingw* | pw32*)
6340       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6341       # as there is no search path for DLLs.
6342       hardcode_libdir_flag_spec='-L$libdir'
6343       allow_undefined_flag=unsupported
6344       always_export_symbols=no
6345       enable_shared_with_static_runtimes=yes
6346       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6347
6348       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6349         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6350         # If the export-symbols file already is a .def file (1st line
6351         # is EXPORTS), use it as is; otherwise, prepend...
6352         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6353           cp $export_symbols $output_objdir/$soname.def;
6354         else
6355           echo EXPORTS > $output_objdir/$soname.def;
6356           cat $export_symbols >> $output_objdir/$soname.def;
6357         fi~
6358         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6359       else
6360         ld_shlibs=no
6361       fi
6362       ;;
6363
6364     netbsd*)
6365       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6366         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6367         wlarc=
6368       else
6369         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6370         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6371       fi
6372       ;;
6373
6374     solaris* | sysv5*)
6375       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6376         ld_shlibs=no
6377         cat <<EOF 1>&2
6378
6379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6380 *** create shared libraries on Solaris systems.  Therefore, libtool
6381 *** is disabling shared libraries support.  We urge you to upgrade GNU
6382 *** binutils to release 2.9.1 or newer.  Another option is to modify
6383 *** your PATH or compiler configuration so that the native linker is
6384 *** used, and then restart.
6385
6386 EOF
6387       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6388         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6389         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6390       else
6391         ld_shlibs=no
6392       fi
6393       ;;
6394
6395     sunos4*)
6396       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6397       wlarc=
6398       hardcode_direct=yes
6399       hardcode_shlibpath_var=no
6400       ;;
6401
6402     *)
6403       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6406       else
6407         ld_shlibs=no
6408       fi
6409       ;;
6410     esac
6411
6412     if test "$ld_shlibs" = yes; then
6413       runpath_var=LD_RUN_PATH
6414       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6415       export_dynamic_flag_spec='${wl}--export-dynamic'
6416       # ancient GNU ld didn't support --whole-archive et. al.
6417       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6418         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6419       else
6420         whole_archive_flag_spec=
6421       fi
6422     fi
6423   else
6424     # PORTME fill in a description of your system's linker (not GNU ld)
6425     case $host_os in
6426     aix3*)
6427       allow_undefined_flag=unsupported
6428       always_export_symbols=yes
6429       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'
6430       # Note: this linker hardcodes the directories in LIBPATH if there
6431       # are no directories specified by -L.
6432       hardcode_minus_L=yes
6433       if test "$GCC" = yes && test -z "$link_static_flag"; then
6434         # Neither direct hardcoding nor static linking is supported with a
6435         # broken collect2.
6436         hardcode_direct=unsupported
6437       fi
6438       ;;
6439
6440     aix4* | aix5*)
6441       if test "$host_cpu" = ia64; then
6442         # On IA64, the linker does run time linking by default, so we don't
6443         # have to do anything special.
6444         aix_use_runtimelinking=no
6445         exp_sym_flag='-Bexport'
6446         no_entry_flag=""
6447       else
6448         # If we're using GNU nm, then we don't want the "-C" option.
6449         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6450         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6451           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'
6452         else
6453           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'
6454         fi
6455         aix_use_runtimelinking=no
6456
6457         # Test if we are trying to use run time linking or normal
6458         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6459         # need to do runtime linking.
6460         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6461           for ld_flag in $LDFLAGS; do
6462           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6463             aix_use_runtimelinking=yes
6464             break
6465           fi
6466           done
6467         esac
6468
6469         exp_sym_flag='-bexport'
6470         no_entry_flag='-bnoentry'
6471       fi
6472
6473       # When large executables or shared objects are built, AIX ld can
6474       # have problems creating the table of contents.  If linking a library
6475       # or program results in "error TOC overflow" add -mminimal-toc to
6476       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6477       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6478
6479       archive_cmds=''
6480       hardcode_direct=yes
6481       hardcode_libdir_separator=':'
6482       link_all_deplibs=yes
6483
6484       if test "$GCC" = yes; then
6485         case $host_os in aix4.012|aix4.012.*)
6486         # We only want to do this on AIX 4.2 and lower, the check
6487         # below for broken collect2 doesn't work under 4.3+
6488           collect2name=`${CC} -print-prog-name=collect2`
6489           if test -f "$collect2name" && \
6490            strings "$collect2name" | grep resolve_lib_name >/dev/null
6491           then
6492           # We have reworked collect2
6493           hardcode_direct=yes
6494           else
6495           # We have old collect2
6496           hardcode_direct=unsupported
6497           # It fails to find uninstalled libraries when the uninstalled
6498           # path is not listed in the libpath.  Setting hardcode_minus_L
6499           # to unsupported forces relinking
6500           hardcode_minus_L=yes
6501           hardcode_libdir_flag_spec='-L$libdir'
6502           hardcode_libdir_separator=
6503           fi
6504         esac
6505         shared_flag='-shared'
6506       else
6507         # not using gcc
6508         if test "$host_cpu" = ia64; then
6509         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6510         # chokes on -Wl,-G. The following line is correct:
6511           shared_flag='-G'
6512         else
6513         if test "$aix_use_runtimelinking" = yes; then
6514             shared_flag='${wl}-G'
6515           else
6516             shared_flag='${wl}-bM:SRE'
6517         fi
6518         fi
6519       fi
6520
6521       # It seems that -bexpall does not export symbols beginning with
6522       # underscore (_), so it is better to generate a list of symbols to export.
6523       always_export_symbols=yes
6524       if test "$aix_use_runtimelinking" = yes; then
6525         # Warning - without using the other runtime loading flags (-brtl),
6526         # -berok will link without error, but may produce a broken library.
6527         allow_undefined_flag='-berok'
6528        # Determine the default libpath from the value encoded in an empty executable.
6529        cat >conftest.$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536
6537 int
6538 main ()
6539 {
6540
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -s conftest$ac_exeext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557
6558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6559 }'`
6560 # Check for a 64-bit object if we didn't find anything.
6561 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; }
6562 }'`; fi
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 fi
6568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6570
6571        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6572         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"
6573        else
6574         if test "$host_cpu" = ia64; then
6575           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6576           allow_undefined_flag="-z nodefs"
6577           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"
6578         else
6579          # Determine the default libpath from the value encoded in an empty executable.
6580          cat >conftest.$ac_ext <<_ACEOF
6581 #line $LINENO "configure"
6582 /* confdefs.h.  */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h.  */
6587
6588 int
6589 main ()
6590 {
6591
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598   (eval $ac_link) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -s conftest$ac_exeext'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608
6609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6610 }'`
6611 # Check for a 64-bit object if we didn't find anything.
6612 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; }
6613 }'`; fi
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 fi
6619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6621
6622          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6623           # Warning - without using the other run time loading flags,
6624           # -berok will link without error, but may produce a broken library.
6625           no_undefined_flag=' ${wl}-bernotok'
6626           allow_undefined_flag=' ${wl}-berok'
6627           # -bexpall does not export symbols beginning with underscore (_)
6628           always_export_symbols=yes
6629           # Exported symbols can be pulled into shared objects from archives
6630           whole_archive_flag_spec=' '
6631           archive_cmds_need_lc=yes
6632           # This is similar to how AIX traditionally builds it's shared libraries.
6633           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'
6634         fi
6635       fi
6636       ;;
6637
6638     amigaos*)
6639       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)'
6640       hardcode_libdir_flag_spec='-L$libdir'
6641       hardcode_minus_L=yes
6642       # see comment about different semantics on the GNU ld section
6643       ld_shlibs=no
6644       ;;
6645
6646     bsdi4*)
6647       export_dynamic_flag_spec=-rdynamic
6648       ;;
6649
6650     cygwin* | mingw* | pw32*)
6651       # When not using gcc, we currently assume that we are using
6652       # Microsoft Visual C++.
6653       # hardcode_libdir_flag_spec is actually meaningless, as there is
6654       # no search path for DLLs.
6655       hardcode_libdir_flag_spec=' '
6656       allow_undefined_flag=unsupported
6657       # Tell ltmain to make .lib files, not .a files.
6658       libext=lib
6659       # Tell ltmain to make .dll files, not .so files.
6660       shrext=".dll"
6661       # FIXME: Setting linknames here is a bad hack.
6662       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6663       # The linker will automatically build a .lib file if we build a DLL.
6664       old_archive_From_new_cmds='true'
6665       # FIXME: Should let the user specify the lib program.
6666       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6667       fix_srcfile_path='`cygpath -w "$srcfile"`'
6668       enable_shared_with_static_runtimes=yes
6669       ;;
6670
6671     darwin* | rhapsody*)
6672     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6673       archive_cmds_need_lc=no
6674       case "$host_os" in
6675       rhapsody* | darwin1.[012])
6676         allow_undefined_flag='-undefined suppress'
6677         ;;
6678       *) # Darwin 1.3 on
6679         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6680         ;;
6681       esac
6682       # FIXME: Relying on posixy $() will cause problems for
6683       #        cross-compilation, but unfortunately the echo tests do not
6684       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6685       #        `"' quotes if we put them in here... so don't!
6686         lt_int_apple_cc_single_mod=no
6687         output_verbose_link_cmd='echo'
6688         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6689           lt_int_apple_cc_single_mod=yes
6690         fi
6691         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6692           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6693         else
6694         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6695       fi
6696       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6697       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6698         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6699           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6700         else
6701           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6702         fi
6703           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6704       hardcode_direct=no
6705       hardcode_automatic=yes
6706       hardcode_shlibpath_var=unsupported
6707       whole_archive_flag_spec='-all_load $convenience'
6708       link_all_deplibs=yes
6709     fi
6710       ;;
6711
6712     dgux*)
6713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714       hardcode_libdir_flag_spec='-L$libdir'
6715       hardcode_shlibpath_var=no
6716       ;;
6717
6718     freebsd1*)
6719       ld_shlibs=no
6720       ;;
6721
6722     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6723     # support.  Future versions do this automatically, but an explicit c++rt0.o
6724     # does not break anything, and helps significantly (at the cost of a little
6725     # extra space).
6726     freebsd2.2*)
6727       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6728       hardcode_libdir_flag_spec='-R$libdir'
6729       hardcode_direct=yes
6730       hardcode_shlibpath_var=no
6731       ;;
6732
6733     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6734     freebsd2*)
6735       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6736       hardcode_direct=yes
6737       hardcode_minus_L=yes
6738       hardcode_shlibpath_var=no
6739       ;;
6740
6741     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6742     freebsd*)
6743       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6744       hardcode_libdir_flag_spec='-R$libdir'
6745       hardcode_direct=yes
6746       hardcode_shlibpath_var=no
6747       ;;
6748
6749     hpux9*)
6750       if test "$GCC" = yes; then
6751         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'
6752       else
6753         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'
6754       fi
6755       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6756       hardcode_libdir_separator=:
6757       hardcode_direct=yes
6758
6759       # hardcode_minus_L: Not really in the search PATH,
6760       # but as the default location of the library.
6761       hardcode_minus_L=yes
6762       export_dynamic_flag_spec='${wl}-E'
6763       ;;
6764
6765     hpux10* | hpux11*)
6766       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6767         case "$host_cpu" in
6768         hppa*64*|ia64*)
6769           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6770           ;;
6771         *)
6772           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6773           ;;
6774         esac
6775       else
6776         case "$host_cpu" in
6777         hppa*64*|ia64*)
6778           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6779           ;;
6780         *)
6781           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6782           ;;
6783         esac
6784       fi
6785       if test "$with_gnu_ld" = no; then
6786         case "$host_cpu" in
6787         hppa*64*)
6788           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6789           hardcode_libdir_flag_spec_ld='+b $libdir'
6790           hardcode_libdir_separator=:
6791           hardcode_direct=no
6792           hardcode_shlibpath_var=no
6793           ;;
6794         ia64*)
6795           hardcode_libdir_flag_spec='-L$libdir'
6796           hardcode_direct=no
6797           hardcode_shlibpath_var=no
6798
6799           # hardcode_minus_L: Not really in the search PATH,
6800           # but as the default location of the library.
6801           hardcode_minus_L=yes
6802           ;;
6803         *)
6804           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6805           hardcode_libdir_separator=:
6806           hardcode_direct=yes
6807           export_dynamic_flag_spec='${wl}-E'
6808
6809           # hardcode_minus_L: Not really in the search PATH,
6810           # but as the default location of the library.
6811           hardcode_minus_L=yes
6812           ;;
6813         esac
6814       fi
6815       ;;
6816
6817     irix5* | irix6* | nonstopux*)
6818       if test "$GCC" = yes; then
6819         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'
6820       else
6821         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'
6822         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6823       fi
6824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6825       hardcode_libdir_separator=:
6826       link_all_deplibs=yes
6827       ;;
6828
6829     netbsd*)
6830       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6831         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6832       else
6833         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6834       fi
6835       hardcode_libdir_flag_spec='-R$libdir'
6836       hardcode_direct=yes
6837       hardcode_shlibpath_var=no
6838       ;;
6839
6840     newsos6)
6841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6842       hardcode_direct=yes
6843       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6844       hardcode_libdir_separator=:
6845       hardcode_shlibpath_var=no
6846       ;;
6847
6848     openbsd*)
6849       hardcode_direct=yes
6850       hardcode_shlibpath_var=no
6851       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6852         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6853         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6854         export_dynamic_flag_spec='${wl}-E'
6855       else
6856        case $host_os in
6857          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6858            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6859            hardcode_libdir_flag_spec='-R$libdir'
6860            ;;
6861          *)
6862            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6863            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6864            ;;
6865        esac
6866       fi
6867       ;;
6868
6869     os2*)
6870       hardcode_libdir_flag_spec='-L$libdir'
6871       hardcode_minus_L=yes
6872       allow_undefined_flag=unsupported
6873       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'
6874       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6875       ;;
6876
6877     osf3*)
6878       if test "$GCC" = yes; then
6879         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6880         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'
6881       else
6882         allow_undefined_flag=' -expect_unresolved \*'
6883         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'
6884       fi
6885       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6886       hardcode_libdir_separator=:
6887       ;;
6888
6889     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6890       if test "$GCC" = yes; then
6891         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6892         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'
6893         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6894       else
6895         allow_undefined_flag=' -expect_unresolved \*'
6896         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'
6897         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6898         $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'
6899
6900         # Both c and cxx compiler support -rpath directly
6901         hardcode_libdir_flag_spec='-rpath $libdir'
6902       fi
6903       hardcode_libdir_separator=:
6904       ;;
6905
6906     sco3.2v5*)
6907       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6908       hardcode_shlibpath_var=no
6909       export_dynamic_flag_spec='${wl}-Bexport'
6910       runpath_var=LD_RUN_PATH
6911       hardcode_runpath_var=yes
6912       ;;
6913
6914     solaris*)
6915       no_undefined_flag=' -z text'
6916       if test "$GCC" = yes; then
6917         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6918         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6919           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6920       else
6921         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6924       fi
6925       hardcode_libdir_flag_spec='-R$libdir'
6926       hardcode_shlibpath_var=no
6927       case $host_os in
6928       solaris2.[0-5] | solaris2.[0-5].*) ;;
6929       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6930         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6931       esac
6932       link_all_deplibs=yes
6933       ;;
6934
6935     sunos4*)
6936       if test "x$host_vendor" = xsequent; then
6937         # Use $CC to link under sequent, because it throws in some extra .o
6938         # files that make .init and .fini sections work.
6939         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6940       else
6941         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6942       fi
6943       hardcode_libdir_flag_spec='-L$libdir'
6944       hardcode_direct=yes
6945       hardcode_minus_L=yes
6946       hardcode_shlibpath_var=no
6947       ;;
6948
6949     sysv4)
6950       case $host_vendor in
6951         sni)
6952           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6953           hardcode_direct=yes # is this really true???
6954         ;;
6955         siemens)
6956           ## LD is ld it makes a PLAMLIB
6957           ## CC just makes a GrossModule.
6958           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6959           reload_cmds='$CC -r -o $output$reload_objs'
6960           hardcode_direct=no
6961         ;;
6962         motorola)
6963           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6964           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6965         ;;
6966       esac
6967       runpath_var='LD_RUN_PATH'
6968       hardcode_shlibpath_var=no
6969       ;;
6970
6971     sysv4.3*)
6972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6973       hardcode_shlibpath_var=no
6974       export_dynamic_flag_spec='-Bexport'
6975       ;;
6976
6977     sysv4*MP*)
6978       if test -d /usr/nec; then
6979         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980         hardcode_shlibpath_var=no
6981         runpath_var=LD_RUN_PATH
6982         hardcode_runpath_var=yes
6983         ld_shlibs=yes
6984       fi
6985       ;;
6986
6987     sysv4.2uw2*)
6988       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6989       hardcode_direct=yes
6990       hardcode_minus_L=no
6991       hardcode_shlibpath_var=no
6992       hardcode_runpath_var=yes
6993       runpath_var=LD_RUN_PATH
6994       ;;
6995
6996    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6997       no_undefined_flag='${wl}-z ${wl}text'
6998       if test "$GCC" = yes; then
6999         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7000       else
7001         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7002       fi
7003       runpath_var='LD_RUN_PATH'
7004       hardcode_shlibpath_var=no
7005       ;;
7006
7007     sysv5*)
7008       no_undefined_flag=' -z text'
7009       # $CC -shared without GNU ld will not create a library from C++
7010       # object files and a static libstdc++, better avoid it by now
7011       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7013                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7014       hardcode_libdir_flag_spec=
7015       hardcode_shlibpath_var=no
7016       runpath_var='LD_RUN_PATH'
7017       ;;
7018
7019     uts4*)
7020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7021       hardcode_libdir_flag_spec='-L$libdir'
7022       hardcode_shlibpath_var=no
7023       ;;
7024
7025     *)
7026       ld_shlibs=no
7027       ;;
7028     esac
7029   fi
7030
7031 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7032 echo "${ECHO_T}$ld_shlibs" >&6
7033 test "$ld_shlibs" = no && can_build_shared=no
7034
7035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7036 if test "$GCC" = yes; then
7037   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7038 fi
7039
7040 #
7041 # Do we need to explicitly link libc?
7042 #
7043 case "x$archive_cmds_need_lc" in
7044 x|xyes)
7045   # Assume -lc should be added
7046   archive_cmds_need_lc=yes
7047
7048   if test "$enable_shared" = yes && test "$GCC" = yes; then
7049     case $archive_cmds in
7050     *'~'*)
7051       # FIXME: we may have to deal with multi-command sequences.
7052       ;;
7053     '$CC '*)
7054       # Test whether the compiler implicitly links with -lc since on some
7055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7056       # to ld, don't add -lc before -lgcc.
7057       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7059       $rm conftest*
7060       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7061
7062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063   (eval $ac_compile) 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); } 2>conftest.err; then
7067         soname=conftest
7068         lib=conftest
7069         libobjs=conftest.$ac_objext
7070         deplibs=
7071         wl=$lt_prog_compiler_wl
7072         compiler_flags=-v
7073         linker_flags=-v
7074         verstring=
7075         output_objdir=.
7076         libname=conftest
7077         lt_save_allow_undefined_flag=$allow_undefined_flag
7078         allow_undefined_flag=
7079         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7080   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }
7084         then
7085           archive_cmds_need_lc=no
7086         else
7087           archive_cmds_need_lc=yes
7088         fi
7089         allow_undefined_flag=$lt_save_allow_undefined_flag
7090       else
7091         cat conftest.err 1>&5
7092       fi
7093       $rm conftest*
7094       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7095 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7096       ;;
7097     esac
7098   fi
7099   ;;
7100 esac
7101
7102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7104 hardcode_action=
7105 if test -n "$hardcode_libdir_flag_spec" || \
7106    test -n "$runpath_var " || \
7107    test "X$hardcode_automatic"="Xyes" ; then
7108
7109   # We can hardcode non-existant directories.
7110   if test "$hardcode_direct" != no &&
7111      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7112      # have to relink, otherwise we might link with an installed library
7113      # when we should be linking with a yet-to-be-installed one
7114      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7115      test "$hardcode_minus_L" != no; then
7116     # Linking always hardcodes the temporary library directory.
7117     hardcode_action=relink
7118   else
7119     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7120     hardcode_action=immediate
7121   fi
7122 else
7123   # We cannot hardcode anything, or else we can only hardcode existing
7124   # directories.
7125   hardcode_action=unsupported
7126 fi
7127 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7128 echo "${ECHO_T}$hardcode_action" >&6
7129
7130 if test "$hardcode_action" = relink; then
7131   # Fast installation is not supported
7132   enable_fast_install=no
7133 elif test "$shlibpath_overrides_runpath" = yes ||
7134      test "$enable_shared" = no; then
7135   # Fast installation is not necessary
7136   enable_fast_install=needless
7137 fi
7138
7139 striplib=
7140 old_striplib=
7141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7144   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7145   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7146   echo "$as_me:$LINENO: result: yes" >&5
7147 echo "${ECHO_T}yes" >&6
7148 else
7149 # FIXME - insert some real tests, host_os isn't really good enough
7150   case $host_os in
7151    darwin*)
7152        if test -n "$STRIP" ; then
7153          striplib="$STRIP -x"
7154          echo "$as_me:$LINENO: result: yes" >&5
7155 echo "${ECHO_T}yes" >&6
7156        else
7157   echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6
7159 fi
7160        ;;
7161    *)
7162   echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7164     ;;
7165   esac
7166 fi
7167
7168 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7169 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7170 library_names_spec=
7171 libname_spec='lib$name'
7172 soname_spec=
7173 shrext=".so"
7174 postinstall_cmds=
7175 postuninstall_cmds=
7176 finish_cmds=
7177 finish_eval=
7178 shlibpath_var=
7179 shlibpath_overrides_runpath=unknown
7180 version_type=none
7181 dynamic_linker="$host_os ld.so"
7182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7183 if test "$GCC" = yes; then
7184   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7185   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7186     # if the path contains ";" then we assume it to be the separator
7187     # otherwise default to the standard path separator (i.e. ":") - it is
7188     # assumed that no part of a normal pathname contains ";" but that should
7189     # okay in the real world where ";" in dirpaths is itself problematic.
7190     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7191   else
7192     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7193   fi
7194 else
7195   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7196 fi
7197 need_lib_prefix=unknown
7198 hardcode_into_libs=no
7199
7200 # when you set need_version to no, make sure it does not cause -set_version
7201 # flags to be left without arguments
7202 need_version=unknown
7203
7204 case $host_os in
7205 aix3*)
7206   version_type=linux
7207   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7208   shlibpath_var=LIBPATH
7209
7210   # AIX 3 has no versioning support, so we append a major version to the name.
7211   soname_spec='${libname}${release}${shared_ext}$major'
7212   ;;
7213
7214 aix4* | aix5*)
7215   version_type=linux
7216   need_lib_prefix=no
7217   need_version=no
7218   hardcode_into_libs=yes
7219   if test "$host_cpu" = ia64; then
7220     # AIX 5 supports IA64
7221     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7222     shlibpath_var=LD_LIBRARY_PATH
7223   else
7224     # With GCC up to 2.95.x, collect2 would create an import file
7225     # for dependence libraries.  The import file would start with
7226     # the line `#! .'.  This would cause the generated library to
7227     # depend on `.', always an invalid library.  This was fixed in
7228     # development snapshots of GCC prior to 3.0.
7229     case $host_os in
7230       aix4 | aix4.[01] | aix4.[01].*)
7231       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7232            echo ' yes '
7233            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7234         :
7235       else
7236         can_build_shared=no
7237       fi
7238       ;;
7239     esac
7240     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7241     # soname into executable. Probably we can add versioning support to
7242     # collect2, so additional links can be useful in future.
7243     if test "$aix_use_runtimelinking" = yes; then
7244       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7245       # instead of lib<name>.a to let people know that these are not
7246       # typical AIX shared libraries.
7247       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7248     else
7249       # We preserve .a as extension for shared libraries through AIX4.2
7250       # and later when we are not doing run time linking.
7251       library_names_spec='${libname}${release}.a $libname.a'
7252       soname_spec='${libname}${release}${shared_ext}$major'
7253     fi
7254     shlibpath_var=LIBPATH
7255   fi
7256   ;;
7257
7258 amigaos*)
7259   library_names_spec='$libname.ixlibrary $libname.a'
7260   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7261   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'
7262   ;;
7263
7264 beos*)
7265   library_names_spec='${libname}${shared_ext}'
7266   dynamic_linker="$host_os ld.so"
7267   shlibpath_var=LIBRARY_PATH
7268   ;;
7269
7270 bsdi4*)
7271   version_type=linux
7272   need_version=no
7273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7274   soname_spec='${libname}${release}${shared_ext}$major'
7275   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7276   shlibpath_var=LD_LIBRARY_PATH
7277   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7278   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7279   # the default ld.so.conf also contains /usr/contrib/lib and
7280   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7281   # libtool to hard-code these into programs
7282   ;;
7283
7284 cygwin* | mingw* | pw32*)
7285   version_type=windows
7286   shrext=".dll"
7287   need_version=no
7288   need_lib_prefix=no
7289
7290   case $GCC,$host_os in
7291   yes,cygwin* | yes,mingw* | yes,pw32*)
7292     library_names_spec='$libname.dll.a'
7293     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7294     postinstall_cmds='base_file=`basename \${file}`~
7295       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7296       dldir=$destdir/`dirname \$dlpath`~
7297       test -d \$dldir || mkdir -p \$dldir~
7298       $install_prog $dir/$dlname \$dldir/$dlname'
7299     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7300       dlpath=$dir/\$dldll~
7301        $rm \$dlpath'
7302     shlibpath_overrides_runpath=yes
7303
7304     case $host_os in
7305     cygwin*)
7306       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7307       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7308       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7309       ;;
7310     mingw*)
7311       # MinGW DLLs use traditional 'lib' prefix
7312       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7313       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7314       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7315         # It is most probably a Windows format PATH printed by
7316         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7317         # path with ; separators, and with drive letters. We can handle the
7318         # drive letters (cygwin fileutils understands them), so leave them,
7319         # especially as we might pass files found there to a mingw objdump,
7320         # which wouldn't understand a cygwinified path. Ahh.
7321         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7322       else
7323         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7324       fi
7325       ;;
7326     pw32*)
7327       # pw32 DLLs use 'pw' prefix rather than 'lib'
7328       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7329       ;;
7330     esac
7331     ;;
7332
7333   *)
7334     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7335     ;;
7336   esac
7337   dynamic_linker='Win32 ld.exe'
7338   # FIXME: first we should search . and the directory the executable is in
7339   shlibpath_var=PATH
7340   ;;
7341
7342 darwin* | rhapsody*)
7343   dynamic_linker="$host_os dyld"
7344   version_type=darwin
7345   need_lib_prefix=no
7346   need_version=no
7347   # FIXME: Relying on posixy $() will cause problems for
7348   #        cross-compilation, but unfortunately the echo tests do not
7349   #        yet detect zsh echo's removal of \ escapes.
7350   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7351   soname_spec='${libname}${release}${major}$shared_ext'
7352   shlibpath_overrides_runpath=yes
7353   shlibpath_var=DYLD_LIBRARY_PATH
7354   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7355   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7356   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7357   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"`
7358   fi
7359   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7360   ;;
7361
7362 dgux*)
7363   version_type=linux
7364   need_lib_prefix=no
7365   need_version=no
7366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7367   soname_spec='${libname}${release}${shared_ext}$major'
7368   shlibpath_var=LD_LIBRARY_PATH
7369   ;;
7370
7371 freebsd1*)
7372   dynamic_linker=no
7373   ;;
7374
7375 freebsd*)
7376   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7377   version_type=freebsd-$objformat
7378   case $version_type in
7379     freebsd-elf*)
7380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7381       need_version=no
7382       need_lib_prefix=no
7383       ;;
7384     freebsd-*)
7385       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7386       need_version=yes
7387       ;;
7388   esac
7389   shlibpath_var=LD_LIBRARY_PATH
7390   case $host_os in
7391   freebsd2*)
7392     shlibpath_overrides_runpath=yes
7393     ;;
7394   freebsd3.01* | freebsdelf3.01*)
7395     shlibpath_overrides_runpath=yes
7396     hardcode_into_libs=yes
7397     ;;
7398   *) # from 3.2 on
7399     shlibpath_overrides_runpath=no
7400     hardcode_into_libs=yes
7401     ;;
7402   esac
7403   ;;
7404
7405 gnu*)
7406   version_type=linux
7407   need_lib_prefix=no
7408   need_version=no
7409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7410   soname_spec='${libname}${release}${shared_ext}$major'
7411   shlibpath_var=LD_LIBRARY_PATH
7412   hardcode_into_libs=yes
7413   ;;
7414
7415 hpux9* | hpux10* | hpux11*)
7416   # Give a soname corresponding to the major version so that dld.sl refuses to
7417   # link against other versions.
7418   version_type=sunos
7419   need_lib_prefix=no
7420   need_version=no
7421   case "$host_cpu" in
7422   ia64*)
7423     shrext='.so'
7424     hardcode_into_libs=yes
7425     dynamic_linker="$host_os dld.so"
7426     shlibpath_var=LD_LIBRARY_PATH
7427     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7429     soname_spec='${libname}${release}${shared_ext}$major'
7430     if test "X$HPUX_IA64_MODE" = X32; then
7431       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7432     else
7433       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7434     fi
7435     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7436     ;;
7437    hppa*64*)
7438      shrext='.sl'
7439      hardcode_into_libs=yes
7440      dynamic_linker="$host_os dld.sl"
7441      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7442      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7444      soname_spec='${libname}${release}${shared_ext}$major'
7445      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7446      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7447      ;;
7448    *)
7449     shrext='.sl'
7450     dynamic_linker="$host_os dld.sl"
7451     shlibpath_var=SHLIB_PATH
7452     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7454     soname_spec='${libname}${release}${shared_ext}$major'
7455     ;;
7456   esac
7457   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7458   postinstall_cmds='chmod 555 $lib'
7459   ;;
7460
7461 irix5* | irix6* | nonstopux*)
7462   case $host_os in
7463     nonstopux*) version_type=nonstopux ;;
7464     *)
7465         if test "$lt_cv_prog_gnu_ld" = yes; then
7466                 version_type=linux
7467         else
7468                 version_type=irix
7469         fi ;;
7470   esac
7471   need_lib_prefix=no
7472   need_version=no
7473   soname_spec='${libname}${release}${shared_ext}$major'
7474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7475   case $host_os in
7476   irix5* | nonstopux*)
7477     libsuff= shlibsuff=
7478     ;;
7479   *)
7480     case $LD in # libtool.m4 will add one of these switches to LD
7481     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7482       libsuff= shlibsuff= libmagic=32-bit;;
7483     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7484       libsuff=32 shlibsuff=N32 libmagic=N32;;
7485     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7486       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7487     *) libsuff= shlibsuff= libmagic=never-match;;
7488     esac
7489     ;;
7490   esac
7491   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7492   shlibpath_overrides_runpath=no
7493   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7494   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7495   hardcode_into_libs=yes
7496   ;;
7497
7498 # No shared lib support for Linux oldld, aout, or coff.
7499 linux*oldld* | linux*aout* | linux*coff*)
7500   dynamic_linker=no
7501   ;;
7502
7503 # This must be Linux ELF.
7504 linux*)
7505   version_type=linux
7506   need_lib_prefix=no
7507   need_version=no
7508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7509   soname_spec='${libname}${release}${shared_ext}$major'
7510   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7511   shlibpath_var=LD_LIBRARY_PATH
7512   shlibpath_overrides_runpath=no
7513   # This implies no fast_install, which is unacceptable.
7514   # Some rework will be needed to allow for fast_install
7515   # before this can be enabled.
7516   hardcode_into_libs=yes
7517
7518   # We used to test for /lib/ld.so.1 and disable shared libraries on
7519   # powerpc, because MkLinux only supported shared libraries with the
7520   # GNU dynamic linker.  Since this was broken with cross compilers,
7521   # most powerpc-linux boxes support dynamic linking these days and
7522   # people can always --disable-shared, the test was removed, and we
7523   # assume the GNU/Linux dynamic linker is in use.
7524   dynamic_linker='GNU/Linux ld.so'
7525   ;;
7526
7527 netbsd*)
7528   version_type=sunos
7529   need_lib_prefix=no
7530   need_version=no
7531   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7533     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7534     dynamic_linker='NetBSD (a.out) ld.so'
7535   else
7536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7537     soname_spec='${libname}${release}${shared_ext}$major'
7538     dynamic_linker='NetBSD ld.elf_so'
7539   fi
7540   shlibpath_var=LD_LIBRARY_PATH
7541   shlibpath_overrides_runpath=yes
7542   hardcode_into_libs=yes
7543   ;;
7544
7545 newsos6)
7546   version_type=linux
7547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7548   shlibpath_var=LD_LIBRARY_PATH
7549   shlibpath_overrides_runpath=yes
7550   ;;
7551
7552 nto-qnx)
7553   version_type=linux
7554   need_lib_prefix=no
7555   need_version=no
7556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7557   soname_spec='${libname}${release}${shared_ext}$major'
7558   shlibpath_var=LD_LIBRARY_PATH
7559   shlibpath_overrides_runpath=yes
7560   ;;
7561
7562 openbsd*)
7563   version_type=sunos
7564   need_lib_prefix=no
7565   need_version=no
7566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7568   shlibpath_var=LD_LIBRARY_PATH
7569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7570     case $host_os in
7571       openbsd2.[89] | openbsd2.[89].*)
7572         shlibpath_overrides_runpath=no
7573         ;;
7574       *)
7575         shlibpath_overrides_runpath=yes
7576         ;;
7577       esac
7578   else
7579     shlibpath_overrides_runpath=yes
7580   fi
7581   ;;
7582
7583 os2*)
7584   libname_spec='$name'
7585   shrext=".dll"
7586   need_lib_prefix=no
7587   library_names_spec='$libname${shared_ext} $libname.a'
7588   dynamic_linker='OS/2 ld.exe'
7589   shlibpath_var=LIBPATH
7590   ;;
7591
7592 osf3* | osf4* | osf5*)
7593   version_type=osf
7594   need_lib_prefix=no
7595   need_version=no
7596   soname_spec='${libname}${release}${shared_ext}$major'
7597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7598   shlibpath_var=LD_LIBRARY_PATH
7599   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7600   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7601   ;;
7602
7603 sco3.2v5*)
7604   version_type=osf
7605   soname_spec='${libname}${release}${shared_ext}$major'
7606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7607   shlibpath_var=LD_LIBRARY_PATH
7608   ;;
7609
7610 solaris*)
7611   version_type=linux
7612   need_lib_prefix=no
7613   need_version=no
7614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7615   soname_spec='${libname}${release}${shared_ext}$major'
7616   shlibpath_var=LD_LIBRARY_PATH
7617   shlibpath_overrides_runpath=yes
7618   hardcode_into_libs=yes
7619   # ldd complains unless libraries are executable
7620   postinstall_cmds='chmod +x $lib'
7621   ;;
7622
7623 sunos4*)
7624   version_type=sunos
7625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7626   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7627   shlibpath_var=LD_LIBRARY_PATH
7628   shlibpath_overrides_runpath=yes
7629   if test "$with_gnu_ld" = yes; then
7630     need_lib_prefix=no
7631   fi
7632   need_version=yes
7633   ;;
7634
7635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7636   version_type=linux
7637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7638   soname_spec='${libname}${release}${shared_ext}$major'
7639   shlibpath_var=LD_LIBRARY_PATH
7640   case $host_vendor in
7641     sni)
7642       shlibpath_overrides_runpath=no
7643       need_lib_prefix=no
7644       export_dynamic_flag_spec='${wl}-Blargedynsym'
7645       runpath_var=LD_RUN_PATH
7646       ;;
7647     siemens)
7648       need_lib_prefix=no
7649       ;;
7650     motorola)
7651       need_lib_prefix=no
7652       need_version=no
7653       shlibpath_overrides_runpath=no
7654       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7655       ;;
7656   esac
7657   ;;
7658
7659 sysv4*MP*)
7660   if test -d /usr/nec ;then
7661     version_type=linux
7662     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7663     soname_spec='$libname${shared_ext}.$major'
7664     shlibpath_var=LD_LIBRARY_PATH
7665   fi
7666   ;;
7667
7668 uts4*)
7669   version_type=linux
7670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7671   soname_spec='${libname}${release}${shared_ext}$major'
7672   shlibpath_var=LD_LIBRARY_PATH
7673   ;;
7674
7675 *)
7676   dynamic_linker=no
7677   ;;
7678 esac
7679 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7680 echo "${ECHO_T}$dynamic_linker" >&6
7681 test "$dynamic_linker" = no && can_build_shared=no
7682
7683 if test "x$enable_dlopen" != xyes; then
7684   enable_dlopen=unknown
7685   enable_dlopen_self=unknown
7686   enable_dlopen_self_static=unknown
7687 else
7688   lt_cv_dlopen=no
7689   lt_cv_dlopen_libs=
7690
7691   case $host_os in
7692   beos*)
7693     lt_cv_dlopen="load_add_on"
7694     lt_cv_dlopen_libs=
7695     lt_cv_dlopen_self=yes
7696     ;;
7697
7698   mingw* | pw32*)
7699     lt_cv_dlopen="LoadLibrary"
7700     lt_cv_dlopen_libs=
7701    ;;
7702
7703   cygwin*)
7704     lt_cv_dlopen="dlopen"
7705     lt_cv_dlopen_libs=
7706    ;;
7707
7708   darwin*)
7709   # if libdl is installed we need to link against it
7710     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7711 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-ldl  $LIBS"
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724
7725 /* Override any gcc2 internal prototype to avoid an error.  */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 /* We use char because int might match the return type of a gcc2
7730    builtin and then its argument prototype would still apply.  */
7731 char dlopen ();
7732 int
7733 main ()
7734 {
7735 dlopen ();
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742   (eval $ac_link) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); } &&
7746          { ac_try='test -s conftest$ac_exeext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   ac_cv_lib_dl_dlopen=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_cv_lib_dl_dlopen=no
7758 fi
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7761 fi
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7764 if test $ac_cv_lib_dl_dlopen = yes; then
7765   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7766 else
7767
7768     lt_cv_dlopen="dyld"
7769     lt_cv_dlopen_libs=
7770     lt_cv_dlopen_self=yes
7771
7772 fi
7773
7774    ;;
7775
7776   *)
7777     echo "$as_me:$LINENO: checking for shl_load" >&5
7778 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7779 if test "${ac_cv_func_shl_load+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 #line $LINENO "configure"
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 /* System header to define __stub macros and hopefully few prototypes,
7790     which can conflict with char shl_load (); below.
7791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792     <limits.h> exists even on freestanding compilers.  */
7793 #ifdef __STDC__
7794 # include <limits.h>
7795 #else
7796 # include <assert.h>
7797 #endif
7798 /* Override any gcc2 internal prototype to avoid an error.  */
7799 #ifdef __cplusplus
7800 extern "C"
7801 {
7802 #endif
7803 /* We use char because int might match the return type of a gcc2
7804    builtin and then its argument prototype would still apply.  */
7805 char shl_load ();
7806 /* The GNU C library defines this for functions which it implements
7807     to always fail with ENOSYS.  Some functions are actually named
7808     something starting with __ and the normal name is an alias.  */
7809 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7810 choke me
7811 #else
7812 char (*f) () = shl_load;
7813 #endif
7814 #ifdef __cplusplus
7815 }
7816 #endif
7817
7818 int
7819 main ()
7820 {
7821 return f != shl_load;
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828   (eval $ac_link) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -s conftest$ac_exeext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   ac_cv_func_shl_load=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 ac_cv_func_shl_load=no
7844 fi
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846 fi
7847 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7849 if test $ac_cv_func_shl_load = yes; then
7850   lt_cv_dlopen="shl_load"
7851 else
7852   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7853 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7854 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   ac_check_lib_save_LIBS=$LIBS
7858 LIBS="-ldld  $LIBS"
7859 cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7861 /* confdefs.h.  */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h.  */
7866
7867 /* Override any gcc2 internal prototype to avoid an error.  */
7868 #ifdef __cplusplus
7869 extern "C"
7870 #endif
7871 /* We use char because int might match the return type of a gcc2
7872    builtin and then its argument prototype would still apply.  */
7873 char shl_load ();
7874 int
7875 main ()
7876 {
7877 shl_load ();
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7884   (eval $ac_link) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); } &&
7888          { ac_try='test -s conftest$ac_exeext'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894   ac_cv_lib_dld_shl_load=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 ac_cv_lib_dld_shl_load=no
7900 fi
7901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7903 fi
7904 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7905 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7906 if test $ac_cv_lib_dld_shl_load = yes; then
7907   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7908 else
7909   echo "$as_me:$LINENO: checking for dlopen" >&5
7910 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7911 if test "${ac_cv_func_dlopen+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 /* confdefs.h.  */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h.  */
7921 /* System header to define __stub macros and hopefully few prototypes,
7922     which can conflict with char dlopen (); below.
7923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924     <limits.h> exists even on freestanding compilers.  */
7925 #ifdef __STDC__
7926 # include <limits.h>
7927 #else
7928 # include <assert.h>
7929 #endif
7930 /* Override any gcc2 internal prototype to avoid an error.  */
7931 #ifdef __cplusplus
7932 extern "C"
7933 {
7934 #endif
7935 /* We use char because int might match the return type of a gcc2
7936    builtin and then its argument prototype would still apply.  */
7937 char dlopen ();
7938 /* The GNU C library defines this for functions which it implements
7939     to always fail with ENOSYS.  Some functions are actually named
7940     something starting with __ and the normal name is an alias.  */
7941 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7942 choke me
7943 #else
7944 char (*f) () = dlopen;
7945 #endif
7946 #ifdef __cplusplus
7947 }
7948 #endif
7949
7950 int
7951 main ()
7952 {
7953 return f != dlopen;
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960   (eval $ac_link) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -s conftest$ac_exeext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_cv_func_dlopen=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_func_dlopen=no
7976 fi
7977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7978 fi
7979 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7980 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7981 if test $ac_cv_func_dlopen = yes; then
7982   lt_cv_dlopen="dlopen"
7983 else
7984   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7985 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   ac_check_lib_save_LIBS=$LIBS
7990 LIBS="-ldl  $LIBS"
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998
7999 /* Override any gcc2 internal prototype to avoid an error.  */
8000 #ifdef __cplusplus
8001 extern "C"
8002 #endif
8003 /* We use char because int might match the return type of a gcc2
8004    builtin and then its argument prototype would still apply.  */
8005 char dlopen ();
8006 int
8007 main ()
8008 {
8009 dlopen ();
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016   (eval $ac_link) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -s conftest$ac_exeext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_cv_lib_dl_dlopen=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_cv_lib_dl_dlopen=no
8032 fi
8033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8035 fi
8036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8038 if test $ac_cv_lib_dl_dlopen = yes; then
8039   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8040 else
8041   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   ac_check_lib_save_LIBS=$LIBS
8047 LIBS="-lsvld  $LIBS"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line $LINENO "configure"
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055
8056 /* Override any gcc2 internal prototype to avoid an error.  */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 /* We use char because int might match the return type of a gcc2
8061    builtin and then its argument prototype would still apply.  */
8062 char dlopen ();
8063 int
8064 main ()
8065 {
8066 dlopen ();
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8073   (eval $ac_link) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } &&
8077          { ac_try='test -s conftest$ac_exeext'
8078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079   (eval $ac_try) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; }; then
8083   ac_cv_lib_svld_dlopen=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 ac_cv_lib_svld_dlopen=no
8089 fi
8090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091 LIBS=$ac_check_lib_save_LIBS
8092 fi
8093 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8095 if test $ac_cv_lib_svld_dlopen = yes; then
8096   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8097 else
8098   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   ac_check_lib_save_LIBS=$LIBS
8104 LIBS="-ldld  $LIBS"
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112
8113 /* Override any gcc2 internal prototype to avoid an error.  */
8114 #ifdef __cplusplus
8115 extern "C"
8116 #endif
8117 /* We use char because int might match the return type of a gcc2
8118    builtin and then its argument prototype would still apply.  */
8119 char dld_link ();
8120 int
8121 main ()
8122 {
8123 dld_link ();
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130   (eval $ac_link) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -s conftest$ac_exeext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_lib_dld_dld_link=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_cv_lib_dld_dld_link=no
8146 fi
8147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 LIBS=$ac_check_lib_save_LIBS
8149 fi
8150 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8151 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8152 if test $ac_cv_lib_dld_dld_link = yes; then
8153   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8154 fi
8155
8156
8157 fi
8158
8159
8160 fi
8161
8162
8163 fi
8164
8165
8166 fi
8167
8168
8169 fi
8170
8171     ;;
8172   esac
8173
8174   if test "x$lt_cv_dlopen" != xno; then
8175     enable_dlopen=yes
8176   else
8177     enable_dlopen=no
8178   fi
8179
8180   case $lt_cv_dlopen in
8181   dlopen)
8182     save_CPPFLAGS="$CPPFLAGS"
8183     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8184
8185     save_LDFLAGS="$LDFLAGS"
8186     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8187
8188     save_LIBS="$LIBS"
8189     LIBS="$lt_cv_dlopen_libs $LIBS"
8190
8191     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8192 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8193 if test "${lt_cv_dlopen_self+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196           if test "$cross_compiling" = yes; then :
8197   lt_cv_dlopen_self=cross
8198 else
8199   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8200   lt_status=$lt_dlunknown
8201   cat > conftest.$ac_ext <<EOF
8202 #line 8202 "configure"
8203 #include "confdefs.h"
8204
8205 #if HAVE_DLFCN_H
8206 #include <dlfcn.h>
8207 #endif
8208
8209 #include <stdio.h>
8210
8211 #ifdef RTLD_GLOBAL
8212 #  define LT_DLGLOBAL           RTLD_GLOBAL
8213 #else
8214 #  ifdef DL_GLOBAL
8215 #    define LT_DLGLOBAL         DL_GLOBAL
8216 #  else
8217 #    define LT_DLGLOBAL         0
8218 #  endif
8219 #endif
8220
8221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8222    find out it does not work in some platform. */
8223 #ifndef LT_DLLAZY_OR_NOW
8224 #  ifdef RTLD_LAZY
8225 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8226 #  else
8227 #    ifdef DL_LAZY
8228 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8229 #    else
8230 #      ifdef RTLD_NOW
8231 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8232 #      else
8233 #        ifdef DL_NOW
8234 #          define LT_DLLAZY_OR_NOW      DL_NOW
8235 #        else
8236 #          define LT_DLLAZY_OR_NOW      0
8237 #        endif
8238 #      endif
8239 #    endif
8240 #  endif
8241 #endif
8242
8243 #ifdef __cplusplus
8244 extern "C" void exit (int);
8245 #endif
8246
8247 void fnord() { int i=42;}
8248 int main ()
8249 {
8250   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8251   int status = $lt_dlunknown;
8252
8253   if (self)
8254     {
8255       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8256       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8257       /* dlclose (self); */
8258     }
8259
8260     exit (status);
8261 }
8262 EOF
8263   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264   (eval $ac_link) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8268     (./conftest; exit; ) 2>/dev/null
8269     lt_status=$?
8270     case x$lt_status in
8271       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8272       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8273       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8274     esac
8275   else :
8276     # compilation failed
8277     lt_cv_dlopen_self=no
8278   fi
8279 fi
8280 rm -fr conftest*
8281
8282
8283 fi
8284 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8286
8287     if test "x$lt_cv_dlopen_self" = xyes; then
8288       LDFLAGS="$LDFLAGS $link_static_flag"
8289       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8291 if test "${lt_cv_dlopen_self_static+set}" = set; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294           if test "$cross_compiling" = yes; then :
8295   lt_cv_dlopen_self_static=cross
8296 else
8297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8298   lt_status=$lt_dlunknown
8299   cat > conftest.$ac_ext <<EOF
8300 #line 8300 "configure"
8301 #include "confdefs.h"
8302
8303 #if HAVE_DLFCN_H
8304 #include <dlfcn.h>
8305 #endif
8306
8307 #include <stdio.h>
8308
8309 #ifdef RTLD_GLOBAL
8310 #  define LT_DLGLOBAL           RTLD_GLOBAL
8311 #else
8312 #  ifdef DL_GLOBAL
8313 #    define LT_DLGLOBAL         DL_GLOBAL
8314 #  else
8315 #    define LT_DLGLOBAL         0
8316 #  endif
8317 #endif
8318
8319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8320    find out it does not work in some platform. */
8321 #ifndef LT_DLLAZY_OR_NOW
8322 #  ifdef RTLD_LAZY
8323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8324 #  else
8325 #    ifdef DL_LAZY
8326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8327 #    else
8328 #      ifdef RTLD_NOW
8329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8330 #      else
8331 #        ifdef DL_NOW
8332 #          define LT_DLLAZY_OR_NOW      DL_NOW
8333 #        else
8334 #          define LT_DLLAZY_OR_NOW      0
8335 #        endif
8336 #      endif
8337 #    endif
8338 #  endif
8339 #endif
8340
8341 #ifdef __cplusplus
8342 extern "C" void exit (int);
8343 #endif
8344
8345 void fnord() { int i=42;}
8346 int main ()
8347 {
8348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8349   int status = $lt_dlunknown;
8350
8351   if (self)
8352     {
8353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8354       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8355       /* dlclose (self); */
8356     }
8357
8358     exit (status);
8359 }
8360 EOF
8361   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362   (eval $ac_link) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8366     (./conftest; exit; ) 2>/dev/null
8367     lt_status=$?
8368     case x$lt_status in
8369       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8370       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8371       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8372     esac
8373   else :
8374     # compilation failed
8375     lt_cv_dlopen_self_static=no
8376   fi
8377 fi
8378 rm -fr conftest*
8379
8380
8381 fi
8382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8383 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8384     fi
8385
8386     CPPFLAGS="$save_CPPFLAGS"
8387     LDFLAGS="$save_LDFLAGS"
8388     LIBS="$save_LIBS"
8389     ;;
8390   esac
8391
8392   case $lt_cv_dlopen_self in
8393   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8394   *) enable_dlopen_self=unknown ;;
8395   esac
8396
8397   case $lt_cv_dlopen_self_static in
8398   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8399   *) enable_dlopen_self_static=unknown ;;
8400   esac
8401 fi
8402
8403
8404 # Report which librarie types wil actually be built
8405 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8406 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8407 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8408 echo "${ECHO_T}$can_build_shared" >&6
8409
8410 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8411 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8412 test "$can_build_shared" = "no" && enable_shared=no
8413
8414 # On AIX, shared libraries and static libraries use the same namespace, and
8415 # are all built from PIC.
8416 case "$host_os" in
8417 aix3*)
8418   test "$enable_shared" = yes && enable_static=no
8419   if test -n "$RANLIB"; then
8420     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8421     postinstall_cmds='$RANLIB $lib'
8422   fi
8423   ;;
8424
8425 aix4*)
8426   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8427     test "$enable_shared" = yes && enable_static=no
8428   fi
8429   ;;
8430   darwin* | rhapsody*)
8431   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8432     archive_cmds_need_lc=no
8433     case "$host_os" in
8434     rhapsody* | darwin1.[012])
8435       allow_undefined_flag='-undefined suppress'
8436       ;;
8437     *) # Darwin 1.3 on
8438       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8439       ;;
8440     esac
8441     # FIXME: Relying on posixy $() will cause problems for
8442     #        cross-compilation, but unfortunately the echo tests do not
8443     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8444     #          `"' quotes if we put them in here... so don't!
8445                 output_verbose_link_cmd='echo'
8446     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8447     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8448     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8449                   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}'
8450                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8451     hardcode_direct=no
8452     hardcode_automatic=yes
8453     hardcode_shlibpath_var=unsupported
8454     whole_archive_flag_spec='-all_load $convenience'
8455     link_all_deplibs=yes
8456     fi
8457     ;;
8458 esac
8459 echo "$as_me:$LINENO: result: $enable_shared" >&5
8460 echo "${ECHO_T}$enable_shared" >&6
8461
8462 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8463 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8464 # Make sure either enable_shared or enable_static is yes.
8465 test "$enable_shared" = yes || enable_static=yes
8466 echo "$as_me:$LINENO: result: $enable_static" >&5
8467 echo "${ECHO_T}$enable_static" >&6
8468
8469 # The else clause should only fire when bootstrapping the
8470 # libtool distribution, otherwise you forgot to ship ltmain.sh
8471 # with your package, and you will get complaints that there are
8472 # no rules to generate ltmain.sh.
8473 if test -f "$ltmain"; then
8474   # See if we are running on zsh, and set the options which allow our commands through
8475   # without removal of \ escapes.
8476   if test -n "${ZSH_VERSION+set}" ; then
8477     setopt NO_GLOB_SUBST
8478   fi
8479   # Now quote all the things that may contain metacharacters while being
8480   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8481   # variables and quote the copies for generation of the libtool script.
8482   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8483     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8484     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8485     deplibs_check_method reload_flag reload_cmds need_locks \
8486     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8487     lt_cv_sys_global_symbol_to_c_name_address \
8488     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8489     old_postinstall_cmds old_postuninstall_cmds \
8490     compiler \
8491     CC \
8492     LD \
8493     lt_prog_compiler_wl \
8494     lt_prog_compiler_pic \
8495     lt_prog_compiler_static \
8496     lt_prog_compiler_no_builtin_flag \
8497     export_dynamic_flag_spec \
8498     thread_safe_flag_spec \
8499     whole_archive_flag_spec \
8500     enable_shared_with_static_runtimes \
8501     old_archive_cmds \
8502     old_archive_from_new_cmds \
8503     predep_objects \
8504     postdep_objects \
8505     predeps \
8506     postdeps \
8507     compiler_lib_search_path \
8508     archive_cmds \
8509     archive_expsym_cmds \
8510     postinstall_cmds \
8511     postuninstall_cmds \
8512     old_archive_from_expsyms_cmds \
8513     allow_undefined_flag \
8514     no_undefined_flag \
8515     export_symbols_cmds \
8516     hardcode_libdir_flag_spec \
8517     hardcode_libdir_flag_spec_ld \
8518     hardcode_libdir_separator \
8519     hardcode_automatic \
8520     module_cmds \
8521     module_expsym_cmds \
8522     lt_cv_prog_compiler_c_o \
8523     exclude_expsyms \
8524     include_expsyms; do
8525
8526     case $var in
8527     old_archive_cmds | \
8528     old_archive_from_new_cmds | \
8529     archive_cmds | \
8530     archive_expsym_cmds | \
8531     module_cmds | \
8532     module_expsym_cmds | \
8533     old_archive_from_expsyms_cmds | \
8534     export_symbols_cmds | \
8535     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8536     postinstall_cmds | postuninstall_cmds | \
8537     old_postinstall_cmds | old_postuninstall_cmds | \
8538     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8539       # Double-quote double-evaled strings.
8540       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8541       ;;
8542     *)
8543       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8544       ;;
8545     esac
8546   done
8547
8548   case $lt_echo in
8549   *'\$0 --fallback-echo"')
8550     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8551     ;;
8552   esac
8553
8554 cfgfile="${ofile}T"
8555   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8556   $rm -f "$cfgfile"
8557   { echo "$as_me:$LINENO: creating $ofile" >&5
8558 echo "$as_me: creating $ofile" >&6;}
8559
8560   cat <<__EOF__ >> "$cfgfile"
8561 #! $SHELL
8562
8563 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8564 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8565 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8566 #
8567 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8568 # Free Software Foundation, Inc.
8569 #
8570 # This file is part of GNU Libtool:
8571 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8572 #
8573 # This program is free software; you can redistribute it and/or modify
8574 # it under the terms of the GNU General Public License as published by
8575 # the Free Software Foundation; either version 2 of the License, or
8576 # (at your option) any later version.
8577 #
8578 # This program is distributed in the hope that it will be useful, but
8579 # WITHOUT ANY WARRANTY; without even the implied warranty of
8580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8581 # General Public License for more details.
8582 #
8583 # You should have received a copy of the GNU General Public License
8584 # along with this program; if not, write to the Free Software
8585 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8586 #
8587 # As a special exception to the GNU General Public License, if you
8588 # distribute this file as part of a program that contains a
8589 # configuration script generated by Autoconf, you may include it under
8590 # the same distribution terms that you use for the rest of that program.
8591
8592 # A sed program that does not truncate output.
8593 SED=$lt_SED
8594
8595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8596 Xsed="$SED -e s/^X//"
8597
8598 # The HP-UX ksh and POSIX shell print the target directory to stdout
8599 # if CDPATH is set.
8600 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8601
8602 # The names of the tagged configurations supported by this script.
8603 available_tags=
8604
8605 # ### BEGIN LIBTOOL CONFIG
8606
8607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8608
8609 # Shell to use when invoking shell scripts.
8610 SHELL=$lt_SHELL
8611
8612 # Whether or not to build shared libraries.
8613 build_libtool_libs=$enable_shared
8614
8615 # Whether or not to build static libraries.
8616 build_old_libs=$enable_static
8617
8618 # Whether or not to add -lc for building shared libraries.
8619 build_libtool_need_lc=$archive_cmds_need_lc
8620
8621 # Whether or not to disallow shared libs when runtime libs are static
8622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8623
8624 # Whether or not to optimize for fast installation.
8625 fast_install=$enable_fast_install
8626
8627 # The host system.
8628 host_alias=$host_alias
8629 host=$host
8630
8631 # An echo program that does not interpret backslashes.
8632 echo=$lt_echo
8633
8634 # The archiver.
8635 AR=$lt_AR
8636 AR_FLAGS=$lt_AR_FLAGS
8637
8638 # A C compiler.
8639 LTCC=$lt_LTCC
8640
8641 # A language-specific compiler.
8642 CC=$lt_compiler
8643
8644 # Is the compiler the GNU C compiler?
8645 with_gcc=$GCC
8646
8647 # An ERE matcher.
8648 EGREP=$lt_EGREP
8649
8650 # The linker used to build libraries.
8651 LD=$lt_LD
8652
8653 # Whether we need hard or soft links.
8654 LN_S=$lt_LN_S
8655
8656 # A BSD-compatible nm program.
8657 NM=$lt_NM
8658
8659 # A symbol stripping program
8660 STRIP=$STRIP
8661
8662 # Used to examine libraries when file_magic_cmd begins "file"
8663 MAGIC_CMD=$MAGIC_CMD
8664
8665 # Used on cygwin: DLL creation program.
8666 DLLTOOL="$DLLTOOL"
8667
8668 # Used on cygwin: object dumper.
8669 OBJDUMP="$OBJDUMP"
8670
8671 # Used on cygwin: assembler.
8672 AS="$AS"
8673
8674 # The name of the directory that contains temporary libtool files.
8675 objdir=$objdir
8676
8677 # How to create reloadable object files.
8678 reload_flag=$lt_reload_flag
8679 reload_cmds=$lt_reload_cmds
8680
8681 # How to pass a linker flag through the compiler.
8682 wl=$lt_lt_prog_compiler_wl
8683
8684 # Object file suffix (normally "o").
8685 objext="$ac_objext"
8686
8687 # Old archive suffix (normally "a").
8688 libext="$libext"
8689
8690 # Shared library suffix (normally ".so").
8691 shrext='$shrext'
8692
8693 # Executable file suffix (normally "").
8694 exeext="$exeext"
8695
8696 # Additional compiler flags for building library objects.
8697 pic_flag=$lt_lt_prog_compiler_pic
8698 pic_mode=$pic_mode
8699
8700 # What is the maximum length of a command?
8701 max_cmd_len=$lt_cv_sys_max_cmd_len
8702
8703 # Does compiler simultaneously support -c and -o options?
8704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8705
8706 # Must we lock files when doing compilation ?
8707 need_locks=$lt_need_locks
8708
8709 # Do we need the lib prefix for modules?
8710 need_lib_prefix=$need_lib_prefix
8711
8712 # Do we need a version for libraries?
8713 need_version=$need_version
8714
8715 # Whether dlopen is supported.
8716 dlopen_support=$enable_dlopen
8717
8718 # Whether dlopen of programs is supported.
8719 dlopen_self=$enable_dlopen_self
8720
8721 # Whether dlopen of statically linked programs is supported.
8722 dlopen_self_static=$enable_dlopen_self_static
8723
8724 # Compiler flag to prevent dynamic linking.
8725 link_static_flag=$lt_lt_prog_compiler_static
8726
8727 # Compiler flag to turn off builtin functions.
8728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8729
8730 # Compiler flag to allow reflexive dlopens.
8731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8732
8733 # Compiler flag to generate shared objects directly from archives.
8734 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8735
8736 # Compiler flag to generate thread-safe objects.
8737 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8738
8739 # Library versioning type.
8740 version_type=$version_type
8741
8742 # Format of library name prefix.
8743 libname_spec=$lt_libname_spec
8744
8745 # List of archive names.  First name is the real one, the rest are links.
8746 # The last name is the one that the linker finds with -lNAME.
8747 library_names_spec=$lt_library_names_spec
8748
8749 # The coded name of the library, if different from the real name.
8750 soname_spec=$lt_soname_spec
8751
8752 # Commands used to build and install an old-style archive.
8753 RANLIB=$lt_RANLIB
8754 old_archive_cmds=$lt_old_archive_cmds
8755 old_postinstall_cmds=$lt_old_postinstall_cmds
8756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8757
8758 # Create an old-style archive from a shared archive.
8759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8760
8761 # Create a temporary old-style archive to link instead of a shared archive.
8762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8763
8764 # Commands used to build and install a shared archive.
8765 archive_cmds=$lt_archive_cmds
8766 archive_expsym_cmds=$lt_archive_expsym_cmds
8767 postinstall_cmds=$lt_postinstall_cmds
8768 postuninstall_cmds=$lt_postuninstall_cmds
8769
8770 # Commands used to build a loadable module (assumed same as above if empty)
8771 module_cmds=$lt_module_cmds
8772 module_expsym_cmds=$lt_module_expsym_cmds
8773
8774 # Commands to strip libraries.
8775 old_striplib=$lt_old_striplib
8776 striplib=$lt_striplib
8777
8778 # Dependencies to place before the objects being linked to create a
8779 # shared library.
8780 predep_objects=$lt_predep_objects
8781
8782 # Dependencies to place after the objects being linked to create a
8783 # shared library.
8784 postdep_objects=$lt_postdep_objects
8785
8786 # Dependencies to place before the objects being linked to create a
8787 # shared library.
8788 predeps=$lt_predeps
8789
8790 # Dependencies to place after the objects being linked to create a
8791 # shared library.
8792 postdeps=$lt_postdeps
8793
8794 # The library search path used internally by the compiler when linking
8795 # a shared library.
8796 compiler_lib_search_path=$lt_compiler_lib_search_path
8797
8798 # Method to check whether dependent libraries are shared objects.
8799 deplibs_check_method=$lt_deplibs_check_method
8800
8801 # Command to use when deplibs_check_method == file_magic.
8802 file_magic_cmd=$lt_file_magic_cmd
8803
8804 # Flag that allows shared libraries with undefined symbols to be built.
8805 allow_undefined_flag=$lt_allow_undefined_flag
8806
8807 # Flag that forces no undefined symbols.
8808 no_undefined_flag=$lt_no_undefined_flag
8809
8810 # Commands used to finish a libtool library installation in a directory.
8811 finish_cmds=$lt_finish_cmds
8812
8813 # Same as above, but a single script fragment to be evaled but not shown.
8814 finish_eval=$lt_finish_eval
8815
8816 # Take the output of nm and produce a listing of raw symbols and C names.
8817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8818
8819 # Transform the output of nm in a proper C declaration
8820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8821
8822 # Transform the output of nm in a C name address pair
8823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8824
8825 # This is the shared library runtime path variable.
8826 runpath_var=$runpath_var
8827
8828 # This is the shared library path variable.
8829 shlibpath_var=$shlibpath_var
8830
8831 # Is shlibpath searched before the hard-coded library search path?
8832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8833
8834 # How to hardcode a shared library path into an executable.
8835 hardcode_action=$hardcode_action
8836
8837 # Whether we should hardcode library paths into libraries.
8838 hardcode_into_libs=$hardcode_into_libs
8839
8840 # Flag to hardcode \$libdir into a binary during linking.
8841 # This must work even if \$libdir does not exist.
8842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8843
8844 # If ld is used when linking, flag to hardcode \$libdir into
8845 # a binary during linking. This must work even if \$libdir does
8846 # not exist.
8847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8848
8849 # Whether we need a single -rpath flag with a separated argument.
8850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8851
8852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8853 # resulting binary.
8854 hardcode_direct=$hardcode_direct
8855
8856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8857 # resulting binary.
8858 hardcode_minus_L=$hardcode_minus_L
8859
8860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8861 # the resulting binary.
8862 hardcode_shlibpath_var=$hardcode_shlibpath_var
8863
8864 # Set to yes if building a shared library automatically hardcodes DIR into the library
8865 # and all subsequent libraries and executables linked against it.
8866 hardcode_automatic=$hardcode_automatic
8867
8868 # Variables whose values should be saved in libtool wrapper scripts and
8869 # restored at relink time.
8870 variables_saved_for_relink="$variables_saved_for_relink"
8871
8872 # Whether libtool must link a program against all its dependency libraries.
8873 link_all_deplibs=$link_all_deplibs
8874
8875 # Compile-time system search path for libraries
8876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8877
8878 # Run-time system search path for libraries
8879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8880
8881 # Fix the shell variable \$srcfile for the compiler.
8882 fix_srcfile_path="$fix_srcfile_path"
8883
8884 # Set to yes if exported symbols are required.
8885 always_export_symbols=$always_export_symbols
8886
8887 # The commands to list exported symbols.
8888 export_symbols_cmds=$lt_export_symbols_cmds
8889
8890 # The commands to extract the exported symbol list from a shared archive.
8891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8892
8893 # Symbols that should not be listed in the preloaded symbols.
8894 exclude_expsyms=$lt_exclude_expsyms
8895
8896 # Symbols that must always be exported.
8897 include_expsyms=$lt_include_expsyms
8898
8899 # ### END LIBTOOL CONFIG
8900
8901 __EOF__
8902
8903
8904   case $host_os in
8905   aix3*)
8906     cat <<\EOF >> "$cfgfile"
8907
8908 # AIX sometimes has problems with the GCC collect2 program.  For some
8909 # reason, if we set the COLLECT_NAMES environment variable, the problems
8910 # vanish in a puff of smoke.
8911 if test "X${COLLECT_NAMES+set}" != Xset; then
8912   COLLECT_NAMES=
8913   export COLLECT_NAMES
8914 fi
8915 EOF
8916     ;;
8917   esac
8918
8919   # We use sed instead of cat because bash on DJGPP gets confused if
8920   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8921   # text mode, it properly converts lines to CR/LF.  This bash problem
8922   # is reportedly fixed, but why not run on old versions too?
8923   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8924
8925   mv -f "$cfgfile" "$ofile" || \
8926     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8927   chmod +x "$ofile"
8928
8929 else
8930   # If there is no Makefile yet, we rely on a make rule to execute
8931   # `config.status --recheck' to rerun these tests and create the
8932   # libtool script then.
8933   test -f Makefile && make "$ltmain"
8934 fi
8935
8936
8937 ac_ext=c
8938 ac_cpp='$CPP $CPPFLAGS'
8939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8942
8943 CC="$lt_save_CC"
8944
8945
8946 # Check whether --with-tags or --without-tags was given.
8947 if test "${with_tags+set}" = set; then
8948   withval="$with_tags"
8949   tagnames="$withval"
8950 fi;
8951
8952 if test -f "$ltmain" && test -n "$tagnames"; then
8953   if test ! -f "${ofile}"; then
8954     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8955 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8956   fi
8957
8958   if test -z "$LTCC"; then
8959     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8960     if test -z "$LTCC"; then
8961       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8962 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8963     else
8964       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8965 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8966     fi
8967   fi
8968
8969   # Extract list of available tagged configurations in $ofile.
8970   # Note that this assumes the entire list is on one line.
8971   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8972
8973   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8974   for tagname in $tagnames; do
8975     IFS="$lt_save_ifs"
8976     # Check whether tagname contains only valid characters
8977     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8978     "") ;;
8979     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8980 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8981    { (exit 1); exit 1; }; }
8982         ;;
8983     esac
8984
8985     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8986     then
8987       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8988 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8989    { (exit 1); exit 1; }; }
8990     fi
8991
8992     # Update the list of available tags.
8993     if test -n "$tagname"; then
8994       echo appending configuration tag \"$tagname\" to $ofile
8995
8996       case $tagname in
8997       CXX)
8998         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8999           ac_ext=cc
9000 ac_cpp='$CXXCPP $CPPFLAGS'
9001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9004
9005
9006
9007
9008 archive_cmds_need_lc_CXX=no
9009 allow_undefined_flag_CXX=
9010 always_export_symbols_CXX=no
9011 archive_expsym_cmds_CXX=
9012 export_dynamic_flag_spec_CXX=
9013 hardcode_direct_CXX=no
9014 hardcode_libdir_flag_spec_CXX=
9015 hardcode_libdir_flag_spec_ld_CXX=
9016 hardcode_libdir_separator_CXX=
9017 hardcode_minus_L_CXX=no
9018 hardcode_automatic_CXX=no
9019 module_cmds_CXX=
9020 module_expsym_cmds_CXX=
9021 link_all_deplibs_CXX=unknown
9022 old_archive_cmds_CXX=$old_archive_cmds
9023 no_undefined_flag_CXX=
9024 whole_archive_flag_spec_CXX=
9025 enable_shared_with_static_runtimes_CXX=no
9026
9027 # Dependencies to place before and after the object being linked:
9028 predep_objects_CXX=
9029 postdep_objects_CXX=
9030 predeps_CXX=
9031 postdeps_CXX=
9032 compiler_lib_search_path_CXX=
9033
9034 # Source file extension for C++ test sources.
9035 ac_ext=cc
9036
9037 # Object file extension for compiled C++ test sources.
9038 objext=o
9039 objext_CXX=$objext
9040
9041 # Code to be used in simple compile tests
9042 lt_simple_compile_test_code="int some_variable = 0;\n"
9043
9044 # Code to be used in simple link tests
9045 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9046
9047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9048
9049 # If no C compiler was specified, use CC.
9050 LTCC=${LTCC-"$CC"}
9051
9052 # Allow CC to be a program name with arguments.
9053 compiler=$CC
9054
9055
9056 # Allow CC to be a program name with arguments.
9057 lt_save_CC=$CC
9058 lt_save_LD=$LD
9059 lt_save_GCC=$GCC
9060 GCC=$GXX
9061 lt_save_with_gnu_ld=$with_gnu_ld
9062 lt_save_path_LD=$lt_cv_path_LD
9063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9064   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9065 else
9066   unset lt_cv_prog_gnu_ld
9067 fi
9068 if test -n "${lt_cv_path_LDCXX+set}"; then
9069   lt_cv_path_LD=$lt_cv_path_LDCXX
9070 else
9071   unset lt_cv_path_LD
9072 fi
9073 test -z "${LDCXX+set}" || LD=$LDCXX
9074 CC=${CXX-"c++"}
9075 compiler=$CC
9076 compiler_CXX=$CC
9077 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9078
9079 # We don't want -fno-exception wen compiling C++ code, so set the
9080 # no_builtin_flag separately
9081 if test "$GXX" = yes; then
9082   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9083 else
9084   lt_prog_compiler_no_builtin_flag_CXX=
9085 fi
9086
9087 if test "$GXX" = yes; then
9088   # Set up default GNU C++ configuration
9089
9090
9091 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9092 if test "${with_gnu_ld+set}" = set; then
9093   withval="$with_gnu_ld"
9094   test "$withval" = no || with_gnu_ld=yes
9095 else
9096   with_gnu_ld=no
9097 fi;
9098 ac_prog=ld
9099 if test "$GCC" = yes; then
9100   # Check if gcc -print-prog-name=ld gives a path.
9101   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9102 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9103   case $host in
9104   *-*-mingw*)
9105     # gcc leaves a trailing carriage return which upsets mingw
9106     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9107   *)
9108     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9109   esac
9110   case $ac_prog in
9111     # Accept absolute paths.
9112     [\\/]* | ?:[\\/]*)
9113       re_direlt='/[^/][^/]*/\.\./'
9114       # Canonicalize the path of ld
9115       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9116       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9117         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9118       done
9119       test -z "$LD" && LD="$ac_prog"
9120       ;;
9121   "")
9122     # If it fails, then pretend we aren't using GCC.
9123     ac_prog=ld
9124     ;;
9125   *)
9126     # If it is relative, then search for the first ld in PATH.
9127     with_gnu_ld=unknown
9128     ;;
9129   esac
9130 elif test "$with_gnu_ld" = yes; then
9131   echo "$as_me:$LINENO: checking for GNU ld" >&5
9132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9133 else
9134   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9136 fi
9137 if test "${lt_cv_path_LD+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   if test -z "$LD"; then
9141   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9142   for ac_dir in $PATH; do
9143     IFS="$lt_save_ifs"
9144     test -z "$ac_dir" && ac_dir=.
9145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9146       lt_cv_path_LD="$ac_dir/$ac_prog"
9147       # Check to see if the program is GNU ld.  I'd rather use --version,
9148       # but apparently some GNU ld's only accept -v.
9149       # Break only if it was the GNU/non-GNU ld that we prefer.
9150       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9151       *GNU* | *'with BFD'*)
9152         test "$with_gnu_ld" != no && break
9153         ;;
9154       *)
9155         test "$with_gnu_ld" != yes && break
9156         ;;
9157       esac
9158     fi
9159   done
9160   IFS="$lt_save_ifs"
9161 else
9162   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9163 fi
9164 fi
9165
9166 LD="$lt_cv_path_LD"
9167 if test -n "$LD"; then
9168   echo "$as_me:$LINENO: result: $LD" >&5
9169 echo "${ECHO_T}$LD" >&6
9170 else
9171   echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9173 fi
9174 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9175 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9176    { (exit 1); exit 1; }; }
9177 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9178 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9179 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9183 case `"$LD" -v 2>&1 </dev/null` in
9184 *GNU* | *'with BFD'*)
9185   lt_cv_prog_gnu_ld=yes
9186   ;;
9187 *)
9188   lt_cv_prog_gnu_ld=no
9189   ;;
9190 esac
9191 fi
9192 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9193 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9194 with_gnu_ld=$lt_cv_prog_gnu_ld
9195
9196
9197
9198   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9199   # archiving commands below assume that GNU ld is being used.
9200   if test "$with_gnu_ld" = yes; then
9201     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202     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'
9203
9204     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9205     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9206
9207     # If archive_cmds runs LD, not CC, wlarc should be empty
9208     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9209     #     investigate it a little bit more. (MM)
9210     wlarc='${wl}'
9211
9212     # ancient GNU ld didn't support --whole-archive et. al.
9213     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9214         grep 'no-whole-archive' > /dev/null; then
9215       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9216     else
9217       whole_archive_flag_spec_CXX=
9218     fi
9219   else
9220     with_gnu_ld=no
9221     wlarc=
9222
9223     # A generic and very simple default shared library creation
9224     # command for GNU C++ for the case where it uses the native
9225     # linker, instead of GNU ld.  If possible, this setting should
9226     # overridden to take advantage of the native linker features on
9227     # the platform it is being used on.
9228     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9229   fi
9230
9231   # Commands to make compiler produce verbose output that lists
9232   # what "hidden" libraries, object files and flags are used when
9233   # linking a shared library.
9234   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9235
9236 else
9237   GXX=no
9238   with_gnu_ld=no
9239   wlarc=
9240 fi
9241
9242 # PORTME: fill in a description of your system's C++ link characteristics
9243 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9245 ld_shlibs_CXX=yes
9246 case $host_os in
9247   aix3*)
9248     # FIXME: insert proper C++ library support
9249     ld_shlibs_CXX=no
9250     ;;
9251   aix4* | aix5*)
9252     if test "$host_cpu" = ia64; then
9253       # On IA64, the linker does run time linking by default, so we don't
9254       # have to do anything special.
9255       aix_use_runtimelinking=no
9256       exp_sym_flag='-Bexport'
9257       no_entry_flag=""
9258     else
9259       aix_use_runtimelinking=no
9260
9261       # Test if we are trying to use run time linking or normal
9262       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9263       # need to do runtime linking.
9264       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9265         for ld_flag in $LDFLAGS; do
9266           case $ld_flag in
9267           *-brtl*)
9268             aix_use_runtimelinking=yes
9269             break
9270             ;;
9271           esac
9272         done
9273       esac
9274
9275       exp_sym_flag='-bexport'
9276       no_entry_flag='-bnoentry'
9277     fi
9278
9279     # When large executables or shared objects are built, AIX ld can
9280     # have problems creating the table of contents.  If linking a library
9281     # or program results in "error TOC overflow" add -mminimal-toc to
9282     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9283     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9284
9285     archive_cmds_CXX=''
9286     hardcode_direct_CXX=yes
9287     hardcode_libdir_separator_CXX=':'
9288     link_all_deplibs_CXX=yes
9289
9290     if test "$GXX" = yes; then
9291       case $host_os in aix4.012|aix4.012.*)
9292       # We only want to do this on AIX 4.2 and lower, the check
9293       # below for broken collect2 doesn't work under 4.3+
9294         collect2name=`${CC} -print-prog-name=collect2`
9295         if test -f "$collect2name" && \
9296            strings "$collect2name" | grep resolve_lib_name >/dev/null
9297         then
9298           # We have reworked collect2
9299           hardcode_direct_CXX=yes
9300         else
9301           # We have old collect2
9302           hardcode_direct_CXX=unsupported
9303           # It fails to find uninstalled libraries when the uninstalled
9304           # path is not listed in the libpath.  Setting hardcode_minus_L
9305           # to unsupported forces relinking
9306           hardcode_minus_L_CXX=yes
9307           hardcode_libdir_flag_spec_CXX='-L$libdir'
9308           hardcode_libdir_separator_CXX=
9309         fi
9310       esac
9311       shared_flag='-shared'
9312     else
9313       # not using gcc
9314       if test "$host_cpu" = ia64; then
9315         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9316         # chokes on -Wl,-G. The following line is correct:
9317         shared_flag='-G'
9318       else
9319         if test "$aix_use_runtimelinking" = yes; then
9320           shared_flag='${wl}-G'
9321         else
9322           shared_flag='${wl}-bM:SRE'
9323         fi
9324       fi
9325     fi
9326
9327     # It seems that -bexpall does not export symbols beginning with
9328     # underscore (_), so it is better to generate a list of symbols to export.
9329     always_export_symbols_CXX=yes
9330     if test "$aix_use_runtimelinking" = yes; then
9331       # Warning - without using the other runtime loading flags (-brtl),
9332       # -berok will link without error, but may produce a broken library.
9333       allow_undefined_flag_CXX='-berok'
9334       # Determine the default libpath from the value encoded in an empty executable.
9335       cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342
9343 int
9344 main ()
9345 {
9346
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353   (eval $ac_link) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } &&
9357          { ac_try='test -s conftest$ac_exeext'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363
9364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9365 }'`
9366 # Check for a 64-bit object if we didn't find anything.
9367 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; }
9368 }'`; fi
9369 else
9370   echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373 fi
9374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9376
9377       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9378
9379       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"
9380      else
9381       if test "$host_cpu" = ia64; then
9382         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9383         allow_undefined_flag_CXX="-z nodefs"
9384         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"
9385       else
9386         # Determine the default libpath from the value encoded in an empty executable.
9387         cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394
9395 int
9396 main ()
9397 {
9398
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405   (eval $ac_link) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -s conftest$ac_exeext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415
9416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9417 }'`
9418 # Check for a 64-bit object if we didn't find anything.
9419 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; }
9420 }'`; fi
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 fi
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9428
9429         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9430         # Warning - without using the other run time loading flags,
9431         # -berok will link without error, but may produce a broken library.
9432         no_undefined_flag_CXX=' ${wl}-bernotok'
9433         allow_undefined_flag_CXX=' ${wl}-berok'
9434         # -bexpall does not export symbols beginning with underscore (_)
9435         always_export_symbols_CXX=yes
9436         # Exported symbols can be pulled into shared objects from archives
9437         whole_archive_flag_spec_CXX=' '
9438         archive_cmds_need_lc_CXX=yes
9439         # This is similar to how AIX traditionally builds it's shared libraries.
9440         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'
9441       fi
9442     fi
9443     ;;
9444   chorus*)
9445     case $cc_basename in
9446       *)
9447         # FIXME: insert proper C++ library support
9448         ld_shlibs_CXX=no
9449         ;;
9450     esac
9451     ;;
9452
9453   cygwin* | mingw* | pw32*)
9454     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9455     # as there is no search path for DLLs.
9456     hardcode_libdir_flag_spec_CXX='-L$libdir'
9457     allow_undefined_flag_CXX=unsupported
9458     always_export_symbols_CXX=no
9459     enable_shared_with_static_runtimes_CXX=yes
9460
9461     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9462       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'
9463       # If the export-symbols file already is a .def file (1st line
9464       # is EXPORTS), use it as is; otherwise, prepend...
9465       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9466         cp $export_symbols $output_objdir/$soname.def;
9467       else
9468         echo EXPORTS > $output_objdir/$soname.def;
9469         cat $export_symbols >> $output_objdir/$soname.def;
9470       fi~
9471       $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'
9472     else
9473       ld_shlibs_CXX=no
9474     fi
9475   ;;
9476
9477   darwin* | rhapsody*)
9478    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9479     archive_cmds_need_lc_CXX=no
9480     case "$host_os" in
9481     rhapsody* | darwin1.[012])
9482       allow_undefined_flag_CXX='-undefined suppress'
9483       ;;
9484     *) # Darwin 1.3 on
9485       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9486       ;;
9487     esac
9488         lt_int_apple_cc_single_mod=no
9489         output_verbose_link_cmd='echo'
9490         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9491           lt_int_apple_cc_single_mod=yes
9492         fi
9493         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9494           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9495         else
9496         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9497       fi
9498       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9499
9500     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9501       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9502         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}'
9503       else
9504         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9505       fi
9506         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9507     hardcode_direct_CXX=no
9508     hardcode_automatic_CXX=yes
9509     hardcode_shlibpath_var_CXX=unsupported
9510     whole_archive_flag_spec_CXX='-all_load $convenience'
9511     link_all_deplibs_CXX=yes
9512    fi
9513     ;;
9514
9515   dgux*)
9516     case $cc_basename in
9517       ec++)
9518         # FIXME: insert proper C++ library support
9519         ld_shlibs_CXX=no
9520         ;;
9521       ghcx)
9522         # Green Hills C++ Compiler
9523         # FIXME: insert proper C++ library support
9524         ld_shlibs_CXX=no
9525         ;;
9526       *)
9527         # FIXME: insert proper C++ library support
9528         ld_shlibs_CXX=no
9529         ;;
9530     esac
9531     ;;
9532   freebsd12*)
9533     # C++ shared libraries reported to be fairly broken before switch to ELF
9534     ld_shlibs_CXX=no
9535     ;;
9536   freebsd-elf*)
9537     archive_cmds_need_lc_CXX=no
9538     ;;
9539   freebsd*)
9540     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9541     # conventions
9542     ld_shlibs_CXX=yes
9543     ;;
9544   gnu*)
9545     ;;
9546   hpux9*)
9547     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9548     hardcode_libdir_separator_CXX=:
9549     export_dynamic_flag_spec_CXX='${wl}-E'
9550     hardcode_direct_CXX=yes
9551     hardcode_minus_L_CXX=yes # Not in the search PATH,
9552                                 # but as the default
9553                                 # location of the library.
9554
9555     case $cc_basename in
9556     CC)
9557       # FIXME: insert proper C++ library support
9558       ld_shlibs_CXX=no
9559       ;;
9560     aCC)
9561       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'
9562       # Commands to make compiler produce verbose output that lists
9563       # what "hidden" libraries, object files and flags are used when
9564       # linking a shared library.
9565       #
9566       # There doesn't appear to be a way to prevent this compiler from
9567       # explicitly linking system object files so we need to strip them
9568       # from the output so that they don't get included in the library
9569       # dependencies.
9570       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9571       ;;
9572     *)
9573       if test "$GXX" = yes; then
9574         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'
9575       else
9576         # FIXME: insert proper C++ library support
9577         ld_shlibs_CXX=no
9578       fi
9579       ;;
9580     esac
9581     ;;
9582   hpux10*|hpux11*)
9583     if test $with_gnu_ld = no; then
9584       case "$host_cpu" in
9585       hppa*64*)
9586         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9587         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9588         hardcode_libdir_separator_CXX=:
9589         ;;
9590       ia64*)
9591         hardcode_libdir_flag_spec_CXX='-L$libdir'
9592         ;;
9593       *)
9594         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9595         hardcode_libdir_separator_CXX=:
9596         export_dynamic_flag_spec_CXX='${wl}-E'
9597         ;;
9598       esac
9599     fi
9600     case "$host_cpu" in
9601     hppa*64*)
9602       hardcode_direct_CXX=no
9603       hardcode_shlibpath_var_CXX=no
9604       ;;
9605     ia64*)
9606       hardcode_direct_CXX=no
9607       hardcode_shlibpath_var_CXX=no
9608       hardcode_minus_L_CXX=yes # Not in the search PATH,
9609                                               # but as the default
9610                                               # location of the library.
9611       ;;
9612     *)
9613       hardcode_direct_CXX=yes
9614       hardcode_minus_L_CXX=yes # Not in the search PATH,
9615                                               # but as the default
9616                                               # location of the library.
9617       ;;
9618     esac
9619
9620     case $cc_basename in
9621       CC)
9622         # FIXME: insert proper C++ library support
9623         ld_shlibs_CXX=no
9624         ;;
9625       aCC)
9626         case "$host_cpu" in
9627         hppa*64*|ia64*)
9628           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9629           ;;
9630         *)
9631           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9632           ;;
9633         esac
9634         # Commands to make compiler produce verbose output that lists
9635         # what "hidden" libraries, object files and flags are used when
9636         # linking a shared library.
9637         #
9638         # There doesn't appear to be a way to prevent this compiler from
9639         # explicitly linking system object files so we need to strip them
9640         # from the output so that they don't get included in the library
9641         # dependencies.
9642         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'
9643         ;;
9644       *)
9645         if test "$GXX" = yes; then
9646           if test $with_gnu_ld = no; then
9647             case "$host_cpu" in
9648             ia64*|hppa*64*)
9649               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9650               ;;
9651             *)
9652               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'
9653               ;;
9654             esac
9655           fi
9656         else
9657           # FIXME: insert proper C++ library support
9658           ld_shlibs_CXX=no
9659         fi
9660         ;;
9661     esac
9662     ;;
9663   irix5* | irix6*)
9664     case $cc_basename in
9665       CC)
9666         # SGI C++
9667         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'
9668
9669         # Archives containing C++ object files must be created using
9670         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9671         # necessary to make sure instantiated templates are included
9672         # in the archive.
9673         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9674         ;;
9675       *)
9676         if test "$GXX" = yes; then
9677           if test "$with_gnu_ld" = no; then
9678             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'
9679           else
9680             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'
9681           fi
9682         fi
9683         link_all_deplibs_CXX=yes
9684         ;;
9685     esac
9686     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9687     hardcode_libdir_separator_CXX=:
9688     ;;
9689   linux*)
9690     case $cc_basename in
9691       KCC)
9692         # Kuck and Associates, Inc. (KAI) C++ Compiler
9693
9694         # KCC will only create a shared library if the output file
9695         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9696         # to its proper name (with version) after linking.
9697         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'
9698         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'
9699         # Commands to make compiler produce verbose output that lists
9700         # what "hidden" libraries, object files and flags are used when
9701         # linking a shared library.
9702         #
9703         # There doesn't appear to be a way to prevent this compiler from
9704         # explicitly linking system object files so we need to strip them
9705         # from the output so that they don't get included in the library
9706         # dependencies.
9707         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'
9708
9709         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9710         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9711
9712         # Archives containing C++ object files must be created using
9713         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9714         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9715         ;;
9716       icpc)
9717         # Intel C++
9718         with_gnu_ld=yes
9719         archive_cmds_need_lc_CXX=no
9720         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721         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'
9722         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9723         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9724         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9725         ;;
9726       cxx)
9727         # Compaq C++
9728         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729         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'
9730
9731         runpath_var=LD_RUN_PATH
9732         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9733         hardcode_libdir_separator_CXX=:
9734
9735         # Commands to make compiler produce verbose output that lists
9736         # what "hidden" libraries, object files and flags are used when
9737         # linking a shared library.
9738         #
9739         # There doesn't appear to be a way to prevent this compiler from
9740         # explicitly linking system object files so we need to strip them
9741         # from the output so that they don't get included in the library
9742         # dependencies.
9743         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'
9744         ;;
9745     esac
9746     ;;
9747   lynxos*)
9748     # FIXME: insert proper C++ library support
9749     ld_shlibs_CXX=no
9750     ;;
9751   m88k*)
9752     # FIXME: insert proper C++ library support
9753     ld_shlibs_CXX=no
9754     ;;
9755   mvs*)
9756     case $cc_basename in
9757       cxx)
9758         # FIXME: insert proper C++ library support
9759         ld_shlibs_CXX=no
9760         ;;
9761       *)
9762         # FIXME: insert proper C++ library support
9763         ld_shlibs_CXX=no
9764         ;;
9765     esac
9766     ;;
9767   netbsd*)
9768     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9769       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9770       wlarc=
9771       hardcode_libdir_flag_spec_CXX='-R$libdir'
9772       hardcode_direct_CXX=yes
9773       hardcode_shlibpath_var_CXX=no
9774     fi
9775     # Workaround some broken pre-1.5 toolchains
9776     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9777     ;;
9778   osf3*)
9779     case $cc_basename in
9780       KCC)
9781         # Kuck and Associates, Inc. (KAI) C++ Compiler
9782
9783         # KCC will only create a shared library if the output file
9784         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9785         # to its proper name (with version) after linking.
9786         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'
9787
9788         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9789         hardcode_libdir_separator_CXX=:
9790
9791         # Archives containing C++ object files must be created using
9792         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9793         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9794
9795         ;;
9796       RCC)
9797         # Rational C++ 2.4.1
9798         # FIXME: insert proper C++ library support
9799         ld_shlibs_CXX=no
9800         ;;
9801       cxx)
9802         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9803         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'
9804
9805         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9806         hardcode_libdir_separator_CXX=:
9807
9808         # Commands to make compiler produce verbose output that lists
9809         # what "hidden" libraries, object files and flags are used when
9810         # linking a shared library.
9811         #
9812         # There doesn't appear to be a way to prevent this compiler from
9813         # explicitly linking system object files so we need to strip them
9814         # from the output so that they don't get included in the library
9815         # dependencies.
9816         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'
9817         ;;
9818       *)
9819         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9820           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9821           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'
9822
9823           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9824           hardcode_libdir_separator_CXX=:
9825
9826           # Commands to make compiler produce verbose output that lists
9827           # what "hidden" libraries, object files and flags are used when
9828           # linking a shared library.
9829           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9830
9831         else
9832           # FIXME: insert proper C++ library support
9833           ld_shlibs_CXX=no
9834         fi
9835         ;;
9836     esac
9837     ;;
9838   osf4* | osf5*)
9839     case $cc_basename in
9840       KCC)
9841         # Kuck and Associates, Inc. (KAI) C++ Compiler
9842
9843         # KCC will only create a shared library if the output file
9844         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9845         # to its proper name (with version) after linking.
9846         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'
9847
9848         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9849         hardcode_libdir_separator_CXX=:
9850
9851         # Archives containing C++ object files must be created using
9852         # the KAI C++ compiler.
9853         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9854         ;;
9855       RCC)
9856         # Rational C++ 2.4.1
9857         # FIXME: insert proper C++ library support
9858         ld_shlibs_CXX=no
9859         ;;
9860       cxx)
9861         allow_undefined_flag_CXX=' -expect_unresolved \*'
9862         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'
9863         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9864           echo "-hidden">> $lib.exp~
9865           $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~
9866           $rm $lib.exp'
9867
9868         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9869         hardcode_libdir_separator_CXX=:
9870
9871         # Commands to make compiler produce verbose output that lists
9872         # what "hidden" libraries, object files and flags are used when
9873         # linking a shared library.
9874         #
9875         # There doesn't appear to be a way to prevent this compiler from
9876         # explicitly linking system object files so we need to strip them
9877         # from the output so that they don't get included in the library
9878         # dependencies.
9879         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'
9880         ;;
9881       *)
9882         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9883           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9884          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'
9885
9886           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9887           hardcode_libdir_separator_CXX=:
9888
9889           # Commands to make compiler produce verbose output that lists
9890           # what "hidden" libraries, object files and flags are used when
9891           # linking a shared library.
9892           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9893
9894         else
9895           # FIXME: insert proper C++ library support
9896           ld_shlibs_CXX=no
9897         fi
9898         ;;
9899     esac
9900     ;;
9901   psos*)
9902     # FIXME: insert proper C++ library support
9903     ld_shlibs_CXX=no
9904     ;;
9905   sco*)
9906     archive_cmds_need_lc_CXX=no
9907     case $cc_basename in
9908       CC)
9909         # FIXME: insert proper C++ library support
9910         ld_shlibs_CXX=no
9911         ;;
9912       *)
9913         # FIXME: insert proper C++ library support
9914         ld_shlibs_CXX=no
9915         ;;
9916     esac
9917     ;;
9918   sunos4*)
9919     case $cc_basename in
9920       CC)
9921         # Sun C++ 4.x
9922         # FIXME: insert proper C++ library support
9923         ld_shlibs_CXX=no
9924         ;;
9925       lcc)
9926         # Lucid
9927         # FIXME: insert proper C++ library support
9928         ld_shlibs_CXX=no
9929         ;;
9930       *)
9931         # FIXME: insert proper C++ library support
9932         ld_shlibs_CXX=no
9933         ;;
9934     esac
9935     ;;
9936   solaris*)
9937     case $cc_basename in
9938       CC)
9939         # Sun C++ 4.2, 5.x and Centerline C++
9940         no_undefined_flag_CXX=' -zdefs'
9941         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9942         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9943         $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'
9944
9945         hardcode_libdir_flag_spec_CXX='-R$libdir'
9946         hardcode_shlibpath_var_CXX=no
9947         case $host_os in
9948           solaris2.0-5 | solaris2.0-5.*) ;;
9949           *)
9950             # The C++ compiler is used as linker so we must use $wl
9951             # flag to pass the commands to the underlying system
9952             # linker.
9953             # Supported since Solaris 2.6 (maybe 2.5.1?)
9954             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9955             ;;
9956         esac
9957         link_all_deplibs_CXX=yes
9958
9959         # Commands to make compiler produce verbose output that lists
9960         # what "hidden" libraries, object files and flags are used when
9961         # linking a shared library.
9962         #
9963         # There doesn't appear to be a way to prevent this compiler from
9964         # explicitly linking system object files so we need to strip them
9965         # from the output so that they don't get included in the library
9966         # dependencies.
9967         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'
9968
9969         # Archives containing C++ object files must be created using
9970         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9971         # necessary to make sure instantiated templates are included
9972         # in the archive.
9973         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9974         ;;
9975       gcx)
9976         # Green Hills C++ Compiler
9977         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9978
9979         # The C++ compiler must be used to create the archive.
9980         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9981         ;;
9982       *)
9983         # GNU C++ compiler with Solaris linker
9984         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9985           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9986           if $CC --version | grep -v '^2\.7' > /dev/null; then
9987             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9988             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9989                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9990
9991             # Commands to make compiler produce verbose output that lists
9992             # what "hidden" libraries, object files and flags are used when
9993             # linking a shared library.
9994             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9995           else
9996             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9997             # platform.
9998             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9999             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10000                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10001
10002             # Commands to make compiler produce verbose output that lists
10003             # what "hidden" libraries, object files and flags are used when
10004             # linking a shared library.
10005             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10006           fi
10007
10008           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10009         fi
10010         ;;
10011     esac
10012     ;;
10013   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10014     archive_cmds_need_lc_CXX=no
10015     ;;
10016   tandem*)
10017     case $cc_basename in
10018       NCC)
10019         # NonStop-UX NCC 3.20
10020         # FIXME: insert proper C++ library support
10021         ld_shlibs_CXX=no
10022         ;;
10023       *)
10024         # FIXME: insert proper C++ library support
10025         ld_shlibs_CXX=no
10026         ;;
10027     esac
10028     ;;
10029   vxworks*)
10030     # FIXME: insert proper C++ library support
10031     ld_shlibs_CXX=no
10032     ;;
10033   *)
10034     # FIXME: insert proper C++ library support
10035     ld_shlibs_CXX=no
10036     ;;
10037 esac
10038 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10039 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10040 test "$ld_shlibs_CXX" = no && can_build_shared=no
10041
10042 GCC_CXX="$GXX"
10043 LD_CXX="$LD"
10044
10045
10046 cat > conftest.$ac_ext <<EOF
10047 class Foo
10048 {
10049 public:
10050   Foo (void) { a = 0; }
10051 private:
10052   int a;
10053 };
10054 EOF
10055
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057   (eval $ac_compile) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; then
10061   # Parse the compiler output and extract the necessary
10062   # objects, libraries and library flags.
10063
10064   # Sentinel used to keep track of whether or not we are before
10065   # the conftest object file.
10066   pre_test_object_deps_done=no
10067
10068   # The `*' in the case matches for architectures that use `case' in
10069   # $output_verbose_cmd can trigger glob expansion during the loop
10070   # eval without this substitution.
10071   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10072
10073   for p in `eval $output_verbose_link_cmd`; do
10074     case $p in
10075
10076     -L* | -R* | -l*)
10077        # Some compilers place space between "-{L,R}" and the path.
10078        # Remove the space.
10079        if test $p = "-L" \
10080           || test $p = "-R"; then
10081          prev=$p
10082          continue
10083        else
10084          prev=
10085        fi
10086
10087        if test "$pre_test_object_deps_done" = no; then
10088          case $p in
10089          -L* | -R*)
10090            # Internal compiler library paths should come after those
10091            # provided the user.  The postdeps already come after the
10092            # user supplied libs so there is no need to process them.
10093            if test -z "$compiler_lib_search_path_CXX"; then
10094              compiler_lib_search_path_CXX="${prev}${p}"
10095            else
10096              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10097            fi
10098            ;;
10099          # The "-l" case would never come before the object being
10100          # linked, so don't bother handling this case.
10101          esac
10102        else
10103          if test -z "$postdeps_CXX"; then
10104            postdeps_CXX="${prev}${p}"
10105          else
10106            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10107          fi
10108        fi
10109        ;;
10110
10111     *.$objext)
10112        # This assumes that the test object file only shows up
10113        # once in the compiler output.
10114        if test "$p" = "conftest.$objext"; then
10115          pre_test_object_deps_done=yes
10116          continue
10117        fi
10118
10119        if test "$pre_test_object_deps_done" = no; then
10120          if test -z "$predep_objects_CXX"; then
10121            predep_objects_CXX="$p"
10122          else
10123            predep_objects_CXX="$predep_objects_CXX $p"
10124          fi
10125        else
10126          if test -z "$postdep_objects_CXX"; then
10127            postdep_objects_CXX="$p"
10128          else
10129            postdep_objects_CXX="$postdep_objects_CXX $p"
10130          fi
10131        fi
10132        ;;
10133
10134     *) ;; # Ignore the rest.
10135
10136     esac
10137   done
10138
10139   # Clean up.
10140   rm -f a.out a.exe
10141 else
10142   echo "libtool.m4: error: problem compiling CXX test program"
10143 fi
10144
10145 $rm -f confest.$objext
10146
10147 case " $postdeps_CXX " in
10148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10149 esac
10150
10151 lt_prog_compiler_wl_CXX=
10152 lt_prog_compiler_pic_CXX=
10153 lt_prog_compiler_static_CXX=
10154
10155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10157
10158   # C++ specific cases for pic, static, wl, etc.
10159   if test "$GXX" = yes; then
10160     lt_prog_compiler_wl_CXX='-Wl,'
10161     lt_prog_compiler_static_CXX='-static'
10162
10163     case $host_os in
10164     aix*)
10165       # All AIX code is PIC.
10166       if test "$host_cpu" = ia64; then
10167         # AIX 5 now supports IA64 processor
10168         lt_prog_compiler_static_CXX='-Bstatic'
10169       fi
10170       ;;
10171     amigaos*)
10172       # FIXME: we need at least 68020 code to build shared libraries, but
10173       # adding the `-m68020' flag to GCC prevents building anything better,
10174       # like `-m68040'.
10175       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10176       ;;
10177     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10178       # PIC is the default for these OSes.
10179       ;;
10180     mingw* | os2* | pw32*)
10181       # This hack is so that the source file can tell whether it is being
10182       # built for inclusion in a dll (and should export symbols for example).
10183       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10184       ;;
10185     darwin* | rhapsody*)
10186       # PIC is the default on this platform
10187       # Common symbols not allowed in MH_DYLIB files
10188       lt_prog_compiler_pic_CXX='-fno-common'
10189       ;;
10190     *djgpp*)
10191       # DJGPP does not support shared libraries at all
10192       lt_prog_compiler_pic_CXX=
10193       ;;
10194     sysv4*MP*)
10195       if test -d /usr/nec; then
10196         lt_prog_compiler_pic_CXX=-Kconform_pic
10197       fi
10198       ;;
10199     hpux*)
10200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10201       # not for PA HP-UX.
10202       case "$host_cpu" in
10203       hppa*64*|ia64*)
10204         ;;
10205       *)
10206         lt_prog_compiler_pic_CXX='-fPIC'
10207         ;;
10208       esac
10209       ;;
10210     *)
10211       lt_prog_compiler_pic_CXX='-fPIC'
10212       ;;
10213     esac
10214   else
10215     case $host_os in
10216       aix4* | aix5*)
10217         # All AIX code is PIC.
10218         if test "$host_cpu" = ia64; then
10219           # AIX 5 now supports IA64 processor
10220           lt_prog_compiler_static_CXX='-Bstatic'
10221         else
10222           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10223         fi
10224         ;;
10225       chorus*)
10226         case $cc_basename in
10227         cxch68)
10228           # Green Hills C++ Compiler
10229           # _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"
10230           ;;
10231         esac
10232         ;;
10233       dgux*)
10234         case $cc_basename in
10235           ec++)
10236             lt_prog_compiler_pic_CXX='-KPIC'
10237             ;;
10238           ghcx)
10239             # Green Hills C++ Compiler
10240             lt_prog_compiler_pic_CXX='-pic'
10241             ;;
10242           *)
10243             ;;
10244         esac
10245         ;;
10246       freebsd*)
10247         # FreeBSD uses GNU C++
10248         ;;
10249       hpux9* | hpux10* | hpux11*)
10250         case $cc_basename in
10251           CC)
10252             lt_prog_compiler_wl_CXX='-Wl,'
10253             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10254             if test "$host_cpu" != ia64; then
10255               lt_prog_compiler_pic_CXX='+Z'
10256             fi
10257             ;;
10258           aCC)
10259             lt_prog_compiler_wl_CXX='-Wl,'
10260             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10261             case "$host_cpu" in
10262             hppa*64*|ia64*)
10263               # +Z the default
10264               ;;
10265             *)
10266               lt_prog_compiler_pic_CXX='+Z'
10267               ;;
10268             esac
10269             ;;
10270           *)
10271             ;;
10272         esac
10273         ;;
10274       irix5* | irix6* | nonstopux*)
10275         case $cc_basename in
10276           CC)
10277             lt_prog_compiler_wl_CXX='-Wl,'
10278             lt_prog_compiler_static_CXX='-non_shared'
10279             # CC pic flag -KPIC is the default.
10280             ;;
10281           *)
10282             ;;
10283         esac
10284         ;;
10285       linux*)
10286         case $cc_basename in
10287           KCC)
10288             # KAI C++ Compiler
10289             lt_prog_compiler_wl_CXX='--backend -Wl,'
10290             lt_prog_compiler_pic_CXX='-fPIC'
10291             ;;
10292           icpc)
10293             # Intel C++
10294             lt_prog_compiler_wl_CXX='-Wl,'
10295             lt_prog_compiler_pic_CXX='-KPIC'
10296             lt_prog_compiler_static_CXX='-static'
10297             ;;
10298           cxx)
10299             # Compaq C++
10300             # Make sure the PIC flag is empty.  It appears that all Alpha
10301             # Linux and Compaq Tru64 Unix objects are PIC.
10302             lt_prog_compiler_pic_CXX=
10303             lt_prog_compiler_static_CXX='-non_shared'
10304             ;;
10305           *)
10306             ;;
10307         esac
10308         ;;
10309       lynxos*)
10310         ;;
10311       m88k*)
10312         ;;
10313       mvs*)
10314         case $cc_basename in
10315           cxx)
10316             lt_prog_compiler_pic_CXX='-W c,exportall'
10317             ;;
10318           *)
10319             ;;
10320         esac
10321         ;;
10322       netbsd*)
10323         ;;
10324       osf3* | osf4* | osf5*)
10325         case $cc_basename in
10326           KCC)
10327             lt_prog_compiler_wl_CXX='--backend -Wl,'
10328             ;;
10329           RCC)
10330             # Rational C++ 2.4.1
10331             lt_prog_compiler_pic_CXX='-pic'
10332             ;;
10333           cxx)
10334             # Digital/Compaq C++
10335             lt_prog_compiler_wl_CXX='-Wl,'
10336             # Make sure the PIC flag is empty.  It appears that all Alpha
10337             # Linux and Compaq Tru64 Unix objects are PIC.
10338             lt_prog_compiler_pic_CXX=
10339             lt_prog_compiler_static_CXX='-non_shared'
10340             ;;
10341           *)
10342             ;;
10343         esac
10344         ;;
10345       psos*)
10346         ;;
10347       sco*)
10348         case $cc_basename in
10349           CC)
10350             lt_prog_compiler_pic_CXX='-fPIC'
10351             ;;
10352           *)
10353             ;;
10354         esac
10355         ;;
10356       solaris*)
10357         case $cc_basename in
10358           CC)
10359             # Sun C++ 4.2, 5.x and Centerline C++
10360             lt_prog_compiler_pic_CXX='-KPIC'
10361             lt_prog_compiler_static_CXX='-Bstatic'
10362             lt_prog_compiler_wl_CXX='-Qoption ld '
10363             ;;
10364           gcx)
10365             # Green Hills C++ Compiler
10366             lt_prog_compiler_pic_CXX='-PIC'
10367             ;;
10368           *)
10369             ;;
10370         esac
10371         ;;
10372       sunos4*)
10373         case $cc_basename in
10374           CC)
10375             # Sun C++ 4.x
10376             lt_prog_compiler_pic_CXX='-pic'
10377             lt_prog_compiler_static_CXX='-Bstatic'
10378             ;;
10379           lcc)
10380             # Lucid
10381             lt_prog_compiler_pic_CXX='-pic'
10382             ;;
10383           *)
10384             ;;
10385         esac
10386         ;;
10387       tandem*)
10388         case $cc_basename in
10389           NCC)
10390             # NonStop-UX NCC 3.20
10391             lt_prog_compiler_pic_CXX='-KPIC'
10392             ;;
10393           *)
10394             ;;
10395         esac
10396         ;;
10397       unixware*)
10398         ;;
10399       vxworks*)
10400         ;;
10401       *)
10402         lt_prog_compiler_can_build_shared_CXX=no
10403         ;;
10404     esac
10405   fi
10406
10407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10408 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10409
10410 #
10411 # Check to make sure the PIC flag actually works.
10412 #
10413 if test -n "$lt_prog_compiler_pic_CXX"; then
10414   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10416 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   lt_prog_compiler_pic_works_CXX=no
10420   ac_outfile=conftest.$ac_objext
10421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10422    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10423    # Insert the option either (1) after the last *FLAGS variable, or
10424    # (2) before a word containing "conftest.", or (3) at the end.
10425    # Note that $ac_compile itself does not contain backslashes and begins
10426    # with a dollar sign (not a hyphen), so the echo should work correctly.
10427    # The option is referenced via a variable to avoid confusing sed.
10428    lt_compile=`echo "$ac_compile" | $SED \
10429    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10431    -e 's:$: $lt_compiler_flag:'`
10432    (eval echo "\"\$as_me:10432: $lt_compile\"" >&5)
10433    (eval "$lt_compile" 2>conftest.err)
10434    ac_status=$?
10435    cat conftest.err >&5
10436    echo "$as_me:10436: \$? = $ac_status" >&5
10437    if (exit $ac_status) && test -s "$ac_outfile"; then
10438      # The compiler can only warn and ignore the option if not recognized
10439      # So say no if there are warnings
10440      if test ! -s conftest.err; then
10441        lt_prog_compiler_pic_works_CXX=yes
10442      fi
10443    fi
10444    $rm conftest*
10445
10446 fi
10447 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10448 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10449
10450 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10451     case $lt_prog_compiler_pic_CXX in
10452      "" | " "*) ;;
10453      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10454      esac
10455 else
10456     lt_prog_compiler_pic_CXX=
10457      lt_prog_compiler_can_build_shared_CXX=no
10458 fi
10459
10460 fi
10461 case "$host_os" in
10462   # For platforms which do not support PIC, -DPIC is meaningless:
10463   *djgpp*)
10464     lt_prog_compiler_pic_CXX=
10465     ;;
10466   *)
10467     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10468     ;;
10469 esac
10470
10471 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10472 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10473 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   lt_cv_prog_compiler_c_o_CXX=no
10477    $rm -r conftest 2>/dev/null
10478    mkdir conftest
10479    cd conftest
10480    mkdir out
10481    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10482
10483    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10484    # that will create temporary files in the current directory regardless of
10485    # the output directory.  Thus, making CWD read-only will cause this test
10486    # to fail, enabling locking or at least warning the user not to do parallel
10487    # builds.
10488    chmod -w .
10489
10490    lt_compiler_flag="-o out/conftest2.$ac_objext"
10491    # Insert the option either (1) after the last *FLAGS variable, or
10492    # (2) before a word containing "conftest.", or (3) at the end.
10493    # Note that $ac_compile itself does not contain backslashes and begins
10494    # with a dollar sign (not a hyphen), so the echo should work correctly.
10495    lt_compile=`echo "$ac_compile" | $SED \
10496    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10498    -e 's:$: $lt_compiler_flag:'`
10499    (eval echo "\"\$as_me:10499: $lt_compile\"" >&5)
10500    (eval "$lt_compile" 2>out/conftest.err)
10501    ac_status=$?
10502    cat out/conftest.err >&5
10503    echo "$as_me:10503: \$? = $ac_status" >&5
10504    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10505    then
10506      # The compiler can only warn and ignore the option if not recognized
10507      # So say no if there are warnings
10508      if test ! -s out/conftest.err; then
10509        lt_cv_prog_compiler_c_o_CXX=yes
10510      fi
10511    fi
10512    chmod u+w .
10513    $rm conftest* out/*
10514    rmdir out
10515    cd ..
10516    rmdir conftest
10517    $rm conftest*
10518
10519 fi
10520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10521 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10522
10523
10524 hard_links="nottested"
10525 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10526   # do not overwrite the value of need_locks provided by the user
10527   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10528 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10529   hard_links=yes
10530   $rm conftest*
10531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10532   touch conftest.a
10533   ln conftest.a conftest.b 2>&5 || hard_links=no
10534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10535   echo "$as_me:$LINENO: result: $hard_links" >&5
10536 echo "${ECHO_T}$hard_links" >&6
10537   if test "$hard_links" = no; then
10538     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10539 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10540     need_locks=warn
10541   fi
10542 else
10543   need_locks=no
10544 fi
10545
10546 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10547 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10548
10549   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10550   case $host_os in
10551   aix4* | aix5*)
10552     # If we're using GNU nm, then we don't want the "-C" option.
10553     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10554     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10555       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'
10556     else
10557       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'
10558     fi
10559     ;;
10560   pw32*)
10561     export_symbols_cmds_CXX="$ltdll_cmds"
10562   ;;
10563   cygwin* | mingw*)
10564     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10565   ;;
10566   *)
10567     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10568   ;;
10569   esac
10570
10571 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10572 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10573 test "$ld_shlibs_CXX" = no && can_build_shared=no
10574
10575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10576 if test "$GCC" = yes; then
10577   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10578 fi
10579
10580 #
10581 # Do we need to explicitly link libc?
10582 #
10583 case "x$archive_cmds_need_lc_CXX" in
10584 x|xyes)
10585   # Assume -lc should be added
10586   archive_cmds_need_lc_CXX=yes
10587
10588   if test "$enable_shared" = yes && test "$GCC" = yes; then
10589     case $archive_cmds_CXX in
10590     *'~'*)
10591       # FIXME: we may have to deal with multi-command sequences.
10592       ;;
10593     '$CC '*)
10594       # Test whether the compiler implicitly links with -lc since on some
10595       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10596       # to ld, don't add -lc before -lgcc.
10597       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10598 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10599       $rm conftest*
10600       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10601
10602       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603   (eval $ac_compile) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } 2>conftest.err; then
10607         soname=conftest
10608         lib=conftest
10609         libobjs=conftest.$ac_objext
10610         deplibs=
10611         wl=$lt_prog_compiler_wl_CXX
10612         compiler_flags=-v
10613         linker_flags=-v
10614         verstring=
10615         output_objdir=.
10616         libname=conftest
10617         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10618         allow_undefined_flag_CXX=
10619         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10620   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }
10624         then
10625           archive_cmds_need_lc_CXX=no
10626         else
10627           archive_cmds_need_lc_CXX=yes
10628         fi
10629         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10630       else
10631         cat conftest.err 1>&5
10632       fi
10633       $rm conftest*
10634       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10635 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10636       ;;
10637     esac
10638   fi
10639   ;;
10640 esac
10641
10642 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10643 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10644 hardcode_action_CXX=
10645 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10646    test -n "$runpath_var CXX" || \
10647    test "X$hardcode_automatic_CXX"="Xyes" ; then
10648
10649   # We can hardcode non-existant directories.
10650   if test "$hardcode_direct_CXX" != no &&
10651      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10652      # have to relink, otherwise we might link with an installed library
10653      # when we should be linking with a yet-to-be-installed one
10654      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10655      test "$hardcode_minus_L_CXX" != no; then
10656     # Linking always hardcodes the temporary library directory.
10657     hardcode_action_CXX=relink
10658   else
10659     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660     hardcode_action_CXX=immediate
10661   fi
10662 else
10663   # We cannot hardcode anything, or else we can only hardcode existing
10664   # directories.
10665   hardcode_action_CXX=unsupported
10666 fi
10667 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10668 echo "${ECHO_T}$hardcode_action_CXX" >&6
10669
10670 if test "$hardcode_action_CXX" = relink; then
10671   # Fast installation is not supported
10672   enable_fast_install=no
10673 elif test "$shlibpath_overrides_runpath" = yes ||
10674      test "$enable_shared" = no; then
10675   # Fast installation is not necessary
10676   enable_fast_install=needless
10677 fi
10678
10679 striplib=
10680 old_striplib=
10681 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10682 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10683 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10684   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10685   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10686   echo "$as_me:$LINENO: result: yes" >&5
10687 echo "${ECHO_T}yes" >&6
10688 else
10689 # FIXME - insert some real tests, host_os isn't really good enough
10690   case $host_os in
10691    darwin*)
10692        if test -n "$STRIP" ; then
10693          striplib="$STRIP -x"
10694          echo "$as_me:$LINENO: result: yes" >&5
10695 echo "${ECHO_T}yes" >&6
10696        else
10697   echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6
10699 fi
10700        ;;
10701    *)
10702   echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6
10704     ;;
10705   esac
10706 fi
10707
10708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10710 library_names_spec=
10711 libname_spec='lib$name'
10712 soname_spec=
10713 shrext=".so"
10714 postinstall_cmds=
10715 postuninstall_cmds=
10716 finish_cmds=
10717 finish_eval=
10718 shlibpath_var=
10719 shlibpath_overrides_runpath=unknown
10720 version_type=none
10721 dynamic_linker="$host_os ld.so"
10722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10723 if test "$GCC" = yes; then
10724   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10725   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10726     # if the path contains ";" then we assume it to be the separator
10727     # otherwise default to the standard path separator (i.e. ":") - it is
10728     # assumed that no part of a normal pathname contains ";" but that should
10729     # okay in the real world where ";" in dirpaths is itself problematic.
10730     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10731   else
10732     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10733   fi
10734 else
10735   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10736 fi
10737 need_lib_prefix=unknown
10738 hardcode_into_libs=no
10739
10740 # when you set need_version to no, make sure it does not cause -set_version
10741 # flags to be left without arguments
10742 need_version=unknown
10743
10744 case $host_os in
10745 aix3*)
10746   version_type=linux
10747   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10748   shlibpath_var=LIBPATH
10749
10750   # AIX 3 has no versioning support, so we append a major version to the name.
10751   soname_spec='${libname}${release}${shared_ext}$major'
10752   ;;
10753
10754 aix4* | aix5*)
10755   version_type=linux
10756   need_lib_prefix=no
10757   need_version=no
10758   hardcode_into_libs=yes
10759   if test "$host_cpu" = ia64; then
10760     # AIX 5 supports IA64
10761     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10762     shlibpath_var=LD_LIBRARY_PATH
10763   else
10764     # With GCC up to 2.95.x, collect2 would create an import file
10765     # for dependence libraries.  The import file would start with
10766     # the line `#! .'.  This would cause the generated library to
10767     # depend on `.', always an invalid library.  This was fixed in
10768     # development snapshots of GCC prior to 3.0.
10769     case $host_os in
10770       aix4 | aix4.[01] | aix4.[01].*)
10771       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10772            echo ' yes '
10773            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10774         :
10775       else
10776         can_build_shared=no
10777       fi
10778       ;;
10779     esac
10780     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10781     # soname into executable. Probably we can add versioning support to
10782     # collect2, so additional links can be useful in future.
10783     if test "$aix_use_runtimelinking" = yes; then
10784       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10785       # instead of lib<name>.a to let people know that these are not
10786       # typical AIX shared libraries.
10787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788     else
10789       # We preserve .a as extension for shared libraries through AIX4.2
10790       # and later when we are not doing run time linking.
10791       library_names_spec='${libname}${release}.a $libname.a'
10792       soname_spec='${libname}${release}${shared_ext}$major'
10793     fi
10794     shlibpath_var=LIBPATH
10795   fi
10796   ;;
10797
10798 amigaos*)
10799   library_names_spec='$libname.ixlibrary $libname.a'
10800   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10801   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'
10802   ;;
10803
10804 beos*)
10805   library_names_spec='${libname}${shared_ext}'
10806   dynamic_linker="$host_os ld.so"
10807   shlibpath_var=LIBRARY_PATH
10808   ;;
10809
10810 bsdi4*)
10811   version_type=linux
10812   need_version=no
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10816   shlibpath_var=LD_LIBRARY_PATH
10817   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10818   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10819   # the default ld.so.conf also contains /usr/contrib/lib and
10820   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10821   # libtool to hard-code these into programs
10822   ;;
10823
10824 cygwin* | mingw* | pw32*)
10825   version_type=windows
10826   shrext=".dll"
10827   need_version=no
10828   need_lib_prefix=no
10829
10830   case $GCC,$host_os in
10831   yes,cygwin* | yes,mingw* | yes,pw32*)
10832     library_names_spec='$libname.dll.a'
10833     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10834     postinstall_cmds='base_file=`basename \${file}`~
10835       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10836       dldir=$destdir/`dirname \$dlpath`~
10837       test -d \$dldir || mkdir -p \$dldir~
10838       $install_prog $dir/$dlname \$dldir/$dlname'
10839     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10840       dlpath=$dir/\$dldll~
10841        $rm \$dlpath'
10842     shlibpath_overrides_runpath=yes
10843
10844     case $host_os in
10845     cygwin*)
10846       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10847       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10848       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10849       ;;
10850     mingw*)
10851       # MinGW DLLs use traditional 'lib' prefix
10852       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10853       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10854       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10855         # It is most probably a Windows format PATH printed by
10856         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10857         # path with ; separators, and with drive letters. We can handle the
10858         # drive letters (cygwin fileutils understands them), so leave them,
10859         # especially as we might pass files found there to a mingw objdump,
10860         # which wouldn't understand a cygwinified path. Ahh.
10861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10862       else
10863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10864       fi
10865       ;;
10866     pw32*)
10867       # pw32 DLLs use 'pw' prefix rather than 'lib'
10868       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10869       ;;
10870     esac
10871     ;;
10872
10873   *)
10874     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10875     ;;
10876   esac
10877   dynamic_linker='Win32 ld.exe'
10878   # FIXME: first we should search . and the directory the executable is in
10879   shlibpath_var=PATH
10880   ;;
10881
10882 darwin* | rhapsody*)
10883   dynamic_linker="$host_os dyld"
10884   version_type=darwin
10885   need_lib_prefix=no
10886   need_version=no
10887   # FIXME: Relying on posixy $() will cause problems for
10888   #        cross-compilation, but unfortunately the echo tests do not
10889   #        yet detect zsh echo's removal of \ escapes.
10890   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10891   soname_spec='${libname}${release}${major}$shared_ext'
10892   shlibpath_overrides_runpath=yes
10893   shlibpath_var=DYLD_LIBRARY_PATH
10894   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10895   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10896   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10897   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"`
10898   fi
10899   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10900   ;;
10901
10902 dgux*)
10903   version_type=linux
10904   need_lib_prefix=no
10905   need_version=no
10906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10907   soname_spec='${libname}${release}${shared_ext}$major'
10908   shlibpath_var=LD_LIBRARY_PATH
10909   ;;
10910
10911 freebsd1*)
10912   dynamic_linker=no
10913   ;;
10914
10915 freebsd*)
10916   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10917   version_type=freebsd-$objformat
10918   case $version_type in
10919     freebsd-elf*)
10920       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10921       need_version=no
10922       need_lib_prefix=no
10923       ;;
10924     freebsd-*)
10925       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10926       need_version=yes
10927       ;;
10928   esac
10929   shlibpath_var=LD_LIBRARY_PATH
10930   case $host_os in
10931   freebsd2*)
10932     shlibpath_overrides_runpath=yes
10933     ;;
10934   freebsd3.01* | freebsdelf3.01*)
10935     shlibpath_overrides_runpath=yes
10936     hardcode_into_libs=yes
10937     ;;
10938   *) # from 3.2 on
10939     shlibpath_overrides_runpath=no
10940     hardcode_into_libs=yes
10941     ;;
10942   esac
10943   ;;
10944
10945 gnu*)
10946   version_type=linux
10947   need_lib_prefix=no
10948   need_version=no
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10950   soname_spec='${libname}${release}${shared_ext}$major'
10951   shlibpath_var=LD_LIBRARY_PATH
10952   hardcode_into_libs=yes
10953   ;;
10954
10955 hpux9* | hpux10* | hpux11*)
10956   # Give a soname corresponding to the major version so that dld.sl refuses to
10957   # link against other versions.
10958   version_type=sunos
10959   need_lib_prefix=no
10960   need_version=no
10961   case "$host_cpu" in
10962   ia64*)
10963     shrext='.so'
10964     hardcode_into_libs=yes
10965     dynamic_linker="$host_os dld.so"
10966     shlibpath_var=LD_LIBRARY_PATH
10967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969     soname_spec='${libname}${release}${shared_ext}$major'
10970     if test "X$HPUX_IA64_MODE" = X32; then
10971       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10972     else
10973       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10974     fi
10975     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976     ;;
10977    hppa*64*)
10978      shrext='.sl'
10979      hardcode_into_libs=yes
10980      dynamic_linker="$host_os dld.sl"
10981      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10982      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984      soname_spec='${libname}${release}${shared_ext}$major'
10985      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10986      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10987      ;;
10988    *)
10989     shrext='.sl'
10990     dynamic_linker="$host_os dld.sl"
10991     shlibpath_var=SHLIB_PATH
10992     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994     soname_spec='${libname}${release}${shared_ext}$major'
10995     ;;
10996   esac
10997   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10998   postinstall_cmds='chmod 555 $lib'
10999   ;;
11000
11001 irix5* | irix6* | nonstopux*)
11002   case $host_os in
11003     nonstopux*) version_type=nonstopux ;;
11004     *)
11005         if test "$lt_cv_prog_gnu_ld" = yes; then
11006                 version_type=linux
11007         else
11008                 version_type=irix
11009         fi ;;
11010   esac
11011   need_lib_prefix=no
11012   need_version=no
11013   soname_spec='${libname}${release}${shared_ext}$major'
11014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11015   case $host_os in
11016   irix5* | nonstopux*)
11017     libsuff= shlibsuff=
11018     ;;
11019   *)
11020     case $LD in # libtool.m4 will add one of these switches to LD
11021     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11022       libsuff= shlibsuff= libmagic=32-bit;;
11023     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11024       libsuff=32 shlibsuff=N32 libmagic=N32;;
11025     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11026       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11027     *) libsuff= shlibsuff= libmagic=never-match;;
11028     esac
11029     ;;
11030   esac
11031   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11032   shlibpath_overrides_runpath=no
11033   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11034   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11035   hardcode_into_libs=yes
11036   ;;
11037
11038 # No shared lib support for Linux oldld, aout, or coff.
11039 linux*oldld* | linux*aout* | linux*coff*)
11040   dynamic_linker=no
11041   ;;
11042
11043 # This must be Linux ELF.
11044 linux*)
11045   version_type=linux
11046   need_lib_prefix=no
11047   need_version=no
11048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049   soname_spec='${libname}${release}${shared_ext}$major'
11050   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11051   shlibpath_var=LD_LIBRARY_PATH
11052   shlibpath_overrides_runpath=no
11053   # This implies no fast_install, which is unacceptable.
11054   # Some rework will be needed to allow for fast_install
11055   # before this can be enabled.
11056   hardcode_into_libs=yes
11057
11058   # We used to test for /lib/ld.so.1 and disable shared libraries on
11059   # powerpc, because MkLinux only supported shared libraries with the
11060   # GNU dynamic linker.  Since this was broken with cross compilers,
11061   # most powerpc-linux boxes support dynamic linking these days and
11062   # people can always --disable-shared, the test was removed, and we
11063   # assume the GNU/Linux dynamic linker is in use.
11064   dynamic_linker='GNU/Linux ld.so'
11065   ;;
11066
11067 netbsd*)
11068   version_type=sunos
11069   need_lib_prefix=no
11070   need_version=no
11071   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074     dynamic_linker='NetBSD (a.out) ld.so'
11075   else
11076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11077     soname_spec='${libname}${release}${shared_ext}$major'
11078     dynamic_linker='NetBSD ld.elf_so'
11079   fi
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=yes
11082   hardcode_into_libs=yes
11083   ;;
11084
11085 newsos6)
11086   version_type=linux
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088   shlibpath_var=LD_LIBRARY_PATH
11089   shlibpath_overrides_runpath=yes
11090   ;;
11091
11092 nto-qnx)
11093   version_type=linux
11094   need_lib_prefix=no
11095   need_version=no
11096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097   soname_spec='${libname}${release}${shared_ext}$major'
11098   shlibpath_var=LD_LIBRARY_PATH
11099   shlibpath_overrides_runpath=yes
11100   ;;
11101
11102 openbsd*)
11103   version_type=sunos
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11110     case $host_os in
11111       openbsd2.[89] | openbsd2.[89].*)
11112         shlibpath_overrides_runpath=no
11113         ;;
11114       *)
11115         shlibpath_overrides_runpath=yes
11116         ;;
11117       esac
11118   else
11119     shlibpath_overrides_runpath=yes
11120   fi
11121   ;;
11122
11123 os2*)
11124   libname_spec='$name'
11125   shrext=".dll"
11126   need_lib_prefix=no
11127   library_names_spec='$libname${shared_ext} $libname.a'
11128   dynamic_linker='OS/2 ld.exe'
11129   shlibpath_var=LIBPATH
11130   ;;
11131
11132 osf3* | osf4* | osf5*)
11133   version_type=osf
11134   need_lib_prefix=no
11135   need_version=no
11136   soname_spec='${libname}${release}${shared_ext}$major'
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138   shlibpath_var=LD_LIBRARY_PATH
11139   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11140   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11141   ;;
11142
11143 sco3.2v5*)
11144   version_type=osf
11145   soname_spec='${libname}${release}${shared_ext}$major'
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147   shlibpath_var=LD_LIBRARY_PATH
11148   ;;
11149
11150 solaris*)
11151   version_type=linux
11152   need_lib_prefix=no
11153   need_version=no
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   soname_spec='${libname}${release}${shared_ext}$major'
11156   shlibpath_var=LD_LIBRARY_PATH
11157   shlibpath_overrides_runpath=yes
11158   hardcode_into_libs=yes
11159   # ldd complains unless libraries are executable
11160   postinstall_cmds='chmod +x $lib'
11161   ;;
11162
11163 sunos4*)
11164   version_type=sunos
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   shlibpath_overrides_runpath=yes
11169   if test "$with_gnu_ld" = yes; then
11170     need_lib_prefix=no
11171   fi
11172   need_version=yes
11173   ;;
11174
11175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11176   version_type=linux
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178   soname_spec='${libname}${release}${shared_ext}$major'
11179   shlibpath_var=LD_LIBRARY_PATH
11180   case $host_vendor in
11181     sni)
11182       shlibpath_overrides_runpath=no
11183       need_lib_prefix=no
11184       export_dynamic_flag_spec='${wl}-Blargedynsym'
11185       runpath_var=LD_RUN_PATH
11186       ;;
11187     siemens)
11188       need_lib_prefix=no
11189       ;;
11190     motorola)
11191       need_lib_prefix=no
11192       need_version=no
11193       shlibpath_overrides_runpath=no
11194       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11195       ;;
11196   esac
11197   ;;
11198
11199 sysv4*MP*)
11200   if test -d /usr/nec ;then
11201     version_type=linux
11202     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11203     soname_spec='$libname${shared_ext}.$major'
11204     shlibpath_var=LD_LIBRARY_PATH
11205   fi
11206   ;;
11207
11208 uts4*)
11209   version_type=linux
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211   soname_spec='${libname}${release}${shared_ext}$major'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   ;;
11214
11215 *)
11216   dynamic_linker=no
11217   ;;
11218 esac
11219 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11220 echo "${ECHO_T}$dynamic_linker" >&6
11221 test "$dynamic_linker" = no && can_build_shared=no
11222
11223 if test "x$enable_dlopen" != xyes; then
11224   enable_dlopen=unknown
11225   enable_dlopen_self=unknown
11226   enable_dlopen_self_static=unknown
11227 else
11228   lt_cv_dlopen=no
11229   lt_cv_dlopen_libs=
11230
11231   case $host_os in
11232   beos*)
11233     lt_cv_dlopen="load_add_on"
11234     lt_cv_dlopen_libs=
11235     lt_cv_dlopen_self=yes
11236     ;;
11237
11238   mingw* | pw32*)
11239     lt_cv_dlopen="LoadLibrary"
11240     lt_cv_dlopen_libs=
11241    ;;
11242
11243   cygwin*)
11244     lt_cv_dlopen="dlopen"
11245     lt_cv_dlopen_libs=
11246    ;;
11247
11248   darwin*)
11249   # if libdl is installed we need to link against it
11250     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11251 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-ldl  $LIBS"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264
11265 /* Override any gcc2 internal prototype to avoid an error.  */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 /* We use char because int might match the return type of a gcc2
11270    builtin and then its argument prototype would still apply.  */
11271 char dlopen ();
11272 int
11273 main ()
11274 {
11275 dlopen ();
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282   (eval $ac_link) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } &&
11286          { ac_try='test -s conftest$ac_exeext'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   ac_cv_lib_dl_dlopen=yes
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 ac_cv_lib_dl_dlopen=no
11298 fi
11299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11303 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11304 if test $ac_cv_lib_dl_dlopen = yes; then
11305   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11306 else
11307
11308     lt_cv_dlopen="dyld"
11309     lt_cv_dlopen_libs=
11310     lt_cv_dlopen_self=yes
11311
11312 fi
11313
11314    ;;
11315
11316   *)
11317     echo "$as_me:$LINENO: checking for shl_load" >&5
11318 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11319 if test "${ac_cv_func_shl_load+set}" = set; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   cat >conftest.$ac_ext <<_ACEOF
11323 #line $LINENO "configure"
11324 /* confdefs.h.  */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h.  */
11329 /* System header to define __stub macros and hopefully few prototypes,
11330     which can conflict with char shl_load (); below.
11331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11332     <limits.h> exists even on freestanding compilers.  */
11333 #ifdef __STDC__
11334 # include <limits.h>
11335 #else
11336 # include <assert.h>
11337 #endif
11338 /* Override any gcc2 internal prototype to avoid an error.  */
11339 #ifdef __cplusplus
11340 extern "C"
11341 {
11342 #endif
11343 /* We use char because int might match the return type of a gcc2
11344    builtin and then its argument prototype would still apply.  */
11345 char shl_load ();
11346 /* The GNU C library defines this for functions which it implements
11347     to always fail with ENOSYS.  Some functions are actually named
11348     something starting with __ and the normal name is an alias.  */
11349 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11350 choke me
11351 #else
11352 char (*f) () = shl_load;
11353 #endif
11354 #ifdef __cplusplus
11355 }
11356 #endif
11357
11358 int
11359 main ()
11360 {
11361 return f != shl_load;
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368   (eval $ac_link) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -s conftest$ac_exeext'
11373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374   (eval $ac_try) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; }; then
11378   ac_cv_func_shl_load=yes
11379 else
11380   echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 ac_cv_func_shl_load=no
11384 fi
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 fi
11387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11389 if test $ac_cv_func_shl_load = yes; then
11390   lt_cv_dlopen="shl_load"
11391 else
11392   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldld  $LIBS"
11399 cat >conftest.$ac_ext <<_ACEOF
11400 #line $LINENO "configure"
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406
11407 /* Override any gcc2 internal prototype to avoid an error.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 /* We use char because int might match the return type of a gcc2
11412    builtin and then its argument prototype would still apply.  */
11413 char shl_load ();
11414 int
11415 main ()
11416 {
11417 shl_load ();
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424   (eval $ac_link) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -s conftest$ac_exeext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_cv_lib_dld_shl_load=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_cv_lib_dld_shl_load=no
11440 fi
11441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11443 fi
11444 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11445 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11446 if test $ac_cv_lib_dld_shl_load = yes; then
11447   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11448 else
11449   echo "$as_me:$LINENO: checking for dlopen" >&5
11450 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11451 if test "${ac_cv_func_dlopen+set}" = set; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11456 /* confdefs.h.  */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h.  */
11461 /* System header to define __stub macros and hopefully few prototypes,
11462     which can conflict with char dlopen (); below.
11463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464     <limits.h> exists even on freestanding compilers.  */
11465 #ifdef __STDC__
11466 # include <limits.h>
11467 #else
11468 # include <assert.h>
11469 #endif
11470 /* Override any gcc2 internal prototype to avoid an error.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 {
11474 #endif
11475 /* We use char because int might match the return type of a gcc2
11476    builtin and then its argument prototype would still apply.  */
11477 char dlopen ();
11478 /* The GNU C library defines this for functions which it implements
11479     to always fail with ENOSYS.  Some functions are actually named
11480     something starting with __ and the normal name is an alias.  */
11481 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11482 choke me
11483 #else
11484 char (*f) () = dlopen;
11485 #endif
11486 #ifdef __cplusplus
11487 }
11488 #endif
11489
11490 int
11491 main ()
11492 {
11493 return f != dlopen;
11494   ;
11495   return 0;
11496 }
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500   (eval $ac_link) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   ac_cv_func_dlopen=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_func_dlopen=no
11516 fi
11517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11518 fi
11519 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11520 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11521 if test $ac_cv_func_dlopen = yes; then
11522   lt_cv_dlopen="dlopen"
11523 else
11524   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-ldl  $LIBS"
11531 cat >conftest.$ac_ext <<_ACEOF
11532 #line $LINENO "configure"
11533 /* confdefs.h.  */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h.  */
11538
11539 /* Override any gcc2 internal prototype to avoid an error.  */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 /* We use char because int might match the return type of a gcc2
11544    builtin and then its argument prototype would still apply.  */
11545 char dlopen ();
11546 int
11547 main ()
11548 {
11549 dlopen ();
11550   ;
11551   return 0;
11552 }
11553 _ACEOF
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556   (eval $ac_link) 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } &&
11560          { ac_try='test -s conftest$ac_exeext'
11561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562   (eval $ac_try) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; }; then
11566   ac_cv_lib_dl_dlopen=yes
11567 else
11568   echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571 ac_cv_lib_dl_dlopen=no
11572 fi
11573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11575 fi
11576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11578 if test $ac_cv_lib_dl_dlopen = yes; then
11579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11580 else
11581   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11582 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-lsvld  $LIBS"
11588 cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595
11596 /* Override any gcc2 internal prototype to avoid an error.  */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 /* We use char because int might match the return type of a gcc2
11601    builtin and then its argument prototype would still apply.  */
11602 char dlopen ();
11603 int
11604 main ()
11605 {
11606 dlopen ();
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613   (eval $ac_link) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } &&
11617          { ac_try='test -s conftest$ac_exeext'
11618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619   (eval $ac_try) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; }; then
11623   ac_cv_lib_svld_dlopen=yes
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_cv_lib_svld_dlopen=no
11629 fi
11630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11632 fi
11633 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11634 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11635 if test $ac_cv_lib_svld_dlopen = yes; then
11636   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11637 else
11638   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11639 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11640 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   ac_check_lib_save_LIBS=$LIBS
11644 LIBS="-ldld  $LIBS"
11645 cat >conftest.$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652
11653 /* Override any gcc2 internal prototype to avoid an error.  */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 /* We use char because int might match the return type of a gcc2
11658    builtin and then its argument prototype would still apply.  */
11659 char dld_link ();
11660 int
11661 main ()
11662 {
11663 dld_link ();
11664   ;
11665   return 0;
11666 }
11667 _ACEOF
11668 rm -f conftest.$ac_objext conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670   (eval $ac_link) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -s conftest$ac_exeext'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; }; then
11680   ac_cv_lib_dld_dld_link=yes
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_cv_lib_dld_dld_link=no
11686 fi
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11689 fi
11690 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11692 if test $ac_cv_lib_dld_dld_link = yes; then
11693   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11694 fi
11695
11696
11697 fi
11698
11699
11700 fi
11701
11702
11703 fi
11704
11705
11706 fi
11707
11708
11709 fi
11710
11711     ;;
11712   esac
11713
11714   if test "x$lt_cv_dlopen" != xno; then
11715     enable_dlopen=yes
11716   else
11717     enable_dlopen=no
11718   fi
11719
11720   case $lt_cv_dlopen in
11721   dlopen)
11722     save_CPPFLAGS="$CPPFLAGS"
11723     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11724
11725     save_LDFLAGS="$LDFLAGS"
11726     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11727
11728     save_LIBS="$LIBS"
11729     LIBS="$lt_cv_dlopen_libs $LIBS"
11730
11731     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11732 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11733 if test "${lt_cv_dlopen_self+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736           if test "$cross_compiling" = yes; then :
11737   lt_cv_dlopen_self=cross
11738 else
11739   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740   lt_status=$lt_dlunknown
11741   cat > conftest.$ac_ext <<EOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11744
11745 #if HAVE_DLFCN_H
11746 #include <dlfcn.h>
11747 #endif
11748
11749 #include <stdio.h>
11750
11751 #ifdef RTLD_GLOBAL
11752 #  define LT_DLGLOBAL           RTLD_GLOBAL
11753 #else
11754 #  ifdef DL_GLOBAL
11755 #    define LT_DLGLOBAL         DL_GLOBAL
11756 #  else
11757 #    define LT_DLGLOBAL         0
11758 #  endif
11759 #endif
11760
11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762    find out it does not work in some platform. */
11763 #ifndef LT_DLLAZY_OR_NOW
11764 #  ifdef RTLD_LAZY
11765 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11766 #  else
11767 #    ifdef DL_LAZY
11768 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11769 #    else
11770 #      ifdef RTLD_NOW
11771 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11772 #      else
11773 #        ifdef DL_NOW
11774 #          define LT_DLLAZY_OR_NOW      DL_NOW
11775 #        else
11776 #          define LT_DLLAZY_OR_NOW      0
11777 #        endif
11778 #      endif
11779 #    endif
11780 #  endif
11781 #endif
11782
11783 #ifdef __cplusplus
11784 extern "C" void exit (int);
11785 #endif
11786
11787 void fnord() { int i=42;}
11788 int main ()
11789 {
11790   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791   int status = $lt_dlunknown;
11792
11793   if (self)
11794     {
11795       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11796       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11797       /* dlclose (self); */
11798     }
11799
11800     exit (status);
11801 }
11802 EOF
11803   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804   (eval $ac_link) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11808     (./conftest; exit; ) 2>/dev/null
11809     lt_status=$?
11810     case x$lt_status in
11811       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11812       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11813       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11814     esac
11815   else :
11816     # compilation failed
11817     lt_cv_dlopen_self=no
11818   fi
11819 fi
11820 rm -fr conftest*
11821
11822
11823 fi
11824 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11825 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11826
11827     if test "x$lt_cv_dlopen_self" = xyes; then
11828       LDFLAGS="$LDFLAGS $link_static_flag"
11829       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11830 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11831 if test "${lt_cv_dlopen_self_static+set}" = set; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834           if test "$cross_compiling" = yes; then :
11835   lt_cv_dlopen_self_static=cross
11836 else
11837   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11838   lt_status=$lt_dlunknown
11839   cat > conftest.$ac_ext <<EOF
11840 #line 11840 "configure"
11841 #include "confdefs.h"
11842
11843 #if HAVE_DLFCN_H
11844 #include <dlfcn.h>
11845 #endif
11846
11847 #include <stdio.h>
11848
11849 #ifdef RTLD_GLOBAL
11850 #  define LT_DLGLOBAL           RTLD_GLOBAL
11851 #else
11852 #  ifdef DL_GLOBAL
11853 #    define LT_DLGLOBAL         DL_GLOBAL
11854 #  else
11855 #    define LT_DLGLOBAL         0
11856 #  endif
11857 #endif
11858
11859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11860    find out it does not work in some platform. */
11861 #ifndef LT_DLLAZY_OR_NOW
11862 #  ifdef RTLD_LAZY
11863 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11864 #  else
11865 #    ifdef DL_LAZY
11866 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11867 #    else
11868 #      ifdef RTLD_NOW
11869 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11870 #      else
11871 #        ifdef DL_NOW
11872 #          define LT_DLLAZY_OR_NOW      DL_NOW
11873 #        else
11874 #          define LT_DLLAZY_OR_NOW      0
11875 #        endif
11876 #      endif
11877 #    endif
11878 #  endif
11879 #endif
11880
11881 #ifdef __cplusplus
11882 extern "C" void exit (int);
11883 #endif
11884
11885 void fnord() { int i=42;}
11886 int main ()
11887 {
11888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889   int status = $lt_dlunknown;
11890
11891   if (self)
11892     {
11893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11894       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895       /* dlclose (self); */
11896     }
11897
11898     exit (status);
11899 }
11900 EOF
11901   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902   (eval $ac_link) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11906     (./conftest; exit; ) 2>/dev/null
11907     lt_status=$?
11908     case x$lt_status in
11909       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11912     esac
11913   else :
11914     # compilation failed
11915     lt_cv_dlopen_self_static=no
11916   fi
11917 fi
11918 rm -fr conftest*
11919
11920
11921 fi
11922 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11923 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11924     fi
11925
11926     CPPFLAGS="$save_CPPFLAGS"
11927     LDFLAGS="$save_LDFLAGS"
11928     LIBS="$save_LIBS"
11929     ;;
11930   esac
11931
11932   case $lt_cv_dlopen_self in
11933   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934   *) enable_dlopen_self=unknown ;;
11935   esac
11936
11937   case $lt_cv_dlopen_self_static in
11938   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939   *) enable_dlopen_self_static=unknown ;;
11940   esac
11941 fi
11942
11943
11944 # The else clause should only fire when bootstrapping the
11945 # libtool distribution, otherwise you forgot to ship ltmain.sh
11946 # with your package, and you will get complaints that there are
11947 # no rules to generate ltmain.sh.
11948 if test -f "$ltmain"; then
11949   # See if we are running on zsh, and set the options which allow our commands through
11950   # without removal of \ escapes.
11951   if test -n "${ZSH_VERSION+set}" ; then
11952     setopt NO_GLOB_SUBST
11953   fi
11954   # Now quote all the things that may contain metacharacters while being
11955   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11956   # variables and quote the copies for generation of the libtool script.
11957   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11958     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11959     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11960     deplibs_check_method reload_flag reload_cmds need_locks \
11961     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11962     lt_cv_sys_global_symbol_to_c_name_address \
11963     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11964     old_postinstall_cmds old_postuninstall_cmds \
11965     compiler_CXX \
11966     CC_CXX \
11967     LD_CXX \
11968     lt_prog_compiler_wl_CXX \
11969     lt_prog_compiler_pic_CXX \
11970     lt_prog_compiler_static_CXX \
11971     lt_prog_compiler_no_builtin_flag_CXX \
11972     export_dynamic_flag_spec_CXX \
11973     thread_safe_flag_spec_CXX \
11974     whole_archive_flag_spec_CXX \
11975     enable_shared_with_static_runtimes_CXX \
11976     old_archive_cmds_CXX \
11977     old_archive_from_new_cmds_CXX \
11978     predep_objects_CXX \
11979     postdep_objects_CXX \
11980     predeps_CXX \
11981     postdeps_CXX \
11982     compiler_lib_search_path_CXX \
11983     archive_cmds_CXX \
11984     archive_expsym_cmds_CXX \
11985     postinstall_cmds_CXX \
11986     postuninstall_cmds_CXX \
11987     old_archive_from_expsyms_cmds_CXX \
11988     allow_undefined_flag_CXX \
11989     no_undefined_flag_CXX \
11990     export_symbols_cmds_CXX \
11991     hardcode_libdir_flag_spec_CXX \
11992     hardcode_libdir_flag_spec_ld_CXX \
11993     hardcode_libdir_separator_CXX \
11994     hardcode_automatic_CXX \
11995     module_cmds_CXX \
11996     module_expsym_cmds_CXX \
11997     lt_cv_prog_compiler_c_o_CXX \
11998     exclude_expsyms_CXX \
11999     include_expsyms_CXX; do
12000
12001     case $var in
12002     old_archive_cmds_CXX | \
12003     old_archive_from_new_cmds_CXX | \
12004     archive_cmds_CXX | \
12005     archive_expsym_cmds_CXX | \
12006     module_cmds_CXX | \
12007     module_expsym_cmds_CXX | \
12008     old_archive_from_expsyms_cmds_CXX | \
12009     export_symbols_cmds_CXX | \
12010     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12011     postinstall_cmds | postuninstall_cmds | \
12012     old_postinstall_cmds | old_postuninstall_cmds | \
12013     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12014       # Double-quote double-evaled strings.
12015       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12016       ;;
12017     *)
12018       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12019       ;;
12020     esac
12021   done
12022
12023   case $lt_echo in
12024   *'\$0 --fallback-echo"')
12025     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12026     ;;
12027   esac
12028
12029 cfgfile="$ofile"
12030
12031   cat <<__EOF__ >> "$cfgfile"
12032 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12033
12034 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12035
12036 # Shell to use when invoking shell scripts.
12037 SHELL=$lt_SHELL
12038
12039 # Whether or not to build shared libraries.
12040 build_libtool_libs=$enable_shared
12041
12042 # Whether or not to build static libraries.
12043 build_old_libs=$enable_static
12044
12045 # Whether or not to add -lc for building shared libraries.
12046 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12047
12048 # Whether or not to disallow shared libs when runtime libs are static
12049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12050
12051 # Whether or not to optimize for fast installation.
12052 fast_install=$enable_fast_install
12053
12054 # The host system.
12055 host_alias=$host_alias
12056 host=$host
12057
12058 # An echo program that does not interpret backslashes.
12059 echo=$lt_echo
12060
12061 # The archiver.
12062 AR=$lt_AR
12063 AR_FLAGS=$lt_AR_FLAGS
12064
12065 # A C compiler.
12066 LTCC=$lt_LTCC
12067
12068 # A language-specific compiler.
12069 CC=$lt_compiler_CXX
12070
12071 # Is the compiler the GNU C compiler?
12072 with_gcc=$GCC_CXX
12073
12074 # An ERE matcher.
12075 EGREP=$lt_EGREP
12076
12077 # The linker used to build libraries.
12078 LD=$lt_LD_CXX
12079
12080 # Whether we need hard or soft links.
12081 LN_S=$lt_LN_S
12082
12083 # A BSD-compatible nm program.
12084 NM=$lt_NM
12085
12086 # A symbol stripping program
12087 STRIP=$STRIP
12088
12089 # Used to examine libraries when file_magic_cmd begins "file"
12090 MAGIC_CMD=$MAGIC_CMD
12091
12092 # Used on cygwin: DLL creation program.
12093 DLLTOOL="$DLLTOOL"
12094
12095 # Used on cygwin: object dumper.
12096 OBJDUMP="$OBJDUMP"
12097
12098 # Used on cygwin: assembler.
12099 AS="$AS"
12100
12101 # The name of the directory that contains temporary libtool files.
12102 objdir=$objdir
12103
12104 # How to create reloadable object files.
12105 reload_flag=$lt_reload_flag
12106 reload_cmds=$lt_reload_cmds
12107
12108 # How to pass a linker flag through the compiler.
12109 wl=$lt_lt_prog_compiler_wl_CXX
12110
12111 # Object file suffix (normally "o").
12112 objext="$ac_objext"
12113
12114 # Old archive suffix (normally "a").
12115 libext="$libext"
12116
12117 # Shared library suffix (normally ".so").
12118 shrext='$shrext'
12119
12120 # Executable file suffix (normally "").
12121 exeext="$exeext"
12122
12123 # Additional compiler flags for building library objects.
12124 pic_flag=$lt_lt_prog_compiler_pic_CXX
12125 pic_mode=$pic_mode
12126
12127 # What is the maximum length of a command?
12128 max_cmd_len=$lt_cv_sys_max_cmd_len
12129
12130 # Does compiler simultaneously support -c and -o options?
12131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12132
12133 # Must we lock files when doing compilation ?
12134 need_locks=$lt_need_locks
12135
12136 # Do we need the lib prefix for modules?
12137 need_lib_prefix=$need_lib_prefix
12138
12139 # Do we need a version for libraries?
12140 need_version=$need_version
12141
12142 # Whether dlopen is supported.
12143 dlopen_support=$enable_dlopen
12144
12145 # Whether dlopen of programs is supported.
12146 dlopen_self=$enable_dlopen_self
12147
12148 # Whether dlopen of statically linked programs is supported.
12149 dlopen_self_static=$enable_dlopen_self_static
12150
12151 # Compiler flag to prevent dynamic linking.
12152 link_static_flag=$lt_lt_prog_compiler_static_CXX
12153
12154 # Compiler flag to turn off builtin functions.
12155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12156
12157 # Compiler flag to allow reflexive dlopens.
12158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12159
12160 # Compiler flag to generate shared objects directly from archives.
12161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12162
12163 # Compiler flag to generate thread-safe objects.
12164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12165
12166 # Library versioning type.
12167 version_type=$version_type
12168
12169 # Format of library name prefix.
12170 libname_spec=$lt_libname_spec
12171
12172 # List of archive names.  First name is the real one, the rest are links.
12173 # The last name is the one that the linker finds with -lNAME.
12174 library_names_spec=$lt_library_names_spec
12175
12176 # The coded name of the library, if different from the real name.
12177 soname_spec=$lt_soname_spec
12178
12179 # Commands used to build and install an old-style archive.
12180 RANLIB=$lt_RANLIB
12181 old_archive_cmds=$lt_old_archive_cmds_CXX
12182 old_postinstall_cmds=$lt_old_postinstall_cmds
12183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12184
12185 # Create an old-style archive from a shared archive.
12186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12187
12188 # Create a temporary old-style archive to link instead of a shared archive.
12189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12190
12191 # Commands used to build and install a shared archive.
12192 archive_cmds=$lt_archive_cmds_CXX
12193 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12194 postinstall_cmds=$lt_postinstall_cmds
12195 postuninstall_cmds=$lt_postuninstall_cmds
12196
12197 # Commands used to build a loadable module (assumed same as above if empty)
12198 module_cmds=$lt_module_cmds_CXX
12199 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12200
12201 # Commands to strip libraries.
12202 old_striplib=$lt_old_striplib
12203 striplib=$lt_striplib
12204
12205 # Dependencies to place before the objects being linked to create a
12206 # shared library.
12207 predep_objects=$lt_predep_objects_CXX
12208
12209 # Dependencies to place after the objects being linked to create a
12210 # shared library.
12211 postdep_objects=$lt_postdep_objects_CXX
12212
12213 # Dependencies to place before the objects being linked to create a
12214 # shared library.
12215 predeps=$lt_predeps_CXX
12216
12217 # Dependencies to place after the objects being linked to create a
12218 # shared library.
12219 postdeps=$lt_postdeps_CXX
12220
12221 # The library search path used internally by the compiler when linking
12222 # a shared library.
12223 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12224
12225 # Method to check whether dependent libraries are shared objects.
12226 deplibs_check_method=$lt_deplibs_check_method
12227
12228 # Command to use when deplibs_check_method == file_magic.
12229 file_magic_cmd=$lt_file_magic_cmd
12230
12231 # Flag that allows shared libraries with undefined symbols to be built.
12232 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12233
12234 # Flag that forces no undefined symbols.
12235 no_undefined_flag=$lt_no_undefined_flag_CXX
12236
12237 # Commands used to finish a libtool library installation in a directory.
12238 finish_cmds=$lt_finish_cmds
12239
12240 # Same as above, but a single script fragment to be evaled but not shown.
12241 finish_eval=$lt_finish_eval
12242
12243 # Take the output of nm and produce a listing of raw symbols and C names.
12244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12245
12246 # Transform the output of nm in a proper C declaration
12247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12248
12249 # Transform the output of nm in a C name address pair
12250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12251
12252 # This is the shared library runtime path variable.
12253 runpath_var=$runpath_var
12254
12255 # This is the shared library path variable.
12256 shlibpath_var=$shlibpath_var
12257
12258 # Is shlibpath searched before the hard-coded library search path?
12259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12260
12261 # How to hardcode a shared library path into an executable.
12262 hardcode_action=$hardcode_action_CXX
12263
12264 # Whether we should hardcode library paths into libraries.
12265 hardcode_into_libs=$hardcode_into_libs
12266
12267 # Flag to hardcode \$libdir into a binary during linking.
12268 # This must work even if \$libdir does not exist.
12269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12270
12271 # If ld is used when linking, flag to hardcode \$libdir into
12272 # a binary during linking. This must work even if \$libdir does
12273 # not exist.
12274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12275
12276 # Whether we need a single -rpath flag with a separated argument.
12277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12278
12279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12280 # resulting binary.
12281 hardcode_direct=$hardcode_direct_CXX
12282
12283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12284 # resulting binary.
12285 hardcode_minus_L=$hardcode_minus_L_CXX
12286
12287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12288 # the resulting binary.
12289 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12290
12291 # Set to yes if building a shared library automatically hardcodes DIR into the library
12292 # and all subsequent libraries and executables linked against it.
12293 hardcode_automatic=$hardcode_automatic_CXX
12294
12295 # Variables whose values should be saved in libtool wrapper scripts and
12296 # restored at relink time.
12297 variables_saved_for_relink="$variables_saved_for_relink"
12298
12299 # Whether libtool must link a program against all its dependency libraries.
12300 link_all_deplibs=$link_all_deplibs_CXX
12301
12302 # Compile-time system search path for libraries
12303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12304
12305 # Run-time system search path for libraries
12306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12307
12308 # Fix the shell variable \$srcfile for the compiler.
12309 fix_srcfile_path="$fix_srcfile_path_CXX"
12310
12311 # Set to yes if exported symbols are required.
12312 always_export_symbols=$always_export_symbols_CXX
12313
12314 # The commands to list exported symbols.
12315 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12316
12317 # The commands to extract the exported symbol list from a shared archive.
12318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12319
12320 # Symbols that should not be listed in the preloaded symbols.
12321 exclude_expsyms=$lt_exclude_expsyms_CXX
12322
12323 # Symbols that must always be exported.
12324 include_expsyms=$lt_include_expsyms_CXX
12325
12326 # ### END LIBTOOL TAG CONFIG: $tagname
12327
12328 __EOF__
12329
12330
12331 else
12332   # If there is no Makefile yet, we rely on a make rule to execute
12333   # `config.status --recheck' to rerun these tests and create the
12334   # libtool script then.
12335   test -f Makefile && make "$ltmain"
12336 fi
12337
12338
12339 ac_ext=c
12340 ac_cpp='$CPP $CPPFLAGS'
12341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344
12345 CC=$lt_save_CC
12346 LDCXX=$LD
12347 LD=$lt_save_LD
12348 GCC=$lt_save_GCC
12349 with_gnu_ldcxx=$with_gnu_ld
12350 with_gnu_ld=$lt_save_with_gnu_ld
12351 lt_cv_path_LDCXX=$lt_cv_path_LD
12352 lt_cv_path_LD=$lt_save_path_LD
12353 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12354 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12355
12356         else
12357           tagname=""
12358         fi
12359         ;;
12360
12361       F77)
12362         if test -n "$F77" && test "X$F77" != "Xno"; then
12363
12364 ac_ext=f
12365 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12366 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12367 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12368
12369
12370 archive_cmds_need_lc_F77=no
12371 allow_undefined_flag_F77=
12372 always_export_symbols_F77=no
12373 archive_expsym_cmds_F77=
12374 export_dynamic_flag_spec_F77=
12375 hardcode_direct_F77=no
12376 hardcode_libdir_flag_spec_F77=
12377 hardcode_libdir_flag_spec_ld_F77=
12378 hardcode_libdir_separator_F77=
12379 hardcode_minus_L_F77=no
12380 hardcode_automatic_F77=no
12381 module_cmds_F77=
12382 module_expsym_cmds_F77=
12383 link_all_deplibs_F77=unknown
12384 old_archive_cmds_F77=$old_archive_cmds
12385 no_undefined_flag_F77=
12386 whole_archive_flag_spec_F77=
12387 enable_shared_with_static_runtimes_F77=no
12388
12389 # Source file extension for f77 test sources.
12390 ac_ext=f
12391
12392 # Object file extension for compiled f77 test sources.
12393 objext=o
12394 objext_F77=$objext
12395
12396 # Code to be used in simple compile tests
12397 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12398
12399 # Code to be used in simple link tests
12400 lt_simple_link_test_code="      program t\n      end\n"
12401
12402 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12403
12404 # If no C compiler was specified, use CC.
12405 LTCC=${LTCC-"$CC"}
12406
12407 # Allow CC to be a program name with arguments.
12408 compiler=$CC
12409
12410
12411 # Allow CC to be a program name with arguments.
12412 lt_save_CC="$CC"
12413 CC=${F77-"f77"}
12414 compiler=$CC
12415 compiler_F77=$CC
12416 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12417
12418 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12419 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12420 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12421 echo "${ECHO_T}$can_build_shared" >&6
12422
12423 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12424 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12425 test "$can_build_shared" = "no" && enable_shared=no
12426
12427 # On AIX, shared libraries and static libraries use the same namespace, and
12428 # are all built from PIC.
12429 case "$host_os" in
12430 aix3*)
12431   test "$enable_shared" = yes && enable_static=no
12432   if test -n "$RANLIB"; then
12433     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12434     postinstall_cmds='$RANLIB $lib'
12435   fi
12436   ;;
12437 aix4*)
12438   test "$enable_shared" = yes && enable_static=no
12439   ;;
12440 esac
12441 echo "$as_me:$LINENO: result: $enable_shared" >&5
12442 echo "${ECHO_T}$enable_shared" >&6
12443
12444 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12445 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12446 # Make sure either enable_shared or enable_static is yes.
12447 test "$enable_shared" = yes || enable_static=yes
12448 echo "$as_me:$LINENO: result: $enable_static" >&5
12449 echo "${ECHO_T}$enable_static" >&6
12450
12451 test "$ld_shlibs_F77" = no && can_build_shared=no
12452
12453 GCC_F77="$G77"
12454 LD_F77="$LD"
12455
12456 lt_prog_compiler_wl_F77=
12457 lt_prog_compiler_pic_F77=
12458 lt_prog_compiler_static_F77=
12459
12460 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12462
12463   if test "$GCC" = yes; then
12464     lt_prog_compiler_wl_F77='-Wl,'
12465     lt_prog_compiler_static_F77='-static'
12466
12467     case $host_os in
12468       aix*)
12469       # All AIX code is PIC.
12470       if test "$host_cpu" = ia64; then
12471         # AIX 5 now supports IA64 processor
12472         lt_prog_compiler_static_F77='-Bstatic'
12473       fi
12474       ;;
12475
12476     amigaos*)
12477       # FIXME: we need at least 68020 code to build shared libraries, but
12478       # adding the `-m68020' flag to GCC prevents building anything better,
12479       # like `-m68040'.
12480       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12481       ;;
12482
12483     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12484       # PIC is the default for these OSes.
12485       ;;
12486
12487     mingw* | pw32* | os2*)
12488       # This hack is so that the source file can tell whether it is being
12489       # built for inclusion in a dll (and should export symbols for example).
12490       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12491       ;;
12492
12493     darwin* | rhapsody*)
12494       # PIC is the default on this platform
12495       # Common symbols not allowed in MH_DYLIB files
12496       lt_prog_compiler_pic_F77='-fno-common'
12497       ;;
12498
12499     msdosdjgpp*)
12500       # Just because we use GCC doesn't mean we suddenly get shared libraries
12501       # on systems that don't support them.
12502       lt_prog_compiler_can_build_shared_F77=no
12503       enable_shared=no
12504       ;;
12505
12506     sysv4*MP*)
12507       if test -d /usr/nec; then
12508         lt_prog_compiler_pic_F77=-Kconform_pic
12509       fi
12510       ;;
12511
12512     hpux*)
12513       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12514       # not for PA HP-UX.
12515       case "$host_cpu" in
12516       hppa*64*|ia64*)
12517         # +Z the default
12518         ;;
12519       *)
12520         lt_prog_compiler_pic_F77='-fPIC'
12521         ;;
12522       esac
12523       ;;
12524
12525     *)
12526       lt_prog_compiler_pic_F77='-fPIC'
12527       ;;
12528     esac
12529   else
12530     # PORTME Check for flag to pass linker flags through the system compiler.
12531     case $host_os in
12532     aix*)
12533       lt_prog_compiler_wl_F77='-Wl,'
12534       if test "$host_cpu" = ia64; then
12535         # AIX 5 now supports IA64 processor
12536         lt_prog_compiler_static_F77='-Bstatic'
12537       else
12538         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12539       fi
12540       ;;
12541
12542     mingw* | pw32* | os2*)
12543       # This hack is so that the source file can tell whether it is being
12544       # built for inclusion in a dll (and should export symbols for example).
12545       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12546       ;;
12547
12548     hpux9* | hpux10* | hpux11*)
12549       lt_prog_compiler_wl_F77='-Wl,'
12550       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12551       # not for PA HP-UX.
12552       case "$host_cpu" in
12553       hppa*64*|ia64*)
12554         # +Z the default
12555         ;;
12556       *)
12557         lt_prog_compiler_pic_F77='+Z'
12558         ;;
12559       esac
12560       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12561       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12562       ;;
12563
12564     irix5* | irix6* | nonstopux*)
12565       lt_prog_compiler_wl_F77='-Wl,'
12566       # PIC (with -KPIC) is the default.
12567       lt_prog_compiler_static_F77='-non_shared'
12568       ;;
12569
12570     newsos6)
12571       lt_prog_compiler_pic_F77='-KPIC'
12572       lt_prog_compiler_static_F77='-Bstatic'
12573       ;;
12574
12575     linux*)
12576       case $CC in
12577       icc|ecc)
12578         lt_prog_compiler_wl_F77='-Wl,'
12579         lt_prog_compiler_pic_F77='-KPIC'
12580         lt_prog_compiler_static_F77='-static'
12581         ;;
12582       ccc)
12583         lt_prog_compiler_wl_F77='-Wl,'
12584         # All Alpha code is PIC.
12585         lt_prog_compiler_static_F77='-non_shared'
12586         ;;
12587       esac
12588       ;;
12589
12590     osf3* | osf4* | osf5*)
12591       lt_prog_compiler_wl_F77='-Wl,'
12592       # All OSF/1 code is PIC.
12593       lt_prog_compiler_static_F77='-non_shared'
12594       ;;
12595
12596     sco3.2v5*)
12597       lt_prog_compiler_pic_F77='-Kpic'
12598       lt_prog_compiler_static_F77='-dn'
12599       ;;
12600
12601     solaris*)
12602       lt_prog_compiler_wl_F77='-Wl,'
12603       lt_prog_compiler_pic_F77='-KPIC'
12604       lt_prog_compiler_static_F77='-Bstatic'
12605       ;;
12606
12607     sunos4*)
12608       lt_prog_compiler_wl_F77='-Qoption ld '
12609       lt_prog_compiler_pic_F77='-PIC'
12610       lt_prog_compiler_static_F77='-Bstatic'
12611       ;;
12612
12613     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12614       lt_prog_compiler_wl_F77='-Wl,'
12615       lt_prog_compiler_pic_F77='-KPIC'
12616       lt_prog_compiler_static_F77='-Bstatic'
12617       ;;
12618
12619     sysv4*MP*)
12620       if test -d /usr/nec ;then
12621         lt_prog_compiler_pic_F77='-Kconform_pic'
12622         lt_prog_compiler_static_F77='-Bstatic'
12623       fi
12624       ;;
12625
12626     uts4*)
12627       lt_prog_compiler_pic_F77='-pic'
12628       lt_prog_compiler_static_F77='-Bstatic'
12629       ;;
12630
12631     *)
12632       lt_prog_compiler_can_build_shared_F77=no
12633       ;;
12634     esac
12635   fi
12636
12637 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12638 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12639
12640 #
12641 # Check to make sure the PIC flag actually works.
12642 #
12643 if test -n "$lt_prog_compiler_pic_F77"; then
12644   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12646 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   lt_prog_compiler_pic_works_F77=no
12650   ac_outfile=conftest.$ac_objext
12651    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12652    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12653    # Insert the option either (1) after the last *FLAGS variable, or
12654    # (2) before a word containing "conftest.", or (3) at the end.
12655    # Note that $ac_compile itself does not contain backslashes and begins
12656    # with a dollar sign (not a hyphen), so the echo should work correctly.
12657    # The option is referenced via a variable to avoid confusing sed.
12658    lt_compile=`echo "$ac_compile" | $SED \
12659    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12661    -e 's:$: $lt_compiler_flag:'`
12662    (eval echo "\"\$as_me:12662: $lt_compile\"" >&5)
12663    (eval "$lt_compile" 2>conftest.err)
12664    ac_status=$?
12665    cat conftest.err >&5
12666    echo "$as_me:12666: \$? = $ac_status" >&5
12667    if (exit $ac_status) && test -s "$ac_outfile"; then
12668      # The compiler can only warn and ignore the option if not recognized
12669      # So say no if there are warnings
12670      if test ! -s conftest.err; then
12671        lt_prog_compiler_pic_works_F77=yes
12672      fi
12673    fi
12674    $rm conftest*
12675
12676 fi
12677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12679
12680 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12681     case $lt_prog_compiler_pic_F77 in
12682      "" | " "*) ;;
12683      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12684      esac
12685 else
12686     lt_prog_compiler_pic_F77=
12687      lt_prog_compiler_can_build_shared_F77=no
12688 fi
12689
12690 fi
12691 case "$host_os" in
12692   # For platforms which do not support PIC, -DPIC is meaningless:
12693   *djgpp*)
12694     lt_prog_compiler_pic_F77=
12695     ;;
12696   *)
12697     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12698     ;;
12699 esac
12700
12701 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12703 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   lt_cv_prog_compiler_c_o_F77=no
12707    $rm -r conftest 2>/dev/null
12708    mkdir conftest
12709    cd conftest
12710    mkdir out
12711    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12712
12713    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12714    # that will create temporary files in the current directory regardless of
12715    # the output directory.  Thus, making CWD read-only will cause this test
12716    # to fail, enabling locking or at least warning the user not to do parallel
12717    # builds.
12718    chmod -w .
12719
12720    lt_compiler_flag="-o out/conftest2.$ac_objext"
12721    # Insert the option either (1) after the last *FLAGS variable, or
12722    # (2) before a word containing "conftest.", or (3) at the end.
12723    # Note that $ac_compile itself does not contain backslashes and begins
12724    # with a dollar sign (not a hyphen), so the echo should work correctly.
12725    lt_compile=`echo "$ac_compile" | $SED \
12726    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728    -e 's:$: $lt_compiler_flag:'`
12729    (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730    (eval "$lt_compile" 2>out/conftest.err)
12731    ac_status=$?
12732    cat out/conftest.err >&5
12733    echo "$as_me:12733: \$? = $ac_status" >&5
12734    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12735    then
12736      # The compiler can only warn and ignore the option if not recognized
12737      # So say no if there are warnings
12738      if test ! -s out/conftest.err; then
12739        lt_cv_prog_compiler_c_o_F77=yes
12740      fi
12741    fi
12742    chmod u+w .
12743    $rm conftest* out/*
12744    rmdir out
12745    cd ..
12746    rmdir conftest
12747    $rm conftest*
12748
12749 fi
12750 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12752
12753
12754 hard_links="nottested"
12755 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12756   # do not overwrite the value of need_locks provided by the user
12757   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12758 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12759   hard_links=yes
12760   $rm conftest*
12761   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12762   touch conftest.a
12763   ln conftest.a conftest.b 2>&5 || hard_links=no
12764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12765   echo "$as_me:$LINENO: result: $hard_links" >&5
12766 echo "${ECHO_T}$hard_links" >&6
12767   if test "$hard_links" = no; then
12768     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12769 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12770     need_locks=warn
12771   fi
12772 else
12773   need_locks=no
12774 fi
12775
12776 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12777 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12778
12779   runpath_var=
12780   allow_undefined_flag_F77=
12781   enable_shared_with_static_runtimes_F77=no
12782   archive_cmds_F77=
12783   archive_expsym_cmds_F77=
12784   old_archive_From_new_cmds_F77=
12785   old_archive_from_expsyms_cmds_F77=
12786   export_dynamic_flag_spec_F77=
12787   whole_archive_flag_spec_F77=
12788   thread_safe_flag_spec_F77=
12789   hardcode_libdir_flag_spec_F77=
12790   hardcode_libdir_flag_spec_ld_F77=
12791   hardcode_libdir_separator_F77=
12792   hardcode_direct_F77=no
12793   hardcode_minus_L_F77=no
12794   hardcode_shlibpath_var_F77=unsupported
12795   link_all_deplibs_F77=unknown
12796   hardcode_automatic_F77=no
12797   module_cmds_F77=
12798   module_expsym_cmds_F77=
12799   always_export_symbols_F77=no
12800   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12801   # include_expsyms should be a list of space-separated symbols to be *always*
12802   # included in the symbol list
12803   include_expsyms_F77=
12804   # exclude_expsyms can be an extended regexp of symbols to exclude
12805   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12806   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12807   # as well as any symbol that contains `d'.
12808   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12809   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12810   # platforms (ab)use it in PIC code, but their linkers get confused if
12811   # the symbol is explicitly referenced.  Since portable code cannot
12812   # rely on this symbol name, it's probably fine to never include it in
12813   # preloaded symbol tables.
12814   extract_expsyms_cmds=
12815
12816   case $host_os in
12817   cygwin* | mingw* | pw32*)
12818     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12819     # When not using gcc, we currently assume that we are using
12820     # Microsoft Visual C++.
12821     if test "$GCC" != yes; then
12822       with_gnu_ld=no
12823     fi
12824     ;;
12825   openbsd*)
12826     with_gnu_ld=no
12827     ;;
12828   esac
12829
12830   ld_shlibs_F77=yes
12831   if test "$with_gnu_ld" = yes; then
12832     # If archive_cmds runs LD, not CC, wlarc should be empty
12833     wlarc='${wl}'
12834
12835     # See if GNU ld supports shared libraries.
12836     case $host_os in
12837     aix3* | aix4* | aix5*)
12838       # On AIX/PPC, the GNU linker is very broken
12839       if test "$host_cpu" != ia64; then
12840         ld_shlibs_F77=no
12841         cat <<EOF 1>&2
12842
12843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12844 *** to be unable to reliably create shared libraries on AIX.
12845 *** Therefore, libtool is disabling shared libraries support.  If you
12846 *** really care for shared libraries, you may want to modify your PATH
12847 *** so that a non-GNU linker is found, and then restart.
12848
12849 EOF
12850       fi
12851       ;;
12852
12853     amigaos*)
12854       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)'
12855       hardcode_libdir_flag_spec_F77='-L$libdir'
12856       hardcode_minus_L_F77=yes
12857
12858       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12859       # that the semantics of dynamic libraries on AmigaOS, at least up
12860       # to version 4, is to share data among multiple programs linked
12861       # with the same dynamic library.  Since this doesn't match the
12862       # behavior of shared libraries on other platforms, we can't use
12863       # them.
12864       ld_shlibs_F77=no
12865       ;;
12866
12867     beos*)
12868       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12869         allow_undefined_flag_F77=unsupported
12870         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12871         # support --undefined.  This deserves some investigation.  FIXME
12872         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873       else
12874         ld_shlibs_F77=no
12875       fi
12876       ;;
12877
12878     cygwin* | mingw* | pw32*)
12879       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12880       # as there is no search path for DLLs.
12881       hardcode_libdir_flag_spec_F77='-L$libdir'
12882       allow_undefined_flag_F77=unsupported
12883       always_export_symbols_F77=no
12884       enable_shared_with_static_runtimes_F77=yes
12885       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12886
12887       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12888         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12889         # If the export-symbols file already is a .def file (1st line
12890         # is EXPORTS), use it as is; otherwise, prepend...
12891         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12892           cp $export_symbols $output_objdir/$soname.def;
12893         else
12894           echo EXPORTS > $output_objdir/$soname.def;
12895           cat $export_symbols >> $output_objdir/$soname.def;
12896         fi~
12897         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12898       else
12899         ld_shlibs=no
12900       fi
12901       ;;
12902
12903     netbsd*)
12904       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12905         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12906         wlarc=
12907       else
12908         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12909         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12910       fi
12911       ;;
12912
12913     solaris* | sysv5*)
12914       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12915         ld_shlibs_F77=no
12916         cat <<EOF 1>&2
12917
12918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12919 *** create shared libraries on Solaris systems.  Therefore, libtool
12920 *** is disabling shared libraries support.  We urge you to upgrade GNU
12921 *** binutils to release 2.9.1 or newer.  Another option is to modify
12922 *** your PATH or compiler configuration so that the native linker is
12923 *** used, and then restart.
12924
12925 EOF
12926       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12927         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12929       else
12930         ld_shlibs_F77=no
12931       fi
12932       ;;
12933
12934     sunos4*)
12935       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12936       wlarc=
12937       hardcode_direct_F77=yes
12938       hardcode_shlibpath_var_F77=no
12939       ;;
12940
12941     *)
12942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12943         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12945       else
12946         ld_shlibs_F77=no
12947       fi
12948       ;;
12949     esac
12950
12951     if test "$ld_shlibs_F77" = yes; then
12952       runpath_var=LD_RUN_PATH
12953       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12954       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12955       # ancient GNU ld didn't support --whole-archive et. al.
12956       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12957         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12958       else
12959         whole_archive_flag_spec_F77=
12960       fi
12961     fi
12962   else
12963     # PORTME fill in a description of your system's linker (not GNU ld)
12964     case $host_os in
12965     aix3*)
12966       allow_undefined_flag_F77=unsupported
12967       always_export_symbols_F77=yes
12968       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'
12969       # Note: this linker hardcodes the directories in LIBPATH if there
12970       # are no directories specified by -L.
12971       hardcode_minus_L_F77=yes
12972       if test "$GCC" = yes && test -z "$link_static_flag"; then
12973         # Neither direct hardcoding nor static linking is supported with a
12974         # broken collect2.
12975         hardcode_direct_F77=unsupported
12976       fi
12977       ;;
12978
12979     aix4* | aix5*)
12980       if test "$host_cpu" = ia64; then
12981         # On IA64, the linker does run time linking by default, so we don't
12982         # have to do anything special.
12983         aix_use_runtimelinking=no
12984         exp_sym_flag='-Bexport'
12985         no_entry_flag=""
12986       else
12987         # If we're using GNU nm, then we don't want the "-C" option.
12988         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12989         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12990           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'
12991         else
12992           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'
12993         fi
12994         aix_use_runtimelinking=no
12995
12996         # Test if we are trying to use run time linking or normal
12997         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998         # need to do runtime linking.
12999         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13000           for ld_flag in $LDFLAGS; do
13001           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13002             aix_use_runtimelinking=yes
13003             break
13004           fi
13005           done
13006         esac
13007
13008         exp_sym_flag='-bexport'
13009         no_entry_flag='-bnoentry'
13010       fi
13011
13012       # When large executables or shared objects are built, AIX ld can
13013       # have problems creating the table of contents.  If linking a library
13014       # or program results in "error TOC overflow" add -mminimal-toc to
13015       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13016       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13017
13018       archive_cmds_F77=''
13019       hardcode_direct_F77=yes
13020       hardcode_libdir_separator_F77=':'
13021       link_all_deplibs_F77=yes
13022
13023       if test "$GCC" = yes; then
13024         case $host_os in aix4.012|aix4.012.*)
13025         # We only want to do this on AIX 4.2 and lower, the check
13026         # below for broken collect2 doesn't work under 4.3+
13027           collect2name=`${CC} -print-prog-name=collect2`
13028           if test -f "$collect2name" && \
13029            strings "$collect2name" | grep resolve_lib_name >/dev/null
13030           then
13031           # We have reworked collect2
13032           hardcode_direct_F77=yes
13033           else
13034           # We have old collect2
13035           hardcode_direct_F77=unsupported
13036           # It fails to find uninstalled libraries when the uninstalled
13037           # path is not listed in the libpath.  Setting hardcode_minus_L
13038           # to unsupported forces relinking
13039           hardcode_minus_L_F77=yes
13040           hardcode_libdir_flag_spec_F77='-L$libdir'
13041           hardcode_libdir_separator_F77=
13042           fi
13043         esac
13044         shared_flag='-shared'
13045       else
13046         # not using gcc
13047         if test "$host_cpu" = ia64; then
13048         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13049         # chokes on -Wl,-G. The following line is correct:
13050           shared_flag='-G'
13051         else
13052         if test "$aix_use_runtimelinking" = yes; then
13053             shared_flag='${wl}-G'
13054           else
13055             shared_flag='${wl}-bM:SRE'
13056         fi
13057         fi
13058       fi
13059
13060       # It seems that -bexpall does not export symbols beginning with
13061       # underscore (_), so it is better to generate a list of symbols to export.
13062       always_export_symbols_F77=yes
13063       if test "$aix_use_runtimelinking" = yes; then
13064         # Warning - without using the other runtime loading flags (-brtl),
13065         # -berok will link without error, but may produce a broken library.
13066         allow_undefined_flag_F77='-berok'
13067        # Determine the default libpath from the value encoded in an empty executable.
13068        cat >conftest.$ac_ext <<_ACEOF
13069       program main
13070
13071       end
13072 _ACEOF
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075   (eval $ac_link) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -s conftest$ac_exeext'
13080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081   (eval $ac_try) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); }; }; then
13085
13086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13087 }'`
13088 # Check for a 64-bit object if we didn't find anything.
13089 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; }
13090 }'`; fi
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095 fi
13096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13098
13099        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13100         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"
13101        else
13102         if test "$host_cpu" = ia64; then
13103           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13104           allow_undefined_flag_F77="-z nodefs"
13105           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"
13106         else
13107          # Determine the default libpath from the value encoded in an empty executable.
13108          cat >conftest.$ac_ext <<_ACEOF
13109       program main
13110
13111       end
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115   (eval $ac_link) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } &&
13119          { ac_try='test -s conftest$ac_exeext'
13120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121   (eval $ac_try) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; }; then
13125
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13127 }'`
13128 # Check for a 64-bit object if we didn't find anything.
13129 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; }
13130 }'`; fi
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 fi
13136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13138
13139          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13140           # Warning - without using the other run time loading flags,
13141           # -berok will link without error, but may produce a broken library.
13142           no_undefined_flag_F77=' ${wl}-bernotok'
13143           allow_undefined_flag_F77=' ${wl}-berok'
13144           # -bexpall does not export symbols beginning with underscore (_)
13145           always_export_symbols_F77=yes
13146           # Exported symbols can be pulled into shared objects from archives
13147           whole_archive_flag_spec_F77=' '
13148           archive_cmds_need_lc_F77=yes
13149           # This is similar to how AIX traditionally builds it's shared libraries.
13150           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'
13151         fi
13152       fi
13153       ;;
13154
13155     amigaos*)
13156       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)'
13157       hardcode_libdir_flag_spec_F77='-L$libdir'
13158       hardcode_minus_L_F77=yes
13159       # see comment about different semantics on the GNU ld section
13160       ld_shlibs_F77=no
13161       ;;
13162
13163     bsdi4*)
13164       export_dynamic_flag_spec_F77=-rdynamic
13165       ;;
13166
13167     cygwin* | mingw* | pw32*)
13168       # When not using gcc, we currently assume that we are using
13169       # Microsoft Visual C++.
13170       # hardcode_libdir_flag_spec is actually meaningless, as there is
13171       # no search path for DLLs.
13172       hardcode_libdir_flag_spec_F77=' '
13173       allow_undefined_flag_F77=unsupported
13174       # Tell ltmain to make .lib files, not .a files.
13175       libext=lib
13176       # Tell ltmain to make .dll files, not .so files.
13177       shrext=".dll"
13178       # FIXME: Setting linknames here is a bad hack.
13179       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13180       # The linker will automatically build a .lib file if we build a DLL.
13181       old_archive_From_new_cmds_F77='true'
13182       # FIXME: Should let the user specify the lib program.
13183       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13184       fix_srcfile_path='`cygpath -w "$srcfile"`'
13185       enable_shared_with_static_runtimes_F77=yes
13186       ;;
13187
13188     darwin* | rhapsody*)
13189     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13190       archive_cmds_need_lc_F77=no
13191       case "$host_os" in
13192       rhapsody* | darwin1.[012])
13193         allow_undefined_flag_F77='-undefined suppress'
13194         ;;
13195       *) # Darwin 1.3 on
13196         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13197         ;;
13198       esac
13199       # FIXME: Relying on posixy $() will cause problems for
13200       #        cross-compilation, but unfortunately the echo tests do not
13201       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13202       #        `"' quotes if we put them in here... so don't!
13203         lt_int_apple_cc_single_mod=no
13204         output_verbose_link_cmd='echo'
13205         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13206           lt_int_apple_cc_single_mod=yes
13207         fi
13208         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13209           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13210         else
13211         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13212       fi
13213       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13214       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13215         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13216           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13217         else
13218           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13219         fi
13220           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13221       hardcode_direct_F77=no
13222       hardcode_automatic_F77=yes
13223       hardcode_shlibpath_var_F77=unsupported
13224       whole_archive_flag_spec_F77='-all_load $convenience'
13225       link_all_deplibs_F77=yes
13226     fi
13227       ;;
13228
13229     dgux*)
13230       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231       hardcode_libdir_flag_spec_F77='-L$libdir'
13232       hardcode_shlibpath_var_F77=no
13233       ;;
13234
13235     freebsd1*)
13236       ld_shlibs_F77=no
13237       ;;
13238
13239     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13240     # support.  Future versions do this automatically, but an explicit c++rt0.o
13241     # does not break anything, and helps significantly (at the cost of a little
13242     # extra space).
13243     freebsd2.2*)
13244       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13245       hardcode_libdir_flag_spec_F77='-R$libdir'
13246       hardcode_direct_F77=yes
13247       hardcode_shlibpath_var_F77=no
13248       ;;
13249
13250     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13251     freebsd2*)
13252       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13253       hardcode_direct_F77=yes
13254       hardcode_minus_L_F77=yes
13255       hardcode_shlibpath_var_F77=no
13256       ;;
13257
13258     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13259     freebsd*)
13260       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13261       hardcode_libdir_flag_spec_F77='-R$libdir'
13262       hardcode_direct_F77=yes
13263       hardcode_shlibpath_var_F77=no
13264       ;;
13265
13266     hpux9*)
13267       if test "$GCC" = yes; then
13268         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'
13269       else
13270         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'
13271       fi
13272       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13273       hardcode_libdir_separator_F77=:
13274       hardcode_direct_F77=yes
13275
13276       # hardcode_minus_L: Not really in the search PATH,
13277       # but as the default location of the library.
13278       hardcode_minus_L_F77=yes
13279       export_dynamic_flag_spec_F77='${wl}-E'
13280       ;;
13281
13282     hpux10* | hpux11*)
13283       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13284         case "$host_cpu" in
13285         hppa*64*|ia64*)
13286           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13287           ;;
13288         *)
13289           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13290           ;;
13291         esac
13292       else
13293         case "$host_cpu" in
13294         hppa*64*|ia64*)
13295           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13296           ;;
13297         *)
13298           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13299           ;;
13300         esac
13301       fi
13302       if test "$with_gnu_ld" = no; then
13303         case "$host_cpu" in
13304         hppa*64*)
13305           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13306           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13307           hardcode_libdir_separator_F77=:
13308           hardcode_direct_F77=no
13309           hardcode_shlibpath_var_F77=no
13310           ;;
13311         ia64*)
13312           hardcode_libdir_flag_spec_F77='-L$libdir'
13313           hardcode_direct_F77=no
13314           hardcode_shlibpath_var_F77=no
13315
13316           # hardcode_minus_L: Not really in the search PATH,
13317           # but as the default location of the library.
13318           hardcode_minus_L_F77=yes
13319           ;;
13320         *)
13321           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13322           hardcode_libdir_separator_F77=:
13323           hardcode_direct_F77=yes
13324           export_dynamic_flag_spec_F77='${wl}-E'
13325
13326           # hardcode_minus_L: Not really in the search PATH,
13327           # but as the default location of the library.
13328           hardcode_minus_L_F77=yes
13329           ;;
13330         esac
13331       fi
13332       ;;
13333
13334     irix5* | irix6* | nonstopux*)
13335       if test "$GCC" = yes; then
13336         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'
13337       else
13338         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'
13339         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13340       fi
13341       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13342       hardcode_libdir_separator_F77=:
13343       link_all_deplibs_F77=yes
13344       ;;
13345
13346     netbsd*)
13347       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13348         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13349       else
13350         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13351       fi
13352       hardcode_libdir_flag_spec_F77='-R$libdir'
13353       hardcode_direct_F77=yes
13354       hardcode_shlibpath_var_F77=no
13355       ;;
13356
13357     newsos6)
13358       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13359       hardcode_direct_F77=yes
13360       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13361       hardcode_libdir_separator_F77=:
13362       hardcode_shlibpath_var_F77=no
13363       ;;
13364
13365     openbsd*)
13366       hardcode_direct_F77=yes
13367       hardcode_shlibpath_var_F77=no
13368       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13369         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13370         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13371         export_dynamic_flag_spec_F77='${wl}-E'
13372       else
13373        case $host_os in
13374          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13375            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13376            hardcode_libdir_flag_spec_F77='-R$libdir'
13377            ;;
13378          *)
13379            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13380            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13381            ;;
13382        esac
13383       fi
13384       ;;
13385
13386     os2*)
13387       hardcode_libdir_flag_spec_F77='-L$libdir'
13388       hardcode_minus_L_F77=yes
13389       allow_undefined_flag_F77=unsupported
13390       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'
13391       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13392       ;;
13393
13394     osf3*)
13395       if test "$GCC" = yes; then
13396         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13397         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'
13398       else
13399         allow_undefined_flag_F77=' -expect_unresolved \*'
13400         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'
13401       fi
13402       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13403       hardcode_libdir_separator_F77=:
13404       ;;
13405
13406     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13407       if test "$GCC" = yes; then
13408         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13409         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'
13410         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13411       else
13412         allow_undefined_flag_F77=' -expect_unresolved \*'
13413         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'
13414         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~
13415         $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'
13416
13417         # Both c and cxx compiler support -rpath directly
13418         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13419       fi
13420       hardcode_libdir_separator_F77=:
13421       ;;
13422
13423     sco3.2v5*)
13424       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13425       hardcode_shlibpath_var_F77=no
13426       export_dynamic_flag_spec_F77='${wl}-Bexport'
13427       runpath_var=LD_RUN_PATH
13428       hardcode_runpath_var=yes
13429       ;;
13430
13431     solaris*)
13432       no_undefined_flag_F77=' -z text'
13433       if test "$GCC" = yes; then
13434         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13435         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13436           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13437       else
13438         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13440         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13441       fi
13442       hardcode_libdir_flag_spec_F77='-R$libdir'
13443       hardcode_shlibpath_var_F77=no
13444       case $host_os in
13445       solaris2.[0-5] | solaris2.[0-5].*) ;;
13446       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13447         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13448       esac
13449       link_all_deplibs_F77=yes
13450       ;;
13451
13452     sunos4*)
13453       if test "x$host_vendor" = xsequent; then
13454         # Use $CC to link under sequent, because it throws in some extra .o
13455         # files that make .init and .fini sections work.
13456         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13457       else
13458         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13459       fi
13460       hardcode_libdir_flag_spec_F77='-L$libdir'
13461       hardcode_direct_F77=yes
13462       hardcode_minus_L_F77=yes
13463       hardcode_shlibpath_var_F77=no
13464       ;;
13465
13466     sysv4)
13467       case $host_vendor in
13468         sni)
13469           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470           hardcode_direct_F77=yes # is this really true???
13471         ;;
13472         siemens)
13473           ## LD is ld it makes a PLAMLIB
13474           ## CC just makes a GrossModule.
13475           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13476           reload_cmds_F77='$CC -r -o $output$reload_objs'
13477           hardcode_direct_F77=no
13478         ;;
13479         motorola)
13480           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13482         ;;
13483       esac
13484       runpath_var='LD_RUN_PATH'
13485       hardcode_shlibpath_var_F77=no
13486       ;;
13487
13488     sysv4.3*)
13489       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13490       hardcode_shlibpath_var_F77=no
13491       export_dynamic_flag_spec_F77='-Bexport'
13492       ;;
13493
13494     sysv4*MP*)
13495       if test -d /usr/nec; then
13496         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497         hardcode_shlibpath_var_F77=no
13498         runpath_var=LD_RUN_PATH
13499         hardcode_runpath_var=yes
13500         ld_shlibs_F77=yes
13501       fi
13502       ;;
13503
13504     sysv4.2uw2*)
13505       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13506       hardcode_direct_F77=yes
13507       hardcode_minus_L_F77=no
13508       hardcode_shlibpath_var_F77=no
13509       hardcode_runpath_var=yes
13510       runpath_var=LD_RUN_PATH
13511       ;;
13512
13513    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13514       no_undefined_flag_F77='${wl}-z ${wl}text'
13515       if test "$GCC" = yes; then
13516         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517       else
13518         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13519       fi
13520       runpath_var='LD_RUN_PATH'
13521       hardcode_shlibpath_var_F77=no
13522       ;;
13523
13524     sysv5*)
13525       no_undefined_flag_F77=' -z text'
13526       # $CC -shared without GNU ld will not create a library from C++
13527       # object files and a static libstdc++, better avoid it by now
13528       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13530                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13531       hardcode_libdir_flag_spec_F77=
13532       hardcode_shlibpath_var_F77=no
13533       runpath_var='LD_RUN_PATH'
13534       ;;
13535
13536     uts4*)
13537       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538       hardcode_libdir_flag_spec_F77='-L$libdir'
13539       hardcode_shlibpath_var_F77=no
13540       ;;
13541
13542     *)
13543       ld_shlibs_F77=no
13544       ;;
13545     esac
13546   fi
13547
13548 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13549 echo "${ECHO_T}$ld_shlibs_F77" >&6
13550 test "$ld_shlibs_F77" = no && can_build_shared=no
13551
13552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13553 if test "$GCC" = yes; then
13554   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13555 fi
13556
13557 #
13558 # Do we need to explicitly link libc?
13559 #
13560 case "x$archive_cmds_need_lc_F77" in
13561 x|xyes)
13562   # Assume -lc should be added
13563   archive_cmds_need_lc_F77=yes
13564
13565   if test "$enable_shared" = yes && test "$GCC" = yes; then
13566     case $archive_cmds_F77 in
13567     *'~'*)
13568       # FIXME: we may have to deal with multi-command sequences.
13569       ;;
13570     '$CC '*)
13571       # Test whether the compiler implicitly links with -lc since on some
13572       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13573       # to ld, don't add -lc before -lgcc.
13574       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13576       $rm conftest*
13577       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13578
13579       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580   (eval $ac_compile) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); } 2>conftest.err; then
13584         soname=conftest
13585         lib=conftest
13586         libobjs=conftest.$ac_objext
13587         deplibs=
13588         wl=$lt_prog_compiler_wl_F77
13589         compiler_flags=-v
13590         linker_flags=-v
13591         verstring=
13592         output_objdir=.
13593         libname=conftest
13594         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13595         allow_undefined_flag_F77=
13596         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13597   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }
13601         then
13602           archive_cmds_need_lc_F77=no
13603         else
13604           archive_cmds_need_lc_F77=yes
13605         fi
13606         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13607       else
13608         cat conftest.err 1>&5
13609       fi
13610       $rm conftest*
13611       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13612 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13613       ;;
13614     esac
13615   fi
13616   ;;
13617 esac
13618
13619 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13620 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13621 hardcode_action_F77=
13622 if test -n "$hardcode_libdir_flag_spec_F77" || \
13623    test -n "$runpath_var F77" || \
13624    test "X$hardcode_automatic_F77"="Xyes" ; then
13625
13626   # We can hardcode non-existant directories.
13627   if test "$hardcode_direct_F77" != no &&
13628      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13629      # have to relink, otherwise we might link with an installed library
13630      # when we should be linking with a yet-to-be-installed one
13631      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13632      test "$hardcode_minus_L_F77" != no; then
13633     # Linking always hardcodes the temporary library directory.
13634     hardcode_action_F77=relink
13635   else
13636     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13637     hardcode_action_F77=immediate
13638   fi
13639 else
13640   # We cannot hardcode anything, or else we can only hardcode existing
13641   # directories.
13642   hardcode_action_F77=unsupported
13643 fi
13644 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13645 echo "${ECHO_T}$hardcode_action_F77" >&6
13646
13647 if test "$hardcode_action_F77" = relink; then
13648   # Fast installation is not supported
13649   enable_fast_install=no
13650 elif test "$shlibpath_overrides_runpath" = yes ||
13651      test "$enable_shared" = no; then
13652   # Fast installation is not necessary
13653   enable_fast_install=needless
13654 fi
13655
13656 striplib=
13657 old_striplib=
13658 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13659 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13660 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13661   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13662   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13663   echo "$as_me:$LINENO: result: yes" >&5
13664 echo "${ECHO_T}yes" >&6
13665 else
13666 # FIXME - insert some real tests, host_os isn't really good enough
13667   case $host_os in
13668    darwin*)
13669        if test -n "$STRIP" ; then
13670          striplib="$STRIP -x"
13671          echo "$as_me:$LINENO: result: yes" >&5
13672 echo "${ECHO_T}yes" >&6
13673        else
13674   echo "$as_me:$LINENO: result: no" >&5
13675 echo "${ECHO_T}no" >&6
13676 fi
13677        ;;
13678    *)
13679   echo "$as_me:$LINENO: result: no" >&5
13680 echo "${ECHO_T}no" >&6
13681     ;;
13682   esac
13683 fi
13684
13685 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13687 library_names_spec=
13688 libname_spec='lib$name'
13689 soname_spec=
13690 shrext=".so"
13691 postinstall_cmds=
13692 postuninstall_cmds=
13693 finish_cmds=
13694 finish_eval=
13695 shlibpath_var=
13696 shlibpath_overrides_runpath=unknown
13697 version_type=none
13698 dynamic_linker="$host_os ld.so"
13699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13700 if test "$GCC" = yes; then
13701   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13702   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13703     # if the path contains ";" then we assume it to be the separator
13704     # otherwise default to the standard path separator (i.e. ":") - it is
13705     # assumed that no part of a normal pathname contains ";" but that should
13706     # okay in the real world where ";" in dirpaths is itself problematic.
13707     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13708   else
13709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13710   fi
13711 else
13712   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13713 fi
13714 need_lib_prefix=unknown
13715 hardcode_into_libs=no
13716
13717 # when you set need_version to no, make sure it does not cause -set_version
13718 # flags to be left without arguments
13719 need_version=unknown
13720
13721 case $host_os in
13722 aix3*)
13723   version_type=linux
13724   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13725   shlibpath_var=LIBPATH
13726
13727   # AIX 3 has no versioning support, so we append a major version to the name.
13728   soname_spec='${libname}${release}${shared_ext}$major'
13729   ;;
13730
13731 aix4* | aix5*)
13732   version_type=linux
13733   need_lib_prefix=no
13734   need_version=no
13735   hardcode_into_libs=yes
13736   if test "$host_cpu" = ia64; then
13737     # AIX 5 supports IA64
13738     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13739     shlibpath_var=LD_LIBRARY_PATH
13740   else
13741     # With GCC up to 2.95.x, collect2 would create an import file
13742     # for dependence libraries.  The import file would start with
13743     # the line `#! .'.  This would cause the generated library to
13744     # depend on `.', always an invalid library.  This was fixed in
13745     # development snapshots of GCC prior to 3.0.
13746     case $host_os in
13747       aix4 | aix4.[01] | aix4.[01].*)
13748       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13749            echo ' yes '
13750            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13751         :
13752       else
13753         can_build_shared=no
13754       fi
13755       ;;
13756     esac
13757     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13758     # soname into executable. Probably we can add versioning support to
13759     # collect2, so additional links can be useful in future.
13760     if test "$aix_use_runtimelinking" = yes; then
13761       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13762       # instead of lib<name>.a to let people know that these are not
13763       # typical AIX shared libraries.
13764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765     else
13766       # We preserve .a as extension for shared libraries through AIX4.2
13767       # and later when we are not doing run time linking.
13768       library_names_spec='${libname}${release}.a $libname.a'
13769       soname_spec='${libname}${release}${shared_ext}$major'
13770     fi
13771     shlibpath_var=LIBPATH
13772   fi
13773   ;;
13774
13775 amigaos*)
13776   library_names_spec='$libname.ixlibrary $libname.a'
13777   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13778   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'
13779   ;;
13780
13781 beos*)
13782   library_names_spec='${libname}${shared_ext}'
13783   dynamic_linker="$host_os ld.so"
13784   shlibpath_var=LIBRARY_PATH
13785   ;;
13786
13787 bsdi4*)
13788   version_type=linux
13789   need_version=no
13790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13791   soname_spec='${libname}${release}${shared_ext}$major'
13792   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13793   shlibpath_var=LD_LIBRARY_PATH
13794   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13795   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13796   # the default ld.so.conf also contains /usr/contrib/lib and
13797   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13798   # libtool to hard-code these into programs
13799   ;;
13800
13801 cygwin* | mingw* | pw32*)
13802   version_type=windows
13803   shrext=".dll"
13804   need_version=no
13805   need_lib_prefix=no
13806
13807   case $GCC,$host_os in
13808   yes,cygwin* | yes,mingw* | yes,pw32*)
13809     library_names_spec='$libname.dll.a'
13810     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13811     postinstall_cmds='base_file=`basename \${file}`~
13812       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13813       dldir=$destdir/`dirname \$dlpath`~
13814       test -d \$dldir || mkdir -p \$dldir~
13815       $install_prog $dir/$dlname \$dldir/$dlname'
13816     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13817       dlpath=$dir/\$dldll~
13818        $rm \$dlpath'
13819     shlibpath_overrides_runpath=yes
13820
13821     case $host_os in
13822     cygwin*)
13823       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13824       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13825       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13826       ;;
13827     mingw*)
13828       # MinGW DLLs use traditional 'lib' prefix
13829       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13830       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13831       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13832         # It is most probably a Windows format PATH printed by
13833         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13834         # path with ; separators, and with drive letters. We can handle the
13835         # drive letters (cygwin fileutils understands them), so leave them,
13836         # especially as we might pass files found there to a mingw objdump,
13837         # which wouldn't understand a cygwinified path. Ahh.
13838         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13839       else
13840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13841       fi
13842       ;;
13843     pw32*)
13844       # pw32 DLLs use 'pw' prefix rather than 'lib'
13845       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13846       ;;
13847     esac
13848     ;;
13849
13850   *)
13851     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13852     ;;
13853   esac
13854   dynamic_linker='Win32 ld.exe'
13855   # FIXME: first we should search . and the directory the executable is in
13856   shlibpath_var=PATH
13857   ;;
13858
13859 darwin* | rhapsody*)
13860   dynamic_linker="$host_os dyld"
13861   version_type=darwin
13862   need_lib_prefix=no
13863   need_version=no
13864   # FIXME: Relying on posixy $() will cause problems for
13865   #        cross-compilation, but unfortunately the echo tests do not
13866   #        yet detect zsh echo's removal of \ escapes.
13867   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13868   soname_spec='${libname}${release}${major}$shared_ext'
13869   shlibpath_overrides_runpath=yes
13870   shlibpath_var=DYLD_LIBRARY_PATH
13871   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13872   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13873   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13874   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"`
13875   fi
13876   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13877   ;;
13878
13879 dgux*)
13880   version_type=linux
13881   need_lib_prefix=no
13882   need_version=no
13883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13884   soname_spec='${libname}${release}${shared_ext}$major'
13885   shlibpath_var=LD_LIBRARY_PATH
13886   ;;
13887
13888 freebsd1*)
13889   dynamic_linker=no
13890   ;;
13891
13892 freebsd*)
13893   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13894   version_type=freebsd-$objformat
13895   case $version_type in
13896     freebsd-elf*)
13897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13898       need_version=no
13899       need_lib_prefix=no
13900       ;;
13901     freebsd-*)
13902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13903       need_version=yes
13904       ;;
13905   esac
13906   shlibpath_var=LD_LIBRARY_PATH
13907   case $host_os in
13908   freebsd2*)
13909     shlibpath_overrides_runpath=yes
13910     ;;
13911   freebsd3.01* | freebsdelf3.01*)
13912     shlibpath_overrides_runpath=yes
13913     hardcode_into_libs=yes
13914     ;;
13915   *) # from 3.2 on
13916     shlibpath_overrides_runpath=no
13917     hardcode_into_libs=yes
13918     ;;
13919   esac
13920   ;;
13921
13922 gnu*)
13923   version_type=linux
13924   need_lib_prefix=no
13925   need_version=no
13926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13927   soname_spec='${libname}${release}${shared_ext}$major'
13928   shlibpath_var=LD_LIBRARY_PATH
13929   hardcode_into_libs=yes
13930   ;;
13931
13932 hpux9* | hpux10* | hpux11*)
13933   # Give a soname corresponding to the major version so that dld.sl refuses to
13934   # link against other versions.
13935   version_type=sunos
13936   need_lib_prefix=no
13937   need_version=no
13938   case "$host_cpu" in
13939   ia64*)
13940     shrext='.so'
13941     hardcode_into_libs=yes
13942     dynamic_linker="$host_os dld.so"
13943     shlibpath_var=LD_LIBRARY_PATH
13944     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946     soname_spec='${libname}${release}${shared_ext}$major'
13947     if test "X$HPUX_IA64_MODE" = X32; then
13948       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13949     else
13950       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13951     fi
13952     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13953     ;;
13954    hppa*64*)
13955      shrext='.sl'
13956      hardcode_into_libs=yes
13957      dynamic_linker="$host_os dld.sl"
13958      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13959      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13960      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13961      soname_spec='${libname}${release}${shared_ext}$major'
13962      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13963      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13964      ;;
13965    *)
13966     shrext='.sl'
13967     dynamic_linker="$host_os dld.sl"
13968     shlibpath_var=SHLIB_PATH
13969     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971     soname_spec='${libname}${release}${shared_ext}$major'
13972     ;;
13973   esac
13974   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13975   postinstall_cmds='chmod 555 $lib'
13976   ;;
13977
13978 irix5* | irix6* | nonstopux*)
13979   case $host_os in
13980     nonstopux*) version_type=nonstopux ;;
13981     *)
13982         if test "$lt_cv_prog_gnu_ld" = yes; then
13983                 version_type=linux
13984         else
13985                 version_type=irix
13986         fi ;;
13987   esac
13988   need_lib_prefix=no
13989   need_version=no
13990   soname_spec='${libname}${release}${shared_ext}$major'
13991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13992   case $host_os in
13993   irix5* | nonstopux*)
13994     libsuff= shlibsuff=
13995     ;;
13996   *)
13997     case $LD in # libtool.m4 will add one of these switches to LD
13998     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13999       libsuff= shlibsuff= libmagic=32-bit;;
14000     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14001       libsuff=32 shlibsuff=N32 libmagic=N32;;
14002     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14003       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14004     *) libsuff= shlibsuff= libmagic=never-match;;
14005     esac
14006     ;;
14007   esac
14008   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14009   shlibpath_overrides_runpath=no
14010   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14011   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14012   hardcode_into_libs=yes
14013   ;;
14014
14015 # No shared lib support for Linux oldld, aout, or coff.
14016 linux*oldld* | linux*aout* | linux*coff*)
14017   dynamic_linker=no
14018   ;;
14019
14020 # This must be Linux ELF.
14021 linux*)
14022   version_type=linux
14023   need_lib_prefix=no
14024   need_version=no
14025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026   soname_spec='${libname}${release}${shared_ext}$major'
14027   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14028   shlibpath_var=LD_LIBRARY_PATH
14029   shlibpath_overrides_runpath=no
14030   # This implies no fast_install, which is unacceptable.
14031   # Some rework will be needed to allow for fast_install
14032   # before this can be enabled.
14033   hardcode_into_libs=yes
14034
14035   # We used to test for /lib/ld.so.1 and disable shared libraries on
14036   # powerpc, because MkLinux only supported shared libraries with the
14037   # GNU dynamic linker.  Since this was broken with cross compilers,
14038   # most powerpc-linux boxes support dynamic linking these days and
14039   # people can always --disable-shared, the test was removed, and we
14040   # assume the GNU/Linux dynamic linker is in use.
14041   dynamic_linker='GNU/Linux ld.so'
14042   ;;
14043
14044 netbsd*)
14045   version_type=sunos
14046   need_lib_prefix=no
14047   need_version=no
14048   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14051     dynamic_linker='NetBSD (a.out) ld.so'
14052   else
14053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14054     soname_spec='${libname}${release}${shared_ext}$major'
14055     dynamic_linker='NetBSD ld.elf_so'
14056   fi
14057   shlibpath_var=LD_LIBRARY_PATH
14058   shlibpath_overrides_runpath=yes
14059   hardcode_into_libs=yes
14060   ;;
14061
14062 newsos6)
14063   version_type=linux
14064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065   shlibpath_var=LD_LIBRARY_PATH
14066   shlibpath_overrides_runpath=yes
14067   ;;
14068
14069 nto-qnx)
14070   version_type=linux
14071   need_lib_prefix=no
14072   need_version=no
14073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074   soname_spec='${libname}${release}${shared_ext}$major'
14075   shlibpath_var=LD_LIBRARY_PATH
14076   shlibpath_overrides_runpath=yes
14077   ;;
14078
14079 openbsd*)
14080   version_type=sunos
14081   need_lib_prefix=no
14082   need_version=no
14083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14084   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14085   shlibpath_var=LD_LIBRARY_PATH
14086   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087     case $host_os in
14088       openbsd2.[89] | openbsd2.[89].*)
14089         shlibpath_overrides_runpath=no
14090         ;;
14091       *)
14092         shlibpath_overrides_runpath=yes
14093         ;;
14094       esac
14095   else
14096     shlibpath_overrides_runpath=yes
14097   fi
14098   ;;
14099
14100 os2*)
14101   libname_spec='$name'
14102   shrext=".dll"
14103   need_lib_prefix=no
14104   library_names_spec='$libname${shared_ext} $libname.a'
14105   dynamic_linker='OS/2 ld.exe'
14106   shlibpath_var=LIBPATH
14107   ;;
14108
14109 osf3* | osf4* | osf5*)
14110   version_type=osf
14111   need_lib_prefix=no
14112   need_version=no
14113   soname_spec='${libname}${release}${shared_ext}$major'
14114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115   shlibpath_var=LD_LIBRARY_PATH
14116   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14117   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14118   ;;
14119
14120 sco3.2v5*)
14121   version_type=osf
14122   soname_spec='${libname}${release}${shared_ext}$major'
14123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124   shlibpath_var=LD_LIBRARY_PATH
14125   ;;
14126
14127 solaris*)
14128   version_type=linux
14129   need_lib_prefix=no
14130   need_version=no
14131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132   soname_spec='${libname}${release}${shared_ext}$major'
14133   shlibpath_var=LD_LIBRARY_PATH
14134   shlibpath_overrides_runpath=yes
14135   hardcode_into_libs=yes
14136   # ldd complains unless libraries are executable
14137   postinstall_cmds='chmod +x $lib'
14138   ;;
14139
14140 sunos4*)
14141   version_type=sunos
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14143   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14144   shlibpath_var=LD_LIBRARY_PATH
14145   shlibpath_overrides_runpath=yes
14146   if test "$with_gnu_ld" = yes; then
14147     need_lib_prefix=no
14148   fi
14149   need_version=yes
14150   ;;
14151
14152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14153   version_type=linux
14154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155   soname_spec='${libname}${release}${shared_ext}$major'
14156   shlibpath_var=LD_LIBRARY_PATH
14157   case $host_vendor in
14158     sni)
14159       shlibpath_overrides_runpath=no
14160       need_lib_prefix=no
14161       export_dynamic_flag_spec='${wl}-Blargedynsym'
14162       runpath_var=LD_RUN_PATH
14163       ;;
14164     siemens)
14165       need_lib_prefix=no
14166       ;;
14167     motorola)
14168       need_lib_prefix=no
14169       need_version=no
14170       shlibpath_overrides_runpath=no
14171       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14172       ;;
14173   esac
14174   ;;
14175
14176 sysv4*MP*)
14177   if test -d /usr/nec ;then
14178     version_type=linux
14179     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14180     soname_spec='$libname${shared_ext}.$major'
14181     shlibpath_var=LD_LIBRARY_PATH
14182   fi
14183   ;;
14184
14185 uts4*)
14186   version_type=linux
14187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188   soname_spec='${libname}${release}${shared_ext}$major'
14189   shlibpath_var=LD_LIBRARY_PATH
14190   ;;
14191
14192 *)
14193   dynamic_linker=no
14194   ;;
14195 esac
14196 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14197 echo "${ECHO_T}$dynamic_linker" >&6
14198 test "$dynamic_linker" = no && can_build_shared=no
14199
14200
14201 # The else clause should only fire when bootstrapping the
14202 # libtool distribution, otherwise you forgot to ship ltmain.sh
14203 # with your package, and you will get complaints that there are
14204 # no rules to generate ltmain.sh.
14205 if test -f "$ltmain"; then
14206   # See if we are running on zsh, and set the options which allow our commands through
14207   # without removal of \ escapes.
14208   if test -n "${ZSH_VERSION+set}" ; then
14209     setopt NO_GLOB_SUBST
14210   fi
14211   # Now quote all the things that may contain metacharacters while being
14212   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14213   # variables and quote the copies for generation of the libtool script.
14214   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14215     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14216     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14217     deplibs_check_method reload_flag reload_cmds need_locks \
14218     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14219     lt_cv_sys_global_symbol_to_c_name_address \
14220     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14221     old_postinstall_cmds old_postuninstall_cmds \
14222     compiler_F77 \
14223     CC_F77 \
14224     LD_F77 \
14225     lt_prog_compiler_wl_F77 \
14226     lt_prog_compiler_pic_F77 \
14227     lt_prog_compiler_static_F77 \
14228     lt_prog_compiler_no_builtin_flag_F77 \
14229     export_dynamic_flag_spec_F77 \
14230     thread_safe_flag_spec_F77 \
14231     whole_archive_flag_spec_F77 \
14232     enable_shared_with_static_runtimes_F77 \
14233     old_archive_cmds_F77 \
14234     old_archive_from_new_cmds_F77 \
14235     predep_objects_F77 \
14236     postdep_objects_F77 \
14237     predeps_F77 \
14238     postdeps_F77 \
14239     compiler_lib_search_path_F77 \
14240     archive_cmds_F77 \
14241     archive_expsym_cmds_F77 \
14242     postinstall_cmds_F77 \
14243     postuninstall_cmds_F77 \
14244     old_archive_from_expsyms_cmds_F77 \
14245     allow_undefined_flag_F77 \
14246     no_undefined_flag_F77 \
14247     export_symbols_cmds_F77 \
14248     hardcode_libdir_flag_spec_F77 \
14249     hardcode_libdir_flag_spec_ld_F77 \
14250     hardcode_libdir_separator_F77 \
14251     hardcode_automatic_F77 \
14252     module_cmds_F77 \
14253     module_expsym_cmds_F77 \
14254     lt_cv_prog_compiler_c_o_F77 \
14255     exclude_expsyms_F77 \
14256     include_expsyms_F77; do
14257
14258     case $var in
14259     old_archive_cmds_F77 | \
14260     old_archive_from_new_cmds_F77 | \
14261     archive_cmds_F77 | \
14262     archive_expsym_cmds_F77 | \
14263     module_cmds_F77 | \
14264     module_expsym_cmds_F77 | \
14265     old_archive_from_expsyms_cmds_F77 | \
14266     export_symbols_cmds_F77 | \
14267     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14268     postinstall_cmds | postuninstall_cmds | \
14269     old_postinstall_cmds | old_postuninstall_cmds | \
14270     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14271       # Double-quote double-evaled strings.
14272       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14273       ;;
14274     *)
14275       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14276       ;;
14277     esac
14278   done
14279
14280   case $lt_echo in
14281   *'\$0 --fallback-echo"')
14282     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14283     ;;
14284   esac
14285
14286 cfgfile="$ofile"
14287
14288   cat <<__EOF__ >> "$cfgfile"
14289 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14290
14291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14292
14293 # Shell to use when invoking shell scripts.
14294 SHELL=$lt_SHELL
14295
14296 # Whether or not to build shared libraries.
14297 build_libtool_libs=$enable_shared
14298
14299 # Whether or not to build static libraries.
14300 build_old_libs=$enable_static
14301
14302 # Whether or not to add -lc for building shared libraries.
14303 build_libtool_need_lc=$archive_cmds_need_lc_F77
14304
14305 # Whether or not to disallow shared libs when runtime libs are static
14306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14307
14308 # Whether or not to optimize for fast installation.
14309 fast_install=$enable_fast_install
14310
14311 # The host system.
14312 host_alias=$host_alias
14313 host=$host
14314
14315 # An echo program that does not interpret backslashes.
14316 echo=$lt_echo
14317
14318 # The archiver.
14319 AR=$lt_AR
14320 AR_FLAGS=$lt_AR_FLAGS
14321
14322 # A C compiler.
14323 LTCC=$lt_LTCC
14324
14325 # A language-specific compiler.
14326 CC=$lt_compiler_F77
14327
14328 # Is the compiler the GNU C compiler?
14329 with_gcc=$GCC_F77
14330
14331 # An ERE matcher.
14332 EGREP=$lt_EGREP
14333
14334 # The linker used to build libraries.
14335 LD=$lt_LD_F77
14336
14337 # Whether we need hard or soft links.
14338 LN_S=$lt_LN_S
14339
14340 # A BSD-compatible nm program.
14341 NM=$lt_NM
14342
14343 # A symbol stripping program
14344 STRIP=$STRIP
14345
14346 # Used to examine libraries when file_magic_cmd begins "file"
14347 MAGIC_CMD=$MAGIC_CMD
14348
14349 # Used on cygwin: DLL creation program.
14350 DLLTOOL="$DLLTOOL"
14351
14352 # Used on cygwin: object dumper.
14353 OBJDUMP="$OBJDUMP"
14354
14355 # Used on cygwin: assembler.
14356 AS="$AS"
14357
14358 # The name of the directory that contains temporary libtool files.
14359 objdir=$objdir
14360
14361 # How to create reloadable object files.
14362 reload_flag=$lt_reload_flag
14363 reload_cmds=$lt_reload_cmds
14364
14365 # How to pass a linker flag through the compiler.
14366 wl=$lt_lt_prog_compiler_wl_F77
14367
14368 # Object file suffix (normally "o").
14369 objext="$ac_objext"
14370
14371 # Old archive suffix (normally "a").
14372 libext="$libext"
14373
14374 # Shared library suffix (normally ".so").
14375 shrext='$shrext'
14376
14377 # Executable file suffix (normally "").
14378 exeext="$exeext"
14379
14380 # Additional compiler flags for building library objects.
14381 pic_flag=$lt_lt_prog_compiler_pic_F77
14382 pic_mode=$pic_mode
14383
14384 # What is the maximum length of a command?
14385 max_cmd_len=$lt_cv_sys_max_cmd_len
14386
14387 # Does compiler simultaneously support -c and -o options?
14388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14389
14390 # Must we lock files when doing compilation ?
14391 need_locks=$lt_need_locks
14392
14393 # Do we need the lib prefix for modules?
14394 need_lib_prefix=$need_lib_prefix
14395
14396 # Do we need a version for libraries?
14397 need_version=$need_version
14398
14399 # Whether dlopen is supported.
14400 dlopen_support=$enable_dlopen
14401
14402 # Whether dlopen of programs is supported.
14403 dlopen_self=$enable_dlopen_self
14404
14405 # Whether dlopen of statically linked programs is supported.
14406 dlopen_self_static=$enable_dlopen_self_static
14407
14408 # Compiler flag to prevent dynamic linking.
14409 link_static_flag=$lt_lt_prog_compiler_static_F77
14410
14411 # Compiler flag to turn off builtin functions.
14412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14413
14414 # Compiler flag to allow reflexive dlopens.
14415 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14416
14417 # Compiler flag to generate shared objects directly from archives.
14418 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14419
14420 # Compiler flag to generate thread-safe objects.
14421 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14422
14423 # Library versioning type.
14424 version_type=$version_type
14425
14426 # Format of library name prefix.
14427 libname_spec=$lt_libname_spec
14428
14429 # List of archive names.  First name is the real one, the rest are links.
14430 # The last name is the one that the linker finds with -lNAME.
14431 library_names_spec=$lt_library_names_spec
14432
14433 # The coded name of the library, if different from the real name.
14434 soname_spec=$lt_soname_spec
14435
14436 # Commands used to build and install an old-style archive.
14437 RANLIB=$lt_RANLIB
14438 old_archive_cmds=$lt_old_archive_cmds_F77
14439 old_postinstall_cmds=$lt_old_postinstall_cmds
14440 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14441
14442 # Create an old-style archive from a shared archive.
14443 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14444
14445 # Create a temporary old-style archive to link instead of a shared archive.
14446 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14447
14448 # Commands used to build and install a shared archive.
14449 archive_cmds=$lt_archive_cmds_F77
14450 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14451 postinstall_cmds=$lt_postinstall_cmds
14452 postuninstall_cmds=$lt_postuninstall_cmds
14453
14454 # Commands used to build a loadable module (assumed same as above if empty)
14455 module_cmds=$lt_module_cmds_F77
14456 module_expsym_cmds=$lt_module_expsym_cmds_F77
14457
14458 # Commands to strip libraries.
14459 old_striplib=$lt_old_striplib
14460 striplib=$lt_striplib
14461
14462 # Dependencies to place before the objects being linked to create a
14463 # shared library.
14464 predep_objects=$lt_predep_objects_F77
14465
14466 # Dependencies to place after the objects being linked to create a
14467 # shared library.
14468 postdep_objects=$lt_postdep_objects_F77
14469
14470 # Dependencies to place before the objects being linked to create a
14471 # shared library.
14472 predeps=$lt_predeps_F77
14473
14474 # Dependencies to place after the objects being linked to create a
14475 # shared library.
14476 postdeps=$lt_postdeps_F77
14477
14478 # The library search path used internally by the compiler when linking
14479 # a shared library.
14480 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14481
14482 # Method to check whether dependent libraries are shared objects.
14483 deplibs_check_method=$lt_deplibs_check_method
14484
14485 # Command to use when deplibs_check_method == file_magic.
14486 file_magic_cmd=$lt_file_magic_cmd
14487
14488 # Flag that allows shared libraries with undefined symbols to be built.
14489 allow_undefined_flag=$lt_allow_undefined_flag_F77
14490
14491 # Flag that forces no undefined symbols.
14492 no_undefined_flag=$lt_no_undefined_flag_F77
14493
14494 # Commands used to finish a libtool library installation in a directory.
14495 finish_cmds=$lt_finish_cmds
14496
14497 # Same as above, but a single script fragment to be evaled but not shown.
14498 finish_eval=$lt_finish_eval
14499
14500 # Take the output of nm and produce a listing of raw symbols and C names.
14501 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14502
14503 # Transform the output of nm in a proper C declaration
14504 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14505
14506 # Transform the output of nm in a C name address pair
14507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14508
14509 # This is the shared library runtime path variable.
14510 runpath_var=$runpath_var
14511
14512 # This is the shared library path variable.
14513 shlibpath_var=$shlibpath_var
14514
14515 # Is shlibpath searched before the hard-coded library search path?
14516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14517
14518 # How to hardcode a shared library path into an executable.
14519 hardcode_action=$hardcode_action_F77
14520
14521 # Whether we should hardcode library paths into libraries.
14522 hardcode_into_libs=$hardcode_into_libs
14523
14524 # Flag to hardcode \$libdir into a binary during linking.
14525 # This must work even if \$libdir does not exist.
14526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14527
14528 # If ld is used when linking, flag to hardcode \$libdir into
14529 # a binary during linking. This must work even if \$libdir does
14530 # not exist.
14531 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14532
14533 # Whether we need a single -rpath flag with a separated argument.
14534 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14535
14536 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14537 # resulting binary.
14538 hardcode_direct=$hardcode_direct_F77
14539
14540 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14541 # resulting binary.
14542 hardcode_minus_L=$hardcode_minus_L_F77
14543
14544 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14545 # the resulting binary.
14546 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14547
14548 # Set to yes if building a shared library automatically hardcodes DIR into the library
14549 # and all subsequent libraries and executables linked against it.
14550 hardcode_automatic=$hardcode_automatic_F77
14551
14552 # Variables whose values should be saved in libtool wrapper scripts and
14553 # restored at relink time.
14554 variables_saved_for_relink="$variables_saved_for_relink"
14555
14556 # Whether libtool must link a program against all its dependency libraries.
14557 link_all_deplibs=$link_all_deplibs_F77
14558
14559 # Compile-time system search path for libraries
14560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14561
14562 # Run-time system search path for libraries
14563 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14564
14565 # Fix the shell variable \$srcfile for the compiler.
14566 fix_srcfile_path="$fix_srcfile_path_F77"
14567
14568 # Set to yes if exported symbols are required.
14569 always_export_symbols=$always_export_symbols_F77
14570
14571 # The commands to list exported symbols.
14572 export_symbols_cmds=$lt_export_symbols_cmds_F77
14573
14574 # The commands to extract the exported symbol list from a shared archive.
14575 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14576
14577 # Symbols that should not be listed in the preloaded symbols.
14578 exclude_expsyms=$lt_exclude_expsyms_F77
14579
14580 # Symbols that must always be exported.
14581 include_expsyms=$lt_include_expsyms_F77
14582
14583 # ### END LIBTOOL TAG CONFIG: $tagname
14584
14585 __EOF__
14586
14587
14588 else
14589   # If there is no Makefile yet, we rely on a make rule to execute
14590   # `config.status --recheck' to rerun these tests and create the
14591   # libtool script then.
14592   test -f Makefile && make "$ltmain"
14593 fi
14594
14595
14596 ac_ext=c
14597 ac_cpp='$CPP $CPPFLAGS'
14598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14601
14602 CC="$lt_save_CC"
14603
14604         else
14605           tagname=""
14606         fi
14607         ;;
14608
14609       GCJ)
14610         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14611
14612
14613
14614 # Source file extension for Java test sources.
14615 ac_ext=java
14616
14617 # Object file extension for compiled Java test sources.
14618 objext=o
14619 objext_GCJ=$objext
14620
14621 # Code to be used in simple compile tests
14622 lt_simple_compile_test_code="class foo {}\n"
14623
14624 # Code to be used in simple link tests
14625 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14626
14627 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14628
14629 # If no C compiler was specified, use CC.
14630 LTCC=${LTCC-"$CC"}
14631
14632 # Allow CC to be a program name with arguments.
14633 compiler=$CC
14634
14635
14636 # Allow CC to be a program name with arguments.
14637 lt_save_CC="$CC"
14638 CC=${GCJ-"gcj"}
14639 compiler=$CC
14640 compiler_GCJ=$CC
14641
14642 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14643 archive_cmds_need_lc_GCJ=no
14644
14645
14646 lt_prog_compiler_no_builtin_flag_GCJ=
14647
14648 if test "$GCC" = yes; then
14649   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14650
14651   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14654   echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656   lt_cv_prog_compiler_rtti_exceptions=no
14657   ac_outfile=conftest.$ac_objext
14658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14659    lt_compiler_flag="-fno-rtti -fno-exceptions"
14660    # Insert the option either (1) after the last *FLAGS variable, or
14661    # (2) before a word containing "conftest.", or (3) at the end.
14662    # Note that $ac_compile itself does not contain backslashes and begins
14663    # with a dollar sign (not a hyphen), so the echo should work correctly.
14664    # The option is referenced via a variable to avoid confusing sed.
14665    lt_compile=`echo "$ac_compile" | $SED \
14666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14668    -e 's:$: $lt_compiler_flag:'`
14669    (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
14670    (eval "$lt_compile" 2>conftest.err)
14671    ac_status=$?
14672    cat conftest.err >&5
14673    echo "$as_me:14673: \$? = $ac_status" >&5
14674    if (exit $ac_status) && test -s "$ac_outfile"; then
14675      # The compiler can only warn and ignore the option if not recognized
14676      # So say no if there are warnings
14677      if test ! -s conftest.err; then
14678        lt_cv_prog_compiler_rtti_exceptions=yes
14679      fi
14680    fi
14681    $rm conftest*
14682
14683 fi
14684 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14685 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14686
14687 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14688     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14689 else
14690     :
14691 fi
14692
14693 fi
14694
14695 lt_prog_compiler_wl_GCJ=
14696 lt_prog_compiler_pic_GCJ=
14697 lt_prog_compiler_static_GCJ=
14698
14699 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14700 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14701
14702   if test "$GCC" = yes; then
14703     lt_prog_compiler_wl_GCJ='-Wl,'
14704     lt_prog_compiler_static_GCJ='-static'
14705
14706     case $host_os in
14707       aix*)
14708       # All AIX code is PIC.
14709       if test "$host_cpu" = ia64; then
14710         # AIX 5 now supports IA64 processor
14711         lt_prog_compiler_static_GCJ='-Bstatic'
14712       fi
14713       ;;
14714
14715     amigaos*)
14716       # FIXME: we need at least 68020 code to build shared libraries, but
14717       # adding the `-m68020' flag to GCC prevents building anything better,
14718       # like `-m68040'.
14719       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14720       ;;
14721
14722     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14723       # PIC is the default for these OSes.
14724       ;;
14725
14726     mingw* | pw32* | os2*)
14727       # This hack is so that the source file can tell whether it is being
14728       # built for inclusion in a dll (and should export symbols for example).
14729       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14730       ;;
14731
14732     darwin* | rhapsody*)
14733       # PIC is the default on this platform
14734       # Common symbols not allowed in MH_DYLIB files
14735       lt_prog_compiler_pic_GCJ='-fno-common'
14736       ;;
14737
14738     msdosdjgpp*)
14739       # Just because we use GCC doesn't mean we suddenly get shared libraries
14740       # on systems that don't support them.
14741       lt_prog_compiler_can_build_shared_GCJ=no
14742       enable_shared=no
14743       ;;
14744
14745     sysv4*MP*)
14746       if test -d /usr/nec; then
14747         lt_prog_compiler_pic_GCJ=-Kconform_pic
14748       fi
14749       ;;
14750
14751     hpux*)
14752       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14753       # not for PA HP-UX.
14754       case "$host_cpu" in
14755       hppa*64*|ia64*)
14756         # +Z the default
14757         ;;
14758       *)
14759         lt_prog_compiler_pic_GCJ='-fPIC'
14760         ;;
14761       esac
14762       ;;
14763
14764     *)
14765       lt_prog_compiler_pic_GCJ='-fPIC'
14766       ;;
14767     esac
14768   else
14769     # PORTME Check for flag to pass linker flags through the system compiler.
14770     case $host_os in
14771     aix*)
14772       lt_prog_compiler_wl_GCJ='-Wl,'
14773       if test "$host_cpu" = ia64; then
14774         # AIX 5 now supports IA64 processor
14775         lt_prog_compiler_static_GCJ='-Bstatic'
14776       else
14777         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14778       fi
14779       ;;
14780
14781     mingw* | pw32* | os2*)
14782       # This hack is so that the source file can tell whether it is being
14783       # built for inclusion in a dll (and should export symbols for example).
14784       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14785       ;;
14786
14787     hpux9* | hpux10* | hpux11*)
14788       lt_prog_compiler_wl_GCJ='-Wl,'
14789       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14790       # not for PA HP-UX.
14791       case "$host_cpu" in
14792       hppa*64*|ia64*)
14793         # +Z the default
14794         ;;
14795       *)
14796         lt_prog_compiler_pic_GCJ='+Z'
14797         ;;
14798       esac
14799       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14800       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14801       ;;
14802
14803     irix5* | irix6* | nonstopux*)
14804       lt_prog_compiler_wl_GCJ='-Wl,'
14805       # PIC (with -KPIC) is the default.
14806       lt_prog_compiler_static_GCJ='-non_shared'
14807       ;;
14808
14809     newsos6)
14810       lt_prog_compiler_pic_GCJ='-KPIC'
14811       lt_prog_compiler_static_GCJ='-Bstatic'
14812       ;;
14813
14814     linux*)
14815       case $CC in
14816       icc|ecc)
14817         lt_prog_compiler_wl_GCJ='-Wl,'
14818         lt_prog_compiler_pic_GCJ='-KPIC'
14819         lt_prog_compiler_static_GCJ='-static'
14820         ;;
14821       ccc)
14822         lt_prog_compiler_wl_GCJ='-Wl,'
14823         # All Alpha code is PIC.
14824         lt_prog_compiler_static_GCJ='-non_shared'
14825         ;;
14826       esac
14827       ;;
14828
14829     osf3* | osf4* | osf5*)
14830       lt_prog_compiler_wl_GCJ='-Wl,'
14831       # All OSF/1 code is PIC.
14832       lt_prog_compiler_static_GCJ='-non_shared'
14833       ;;
14834
14835     sco3.2v5*)
14836       lt_prog_compiler_pic_GCJ='-Kpic'
14837       lt_prog_compiler_static_GCJ='-dn'
14838       ;;
14839
14840     solaris*)
14841       lt_prog_compiler_wl_GCJ='-Wl,'
14842       lt_prog_compiler_pic_GCJ='-KPIC'
14843       lt_prog_compiler_static_GCJ='-Bstatic'
14844       ;;
14845
14846     sunos4*)
14847       lt_prog_compiler_wl_GCJ='-Qoption ld '
14848       lt_prog_compiler_pic_GCJ='-PIC'
14849       lt_prog_compiler_static_GCJ='-Bstatic'
14850       ;;
14851
14852     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14853       lt_prog_compiler_wl_GCJ='-Wl,'
14854       lt_prog_compiler_pic_GCJ='-KPIC'
14855       lt_prog_compiler_static_GCJ='-Bstatic'
14856       ;;
14857
14858     sysv4*MP*)
14859       if test -d /usr/nec ;then
14860         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14861         lt_prog_compiler_static_GCJ='-Bstatic'
14862       fi
14863       ;;
14864
14865     uts4*)
14866       lt_prog_compiler_pic_GCJ='-pic'
14867       lt_prog_compiler_static_GCJ='-Bstatic'
14868       ;;
14869
14870     *)
14871       lt_prog_compiler_can_build_shared_GCJ=no
14872       ;;
14873     esac
14874   fi
14875
14876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14877 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14878
14879 #
14880 # Check to make sure the PIC flag actually works.
14881 #
14882 if test -n "$lt_prog_compiler_pic_GCJ"; then
14883   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14884 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14885 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14886   echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888   lt_prog_compiler_pic_works_GCJ=no
14889   ac_outfile=conftest.$ac_objext
14890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14891    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14892    # Insert the option either (1) after the last *FLAGS variable, or
14893    # (2) before a word containing "conftest.", or (3) at the end.
14894    # Note that $ac_compile itself does not contain backslashes and begins
14895    # with a dollar sign (not a hyphen), so the echo should work correctly.
14896    # The option is referenced via a variable to avoid confusing sed.
14897    lt_compile=`echo "$ac_compile" | $SED \
14898    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900    -e 's:$: $lt_compiler_flag:'`
14901    (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902    (eval "$lt_compile" 2>conftest.err)
14903    ac_status=$?
14904    cat conftest.err >&5
14905    echo "$as_me:14905: \$? = $ac_status" >&5
14906    if (exit $ac_status) && test -s "$ac_outfile"; then
14907      # The compiler can only warn and ignore the option if not recognized
14908      # So say no if there are warnings
14909      if test ! -s conftest.err; then
14910        lt_prog_compiler_pic_works_GCJ=yes
14911      fi
14912    fi
14913    $rm conftest*
14914
14915 fi
14916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14917 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14918
14919 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14920     case $lt_prog_compiler_pic_GCJ in
14921      "" | " "*) ;;
14922      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14923      esac
14924 else
14925     lt_prog_compiler_pic_GCJ=
14926      lt_prog_compiler_can_build_shared_GCJ=no
14927 fi
14928
14929 fi
14930 case "$host_os" in
14931   # For platforms which do not support PIC, -DPIC is meaningless:
14932   *djgpp*)
14933     lt_prog_compiler_pic_GCJ=
14934     ;;
14935   *)
14936     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14937     ;;
14938 esac
14939
14940 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14942 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   lt_cv_prog_compiler_c_o_GCJ=no
14946    $rm -r conftest 2>/dev/null
14947    mkdir conftest
14948    cd conftest
14949    mkdir out
14950    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14951
14952    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14953    # that will create temporary files in the current directory regardless of
14954    # the output directory.  Thus, making CWD read-only will cause this test
14955    # to fail, enabling locking or at least warning the user not to do parallel
14956    # builds.
14957    chmod -w .
14958
14959    lt_compiler_flag="-o out/conftest2.$ac_objext"
14960    # Insert the option either (1) after the last *FLAGS variable, or
14961    # (2) before a word containing "conftest.", or (3) at the end.
14962    # Note that $ac_compile itself does not contain backslashes and begins
14963    # with a dollar sign (not a hyphen), so the echo should work correctly.
14964    lt_compile=`echo "$ac_compile" | $SED \
14965    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967    -e 's:$: $lt_compiler_flag:'`
14968    (eval echo "\"\$as_me:14968: $lt_compile\"" >&5)
14969    (eval "$lt_compile" 2>out/conftest.err)
14970    ac_status=$?
14971    cat out/conftest.err >&5
14972    echo "$as_me:14972: \$? = $ac_status" >&5
14973    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14974    then
14975      # The compiler can only warn and ignore the option if not recognized
14976      # So say no if there are warnings
14977      if test ! -s out/conftest.err; then
14978        lt_cv_prog_compiler_c_o_GCJ=yes
14979      fi
14980    fi
14981    chmod u+w .
14982    $rm conftest* out/*
14983    rmdir out
14984    cd ..
14985    rmdir conftest
14986    $rm conftest*
14987
14988 fi
14989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14991
14992
14993 hard_links="nottested"
14994 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14995   # do not overwrite the value of need_locks provided by the user
14996   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14998   hard_links=yes
14999   $rm conftest*
15000   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15001   touch conftest.a
15002   ln conftest.a conftest.b 2>&5 || hard_links=no
15003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15004   echo "$as_me:$LINENO: result: $hard_links" >&5
15005 echo "${ECHO_T}$hard_links" >&6
15006   if test "$hard_links" = no; then
15007     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15009     need_locks=warn
15010   fi
15011 else
15012   need_locks=no
15013 fi
15014
15015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15017
15018   runpath_var=
15019   allow_undefined_flag_GCJ=
15020   enable_shared_with_static_runtimes_GCJ=no
15021   archive_cmds_GCJ=
15022   archive_expsym_cmds_GCJ=
15023   old_archive_From_new_cmds_GCJ=
15024   old_archive_from_expsyms_cmds_GCJ=
15025   export_dynamic_flag_spec_GCJ=
15026   whole_archive_flag_spec_GCJ=
15027   thread_safe_flag_spec_GCJ=
15028   hardcode_libdir_flag_spec_GCJ=
15029   hardcode_libdir_flag_spec_ld_GCJ=
15030   hardcode_libdir_separator_GCJ=
15031   hardcode_direct_GCJ=no
15032   hardcode_minus_L_GCJ=no
15033   hardcode_shlibpath_var_GCJ=unsupported
15034   link_all_deplibs_GCJ=unknown
15035   hardcode_automatic_GCJ=no
15036   module_cmds_GCJ=
15037   module_expsym_cmds_GCJ=
15038   always_export_symbols_GCJ=no
15039   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15040   # include_expsyms should be a list of space-separated symbols to be *always*
15041   # included in the symbol list
15042   include_expsyms_GCJ=
15043   # exclude_expsyms can be an extended regexp of symbols to exclude
15044   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15045   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15046   # as well as any symbol that contains `d'.
15047   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15048   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15049   # platforms (ab)use it in PIC code, but their linkers get confused if
15050   # the symbol is explicitly referenced.  Since portable code cannot
15051   # rely on this symbol name, it's probably fine to never include it in
15052   # preloaded symbol tables.
15053   extract_expsyms_cmds=
15054
15055   case $host_os in
15056   cygwin* | mingw* | pw32*)
15057     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15058     # When not using gcc, we currently assume that we are using
15059     # Microsoft Visual C++.
15060     if test "$GCC" != yes; then
15061       with_gnu_ld=no
15062     fi
15063     ;;
15064   openbsd*)
15065     with_gnu_ld=no
15066     ;;
15067   esac
15068
15069   ld_shlibs_GCJ=yes
15070   if test "$with_gnu_ld" = yes; then
15071     # If archive_cmds runs LD, not CC, wlarc should be empty
15072     wlarc='${wl}'
15073
15074     # See if GNU ld supports shared libraries.
15075     case $host_os in
15076     aix3* | aix4* | aix5*)
15077       # On AIX/PPC, the GNU linker is very broken
15078       if test "$host_cpu" != ia64; then
15079         ld_shlibs_GCJ=no
15080         cat <<EOF 1>&2
15081
15082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15083 *** to be unable to reliably create shared libraries on AIX.
15084 *** Therefore, libtool is disabling shared libraries support.  If you
15085 *** really care for shared libraries, you may want to modify your PATH
15086 *** so that a non-GNU linker is found, and then restart.
15087
15088 EOF
15089       fi
15090       ;;
15091
15092     amigaos*)
15093       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)'
15094       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15095       hardcode_minus_L_GCJ=yes
15096
15097       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15098       # that the semantics of dynamic libraries on AmigaOS, at least up
15099       # to version 4, is to share data among multiple programs linked
15100       # with the same dynamic library.  Since this doesn't match the
15101       # behavior of shared libraries on other platforms, we can't use
15102       # them.
15103       ld_shlibs_GCJ=no
15104       ;;
15105
15106     beos*)
15107       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15108         allow_undefined_flag_GCJ=unsupported
15109         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15110         # support --undefined.  This deserves some investigation.  FIXME
15111         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112       else
15113         ld_shlibs_GCJ=no
15114       fi
15115       ;;
15116
15117     cygwin* | mingw* | pw32*)
15118       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15119       # as there is no search path for DLLs.
15120       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15121       allow_undefined_flag_GCJ=unsupported
15122       always_export_symbols_GCJ=no
15123       enable_shared_with_static_runtimes_GCJ=yes
15124       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15125
15126       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15127         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15128         # If the export-symbols file already is a .def file (1st line
15129         # is EXPORTS), use it as is; otherwise, prepend...
15130         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15131           cp $export_symbols $output_objdir/$soname.def;
15132         else
15133           echo EXPORTS > $output_objdir/$soname.def;
15134           cat $export_symbols >> $output_objdir/$soname.def;
15135         fi~
15136         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15137       else
15138         ld_shlibs=no
15139       fi
15140       ;;
15141
15142     netbsd*)
15143       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15144         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15145         wlarc=
15146       else
15147         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15148         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149       fi
15150       ;;
15151
15152     solaris* | sysv5*)
15153       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15154         ld_shlibs_GCJ=no
15155         cat <<EOF 1>&2
15156
15157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15158 *** create shared libraries on Solaris systems.  Therefore, libtool
15159 *** is disabling shared libraries support.  We urge you to upgrade GNU
15160 *** binutils to release 2.9.1 or newer.  Another option is to modify
15161 *** your PATH or compiler configuration so that the native linker is
15162 *** used, and then restart.
15163
15164 EOF
15165       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15166         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15167         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15168       else
15169         ld_shlibs_GCJ=no
15170       fi
15171       ;;
15172
15173     sunos4*)
15174       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175       wlarc=
15176       hardcode_direct_GCJ=yes
15177       hardcode_shlibpath_var_GCJ=no
15178       ;;
15179
15180     *)
15181       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15182         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184       else
15185         ld_shlibs_GCJ=no
15186       fi
15187       ;;
15188     esac
15189
15190     if test "$ld_shlibs_GCJ" = yes; then
15191       runpath_var=LD_RUN_PATH
15192       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15193       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15194       # ancient GNU ld didn't support --whole-archive et. al.
15195       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15196         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15197       else
15198         whole_archive_flag_spec_GCJ=
15199       fi
15200     fi
15201   else
15202     # PORTME fill in a description of your system's linker (not GNU ld)
15203     case $host_os in
15204     aix3*)
15205       allow_undefined_flag_GCJ=unsupported
15206       always_export_symbols_GCJ=yes
15207       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'
15208       # Note: this linker hardcodes the directories in LIBPATH if there
15209       # are no directories specified by -L.
15210       hardcode_minus_L_GCJ=yes
15211       if test "$GCC" = yes && test -z "$link_static_flag"; then
15212         # Neither direct hardcoding nor static linking is supported with a
15213         # broken collect2.
15214         hardcode_direct_GCJ=unsupported
15215       fi
15216       ;;
15217
15218     aix4* | aix5*)
15219       if test "$host_cpu" = ia64; then
15220         # On IA64, the linker does run time linking by default, so we don't
15221         # have to do anything special.
15222         aix_use_runtimelinking=no
15223         exp_sym_flag='-Bexport'
15224         no_entry_flag=""
15225       else
15226         # If we're using GNU nm, then we don't want the "-C" option.
15227         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15228         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15229           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'
15230         else
15231           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'
15232         fi
15233         aix_use_runtimelinking=no
15234
15235         # Test if we are trying to use run time linking or normal
15236         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15237         # need to do runtime linking.
15238         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15239           for ld_flag in $LDFLAGS; do
15240           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15241             aix_use_runtimelinking=yes
15242             break
15243           fi
15244           done
15245         esac
15246
15247         exp_sym_flag='-bexport'
15248         no_entry_flag='-bnoentry'
15249       fi
15250
15251       # When large executables or shared objects are built, AIX ld can
15252       # have problems creating the table of contents.  If linking a library
15253       # or program results in "error TOC overflow" add -mminimal-toc to
15254       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15255       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15256
15257       archive_cmds_GCJ=''
15258       hardcode_direct_GCJ=yes
15259       hardcode_libdir_separator_GCJ=':'
15260       link_all_deplibs_GCJ=yes
15261
15262       if test "$GCC" = yes; then
15263         case $host_os in aix4.012|aix4.012.*)
15264         # We only want to do this on AIX 4.2 and lower, the check
15265         # below for broken collect2 doesn't work under 4.3+
15266           collect2name=`${CC} -print-prog-name=collect2`
15267           if test -f "$collect2name" && \
15268            strings "$collect2name" | grep resolve_lib_name >/dev/null
15269           then
15270           # We have reworked collect2
15271           hardcode_direct_GCJ=yes
15272           else
15273           # We have old collect2
15274           hardcode_direct_GCJ=unsupported
15275           # It fails to find uninstalled libraries when the uninstalled
15276           # path is not listed in the libpath.  Setting hardcode_minus_L
15277           # to unsupported forces relinking
15278           hardcode_minus_L_GCJ=yes
15279           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15280           hardcode_libdir_separator_GCJ=
15281           fi
15282         esac
15283         shared_flag='-shared'
15284       else
15285         # not using gcc
15286         if test "$host_cpu" = ia64; then
15287         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15288         # chokes on -Wl,-G. The following line is correct:
15289           shared_flag='-G'
15290         else
15291         if test "$aix_use_runtimelinking" = yes; then
15292             shared_flag='${wl}-G'
15293           else
15294             shared_flag='${wl}-bM:SRE'
15295         fi
15296         fi
15297       fi
15298
15299       # It seems that -bexpall does not export symbols beginning with
15300       # underscore (_), so it is better to generate a list of symbols to export.
15301       always_export_symbols_GCJ=yes
15302       if test "$aix_use_runtimelinking" = yes; then
15303         # Warning - without using the other runtime loading flags (-brtl),
15304         # -berok will link without error, but may produce a broken library.
15305         allow_undefined_flag_GCJ='-berok'
15306        # Determine the default libpath from the value encoded in an empty executable.
15307        cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314
15315 int
15316 main ()
15317 {
15318
15319   ;
15320   return 0;
15321 }
15322 _ACEOF
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15325   (eval $ac_link) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -s conftest$ac_exeext'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; }; then
15335
15336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15337 }'`
15338 # Check for a 64-bit object if we didn't find anything.
15339 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; }
15340 }'`; fi
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 fi
15346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15348
15349        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15350         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"
15351        else
15352         if test "$host_cpu" = ia64; then
15353           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15354           allow_undefined_flag_GCJ="-z nodefs"
15355           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"
15356         else
15357          # Determine the default libpath from the value encoded in an empty executable.
15358          cat >conftest.$ac_ext <<_ACEOF
15359 #line $LINENO "configure"
15360 /* confdefs.h.  */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h.  */
15365
15366 int
15367 main ()
15368 {
15369
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376   (eval $ac_link) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -s conftest$ac_exeext'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; }; then
15386
15387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15388 }'`
15389 # Check for a 64-bit object if we didn't find anything.
15390 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; }
15391 }'`; fi
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396 fi
15397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15399
15400          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15401           # Warning - without using the other run time loading flags,
15402           # -berok will link without error, but may produce a broken library.
15403           no_undefined_flag_GCJ=' ${wl}-bernotok'
15404           allow_undefined_flag_GCJ=' ${wl}-berok'
15405           # -bexpall does not export symbols beginning with underscore (_)
15406           always_export_symbols_GCJ=yes
15407           # Exported symbols can be pulled into shared objects from archives
15408           whole_archive_flag_spec_GCJ=' '
15409           archive_cmds_need_lc_GCJ=yes
15410           # This is similar to how AIX traditionally builds it's shared libraries.
15411           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'
15412         fi
15413       fi
15414       ;;
15415
15416     amigaos*)
15417       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)'
15418       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15419       hardcode_minus_L_GCJ=yes
15420       # see comment about different semantics on the GNU ld section
15421       ld_shlibs_GCJ=no
15422       ;;
15423
15424     bsdi4*)
15425       export_dynamic_flag_spec_GCJ=-rdynamic
15426       ;;
15427
15428     cygwin* | mingw* | pw32*)
15429       # When not using gcc, we currently assume that we are using
15430       # Microsoft Visual C++.
15431       # hardcode_libdir_flag_spec is actually meaningless, as there is
15432       # no search path for DLLs.
15433       hardcode_libdir_flag_spec_GCJ=' '
15434       allow_undefined_flag_GCJ=unsupported
15435       # Tell ltmain to make .lib files, not .a files.
15436       libext=lib
15437       # Tell ltmain to make .dll files, not .so files.
15438       shrext=".dll"
15439       # FIXME: Setting linknames here is a bad hack.
15440       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15441       # The linker will automatically build a .lib file if we build a DLL.
15442       old_archive_From_new_cmds_GCJ='true'
15443       # FIXME: Should let the user specify the lib program.
15444       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15445       fix_srcfile_path='`cygpath -w "$srcfile"`'
15446       enable_shared_with_static_runtimes_GCJ=yes
15447       ;;
15448
15449     darwin* | rhapsody*)
15450     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15451       archive_cmds_need_lc_GCJ=no
15452       case "$host_os" in
15453       rhapsody* | darwin1.[012])
15454         allow_undefined_flag_GCJ='-undefined suppress'
15455         ;;
15456       *) # Darwin 1.3 on
15457         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15458         ;;
15459       esac
15460       # FIXME: Relying on posixy $() will cause problems for
15461       #        cross-compilation, but unfortunately the echo tests do not
15462       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15463       #        `"' quotes if we put them in here... so don't!
15464         lt_int_apple_cc_single_mod=no
15465         output_verbose_link_cmd='echo'
15466         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15467           lt_int_apple_cc_single_mod=yes
15468         fi
15469         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15470           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15471         else
15472         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15473       fi
15474       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15475       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15476         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15477           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15478         else
15479           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15480         fi
15481           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15482       hardcode_direct_GCJ=no
15483       hardcode_automatic_GCJ=yes
15484       hardcode_shlibpath_var_GCJ=unsupported
15485       whole_archive_flag_spec_GCJ='-all_load $convenience'
15486       link_all_deplibs_GCJ=yes
15487     fi
15488       ;;
15489
15490     dgux*)
15491       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15492       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15493       hardcode_shlibpath_var_GCJ=no
15494       ;;
15495
15496     freebsd1*)
15497       ld_shlibs_GCJ=no
15498       ;;
15499
15500     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15501     # support.  Future versions do this automatically, but an explicit c++rt0.o
15502     # does not break anything, and helps significantly (at the cost of a little
15503     # extra space).
15504     freebsd2.2*)
15505       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15506       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15507       hardcode_direct_GCJ=yes
15508       hardcode_shlibpath_var_GCJ=no
15509       ;;
15510
15511     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15512     freebsd2*)
15513       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15514       hardcode_direct_GCJ=yes
15515       hardcode_minus_L_GCJ=yes
15516       hardcode_shlibpath_var_GCJ=no
15517       ;;
15518
15519     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15520     freebsd*)
15521       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15522       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15523       hardcode_direct_GCJ=yes
15524       hardcode_shlibpath_var_GCJ=no
15525       ;;
15526
15527     hpux9*)
15528       if test "$GCC" = yes; then
15529         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'
15530       else
15531         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'
15532       fi
15533       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15534       hardcode_libdir_separator_GCJ=:
15535       hardcode_direct_GCJ=yes
15536
15537       # hardcode_minus_L: Not really in the search PATH,
15538       # but as the default location of the library.
15539       hardcode_minus_L_GCJ=yes
15540       export_dynamic_flag_spec_GCJ='${wl}-E'
15541       ;;
15542
15543     hpux10* | hpux11*)
15544       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15545         case "$host_cpu" in
15546         hppa*64*|ia64*)
15547           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548           ;;
15549         *)
15550           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15551           ;;
15552         esac
15553       else
15554         case "$host_cpu" in
15555         hppa*64*|ia64*)
15556           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15557           ;;
15558         *)
15559           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15560           ;;
15561         esac
15562       fi
15563       if test "$with_gnu_ld" = no; then
15564         case "$host_cpu" in
15565         hppa*64*)
15566           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15567           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15568           hardcode_libdir_separator_GCJ=:
15569           hardcode_direct_GCJ=no
15570           hardcode_shlibpath_var_GCJ=no
15571           ;;
15572         ia64*)
15573           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15574           hardcode_direct_GCJ=no
15575           hardcode_shlibpath_var_GCJ=no
15576
15577           # hardcode_minus_L: Not really in the search PATH,
15578           # but as the default location of the library.
15579           hardcode_minus_L_GCJ=yes
15580           ;;
15581         *)
15582           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15583           hardcode_libdir_separator_GCJ=:
15584           hardcode_direct_GCJ=yes
15585           export_dynamic_flag_spec_GCJ='${wl}-E'
15586
15587           # hardcode_minus_L: Not really in the search PATH,
15588           # but as the default location of the library.
15589           hardcode_minus_L_GCJ=yes
15590           ;;
15591         esac
15592       fi
15593       ;;
15594
15595     irix5* | irix6* | nonstopux*)
15596       if test "$GCC" = yes; then
15597         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'
15598       else
15599         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'
15600         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15601       fi
15602       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15603       hardcode_libdir_separator_GCJ=:
15604       link_all_deplibs_GCJ=yes
15605       ;;
15606
15607     netbsd*)
15608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15609         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15610       else
15611         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15612       fi
15613       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15614       hardcode_direct_GCJ=yes
15615       hardcode_shlibpath_var_GCJ=no
15616       ;;
15617
15618     newsos6)
15619       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620       hardcode_direct_GCJ=yes
15621       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15622       hardcode_libdir_separator_GCJ=:
15623       hardcode_shlibpath_var_GCJ=no
15624       ;;
15625
15626     openbsd*)
15627       hardcode_direct_GCJ=yes
15628       hardcode_shlibpath_var_GCJ=no
15629       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15630         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15631         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15632         export_dynamic_flag_spec_GCJ='${wl}-E'
15633       else
15634        case $host_os in
15635          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15636            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15637            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15638            ;;
15639          *)
15640            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15642            ;;
15643        esac
15644       fi
15645       ;;
15646
15647     os2*)
15648       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15649       hardcode_minus_L_GCJ=yes
15650       allow_undefined_flag_GCJ=unsupported
15651       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'
15652       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15653       ;;
15654
15655     osf3*)
15656       if test "$GCC" = yes; then
15657         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15658         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'
15659       else
15660         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15661         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'
15662       fi
15663       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15664       hardcode_libdir_separator_GCJ=:
15665       ;;
15666
15667     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15668       if test "$GCC" = yes; then
15669         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15670         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'
15671         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15672       else
15673         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15674         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'
15675         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~
15676         $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'
15677
15678         # Both c and cxx compiler support -rpath directly
15679         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15680       fi
15681       hardcode_libdir_separator_GCJ=:
15682       ;;
15683
15684     sco3.2v5*)
15685       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686       hardcode_shlibpath_var_GCJ=no
15687       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15688       runpath_var=LD_RUN_PATH
15689       hardcode_runpath_var=yes
15690       ;;
15691
15692     solaris*)
15693       no_undefined_flag_GCJ=' -z text'
15694       if test "$GCC" = yes; then
15695         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15696         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15697           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15698       else
15699         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15701         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15702       fi
15703       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15704       hardcode_shlibpath_var_GCJ=no
15705       case $host_os in
15706       solaris2.[0-5] | solaris2.[0-5].*) ;;
15707       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15708         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15709       esac
15710       link_all_deplibs_GCJ=yes
15711       ;;
15712
15713     sunos4*)
15714       if test "x$host_vendor" = xsequent; then
15715         # Use $CC to link under sequent, because it throws in some extra .o
15716         # files that make .init and .fini sections work.
15717         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15718       else
15719         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15720       fi
15721       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15722       hardcode_direct_GCJ=yes
15723       hardcode_minus_L_GCJ=yes
15724       hardcode_shlibpath_var_GCJ=no
15725       ;;
15726
15727     sysv4)
15728       case $host_vendor in
15729         sni)
15730           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731           hardcode_direct_GCJ=yes # is this really true???
15732         ;;
15733         siemens)
15734           ## LD is ld it makes a PLAMLIB
15735           ## CC just makes a GrossModule.
15736           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15737           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15738           hardcode_direct_GCJ=no
15739         ;;
15740         motorola)
15741           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15743         ;;
15744       esac
15745       runpath_var='LD_RUN_PATH'
15746       hardcode_shlibpath_var_GCJ=no
15747       ;;
15748
15749     sysv4.3*)
15750       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751       hardcode_shlibpath_var_GCJ=no
15752       export_dynamic_flag_spec_GCJ='-Bexport'
15753       ;;
15754
15755     sysv4*MP*)
15756       if test -d /usr/nec; then
15757         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758         hardcode_shlibpath_var_GCJ=no
15759         runpath_var=LD_RUN_PATH
15760         hardcode_runpath_var=yes
15761         ld_shlibs_GCJ=yes
15762       fi
15763       ;;
15764
15765     sysv4.2uw2*)
15766       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15767       hardcode_direct_GCJ=yes
15768       hardcode_minus_L_GCJ=no
15769       hardcode_shlibpath_var_GCJ=no
15770       hardcode_runpath_var=yes
15771       runpath_var=LD_RUN_PATH
15772       ;;
15773
15774    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15775       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15776       if test "$GCC" = yes; then
15777         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778       else
15779         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780       fi
15781       runpath_var='LD_RUN_PATH'
15782       hardcode_shlibpath_var_GCJ=no
15783       ;;
15784
15785     sysv5*)
15786       no_undefined_flag_GCJ=' -z text'
15787       # $CC -shared without GNU ld will not create a library from C++
15788       # object files and a static libstdc++, better avoid it by now
15789       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15791                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15792       hardcode_libdir_flag_spec_GCJ=
15793       hardcode_shlibpath_var_GCJ=no
15794       runpath_var='LD_RUN_PATH'
15795       ;;
15796
15797     uts4*)
15798       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800       hardcode_shlibpath_var_GCJ=no
15801       ;;
15802
15803     *)
15804       ld_shlibs_GCJ=no
15805       ;;
15806     esac
15807   fi
15808
15809 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15810 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15811 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15812
15813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15814 if test "$GCC" = yes; then
15815   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15816 fi
15817
15818 #
15819 # Do we need to explicitly link libc?
15820 #
15821 case "x$archive_cmds_need_lc_GCJ" in
15822 x|xyes)
15823   # Assume -lc should be added
15824   archive_cmds_need_lc_GCJ=yes
15825
15826   if test "$enable_shared" = yes && test "$GCC" = yes; then
15827     case $archive_cmds_GCJ in
15828     *'~'*)
15829       # FIXME: we may have to deal with multi-command sequences.
15830       ;;
15831     '$CC '*)
15832       # Test whether the compiler implicitly links with -lc since on some
15833       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15834       # to ld, don't add -lc before -lgcc.
15835       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15837       $rm conftest*
15838       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15839
15840       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841   (eval $ac_compile) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } 2>conftest.err; then
15845         soname=conftest
15846         lib=conftest
15847         libobjs=conftest.$ac_objext
15848         deplibs=
15849         wl=$lt_prog_compiler_wl_GCJ
15850         compiler_flags=-v
15851         linker_flags=-v
15852         verstring=
15853         output_objdir=.
15854         libname=conftest
15855         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15856         allow_undefined_flag_GCJ=
15857         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15858   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }
15862         then
15863           archive_cmds_need_lc_GCJ=no
15864         else
15865           archive_cmds_need_lc_GCJ=yes
15866         fi
15867         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15868       else
15869         cat conftest.err 1>&5
15870       fi
15871       $rm conftest*
15872       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15873 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15874       ;;
15875     esac
15876   fi
15877   ;;
15878 esac
15879
15880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15882 hardcode_action_GCJ=
15883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15884    test -n "$runpath_var GCJ" || \
15885    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15886
15887   # We can hardcode non-existant directories.
15888   if test "$hardcode_direct_GCJ" != no &&
15889      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15890      # have to relink, otherwise we might link with an installed library
15891      # when we should be linking with a yet-to-be-installed one
15892      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15893      test "$hardcode_minus_L_GCJ" != no; then
15894     # Linking always hardcodes the temporary library directory.
15895     hardcode_action_GCJ=relink
15896   else
15897     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15898     hardcode_action_GCJ=immediate
15899   fi
15900 else
15901   # We cannot hardcode anything, or else we can only hardcode existing
15902   # directories.
15903   hardcode_action_GCJ=unsupported
15904 fi
15905 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15906 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15907
15908 if test "$hardcode_action_GCJ" = relink; then
15909   # Fast installation is not supported
15910   enable_fast_install=no
15911 elif test "$shlibpath_overrides_runpath" = yes ||
15912      test "$enable_shared" = no; then
15913   # Fast installation is not necessary
15914   enable_fast_install=needless
15915 fi
15916
15917 striplib=
15918 old_striplib=
15919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15922   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15923   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15924   echo "$as_me:$LINENO: result: yes" >&5
15925 echo "${ECHO_T}yes" >&6
15926 else
15927 # FIXME - insert some real tests, host_os isn't really good enough
15928   case $host_os in
15929    darwin*)
15930        if test -n "$STRIP" ; then
15931          striplib="$STRIP -x"
15932          echo "$as_me:$LINENO: result: yes" >&5
15933 echo "${ECHO_T}yes" >&6
15934        else
15935   echo "$as_me:$LINENO: result: no" >&5
15936 echo "${ECHO_T}no" >&6
15937 fi
15938        ;;
15939    *)
15940   echo "$as_me:$LINENO: result: no" >&5
15941 echo "${ECHO_T}no" >&6
15942     ;;
15943   esac
15944 fi
15945
15946 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15948 library_names_spec=
15949 libname_spec='lib$name'
15950 soname_spec=
15951 shrext=".so"
15952 postinstall_cmds=
15953 postuninstall_cmds=
15954 finish_cmds=
15955 finish_eval=
15956 shlibpath_var=
15957 shlibpath_overrides_runpath=unknown
15958 version_type=none
15959 dynamic_linker="$host_os ld.so"
15960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15961 if test "$GCC" = yes; then
15962   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15963   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15964     # if the path contains ";" then we assume it to be the separator
15965     # otherwise default to the standard path separator (i.e. ":") - it is
15966     # assumed that no part of a normal pathname contains ";" but that should
15967     # okay in the real world where ";" in dirpaths is itself problematic.
15968     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15969   else
15970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15971   fi
15972 else
15973   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15974 fi
15975 need_lib_prefix=unknown
15976 hardcode_into_libs=no
15977
15978 # when you set need_version to no, make sure it does not cause -set_version
15979 # flags to be left without arguments
15980 need_version=unknown
15981
15982 case $host_os in
15983 aix3*)
15984   version_type=linux
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15986   shlibpath_var=LIBPATH
15987
15988   # AIX 3 has no versioning support, so we append a major version to the name.
15989   soname_spec='${libname}${release}${shared_ext}$major'
15990   ;;
15991
15992 aix4* | aix5*)
15993   version_type=linux
15994   need_lib_prefix=no
15995   need_version=no
15996   hardcode_into_libs=yes
15997   if test "$host_cpu" = ia64; then
15998     # AIX 5 supports IA64
15999     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16000     shlibpath_var=LD_LIBRARY_PATH
16001   else
16002     # With GCC up to 2.95.x, collect2 would create an import file
16003     # for dependence libraries.  The import file would start with
16004     # the line `#! .'.  This would cause the generated library to
16005     # depend on `.', always an invalid library.  This was fixed in
16006     # development snapshots of GCC prior to 3.0.
16007     case $host_os in
16008       aix4 | aix4.[01] | aix4.[01].*)
16009       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16010            echo ' yes '
16011            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16012         :
16013       else
16014         can_build_shared=no
16015       fi
16016       ;;
16017     esac
16018     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16019     # soname into executable. Probably we can add versioning support to
16020     # collect2, so additional links can be useful in future.
16021     if test "$aix_use_runtimelinking" = yes; then
16022       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16023       # instead of lib<name>.a to let people know that these are not
16024       # typical AIX shared libraries.
16025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026     else
16027       # We preserve .a as extension for shared libraries through AIX4.2
16028       # and later when we are not doing run time linking.
16029       library_names_spec='${libname}${release}.a $libname.a'
16030       soname_spec='${libname}${release}${shared_ext}$major'
16031     fi
16032     shlibpath_var=LIBPATH
16033   fi
16034   ;;
16035
16036 amigaos*)
16037   library_names_spec='$libname.ixlibrary $libname.a'
16038   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16039   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'
16040   ;;
16041
16042 beos*)
16043   library_names_spec='${libname}${shared_ext}'
16044   dynamic_linker="$host_os ld.so"
16045   shlibpath_var=LIBRARY_PATH
16046   ;;
16047
16048 bsdi4*)
16049   version_type=linux
16050   need_version=no
16051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052   soname_spec='${libname}${release}${shared_ext}$major'
16053   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16054   shlibpath_var=LD_LIBRARY_PATH
16055   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16056   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16057   # the default ld.so.conf also contains /usr/contrib/lib and
16058   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16059   # libtool to hard-code these into programs
16060   ;;
16061
16062 cygwin* | mingw* | pw32*)
16063   version_type=windows
16064   shrext=".dll"
16065   need_version=no
16066   need_lib_prefix=no
16067
16068   case $GCC,$host_os in
16069   yes,cygwin* | yes,mingw* | yes,pw32*)
16070     library_names_spec='$libname.dll.a'
16071     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16072     postinstall_cmds='base_file=`basename \${file}`~
16073       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16074       dldir=$destdir/`dirname \$dlpath`~
16075       test -d \$dldir || mkdir -p \$dldir~
16076       $install_prog $dir/$dlname \$dldir/$dlname'
16077     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16078       dlpath=$dir/\$dldll~
16079        $rm \$dlpath'
16080     shlibpath_overrides_runpath=yes
16081
16082     case $host_os in
16083     cygwin*)
16084       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16085       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16086       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16087       ;;
16088     mingw*)
16089       # MinGW DLLs use traditional 'lib' prefix
16090       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16091       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16092       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16093         # It is most probably a Windows format PATH printed by
16094         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16095         # path with ; separators, and with drive letters. We can handle the
16096         # drive letters (cygwin fileutils understands them), so leave them,
16097         # especially as we might pass files found there to a mingw objdump,
16098         # which wouldn't understand a cygwinified path. Ahh.
16099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100       else
16101         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16102       fi
16103       ;;
16104     pw32*)
16105       # pw32 DLLs use 'pw' prefix rather than 'lib'
16106       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16107       ;;
16108     esac
16109     ;;
16110
16111   *)
16112     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16113     ;;
16114   esac
16115   dynamic_linker='Win32 ld.exe'
16116   # FIXME: first we should search . and the directory the executable is in
16117   shlibpath_var=PATH
16118   ;;
16119
16120 darwin* | rhapsody*)
16121   dynamic_linker="$host_os dyld"
16122   version_type=darwin
16123   need_lib_prefix=no
16124   need_version=no
16125   # FIXME: Relying on posixy $() will cause problems for
16126   #        cross-compilation, but unfortunately the echo tests do not
16127   #        yet detect zsh echo's removal of \ escapes.
16128   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16129   soname_spec='${libname}${release}${major}$shared_ext'
16130   shlibpath_overrides_runpath=yes
16131   shlibpath_var=DYLD_LIBRARY_PATH
16132   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16133   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16134   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16135   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"`
16136   fi
16137   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16138   ;;
16139
16140 dgux*)
16141   version_type=linux
16142   need_lib_prefix=no
16143   need_version=no
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16145   soname_spec='${libname}${release}${shared_ext}$major'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   ;;
16148
16149 freebsd1*)
16150   dynamic_linker=no
16151   ;;
16152
16153 freebsd*)
16154   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16155   version_type=freebsd-$objformat
16156   case $version_type in
16157     freebsd-elf*)
16158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16159       need_version=no
16160       need_lib_prefix=no
16161       ;;
16162     freebsd-*)
16163       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16164       need_version=yes
16165       ;;
16166   esac
16167   shlibpath_var=LD_LIBRARY_PATH
16168   case $host_os in
16169   freebsd2*)
16170     shlibpath_overrides_runpath=yes
16171     ;;
16172   freebsd3.01* | freebsdelf3.01*)
16173     shlibpath_overrides_runpath=yes
16174     hardcode_into_libs=yes
16175     ;;
16176   *) # from 3.2 on
16177     shlibpath_overrides_runpath=no
16178     hardcode_into_libs=yes
16179     ;;
16180   esac
16181   ;;
16182
16183 gnu*)
16184   version_type=linux
16185   need_lib_prefix=no
16186   need_version=no
16187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16188   soname_spec='${libname}${release}${shared_ext}$major'
16189   shlibpath_var=LD_LIBRARY_PATH
16190   hardcode_into_libs=yes
16191   ;;
16192
16193 hpux9* | hpux10* | hpux11*)
16194   # Give a soname corresponding to the major version so that dld.sl refuses to
16195   # link against other versions.
16196   version_type=sunos
16197   need_lib_prefix=no
16198   need_version=no
16199   case "$host_cpu" in
16200   ia64*)
16201     shrext='.so'
16202     hardcode_into_libs=yes
16203     dynamic_linker="$host_os dld.so"
16204     shlibpath_var=LD_LIBRARY_PATH
16205     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207     soname_spec='${libname}${release}${shared_ext}$major'
16208     if test "X$HPUX_IA64_MODE" = X32; then
16209       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16210     else
16211       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16212     fi
16213     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16214     ;;
16215    hppa*64*)
16216      shrext='.sl'
16217      hardcode_into_libs=yes
16218      dynamic_linker="$host_os dld.sl"
16219      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16220      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16221      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222      soname_spec='${libname}${release}${shared_ext}$major'
16223      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16224      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16225      ;;
16226    *)
16227     shrext='.sl'
16228     dynamic_linker="$host_os dld.sl"
16229     shlibpath_var=SHLIB_PATH
16230     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232     soname_spec='${libname}${release}${shared_ext}$major'
16233     ;;
16234   esac
16235   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16236   postinstall_cmds='chmod 555 $lib'
16237   ;;
16238
16239 irix5* | irix6* | nonstopux*)
16240   case $host_os in
16241     nonstopux*) version_type=nonstopux ;;
16242     *)
16243         if test "$lt_cv_prog_gnu_ld" = yes; then
16244                 version_type=linux
16245         else
16246                 version_type=irix
16247         fi ;;
16248   esac
16249   need_lib_prefix=no
16250   need_version=no
16251   soname_spec='${libname}${release}${shared_ext}$major'
16252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16253   case $host_os in
16254   irix5* | nonstopux*)
16255     libsuff= shlibsuff=
16256     ;;
16257   *)
16258     case $LD in # libtool.m4 will add one of these switches to LD
16259     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16260       libsuff= shlibsuff= libmagic=32-bit;;
16261     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16262       libsuff=32 shlibsuff=N32 libmagic=N32;;
16263     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16264       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16265     *) libsuff= shlibsuff= libmagic=never-match;;
16266     esac
16267     ;;
16268   esac
16269   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16270   shlibpath_overrides_runpath=no
16271   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16272   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16273   hardcode_into_libs=yes
16274   ;;
16275
16276 # No shared lib support for Linux oldld, aout, or coff.
16277 linux*oldld* | linux*aout* | linux*coff*)
16278   dynamic_linker=no
16279   ;;
16280
16281 # This must be Linux ELF.
16282 linux*)
16283   version_type=linux
16284   need_lib_prefix=no
16285   need_version=no
16286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16289   shlibpath_var=LD_LIBRARY_PATH
16290   shlibpath_overrides_runpath=no
16291   # This implies no fast_install, which is unacceptable.
16292   # Some rework will be needed to allow for fast_install
16293   # before this can be enabled.
16294   hardcode_into_libs=yes
16295
16296   # We used to test for /lib/ld.so.1 and disable shared libraries on
16297   # powerpc, because MkLinux only supported shared libraries with the
16298   # GNU dynamic linker.  Since this was broken with cross compilers,
16299   # most powerpc-linux boxes support dynamic linking these days and
16300   # people can always --disable-shared, the test was removed, and we
16301   # assume the GNU/Linux dynamic linker is in use.
16302   dynamic_linker='GNU/Linux ld.so'
16303   ;;
16304
16305 netbsd*)
16306   version_type=sunos
16307   need_lib_prefix=no
16308   need_version=no
16309   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16311     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16312     dynamic_linker='NetBSD (a.out) ld.so'
16313   else
16314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16315     soname_spec='${libname}${release}${shared_ext}$major'
16316     dynamic_linker='NetBSD ld.elf_so'
16317   fi
16318   shlibpath_var=LD_LIBRARY_PATH
16319   shlibpath_overrides_runpath=yes
16320   hardcode_into_libs=yes
16321   ;;
16322
16323 newsos6)
16324   version_type=linux
16325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326   shlibpath_var=LD_LIBRARY_PATH
16327   shlibpath_overrides_runpath=yes
16328   ;;
16329
16330 nto-qnx)
16331   version_type=linux
16332   need_lib_prefix=no
16333   need_version=no
16334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335   soname_spec='${libname}${release}${shared_ext}$major'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   shlibpath_overrides_runpath=yes
16338   ;;
16339
16340 openbsd*)
16341   version_type=sunos
16342   need_lib_prefix=no
16343   need_version=no
16344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16346   shlibpath_var=LD_LIBRARY_PATH
16347   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348     case $host_os in
16349       openbsd2.[89] | openbsd2.[89].*)
16350         shlibpath_overrides_runpath=no
16351         ;;
16352       *)
16353         shlibpath_overrides_runpath=yes
16354         ;;
16355       esac
16356   else
16357     shlibpath_overrides_runpath=yes
16358   fi
16359   ;;
16360
16361 os2*)
16362   libname_spec='$name'
16363   shrext=".dll"
16364   need_lib_prefix=no
16365   library_names_spec='$libname${shared_ext} $libname.a'
16366   dynamic_linker='OS/2 ld.exe'
16367   shlibpath_var=LIBPATH
16368   ;;
16369
16370 osf3* | osf4* | osf5*)
16371   version_type=osf
16372   need_lib_prefix=no
16373   need_version=no
16374   soname_spec='${libname}${release}${shared_ext}$major'
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376   shlibpath_var=LD_LIBRARY_PATH
16377   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16378   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16379   ;;
16380
16381 sco3.2v5*)
16382   version_type=osf
16383   soname_spec='${libname}${release}${shared_ext}$major'
16384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385   shlibpath_var=LD_LIBRARY_PATH
16386   ;;
16387
16388 solaris*)
16389   version_type=linux
16390   need_lib_prefix=no
16391   need_version=no
16392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393   soname_spec='${libname}${release}${shared_ext}$major'
16394   shlibpath_var=LD_LIBRARY_PATH
16395   shlibpath_overrides_runpath=yes
16396   hardcode_into_libs=yes
16397   # ldd complains unless libraries are executable
16398   postinstall_cmds='chmod +x $lib'
16399   ;;
16400
16401 sunos4*)
16402   version_type=sunos
16403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16405   shlibpath_var=LD_LIBRARY_PATH
16406   shlibpath_overrides_runpath=yes
16407   if test "$with_gnu_ld" = yes; then
16408     need_lib_prefix=no
16409   fi
16410   need_version=yes
16411   ;;
16412
16413 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16414   version_type=linux
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416   soname_spec='${libname}${release}${shared_ext}$major'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   case $host_vendor in
16419     sni)
16420       shlibpath_overrides_runpath=no
16421       need_lib_prefix=no
16422       export_dynamic_flag_spec='${wl}-Blargedynsym'
16423       runpath_var=LD_RUN_PATH
16424       ;;
16425     siemens)
16426       need_lib_prefix=no
16427       ;;
16428     motorola)
16429       need_lib_prefix=no
16430       need_version=no
16431       shlibpath_overrides_runpath=no
16432       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16433       ;;
16434   esac
16435   ;;
16436
16437 sysv4*MP*)
16438   if test -d /usr/nec ;then
16439     version_type=linux
16440     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16441     soname_spec='$libname${shared_ext}.$major'
16442     shlibpath_var=LD_LIBRARY_PATH
16443   fi
16444   ;;
16445
16446 uts4*)
16447   version_type=linux
16448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449   soname_spec='${libname}${release}${shared_ext}$major'
16450   shlibpath_var=LD_LIBRARY_PATH
16451   ;;
16452
16453 *)
16454   dynamic_linker=no
16455   ;;
16456 esac
16457 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16458 echo "${ECHO_T}$dynamic_linker" >&6
16459 test "$dynamic_linker" = no && can_build_shared=no
16460
16461 if test "x$enable_dlopen" != xyes; then
16462   enable_dlopen=unknown
16463   enable_dlopen_self=unknown
16464   enable_dlopen_self_static=unknown
16465 else
16466   lt_cv_dlopen=no
16467   lt_cv_dlopen_libs=
16468
16469   case $host_os in
16470   beos*)
16471     lt_cv_dlopen="load_add_on"
16472     lt_cv_dlopen_libs=
16473     lt_cv_dlopen_self=yes
16474     ;;
16475
16476   mingw* | pw32*)
16477     lt_cv_dlopen="LoadLibrary"
16478     lt_cv_dlopen_libs=
16479    ;;
16480
16481   cygwin*)
16482     lt_cv_dlopen="dlopen"
16483     lt_cv_dlopen_libs=
16484    ;;
16485
16486   darwin*)
16487   # if libdl is installed we need to link against it
16488     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16489 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493   ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-ldl  $LIBS"
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502
16503 /* Override any gcc2 internal prototype to avoid an error.  */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 /* We use char because int might match the return type of a gcc2
16508    builtin and then its argument prototype would still apply.  */
16509 char dlopen ();
16510 int
16511 main ()
16512 {
16513 dlopen ();
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520   (eval $ac_link) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_cv_lib_dl_dlopen=yes
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_cv_lib_dl_dlopen=no
16536 fi
16537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16539 fi
16540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16542 if test $ac_cv_lib_dl_dlopen = yes; then
16543   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16544 else
16545
16546     lt_cv_dlopen="dyld"
16547     lt_cv_dlopen_libs=
16548     lt_cv_dlopen_self=yes
16549
16550 fi
16551
16552    ;;
16553
16554   *)
16555     echo "$as_me:$LINENO: checking for shl_load" >&5
16556 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16557 if test "${ac_cv_func_shl_load+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   cat >conftest.$ac_ext <<_ACEOF
16561 #line $LINENO "configure"
16562 /* confdefs.h.  */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h.  */
16567 /* System header to define __stub macros and hopefully few prototypes,
16568     which can conflict with char shl_load (); below.
16569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16570     <limits.h> exists even on freestanding compilers.  */
16571 #ifdef __STDC__
16572 # include <limits.h>
16573 #else
16574 # include <assert.h>
16575 #endif
16576 /* Override any gcc2 internal prototype to avoid an error.  */
16577 #ifdef __cplusplus
16578 extern "C"
16579 {
16580 #endif
16581 /* We use char because int might match the return type of a gcc2
16582    builtin and then its argument prototype would still apply.  */
16583 char shl_load ();
16584 /* The GNU C library defines this for functions which it implements
16585     to always fail with ENOSYS.  Some functions are actually named
16586     something starting with __ and the normal name is an alias.  */
16587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16588 choke me
16589 #else
16590 char (*f) () = shl_load;
16591 #endif
16592 #ifdef __cplusplus
16593 }
16594 #endif
16595
16596 int
16597 main ()
16598 {
16599 return f != shl_load;
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606   (eval $ac_link) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -s conftest$ac_exeext'
16611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612   (eval $ac_try) 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; }; then
16616   ac_cv_func_shl_load=yes
16617 else
16618   echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 ac_cv_func_shl_load=no
16622 fi
16623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16624 fi
16625 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16626 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16627 if test $ac_cv_func_shl_load = yes; then
16628   lt_cv_dlopen="shl_load"
16629 else
16630   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16631 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16632 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   ac_check_lib_save_LIBS=$LIBS
16636 LIBS="-ldld  $LIBS"
16637 cat >conftest.$ac_ext <<_ACEOF
16638 #line $LINENO "configure"
16639 /* confdefs.h.  */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h.  */
16644
16645 /* Override any gcc2 internal prototype to avoid an error.  */
16646 #ifdef __cplusplus
16647 extern "C"
16648 #endif
16649 /* We use char because int might match the return type of a gcc2
16650    builtin and then its argument prototype would still apply.  */
16651 char shl_load ();
16652 int
16653 main ()
16654 {
16655 shl_load ();
16656   ;
16657   return 0;
16658 }
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662   (eval $ac_link) 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); } &&
16666          { ac_try='test -s conftest$ac_exeext'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; }; then
16672   ac_cv_lib_dld_shl_load=yes
16673 else
16674   echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ac_cv_lib_dld_shl_load=no
16678 fi
16679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16683 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16684 if test $ac_cv_lib_dld_shl_load = yes; then
16685   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16686 else
16687   echo "$as_me:$LINENO: checking for dlopen" >&5
16688 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16689 if test "${ac_cv_func_dlopen+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   cat >conftest.$ac_ext <<_ACEOF
16693 #line $LINENO "configure"
16694 /* confdefs.h.  */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h.  */
16699 /* System header to define __stub macros and hopefully few prototypes,
16700     which can conflict with char dlopen (); below.
16701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16702     <limits.h> exists even on freestanding compilers.  */
16703 #ifdef __STDC__
16704 # include <limits.h>
16705 #else
16706 # include <assert.h>
16707 #endif
16708 /* Override any gcc2 internal prototype to avoid an error.  */
16709 #ifdef __cplusplus
16710 extern "C"
16711 {
16712 #endif
16713 /* We use char because int might match the return type of a gcc2
16714    builtin and then its argument prototype would still apply.  */
16715 char dlopen ();
16716 /* The GNU C library defines this for functions which it implements
16717     to always fail with ENOSYS.  Some functions are actually named
16718     something starting with __ and the normal name is an alias.  */
16719 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16720 choke me
16721 #else
16722 char (*f) () = dlopen;
16723 #endif
16724 #ifdef __cplusplus
16725 }
16726 #endif
16727
16728 int
16729 main ()
16730 {
16731 return f != dlopen;
16732   ;
16733   return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738   (eval $ac_link) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); } &&
16742          { ac_try='test -s conftest$ac_exeext'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; }; then
16748   ac_cv_func_dlopen=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753 ac_cv_func_dlopen=no
16754 fi
16755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756 fi
16757 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16758 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16759 if test $ac_cv_func_dlopen = yes; then
16760   lt_cv_dlopen="dlopen"
16761 else
16762   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16763 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16764 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   ac_check_lib_save_LIBS=$LIBS
16768 LIBS="-ldl  $LIBS"
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776
16777 /* Override any gcc2 internal prototype to avoid an error.  */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 /* We use char because int might match the return type of a gcc2
16782    builtin and then its argument prototype would still apply.  */
16783 char dlopen ();
16784 int
16785 main ()
16786 {
16787 dlopen ();
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794   (eval $ac_link) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -s conftest$ac_exeext'
16799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800   (eval $ac_try) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; }; then
16804   ac_cv_lib_dl_dlopen=yes
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_cv_lib_dl_dlopen=no
16810 fi
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16813 fi
16814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16816 if test $ac_cv_lib_dl_dlopen = yes; then
16817   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16818 else
16819   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   ac_check_lib_save_LIBS=$LIBS
16825 LIBS="-lsvld  $LIBS"
16826 cat >conftest.$ac_ext <<_ACEOF
16827 #line $LINENO "configure"
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833
16834 /* Override any gcc2 internal prototype to avoid an error.  */
16835 #ifdef __cplusplus
16836 extern "C"
16837 #endif
16838 /* We use char because int might match the return type of a gcc2
16839    builtin and then its argument prototype would still apply.  */
16840 char dlopen ();
16841 int
16842 main ()
16843 {
16844 dlopen ();
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851   (eval $ac_link) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } &&
16855          { ac_try='test -s conftest$ac_exeext'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_cv_lib_svld_dlopen=yes
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ac_cv_lib_svld_dlopen=no
16867 fi
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16870 fi
16871 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16872 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16873 if test $ac_cv_lib_svld_dlopen = yes; then
16874   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16875 else
16876   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16877 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16878 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16879   echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881   ac_check_lib_save_LIBS=$LIBS
16882 LIBS="-ldld  $LIBS"
16883 cat >conftest.$ac_ext <<_ACEOF
16884 #line $LINENO "configure"
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890
16891 /* Override any gcc2 internal prototype to avoid an error.  */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 /* We use char because int might match the return type of a gcc2
16896    builtin and then its argument prototype would still apply.  */
16897 char dld_link ();
16898 int
16899 main ()
16900 {
16901 dld_link ();
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908   (eval $ac_link) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } &&
16912          { ac_try='test -s conftest$ac_exeext'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918   ac_cv_lib_dld_dld_link=yes
16919 else
16920   echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16922
16923 ac_cv_lib_dld_dld_link=no
16924 fi
16925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16926 LIBS=$ac_check_lib_save_LIBS
16927 fi
16928 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16929 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16930 if test $ac_cv_lib_dld_dld_link = yes; then
16931   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16932 fi
16933
16934
16935 fi
16936
16937
16938 fi
16939
16940
16941 fi
16942
16943
16944 fi
16945
16946
16947 fi
16948
16949     ;;
16950   esac
16951
16952   if test "x$lt_cv_dlopen" != xno; then
16953     enable_dlopen=yes
16954   else
16955     enable_dlopen=no
16956   fi
16957
16958   case $lt_cv_dlopen in
16959   dlopen)
16960     save_CPPFLAGS="$CPPFLAGS"
16961     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16962
16963     save_LDFLAGS="$LDFLAGS"
16964     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16965
16966     save_LIBS="$LIBS"
16967     LIBS="$lt_cv_dlopen_libs $LIBS"
16968
16969     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16970 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16971 if test "${lt_cv_dlopen_self+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974           if test "$cross_compiling" = yes; then :
16975   lt_cv_dlopen_self=cross
16976 else
16977   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16978   lt_status=$lt_dlunknown
16979   cat > conftest.$ac_ext <<EOF
16980 #line 16980 "configure"
16981 #include "confdefs.h"
16982
16983 #if HAVE_DLFCN_H
16984 #include <dlfcn.h>
16985 #endif
16986
16987 #include <stdio.h>
16988
16989 #ifdef RTLD_GLOBAL
16990 #  define LT_DLGLOBAL           RTLD_GLOBAL
16991 #else
16992 #  ifdef DL_GLOBAL
16993 #    define LT_DLGLOBAL         DL_GLOBAL
16994 #  else
16995 #    define LT_DLGLOBAL         0
16996 #  endif
16997 #endif
16998
16999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17000    find out it does not work in some platform. */
17001 #ifndef LT_DLLAZY_OR_NOW
17002 #  ifdef RTLD_LAZY
17003 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17004 #  else
17005 #    ifdef DL_LAZY
17006 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17007 #    else
17008 #      ifdef RTLD_NOW
17009 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17010 #      else
17011 #        ifdef DL_NOW
17012 #          define LT_DLLAZY_OR_NOW      DL_NOW
17013 #        else
17014 #          define LT_DLLAZY_OR_NOW      0
17015 #        endif
17016 #      endif
17017 #    endif
17018 #  endif
17019 #endif
17020
17021 #ifdef __cplusplus
17022 extern "C" void exit (int);
17023 #endif
17024
17025 void fnord() { int i=42;}
17026 int main ()
17027 {
17028   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17029   int status = $lt_dlunknown;
17030
17031   if (self)
17032     {
17033       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17034       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17035       /* dlclose (self); */
17036     }
17037
17038     exit (status);
17039 }
17040 EOF
17041   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042   (eval $ac_link) 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17046     (./conftest; exit; ) 2>/dev/null
17047     lt_status=$?
17048     case x$lt_status in
17049       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17050       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17051       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17052     esac
17053   else :
17054     # compilation failed
17055     lt_cv_dlopen_self=no
17056   fi
17057 fi
17058 rm -fr conftest*
17059
17060
17061 fi
17062 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17063 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17064
17065     if test "x$lt_cv_dlopen_self" = xyes; then
17066       LDFLAGS="$LDFLAGS $link_static_flag"
17067       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17068 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17069 if test "${lt_cv_dlopen_self_static+set}" = set; then
17070   echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072           if test "$cross_compiling" = yes; then :
17073   lt_cv_dlopen_self_static=cross
17074 else
17075   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17076   lt_status=$lt_dlunknown
17077   cat > conftest.$ac_ext <<EOF
17078 #line 17078 "configure"
17079 #include "confdefs.h"
17080
17081 #if HAVE_DLFCN_H
17082 #include <dlfcn.h>
17083 #endif
17084
17085 #include <stdio.h>
17086
17087 #ifdef RTLD_GLOBAL
17088 #  define LT_DLGLOBAL           RTLD_GLOBAL
17089 #else
17090 #  ifdef DL_GLOBAL
17091 #    define LT_DLGLOBAL         DL_GLOBAL
17092 #  else
17093 #    define LT_DLGLOBAL         0
17094 #  endif
17095 #endif
17096
17097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17098    find out it does not work in some platform. */
17099 #ifndef LT_DLLAZY_OR_NOW
17100 #  ifdef RTLD_LAZY
17101 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17102 #  else
17103 #    ifdef DL_LAZY
17104 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17105 #    else
17106 #      ifdef RTLD_NOW
17107 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17108 #      else
17109 #        ifdef DL_NOW
17110 #          define LT_DLLAZY_OR_NOW      DL_NOW
17111 #        else
17112 #          define LT_DLLAZY_OR_NOW      0
17113 #        endif
17114 #      endif
17115 #    endif
17116 #  endif
17117 #endif
17118
17119 #ifdef __cplusplus
17120 extern "C" void exit (int);
17121 #endif
17122
17123 void fnord() { int i=42;}
17124 int main ()
17125 {
17126   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17127   int status = $lt_dlunknown;
17128
17129   if (self)
17130     {
17131       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17132       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17133       /* dlclose (self); */
17134     }
17135
17136     exit (status);
17137 }
17138 EOF
17139   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140   (eval $ac_link) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17144     (./conftest; exit; ) 2>/dev/null
17145     lt_status=$?
17146     case x$lt_status in
17147       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17148       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17149       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17150     esac
17151   else :
17152     # compilation failed
17153     lt_cv_dlopen_self_static=no
17154   fi
17155 fi
17156 rm -fr conftest*
17157
17158
17159 fi
17160 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17161 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17162     fi
17163
17164     CPPFLAGS="$save_CPPFLAGS"
17165     LDFLAGS="$save_LDFLAGS"
17166     LIBS="$save_LIBS"
17167     ;;
17168   esac
17169
17170   case $lt_cv_dlopen_self in
17171   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17172   *) enable_dlopen_self=unknown ;;
17173   esac
17174
17175   case $lt_cv_dlopen_self_static in
17176   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17177   *) enable_dlopen_self_static=unknown ;;
17178   esac
17179 fi
17180
17181
17182 # The else clause should only fire when bootstrapping the
17183 # libtool distribution, otherwise you forgot to ship ltmain.sh
17184 # with your package, and you will get complaints that there are
17185 # no rules to generate ltmain.sh.
17186 if test -f "$ltmain"; then
17187   # See if we are running on zsh, and set the options which allow our commands through
17188   # without removal of \ escapes.
17189   if test -n "${ZSH_VERSION+set}" ; then
17190     setopt NO_GLOB_SUBST
17191   fi
17192   # Now quote all the things that may contain metacharacters while being
17193   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17194   # variables and quote the copies for generation of the libtool script.
17195   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17196     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17197     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17198     deplibs_check_method reload_flag reload_cmds need_locks \
17199     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17200     lt_cv_sys_global_symbol_to_c_name_address \
17201     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17202     old_postinstall_cmds old_postuninstall_cmds \
17203     compiler_GCJ \
17204     CC_GCJ \
17205     LD_GCJ \
17206     lt_prog_compiler_wl_GCJ \
17207     lt_prog_compiler_pic_GCJ \
17208     lt_prog_compiler_static_GCJ \
17209     lt_prog_compiler_no_builtin_flag_GCJ \
17210     export_dynamic_flag_spec_GCJ \
17211     thread_safe_flag_spec_GCJ \
17212     whole_archive_flag_spec_GCJ \
17213     enable_shared_with_static_runtimes_GCJ \
17214     old_archive_cmds_GCJ \
17215     old_archive_from_new_cmds_GCJ \
17216     predep_objects_GCJ \
17217     postdep_objects_GCJ \
17218     predeps_GCJ \
17219     postdeps_GCJ \
17220     compiler_lib_search_path_GCJ \
17221     archive_cmds_GCJ \
17222     archive_expsym_cmds_GCJ \
17223     postinstall_cmds_GCJ \
17224     postuninstall_cmds_GCJ \
17225     old_archive_from_expsyms_cmds_GCJ \
17226     allow_undefined_flag_GCJ \
17227     no_undefined_flag_GCJ \
17228     export_symbols_cmds_GCJ \
17229     hardcode_libdir_flag_spec_GCJ \
17230     hardcode_libdir_flag_spec_ld_GCJ \
17231     hardcode_libdir_separator_GCJ \
17232     hardcode_automatic_GCJ \
17233     module_cmds_GCJ \
17234     module_expsym_cmds_GCJ \
17235     lt_cv_prog_compiler_c_o_GCJ \
17236     exclude_expsyms_GCJ \
17237     include_expsyms_GCJ; do
17238
17239     case $var in
17240     old_archive_cmds_GCJ | \
17241     old_archive_from_new_cmds_GCJ | \
17242     archive_cmds_GCJ | \
17243     archive_expsym_cmds_GCJ | \
17244     module_cmds_GCJ | \
17245     module_expsym_cmds_GCJ | \
17246     old_archive_from_expsyms_cmds_GCJ | \
17247     export_symbols_cmds_GCJ | \
17248     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17249     postinstall_cmds | postuninstall_cmds | \
17250     old_postinstall_cmds | old_postuninstall_cmds | \
17251     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17252       # Double-quote double-evaled strings.
17253       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17254       ;;
17255     *)
17256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17257       ;;
17258     esac
17259   done
17260
17261   case $lt_echo in
17262   *'\$0 --fallback-echo"')
17263     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17264     ;;
17265   esac
17266
17267 cfgfile="$ofile"
17268
17269   cat <<__EOF__ >> "$cfgfile"
17270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17271
17272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17273
17274 # Shell to use when invoking shell scripts.
17275 SHELL=$lt_SHELL
17276
17277 # Whether or not to build shared libraries.
17278 build_libtool_libs=$enable_shared
17279
17280 # Whether or not to build static libraries.
17281 build_old_libs=$enable_static
17282
17283 # Whether or not to add -lc for building shared libraries.
17284 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17285
17286 # Whether or not to disallow shared libs when runtime libs are static
17287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17288
17289 # Whether or not to optimize for fast installation.
17290 fast_install=$enable_fast_install
17291
17292 # The host system.
17293 host_alias=$host_alias
17294 host=$host
17295
17296 # An echo program that does not interpret backslashes.
17297 echo=$lt_echo
17298
17299 # The archiver.
17300 AR=$lt_AR
17301 AR_FLAGS=$lt_AR_FLAGS
17302
17303 # A C compiler.
17304 LTCC=$lt_LTCC
17305
17306 # A language-specific compiler.
17307 CC=$lt_compiler_GCJ
17308
17309 # Is the compiler the GNU C compiler?
17310 with_gcc=$GCC_GCJ
17311
17312 # An ERE matcher.
17313 EGREP=$lt_EGREP
17314
17315 # The linker used to build libraries.
17316 LD=$lt_LD_GCJ
17317
17318 # Whether we need hard or soft links.
17319 LN_S=$lt_LN_S
17320
17321 # A BSD-compatible nm program.
17322 NM=$lt_NM
17323
17324 # A symbol stripping program
17325 STRIP=$STRIP
17326
17327 # Used to examine libraries when file_magic_cmd begins "file"
17328 MAGIC_CMD=$MAGIC_CMD
17329
17330 # Used on cygwin: DLL creation program.
17331 DLLTOOL="$DLLTOOL"
17332
17333 # Used on cygwin: object dumper.
17334 OBJDUMP="$OBJDUMP"
17335
17336 # Used on cygwin: assembler.
17337 AS="$AS"
17338
17339 # The name of the directory that contains temporary libtool files.
17340 objdir=$objdir
17341
17342 # How to create reloadable object files.
17343 reload_flag=$lt_reload_flag
17344 reload_cmds=$lt_reload_cmds
17345
17346 # How to pass a linker flag through the compiler.
17347 wl=$lt_lt_prog_compiler_wl_GCJ
17348
17349 # Object file suffix (normally "o").
17350 objext="$ac_objext"
17351
17352 # Old archive suffix (normally "a").
17353 libext="$libext"
17354
17355 # Shared library suffix (normally ".so").
17356 shrext='$shrext'
17357
17358 # Executable file suffix (normally "").
17359 exeext="$exeext"
17360
17361 # Additional compiler flags for building library objects.
17362 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17363 pic_mode=$pic_mode
17364
17365 # What is the maximum length of a command?
17366 max_cmd_len=$lt_cv_sys_max_cmd_len
17367
17368 # Does compiler simultaneously support -c and -o options?
17369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17370
17371 # Must we lock files when doing compilation ?
17372 need_locks=$lt_need_locks
17373
17374 # Do we need the lib prefix for modules?
17375 need_lib_prefix=$need_lib_prefix
17376
17377 # Do we need a version for libraries?
17378 need_version=$need_version
17379
17380 # Whether dlopen is supported.
17381 dlopen_support=$enable_dlopen
17382
17383 # Whether dlopen of programs is supported.
17384 dlopen_self=$enable_dlopen_self
17385
17386 # Whether dlopen of statically linked programs is supported.
17387 dlopen_self_static=$enable_dlopen_self_static
17388
17389 # Compiler flag to prevent dynamic linking.
17390 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17391
17392 # Compiler flag to turn off builtin functions.
17393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17394
17395 # Compiler flag to allow reflexive dlopens.
17396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17397
17398 # Compiler flag to generate shared objects directly from archives.
17399 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17400
17401 # Compiler flag to generate thread-safe objects.
17402 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17403
17404 # Library versioning type.
17405 version_type=$version_type
17406
17407 # Format of library name prefix.
17408 libname_spec=$lt_libname_spec
17409
17410 # List of archive names.  First name is the real one, the rest are links.
17411 # The last name is the one that the linker finds with -lNAME.
17412 library_names_spec=$lt_library_names_spec
17413
17414 # The coded name of the library, if different from the real name.
17415 soname_spec=$lt_soname_spec
17416
17417 # Commands used to build and install an old-style archive.
17418 RANLIB=$lt_RANLIB
17419 old_archive_cmds=$lt_old_archive_cmds_GCJ
17420 old_postinstall_cmds=$lt_old_postinstall_cmds
17421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17422
17423 # Create an old-style archive from a shared archive.
17424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17425
17426 # Create a temporary old-style archive to link instead of a shared archive.
17427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17428
17429 # Commands used to build and install a shared archive.
17430 archive_cmds=$lt_archive_cmds_GCJ
17431 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17432 postinstall_cmds=$lt_postinstall_cmds
17433 postuninstall_cmds=$lt_postuninstall_cmds
17434
17435 # Commands used to build a loadable module (assumed same as above if empty)
17436 module_cmds=$lt_module_cmds_GCJ
17437 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17438
17439 # Commands to strip libraries.
17440 old_striplib=$lt_old_striplib
17441 striplib=$lt_striplib
17442
17443 # Dependencies to place before the objects being linked to create a
17444 # shared library.
17445 predep_objects=$lt_predep_objects_GCJ
17446
17447 # Dependencies to place after the objects being linked to create a
17448 # shared library.
17449 postdep_objects=$lt_postdep_objects_GCJ
17450
17451 # Dependencies to place before the objects being linked to create a
17452 # shared library.
17453 predeps=$lt_predeps_GCJ
17454
17455 # Dependencies to place after the objects being linked to create a
17456 # shared library.
17457 postdeps=$lt_postdeps_GCJ
17458
17459 # The library search path used internally by the compiler when linking
17460 # a shared library.
17461 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17462
17463 # Method to check whether dependent libraries are shared objects.
17464 deplibs_check_method=$lt_deplibs_check_method
17465
17466 # Command to use when deplibs_check_method == file_magic.
17467 file_magic_cmd=$lt_file_magic_cmd
17468
17469 # Flag that allows shared libraries with undefined symbols to be built.
17470 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17471
17472 # Flag that forces no undefined symbols.
17473 no_undefined_flag=$lt_no_undefined_flag_GCJ
17474
17475 # Commands used to finish a libtool library installation in a directory.
17476 finish_cmds=$lt_finish_cmds
17477
17478 # Same as above, but a single script fragment to be evaled but not shown.
17479 finish_eval=$lt_finish_eval
17480
17481 # Take the output of nm and produce a listing of raw symbols and C names.
17482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17483
17484 # Transform the output of nm in a proper C declaration
17485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17486
17487 # Transform the output of nm in a C name address pair
17488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17489
17490 # This is the shared library runtime path variable.
17491 runpath_var=$runpath_var
17492
17493 # This is the shared library path variable.
17494 shlibpath_var=$shlibpath_var
17495
17496 # Is shlibpath searched before the hard-coded library search path?
17497 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17498
17499 # How to hardcode a shared library path into an executable.
17500 hardcode_action=$hardcode_action_GCJ
17501
17502 # Whether we should hardcode library paths into libraries.
17503 hardcode_into_libs=$hardcode_into_libs
17504
17505 # Flag to hardcode \$libdir into a binary during linking.
17506 # This must work even if \$libdir does not exist.
17507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17508
17509 # If ld is used when linking, flag to hardcode \$libdir into
17510 # a binary during linking. This must work even if \$libdir does
17511 # not exist.
17512 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17513
17514 # Whether we need a single -rpath flag with a separated argument.
17515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17516
17517 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17518 # resulting binary.
17519 hardcode_direct=$hardcode_direct_GCJ
17520
17521 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17522 # resulting binary.
17523 hardcode_minus_L=$hardcode_minus_L_GCJ
17524
17525 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17526 # the resulting binary.
17527 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17528
17529 # Set to yes if building a shared library automatically hardcodes DIR into the library
17530 # and all subsequent libraries and executables linked against it.
17531 hardcode_automatic=$hardcode_automatic_GCJ
17532
17533 # Variables whose values should be saved in libtool wrapper scripts and
17534 # restored at relink time.
17535 variables_saved_for_relink="$variables_saved_for_relink"
17536
17537 # Whether libtool must link a program against all its dependency libraries.
17538 link_all_deplibs=$link_all_deplibs_GCJ
17539
17540 # Compile-time system search path for libraries
17541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17542
17543 # Run-time system search path for libraries
17544 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17545
17546 # Fix the shell variable \$srcfile for the compiler.
17547 fix_srcfile_path="$fix_srcfile_path_GCJ"
17548
17549 # Set to yes if exported symbols are required.
17550 always_export_symbols=$always_export_symbols_GCJ
17551
17552 # The commands to list exported symbols.
17553 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17554
17555 # The commands to extract the exported symbol list from a shared archive.
17556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17557
17558 # Symbols that should not be listed in the preloaded symbols.
17559 exclude_expsyms=$lt_exclude_expsyms_GCJ
17560
17561 # Symbols that must always be exported.
17562 include_expsyms=$lt_include_expsyms_GCJ
17563
17564 # ### END LIBTOOL TAG CONFIG: $tagname
17565
17566 __EOF__
17567
17568
17569 else
17570   # If there is no Makefile yet, we rely on a make rule to execute
17571   # `config.status --recheck' to rerun these tests and create the
17572   # libtool script then.
17573   test -f Makefile && make "$ltmain"
17574 fi
17575
17576
17577 ac_ext=c
17578 ac_cpp='$CPP $CPPFLAGS'
17579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17582
17583 CC="$lt_save_CC"
17584
17585         else
17586           tagname=""
17587         fi
17588         ;;
17589
17590       RC)
17591
17592
17593
17594 # Source file extension for RC test sources.
17595 ac_ext=rc
17596
17597 # Object file extension for compiled RC test sources.
17598 objext=o
17599 objext_RC=$objext
17600
17601 # Code to be used in simple compile tests
17602 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17603
17604 # Code to be used in simple link tests
17605 lt_simple_link_test_code="$lt_simple_compile_test_code"
17606
17607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17608
17609 # If no C compiler was specified, use CC.
17610 LTCC=${LTCC-"$CC"}
17611
17612 # Allow CC to be a program name with arguments.
17613 compiler=$CC
17614
17615
17616 # Allow CC to be a program name with arguments.
17617 lt_save_CC="$CC"
17618 CC=${RC-"windres"}
17619 compiler=$CC
17620 compiler_RC=$CC
17621 lt_cv_prog_compiler_c_o_RC=yes
17622
17623 # The else clause should only fire when bootstrapping the
17624 # libtool distribution, otherwise you forgot to ship ltmain.sh
17625 # with your package, and you will get complaints that there are
17626 # no rules to generate ltmain.sh.
17627 if test -f "$ltmain"; then
17628   # See if we are running on zsh, and set the options which allow our commands through
17629   # without removal of \ escapes.
17630   if test -n "${ZSH_VERSION+set}" ; then
17631     setopt NO_GLOB_SUBST
17632   fi
17633   # Now quote all the things that may contain metacharacters while being
17634   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17635   # variables and quote the copies for generation of the libtool script.
17636   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17637     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17638     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17639     deplibs_check_method reload_flag reload_cmds need_locks \
17640     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17641     lt_cv_sys_global_symbol_to_c_name_address \
17642     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17643     old_postinstall_cmds old_postuninstall_cmds \
17644     compiler_RC \
17645     CC_RC \
17646     LD_RC \
17647     lt_prog_compiler_wl_RC \
17648     lt_prog_compiler_pic_RC \
17649     lt_prog_compiler_static_RC \
17650     lt_prog_compiler_no_builtin_flag_RC \
17651     export_dynamic_flag_spec_RC \
17652     thread_safe_flag_spec_RC \
17653     whole_archive_flag_spec_RC \
17654     enable_shared_with_static_runtimes_RC \
17655     old_archive_cmds_RC \
17656     old_archive_from_new_cmds_RC \
17657     predep_objects_RC \
17658     postdep_objects_RC \
17659     predeps_RC \
17660     postdeps_RC \
17661     compiler_lib_search_path_RC \
17662     archive_cmds_RC \
17663     archive_expsym_cmds_RC \
17664     postinstall_cmds_RC \
17665     postuninstall_cmds_RC \
17666     old_archive_from_expsyms_cmds_RC \
17667     allow_undefined_flag_RC \
17668     no_undefined_flag_RC \
17669     export_symbols_cmds_RC \
17670     hardcode_libdir_flag_spec_RC \
17671     hardcode_libdir_flag_spec_ld_RC \
17672     hardcode_libdir_separator_RC \
17673     hardcode_automatic_RC \
17674     module_cmds_RC \
17675     module_expsym_cmds_RC \
17676     lt_cv_prog_compiler_c_o_RC \
17677     exclude_expsyms_RC \
17678     include_expsyms_RC; do
17679
17680     case $var in
17681     old_archive_cmds_RC | \
17682     old_archive_from_new_cmds_RC | \
17683     archive_cmds_RC | \
17684     archive_expsym_cmds_RC | \
17685     module_cmds_RC | \
17686     module_expsym_cmds_RC | \
17687     old_archive_from_expsyms_cmds_RC | \
17688     export_symbols_cmds_RC | \
17689     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17690     postinstall_cmds | postuninstall_cmds | \
17691     old_postinstall_cmds | old_postuninstall_cmds | \
17692     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17693       # Double-quote double-evaled strings.
17694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17695       ;;
17696     *)
17697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17698       ;;
17699     esac
17700   done
17701
17702   case $lt_echo in
17703   *'\$0 --fallback-echo"')
17704     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17705     ;;
17706   esac
17707
17708 cfgfile="$ofile"
17709
17710   cat <<__EOF__ >> "$cfgfile"
17711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17712
17713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17714
17715 # Shell to use when invoking shell scripts.
17716 SHELL=$lt_SHELL
17717
17718 # Whether or not to build shared libraries.
17719 build_libtool_libs=$enable_shared
17720
17721 # Whether or not to build static libraries.
17722 build_old_libs=$enable_static
17723
17724 # Whether or not to add -lc for building shared libraries.
17725 build_libtool_need_lc=$archive_cmds_need_lc_RC
17726
17727 # Whether or not to disallow shared libs when runtime libs are static
17728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17729
17730 # Whether or not to optimize for fast installation.
17731 fast_install=$enable_fast_install
17732
17733 # The host system.
17734 host_alias=$host_alias
17735 host=$host
17736
17737 # An echo program that does not interpret backslashes.
17738 echo=$lt_echo
17739
17740 # The archiver.
17741 AR=$lt_AR
17742 AR_FLAGS=$lt_AR_FLAGS
17743
17744 # A C compiler.
17745 LTCC=$lt_LTCC
17746
17747 # A language-specific compiler.
17748 CC=$lt_compiler_RC
17749
17750 # Is the compiler the GNU C compiler?
17751 with_gcc=$GCC_RC
17752
17753 # An ERE matcher.
17754 EGREP=$lt_EGREP
17755
17756 # The linker used to build libraries.
17757 LD=$lt_LD_RC
17758
17759 # Whether we need hard or soft links.
17760 LN_S=$lt_LN_S
17761
17762 # A BSD-compatible nm program.
17763 NM=$lt_NM
17764
17765 # A symbol stripping program
17766 STRIP=$STRIP
17767
17768 # Used to examine libraries when file_magic_cmd begins "file"
17769 MAGIC_CMD=$MAGIC_CMD
17770
17771 # Used on cygwin: DLL creation program.
17772 DLLTOOL="$DLLTOOL"
17773
17774 # Used on cygwin: object dumper.
17775 OBJDUMP="$OBJDUMP"
17776
17777 # Used on cygwin: assembler.
17778 AS="$AS"
17779
17780 # The name of the directory that contains temporary libtool files.
17781 objdir=$objdir
17782
17783 # How to create reloadable object files.
17784 reload_flag=$lt_reload_flag
17785 reload_cmds=$lt_reload_cmds
17786
17787 # How to pass a linker flag through the compiler.
17788 wl=$lt_lt_prog_compiler_wl_RC
17789
17790 # Object file suffix (normally "o").
17791 objext="$ac_objext"
17792
17793 # Old archive suffix (normally "a").
17794 libext="$libext"
17795
17796 # Shared library suffix (normally ".so").
17797 shrext='$shrext'
17798
17799 # Executable file suffix (normally "").
17800 exeext="$exeext"
17801
17802 # Additional compiler flags for building library objects.
17803 pic_flag=$lt_lt_prog_compiler_pic_RC
17804 pic_mode=$pic_mode
17805
17806 # What is the maximum length of a command?
17807 max_cmd_len=$lt_cv_sys_max_cmd_len
17808
17809 # Does compiler simultaneously support -c and -o options?
17810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17811
17812 # Must we lock files when doing compilation ?
17813 need_locks=$lt_need_locks
17814
17815 # Do we need the lib prefix for modules?
17816 need_lib_prefix=$need_lib_prefix
17817
17818 # Do we need a version for libraries?
17819 need_version=$need_version
17820
17821 # Whether dlopen is supported.
17822 dlopen_support=$enable_dlopen
17823
17824 # Whether dlopen of programs is supported.
17825 dlopen_self=$enable_dlopen_self
17826
17827 # Whether dlopen of statically linked programs is supported.
17828 dlopen_self_static=$enable_dlopen_self_static
17829
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static_RC
17832
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17835
17836 # Compiler flag to allow reflexive dlopens.
17837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17838
17839 # Compiler flag to generate shared objects directly from archives.
17840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17841
17842 # Compiler flag to generate thread-safe objects.
17843 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17844
17845 # Library versioning type.
17846 version_type=$version_type
17847
17848 # Format of library name prefix.
17849 libname_spec=$lt_libname_spec
17850
17851 # List of archive names.  First name is the real one, the rest are links.
17852 # The last name is the one that the linker finds with -lNAME.
17853 library_names_spec=$lt_library_names_spec
17854
17855 # The coded name of the library, if different from the real name.
17856 soname_spec=$lt_soname_spec
17857
17858 # Commands used to build and install an old-style archive.
17859 RANLIB=$lt_RANLIB
17860 old_archive_cmds=$lt_old_archive_cmds_RC
17861 old_postinstall_cmds=$lt_old_postinstall_cmds
17862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17866
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17869
17870 # Commands used to build and install a shared archive.
17871 archive_cmds=$lt_archive_cmds_RC
17872 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17873 postinstall_cmds=$lt_postinstall_cmds
17874 postuninstall_cmds=$lt_postuninstall_cmds
17875
17876 # Commands used to build a loadable module (assumed same as above if empty)
17877 module_cmds=$lt_module_cmds_RC
17878 module_expsym_cmds=$lt_module_expsym_cmds_RC
17879
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17883
17884 # Dependencies to place before the objects being linked to create a
17885 # shared library.
17886 predep_objects=$lt_predep_objects_RC
17887
17888 # Dependencies to place after the objects being linked to create a
17889 # shared library.
17890 postdep_objects=$lt_postdep_objects_RC
17891
17892 # Dependencies to place before the objects being linked to create a
17893 # shared library.
17894 predeps=$lt_predeps_RC
17895
17896 # Dependencies to place after the objects being linked to create a
17897 # shared library.
17898 postdeps=$lt_postdeps_RC
17899
17900 # The library search path used internally by the compiler when linking
17901 # a shared library.
17902 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17903
17904 # Method to check whether dependent libraries are shared objects.
17905 deplibs_check_method=$lt_deplibs_check_method
17906
17907 # Command to use when deplibs_check_method == file_magic.
17908 file_magic_cmd=$lt_file_magic_cmd
17909
17910 # Flag that allows shared libraries with undefined symbols to be built.
17911 allow_undefined_flag=$lt_allow_undefined_flag_RC
17912
17913 # Flag that forces no undefined symbols.
17914 no_undefined_flag=$lt_no_undefined_flag_RC
17915
17916 # Commands used to finish a libtool library installation in a directory.
17917 finish_cmds=$lt_finish_cmds
17918
17919 # Same as above, but a single script fragment to be evaled but not shown.
17920 finish_eval=$lt_finish_eval
17921
17922 # Take the output of nm and produce a listing of raw symbols and C names.
17923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17924
17925 # Transform the output of nm in a proper C declaration
17926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17927
17928 # Transform the output of nm in a C name address pair
17929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17930
17931 # This is the shared library runtime path variable.
17932 runpath_var=$runpath_var
17933
17934 # This is the shared library path variable.
17935 shlibpath_var=$shlibpath_var
17936
17937 # Is shlibpath searched before the hard-coded library search path?
17938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939
17940 # How to hardcode a shared library path into an executable.
17941 hardcode_action=$hardcode_action_RC
17942
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17945
17946 # Flag to hardcode \$libdir into a binary during linking.
17947 # This must work even if \$libdir does not exist.
17948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17949
17950 # If ld is used when linking, flag to hardcode \$libdir into
17951 # a binary during linking. This must work even if \$libdir does
17952 # not exist.
17953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17954
17955 # Whether we need a single -rpath flag with a separated argument.
17956 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17957
17958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_direct=$hardcode_direct_RC
17961
17962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963 # resulting binary.
17964 hardcode_minus_L=$hardcode_minus_L_RC
17965
17966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967 # the resulting binary.
17968 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17969
17970 # Set to yes if building a shared library automatically hardcodes DIR into the library
17971 # and all subsequent libraries and executables linked against it.
17972 hardcode_automatic=$hardcode_automatic_RC
17973
17974 # Variables whose values should be saved in libtool wrapper scripts and
17975 # restored at relink time.
17976 variables_saved_for_relink="$variables_saved_for_relink"
17977
17978 # Whether libtool must link a program against all its dependency libraries.
17979 link_all_deplibs=$link_all_deplibs_RC
17980
17981 # Compile-time system search path for libraries
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984 # Run-time system search path for libraries
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987 # Fix the shell variable \$srcfile for the compiler.
17988 fix_srcfile_path="$fix_srcfile_path_RC"
17989
17990 # Set to yes if exported symbols are required.
17991 always_export_symbols=$always_export_symbols_RC
17992
17993 # The commands to list exported symbols.
17994 export_symbols_cmds=$lt_export_symbols_cmds_RC
17995
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms_RC
18001
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms_RC
18004
18005 # ### END LIBTOOL TAG CONFIG: $tagname
18006
18007 __EOF__
18008
18009
18010 else
18011   # If there is no Makefile yet, we rely on a make rule to execute
18012   # `config.status --recheck' to rerun these tests and create the
18013   # libtool script then.
18014   test -f Makefile && make "$ltmain"
18015 fi
18016
18017
18018 ac_ext=c
18019 ac_cpp='$CPP $CPPFLAGS'
18020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18023
18024 CC="$lt_save_CC"
18025
18026         ;;
18027
18028       *)
18029         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18030 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18031    { (exit 1); exit 1; }; }
18032         ;;
18033       esac
18034
18035       # Append the new tag name to the list of available tags.
18036       if test -n "$tagname" ; then
18037       available_tags="$available_tags $tagname"
18038     fi
18039     fi
18040   done
18041   IFS="$lt_save_ifs"
18042
18043   # Now substitute the updated list of available tags.
18044   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18045     mv "${ofile}T" "$ofile"
18046     chmod +x "$ofile"
18047   else
18048     rm -f "${ofile}T"
18049     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18050 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18051    { (exit 1); exit 1; }; }
18052   fi
18053 fi
18054
18055
18056
18057 # This can be used to rebuild libtool when needed
18058 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18059
18060 # Always use our own libtool.
18061 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18062
18063 # Prevent multiple expansion
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085 # Extract the first word of "pwd", so it can be a program name with args.
18086 set dummy pwd; ac_word=$2
18087 echo "$as_me:$LINENO: checking for $ac_word" >&5
18088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18089 if test "${ac_cv_path_RPWD+set}" = set; then
18090   echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092   case $RPWD in
18093   [\\/]* | ?:[\\/]*)
18094   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18095   ;;
18096   *)
18097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18098 for as_dir in $PATH
18099 do
18100   IFS=$as_save_IFS
18101   test -z "$as_dir" && as_dir=.
18102   for ac_exec_ext in '' $ac_executable_extensions; do
18103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18104     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18106     break 2
18107   fi
18108 done
18109 done
18110
18111   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18112   ;;
18113 esac
18114 fi
18115 RPWD=$ac_cv_path_RPWD
18116
18117 if test -n "$RPWD"; then
18118   echo "$as_me:$LINENO: result: $RPWD" >&5
18119 echo "${ECHO_T}$RPWD" >&6
18120 else
18121   echo "$as_me:$LINENO: result: no" >&5
18122 echo "${ECHO_T}no" >&6
18123 fi
18124
18125 if test ${RPWD} = "false"
18126 then
18127         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18128 echo "$as_me: error: pwd required but not found" >&2;}
18129    { (exit 1); exit 1; }; }
18130 fi
18131
18132 # Extract the first word of "ar", so it can be a program name with args.
18133 set dummy ar; ac_word=$2
18134 echo "$as_me:$LINENO: checking for $ac_word" >&5
18135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18136 if test "${ac_cv_path_AR+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139   case $AR in
18140   [\\/]* | ?:[\\/]*)
18141   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18142   ;;
18143   *)
18144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145 for as_dir in $PATH
18146 do
18147   IFS=$as_save_IFS
18148   test -z "$as_dir" && as_dir=.
18149   for ac_exec_ext in '' $ac_executable_extensions; do
18150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18153     break 2
18154   fi
18155 done
18156 done
18157
18158   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18159   ;;
18160 esac
18161 fi
18162 AR=$ac_cv_path_AR
18163
18164 if test -n "$AR"; then
18165   echo "$as_me:$LINENO: result: $AR" >&5
18166 echo "${ECHO_T}$AR" >&6
18167 else
18168   echo "$as_me:$LINENO: result: no" >&5
18169 echo "${ECHO_T}no" >&6
18170 fi
18171
18172 if test ${AR} = "false"
18173 then
18174         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18175 echo "$as_me: error: ar required but not found" >&2;}
18176    { (exit 1); exit 1; }; }
18177 fi
18178
18179 # Extract the first word of "sed", so it can be a program name with args.
18180 set dummy sed; ac_word=$2
18181 echo "$as_me:$LINENO: checking for $ac_word" >&5
18182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183 if test "${ac_cv_path_SED+set}" = set; then
18184   echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186   case $SED in
18187   [\\/]* | ?:[\\/]*)
18188   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18189   ;;
18190   *)
18191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192 for as_dir in $PATH
18193 do
18194   IFS=$as_save_IFS
18195   test -z "$as_dir" && as_dir=.
18196   for ac_exec_ext in '' $ac_executable_extensions; do
18197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18200     break 2
18201   fi
18202 done
18203 done
18204
18205   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18206   ;;
18207 esac
18208 fi
18209 SED=$ac_cv_path_SED
18210
18211 if test -n "$SED"; then
18212   echo "$as_me:$LINENO: result: $SED" >&5
18213 echo "${ECHO_T}$SED" >&6
18214 else
18215   echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6
18217 fi
18218
18219 if test ${SED} = "false"
18220 then
18221         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18222 echo "$as_me: error: sed required but not found" >&2;}
18223    { (exit 1); exit 1; }; }
18224 fi
18225
18226 # Extract the first word of "rm", so it can be a program name with args.
18227 set dummy rm; ac_word=$2
18228 echo "$as_me:$LINENO: checking for $ac_word" >&5
18229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18230 if test "${ac_cv_path_RM+set}" = set; then
18231   echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233   case $RM in
18234   [\\/]* | ?:[\\/]*)
18235   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18236   ;;
18237   *)
18238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18239 for as_dir in $PATH
18240 do
18241   IFS=$as_save_IFS
18242   test -z "$as_dir" && as_dir=.
18243   for ac_exec_ext in '' $ac_executable_extensions; do
18244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18245     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18247     break 2
18248   fi
18249 done
18250 done
18251
18252   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18253   ;;
18254 esac
18255 fi
18256 RM=$ac_cv_path_RM
18257
18258 if test -n "$RM"; then
18259   echo "$as_me:$LINENO: result: $RM" >&5
18260 echo "${ECHO_T}$RM" >&6
18261 else
18262   echo "$as_me:$LINENO: result: no" >&5
18263 echo "${ECHO_T}no" >&6
18264 fi
18265
18266 if test ${RM} = "false"
18267 then
18268         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18269 echo "$as_me: error: rm required but not found" >&2;}
18270    { (exit 1); exit 1; }; }
18271 fi
18272
18273 # Extract the first word of "echo", so it can be a program name with args.
18274 set dummy echo; ac_word=$2
18275 echo "$as_me:$LINENO: checking for $ac_word" >&5
18276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18277 if test "${ac_cv_path_ECHO+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   case $ECHO in
18281   [\\/]* | ?:[\\/]*)
18282   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18283   ;;
18284   *)
18285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286 for as_dir in $PATH
18287 do
18288   IFS=$as_save_IFS
18289   test -z "$as_dir" && as_dir=.
18290   for ac_exec_ext in '' $ac_executable_extensions; do
18291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18294     break 2
18295   fi
18296 done
18297 done
18298
18299   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18300   ;;
18301 esac
18302 fi
18303 ECHO=$ac_cv_path_ECHO
18304
18305 if test -n "$ECHO"; then
18306   echo "$as_me:$LINENO: result: $ECHO" >&5
18307 echo "${ECHO_T}$ECHO" >&6
18308 else
18309   echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6
18311 fi
18312
18313 if test ${ECHO} = "false"
18314 then
18315         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18316 echo "$as_me: error: echo required but not found" >&2;}
18317    { (exit 1); exit 1; }; }
18318 fi
18319
18320 # Extract the first word of "mkdir", so it can be a program name with args.
18321 set dummy mkdir; ac_word=$2
18322 echo "$as_me:$LINENO: checking for $ac_word" >&5
18323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18324 if test "${ac_cv_path_MKDIR+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   case $MKDIR in
18328   [\\/]* | ?:[\\/]*)
18329   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18330   ;;
18331   *)
18332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337   for ac_exec_ext in '' $ac_executable_extensions; do
18338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18339     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18341     break 2
18342   fi
18343 done
18344 done
18345
18346   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18347   ;;
18348 esac
18349 fi
18350 MKDIR=$ac_cv_path_MKDIR
18351
18352 if test -n "$MKDIR"; then
18353   echo "$as_me:$LINENO: result: $MKDIR" >&5
18354 echo "${ECHO_T}$MKDIR" >&6
18355 else
18356   echo "$as_me:$LINENO: result: no" >&5
18357 echo "${ECHO_T}no" >&6
18358 fi
18359
18360 if test ${MKDIR} = "false"
18361 then
18362         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18363 echo "$as_me: error: mkdir required but not found" >&2;}
18364    { (exit 1); exit 1; }; }
18365 fi
18366
18367 # Extract the first word of "date", so it can be a program name with args.
18368 set dummy date; ac_word=$2
18369 echo "$as_me:$LINENO: checking for $ac_word" >&5
18370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18371 if test "${ac_cv_path_DATE+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374   case $DATE in
18375   [\\/]* | ?:[\\/]*)
18376   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18377   ;;
18378   *)
18379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18380 for as_dir in $PATH
18381 do
18382   IFS=$as_save_IFS
18383   test -z "$as_dir" && as_dir=.
18384   for ac_exec_ext in '' $ac_executable_extensions; do
18385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18386     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18388     break 2
18389   fi
18390 done
18391 done
18392
18393   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18394   ;;
18395 esac
18396 fi
18397 DATE=$ac_cv_path_DATE
18398
18399 if test -n "$DATE"; then
18400   echo "$as_me:$LINENO: result: $DATE" >&5
18401 echo "${ECHO_T}$DATE" >&6
18402 else
18403   echo "$as_me:$LINENO: result: no" >&5
18404 echo "${ECHO_T}no" >&6
18405 fi
18406
18407 if test ${DATE} = "false"
18408 then
18409         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18410 echo "$as_me: error: date required but not found" >&2;}
18411    { (exit 1); exit 1; }; }
18412 fi
18413
18414 # Extract the first word of "mv", so it can be a program name with args.
18415 set dummy mv; ac_word=$2
18416 echo "$as_me:$LINENO: checking for $ac_word" >&5
18417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18418 if test "${ac_cv_path_MV+set}" = set; then
18419   echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421   case $MV in
18422   [\\/]* | ?:[\\/]*)
18423   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18424   ;;
18425   *)
18426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18428 do
18429   IFS=$as_save_IFS
18430   test -z "$as_dir" && as_dir=.
18431   for ac_exec_ext in '' $ac_executable_extensions; do
18432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18433     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18435     break 2
18436   fi
18437 done
18438 done
18439
18440   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18441   ;;
18442 esac
18443 fi
18444 MV=$ac_cv_path_MV
18445
18446 if test -n "$MV"; then
18447   echo "$as_me:$LINENO: result: $MV" >&5
18448 echo "${ECHO_T}$MV" >&6
18449 else
18450   echo "$as_me:$LINENO: result: no" >&5
18451 echo "${ECHO_T}no" >&6
18452 fi
18453
18454 if test ${MV} = "false"
18455 then
18456         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18457 echo "$as_me: error: mv required but not found" >&2;}
18458    { (exit 1); exit 1; }; }
18459 fi
18460
18461 # Extract the first word of "dot", so it can be a program name with args.
18462 set dummy dot; ac_word=$2
18463 echo "$as_me:$LINENO: checking for $ac_word" >&5
18464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18465 if test "${ac_cv_path_DOT+set}" = set; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468   case $DOT in
18469   [\\/]* | ?:[\\/]*)
18470   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18471   ;;
18472   *)
18473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in $PATH
18475 do
18476   IFS=$as_save_IFS
18477   test -z "$as_dir" && as_dir=.
18478   for ac_exec_ext in '' $ac_executable_extensions; do
18479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18480     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18482     break 2
18483   fi
18484 done
18485 done
18486
18487   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18488   ;;
18489 esac
18490 fi
18491 DOT=$ac_cv_path_DOT
18492
18493 if test -n "$DOT"; then
18494   echo "$as_me:$LINENO: result: $DOT" >&5
18495 echo "${ECHO_T}$DOT" >&6
18496 else
18497   echo "$as_me:$LINENO: result: no" >&5
18498 echo "${ECHO_T}no" >&6
18499 fi
18500
18501
18502 # Extract the first word of "etags", so it can be a program name with args.
18503 set dummy etags; ac_word=$2
18504 echo "$as_me:$LINENO: checking for $ac_word" >&5
18505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18506 if test "${ac_cv_path_ETAGS+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   case $ETAGS in
18510   [\\/]* | ?:[\\/]*)
18511   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18512   ;;
18513   *)
18514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18515 for as_dir in $PATH
18516 do
18517   IFS=$as_save_IFS
18518   test -z "$as_dir" && as_dir=.
18519   for ac_exec_ext in '' $ac_executable_extensions; do
18520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18521     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18523     break 2
18524   fi
18525 done
18526 done
18527
18528   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18529   ;;
18530 esac
18531 fi
18532 ETAGS=$ac_cv_path_ETAGS
18533
18534 if test -n "$ETAGS"; then
18535   echo "$as_me:$LINENO: result: $ETAGS" >&5
18536 echo "${ECHO_T}$ETAGS" >&6
18537 else
18538   echo "$as_me:$LINENO: result: no" >&5
18539 echo "${ECHO_T}no" >&6
18540 fi
18541
18542
18543 # Extract the first word of "python", so it can be a program name with args.
18544 set dummy python; ac_word=$2
18545 echo "$as_me:$LINENO: checking for $ac_word" >&5
18546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18547 if test "${ac_cv_path_PYTHON+set}" = set; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550   case $PYTHON in
18551   [\\/]* | ?:[\\/]*)
18552   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18553   ;;
18554   *)
18555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18556 for as_dir in $PATH
18557 do
18558   IFS=$as_save_IFS
18559   test -z "$as_dir" && as_dir=.
18560   for ac_exec_ext in '' $ac_executable_extensions; do
18561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18562     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18564     break 2
18565   fi
18566 done
18567 done
18568
18569   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18570   ;;
18571 esac
18572 fi
18573 PYTHON=$ac_cv_path_PYTHON
18574
18575 if test -n "$PYTHON"; then
18576   echo "$as_me:$LINENO: result: $PYTHON" >&5
18577 echo "${ECHO_T}$PYTHON" >&6
18578 else
18579   echo "$as_me:$LINENO: result: no" >&5
18580 echo "${ECHO_T}no" >&6
18581 fi
18582
18583 if test ${PYTHON} = "false"
18584 then
18585         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18586 echo "$as_me: WARNING: python required but not found" >&2;}
18587 fi
18588
18589 # Extract the first word of "qmtest", so it can be a program name with args.
18590 set dummy qmtest; ac_word=$2
18591 echo "$as_me:$LINENO: checking for $ac_word" >&5
18592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18593 if test "${ac_cv_path_QMTEST+set}" = set; then
18594   echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596   case $QMTEST in
18597   [\\/]* | ?:[\\/]*)
18598   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18599   ;;
18600   *)
18601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18602 for as_dir in $PATH
18603 do
18604   IFS=$as_save_IFS
18605   test -z "$as_dir" && as_dir=.
18606   for ac_exec_ext in '' $ac_executable_extensions; do
18607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18608     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18610     break 2
18611   fi
18612 done
18613 done
18614
18615   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18616   ;;
18617 esac
18618 fi
18619 QMTEST=$ac_cv_path_QMTEST
18620
18621 if test -n "$QMTEST"; then
18622   echo "$as_me:$LINENO: result: $QMTEST" >&5
18623 echo "${ECHO_T}$QMTEST" >&6
18624 else
18625   echo "$as_me:$LINENO: result: no" >&5
18626 echo "${ECHO_T}no" >&6
18627 fi
18628
18629 if test ${QMTEST} = "false"
18630 then
18631         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18632 echo "$as_me: WARNING: qmtest required but not found" >&2;}
18633 fi
18634
18635 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18636 pymajor=`echo $pyversion | cut -d. -f1`
18637 pyminor=`echo $pyversion | cut -d. -f2`
18638
18639 if test "$pymajor" -ge "2"
18640 then
18641         if test "$pymajor" -eq "2"
18642         then
18643                 if test "$pyminor" -lt "2"
18644                 then
18645                         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18646 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18647                 fi
18648         fi
18649 else
18650         { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18651 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18652 fi
18653
18654
18655
18656
18657
18658 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18659 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18660 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   ac_check_lib_save_LIBS=$LIBS
18664 LIBS="-lelf  $LIBS"
18665 cat >conftest.$ac_ext <<_ACEOF
18666 #line $LINENO "configure"
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673 /* Override any gcc2 internal prototype to avoid an error.  */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 /* We use char because int might match the return type of a gcc2
18678    builtin and then its argument prototype would still apply.  */
18679 char elf_begin ();
18680 int
18681 main ()
18682 {
18683 elf_begin ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690   (eval $ac_link) 2>&5
18691   ac_status=$?
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } &&
18694          { ac_try='test -s conftest$ac_exeext'
18695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696   (eval $ac_try) 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; }; then
18700   ac_cv_lib_elf_elf_begin=yes
18701 else
18702   echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ac_cv_lib_elf_elf_begin=no
18706 fi
18707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18709 fi
18710 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18711 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18712 if test $ac_cv_lib_elf_elf_begin = yes; then
18713   cat >>confdefs.h <<_ACEOF
18714 #define HAVE_LIBELF 1
18715 _ACEOF
18716
18717   LIBS="-lelf $LIBS"
18718
18719 fi
18720
18721
18722 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18723 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18724 if test "${ac_cv_search_dlopen+set}" = set; then
18725   echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727   ac_func_search_save_LIBS=$LIBS
18728 ac_cv_search_dlopen=no
18729 cat >conftest.$ac_ext <<_ACEOF
18730 #line $LINENO "configure"
18731 /* confdefs.h.  */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h.  */
18736
18737 /* Override any gcc2 internal prototype to avoid an error.  */
18738 #ifdef __cplusplus
18739 extern "C"
18740 #endif
18741 /* We use char because int might match the return type of a gcc2
18742    builtin and then its argument prototype would still apply.  */
18743 char dlopen ();
18744 int
18745 main ()
18746 {
18747 dlopen ();
18748   ;
18749   return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754   (eval $ac_link) 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } &&
18758          { ac_try='test -s conftest$ac_exeext'
18759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760   (eval $ac_try) 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; }; then
18764   ac_cv_search_dlopen="none required"
18765 else
18766   echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 fi
18770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18771 if test "$ac_cv_search_dlopen" = no; then
18772   for ac_lib in dl; do
18773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18774     cat >conftest.$ac_ext <<_ACEOF
18775 #line $LINENO "configure"
18776 /* confdefs.h.  */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h.  */
18781
18782 /* Override any gcc2 internal prototype to avoid an error.  */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 /* We use char because int might match the return type of a gcc2
18787    builtin and then its argument prototype would still apply.  */
18788 char dlopen ();
18789 int
18790 main ()
18791 {
18792 dlopen ();
18793   ;
18794   return 0;
18795 }
18796 _ACEOF
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799   (eval $ac_link) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   ac_cv_search_dlopen="-l$ac_lib"
18810 break
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 fi
18816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18817   done
18818 fi
18819 LIBS=$ac_func_search_save_LIBS
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18822 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18823 if test "$ac_cv_search_dlopen" != no; then
18824   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18825
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_DLOPEN 1
18828 _ACEOF
18829
18830 else
18831   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18832 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18833 fi
18834
18835
18836 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18837 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18838 if test "${ac_cv_search_mallinfo+set}" = set; then
18839   echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841   ac_func_search_save_LIBS=$LIBS
18842 ac_cv_search_mallinfo=no
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850
18851 /* Override any gcc2 internal prototype to avoid an error.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 /* We use char because int might match the return type of a gcc2
18856    builtin and then its argument prototype would still apply.  */
18857 char mallinfo ();
18858 int
18859 main ()
18860 {
18861 mallinfo ();
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868   (eval $ac_link) 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } &&
18872          { ac_try='test -s conftest$ac_exeext'
18873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874   (eval $ac_try) 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; }; then
18878   ac_cv_search_mallinfo="none required"
18879 else
18880   echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883 fi
18884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18885 if test "$ac_cv_search_mallinfo" = no; then
18886   for ac_lib in malloc; do
18887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18888     cat >conftest.$ac_ext <<_ACEOF
18889 #line $LINENO "configure"
18890 /* confdefs.h.  */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h.  */
18895
18896 /* Override any gcc2 internal prototype to avoid an error.  */
18897 #ifdef __cplusplus
18898 extern "C"
18899 #endif
18900 /* We use char because int might match the return type of a gcc2
18901    builtin and then its argument prototype would still apply.  */
18902 char mallinfo ();
18903 int
18904 main ()
18905 {
18906 mallinfo ();
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18913   (eval $ac_link) 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); } &&
18917          { ac_try='test -s conftest$ac_exeext'
18918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919   (eval $ac_try) 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   ac_cv_search_mallinfo="-l$ac_lib"
18924 break
18925 else
18926   echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 fi
18930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18931   done
18932 fi
18933 LIBS=$ac_func_search_save_LIBS
18934 fi
18935 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18936 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18937 if test "$ac_cv_search_mallinfo" != no; then
18938   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18939
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_MALLINFO 1
18942 _ACEOF
18943
18944 fi
18945
18946
18947 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18948 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18949 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   ac_func_search_save_LIBS=$LIBS
18953 ac_cv_search_pthread_mutex_lock=no
18954 cat >conftest.$ac_ext <<_ACEOF
18955 #line $LINENO "configure"
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961
18962 /* Override any gcc2 internal prototype to avoid an error.  */
18963 #ifdef __cplusplus
18964 extern "C"
18965 #endif
18966 /* We use char because int might match the return type of a gcc2
18967    builtin and then its argument prototype would still apply.  */
18968 char pthread_mutex_lock ();
18969 int
18970 main ()
18971 {
18972 pthread_mutex_lock ();
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18979   (eval $ac_link) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } &&
18983          { ac_try='test -s conftest$ac_exeext'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_search_pthread_mutex_lock="none required"
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 fi
18995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18996 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18997   for ac_lib in pthread; do
18998     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18999     cat >conftest.$ac_ext <<_ACEOF
19000 #line $LINENO "configure"
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006
19007 /* Override any gcc2 internal prototype to avoid an error.  */
19008 #ifdef __cplusplus
19009 extern "C"
19010 #endif
19011 /* We use char because int might match the return type of a gcc2
19012    builtin and then its argument prototype would still apply.  */
19013 char pthread_mutex_lock ();
19014 int
19015 main ()
19016 {
19017 pthread_mutex_lock ();
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19024   (eval $ac_link) 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } &&
19028          { ac_try='test -s conftest$ac_exeext'
19029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030   (eval $ac_try) 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); }; }; then
19034   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19035 break
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 fi
19041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19042   done
19043 fi
19044 LIBS=$ac_func_search_save_LIBS
19045 fi
19046 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19047 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19048 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19049   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19050
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE_PTHREAD_MUTEX_LOCK 1
19053 _ACEOF
19054
19055 fi
19056
19057
19058
19059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19061 if test "${ac_cv_header_stdc+set}" = set; then
19062   echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064   cat >conftest.$ac_ext <<_ACEOF
19065 #line $LINENO "configure"
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071 #include <stdlib.h>
19072 #include <stdarg.h>
19073 #include <string.h>
19074 #include <float.h>
19075
19076 int
19077 main ()
19078 {
19079
19080   ;
19081   return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086   (eval $ac_compile) 2>&5
19087   ac_status=$?
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } &&
19090          { ac_try='test -s conftest.$ac_objext'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; }; then
19096   ac_cv_header_stdc=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 ac_cv_header_stdc=no
19102 fi
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19104
19105 if test $ac_cv_header_stdc = yes; then
19106   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19107   cat >conftest.$ac_ext <<_ACEOF
19108 #line $LINENO "configure"
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114 #include <string.h>
19115
19116 _ACEOF
19117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19118   $EGREP "memchr" >/dev/null 2>&1; then
19119   :
19120 else
19121   ac_cv_header_stdc=no
19122 fi
19123 rm -f conftest*
19124
19125 fi
19126
19127 if test $ac_cv_header_stdc = yes; then
19128   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19129   cat >conftest.$ac_ext <<_ACEOF
19130 #line $LINENO "configure"
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #include <stdlib.h>
19137
19138 _ACEOF
19139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19140   $EGREP "free" >/dev/null 2>&1; then
19141   :
19142 else
19143   ac_cv_header_stdc=no
19144 fi
19145 rm -f conftest*
19146
19147 fi
19148
19149 if test $ac_cv_header_stdc = yes; then
19150   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19151   if test "$cross_compiling" = yes; then
19152   :
19153 else
19154   cat >conftest.$ac_ext <<_ACEOF
19155 #line $LINENO "configure"
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 #include <ctype.h>
19162 #if ((' ' & 0x0FF) == 0x020)
19163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19165 #else
19166 # define ISLOWER(c) \
19167                    (('a' <= (c) && (c) <= 'i') \
19168                      || ('j' <= (c) && (c) <= 'r') \
19169                      || ('s' <= (c) && (c) <= 'z'))
19170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19171 #endif
19172
19173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19174 int
19175 main ()
19176 {
19177   int i;
19178   for (i = 0; i < 256; i++)
19179     if (XOR (islower (i), ISLOWER (i))
19180         || toupper (i) != TOUPPER (i))
19181       exit(2);
19182   exit (0);
19183 }
19184 _ACEOF
19185 rm -f conftest$ac_exeext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187   (eval $ac_link) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192   (eval $ac_try) 2>&5
19193   ac_status=$?
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); }; }; then
19196   :
19197 else
19198   echo "$as_me: program exited with status $ac_status" >&5
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ( exit $ac_status )
19203 ac_cv_header_stdc=no
19204 fi
19205 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19206 fi
19207 fi
19208 fi
19209 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19210 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19211 if test $ac_cv_header_stdc = yes; then
19212
19213 cat >>confdefs.h <<\_ACEOF
19214 #define STDC_HEADERS 1
19215 _ACEOF
19216
19217 fi
19218
19219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19222   echo $ECHO_N "(cached) $ECHO_C" >&6
19223 else
19224   cat >conftest.$ac_ext <<_ACEOF
19225 #line $LINENO "configure"
19226 /* confdefs.h.  */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h.  */
19231 #include <sys/types.h>
19232 #include <sys/wait.h>
19233 #ifndef WEXITSTATUS
19234 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19235 #endif
19236 #ifndef WIFEXITED
19237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19238 #endif
19239
19240 int
19241 main ()
19242 {
19243   int s;
19244   wait (&s);
19245   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19246   ;
19247   return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19252   (eval $ac_compile) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); } &&
19256          { ac_try='test -s conftest.$ac_objext'
19257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258   (eval $ac_try) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; }; then
19262   ac_cv_header_sys_wait_h=yes
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 ac_cv_header_sys_wait_h=no
19268 fi
19269 rm -f conftest.$ac_objext conftest.$ac_ext
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19272 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19273 if test $ac_cv_header_sys_wait_h = yes; then
19274
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_SYS_WAIT_H 1
19277 _ACEOF
19278
19279 fi
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19291 do
19292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294   echo "$as_me:$LINENO: checking for $ac_header" >&5
19295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19297   echo $ECHO_N "(cached) $ECHO_C" >&6
19298 fi
19299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19301 else
19302   # Is the header compilable?
19303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19306 #line $LINENO "configure"
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 $ac_includes_default
19313 #include <$ac_header>
19314 _ACEOF
19315 rm -f conftest.$ac_objext
19316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19317   (eval $ac_compile) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } &&
19321          { ac_try='test -s conftest.$ac_objext'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; }; then
19327   ac_header_compiler=yes
19328 else
19329   echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_header_compiler=no
19333 fi
19334 rm -f conftest.$ac_objext conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19336 echo "${ECHO_T}$ac_header_compiler" >&6
19337
19338 # Is the header present?
19339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19342 #line $LINENO "configure"
19343 /* confdefs.h.  */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h.  */
19348 #include <$ac_header>
19349 _ACEOF
19350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } >/dev/null; then
19358   if test -s conftest.err; then
19359     ac_cpp_err=$ac_c_preproc_warn_flag
19360   else
19361     ac_cpp_err=
19362   fi
19363 else
19364   ac_cpp_err=yes
19365 fi
19366 if test -z "$ac_cpp_err"; then
19367   ac_header_preproc=yes
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372   ac_header_preproc=no
19373 fi
19374 rm -f conftest.err conftest.$ac_ext
19375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19376 echo "${ECHO_T}$ac_header_preproc" >&6
19377
19378 # So?  What about this header?
19379 case $ac_header_compiler:$ac_header_preproc in
19380   yes:no )
19381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19385     (
19386       cat <<\_ASBOX
19387 ## ------------------------------------ ##
19388 ## Report this to bug-autoconf@gnu.org. ##
19389 ## ------------------------------------ ##
19390 _ASBOX
19391     ) |
19392       sed "s/^/$as_me: WARNING:     /" >&2
19393     ;;
19394   no:yes )
19395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19397     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19401     (
19402       cat <<\_ASBOX
19403 ## ------------------------------------ ##
19404 ## Report this to bug-autoconf@gnu.org. ##
19405 ## ------------------------------------ ##
19406 _ASBOX
19407     ) |
19408       sed "s/^/$as_me: WARNING:     /" >&2
19409     ;;
19410 esac
19411 echo "$as_me:$LINENO: checking for $ac_header" >&5
19412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19414   echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19416   eval "$as_ac_Header=$ac_header_preproc"
19417 fi
19418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19420
19421 fi
19422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19423   cat >>confdefs.h <<_ACEOF
19424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19425 _ACEOF
19426
19427 fi
19428
19429 done
19430
19431
19432
19433
19434
19435 for ac_header in malloc.h sys/mman.h sys/resource.h
19436 do
19437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19439   echo "$as_me:$LINENO: checking for $ac_header" >&5
19440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 fi
19444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19446 else
19447   # Is the header compilable?
19448 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19451 #line $LINENO "configure"
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457 $ac_includes_default
19458 #include <$ac_header>
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462   (eval $ac_compile) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } &&
19466          { ac_try='test -s conftest.$ac_objext'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; }; then
19472   ac_header_compiler=yes
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_header_compiler=no
19478 fi
19479 rm -f conftest.$ac_objext conftest.$ac_ext
19480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19481 echo "${ECHO_T}$ac_header_compiler" >&6
19482
19483 # Is the header present?
19484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19487 #line $LINENO "configure"
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 #include <$ac_header>
19494 _ACEOF
19495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } >/dev/null; then
19503   if test -s conftest.err; then
19504     ac_cpp_err=$ac_c_preproc_warn_flag
19505   else
19506     ac_cpp_err=
19507   fi
19508 else
19509   ac_cpp_err=yes
19510 fi
19511 if test -z "$ac_cpp_err"; then
19512   ac_header_preproc=yes
19513 else
19514   echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517   ac_header_preproc=no
19518 fi
19519 rm -f conftest.err conftest.$ac_ext
19520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19521 echo "${ECHO_T}$ac_header_preproc" >&6
19522
19523 # So?  What about this header?
19524 case $ac_header_compiler:$ac_header_preproc in
19525   yes:no )
19526     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19530     (
19531       cat <<\_ASBOX
19532 ## ------------------------------------ ##
19533 ## Report this to bug-autoconf@gnu.org. ##
19534 ## ------------------------------------ ##
19535 _ASBOX
19536     ) |
19537       sed "s/^/$as_me: WARNING:     /" >&2
19538     ;;
19539   no:yes )
19540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19542     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19546     (
19547       cat <<\_ASBOX
19548 ## ------------------------------------ ##
19549 ## Report this to bug-autoconf@gnu.org. ##
19550 ## ------------------------------------ ##
19551 _ASBOX
19552     ) |
19553       sed "s/^/$as_me: WARNING:     /" >&2
19554     ;;
19555 esac
19556 echo "$as_me:$LINENO: checking for $ac_header" >&5
19557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   eval "$as_ac_Header=$ac_header_preproc"
19562 fi
19563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19565
19566 fi
19567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19568   cat >>confdefs.h <<_ACEOF
19569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19570 _ACEOF
19571
19572 fi
19573
19574 done
19575
19576
19577
19578
19579 for ac_header in dlfcn.h link.h
19580 do
19581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19583   echo "$as_me:$LINENO: checking for $ac_header" >&5
19584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 fi
19588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19590 else
19591   # Is the header compilable?
19592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19595 #line $LINENO "configure"
19596 /* confdefs.h.  */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h.  */
19601 $ac_includes_default
19602 #include <$ac_header>
19603 _ACEOF
19604 rm -f conftest.$ac_objext
19605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19606   (eval $ac_compile) 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -s conftest.$ac_objext'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   ac_header_compiler=yes
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_header_compiler=no
19622 fi
19623 rm -f conftest.$ac_objext conftest.$ac_ext
19624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19625 echo "${ECHO_T}$ac_header_compiler" >&6
19626
19627 # Is the header present?
19628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19631 #line $LINENO "configure"
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637 #include <$ac_header>
19638 _ACEOF
19639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } >/dev/null; then
19647   if test -s conftest.err; then
19648     ac_cpp_err=$ac_c_preproc_warn_flag
19649   else
19650     ac_cpp_err=
19651   fi
19652 else
19653   ac_cpp_err=yes
19654 fi
19655 if test -z "$ac_cpp_err"; then
19656   ac_header_preproc=yes
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661   ac_header_preproc=no
19662 fi
19663 rm -f conftest.err conftest.$ac_ext
19664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19665 echo "${ECHO_T}$ac_header_preproc" >&6
19666
19667 # So?  What about this header?
19668 case $ac_header_compiler:$ac_header_preproc in
19669   yes:no )
19670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19674     (
19675       cat <<\_ASBOX
19676 ## ------------------------------------ ##
19677 ## Report this to bug-autoconf@gnu.org. ##
19678 ## ------------------------------------ ##
19679 _ASBOX
19680     ) |
19681       sed "s/^/$as_me: WARNING:     /" >&2
19682     ;;
19683   no:yes )
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19686     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19690     (
19691       cat <<\_ASBOX
19692 ## ------------------------------------ ##
19693 ## Report this to bug-autoconf@gnu.org. ##
19694 ## ------------------------------------ ##
19695 _ASBOX
19696     ) |
19697       sed "s/^/$as_me: WARNING:     /" >&2
19698     ;;
19699 esac
19700 echo "$as_me:$LINENO: checking for $ac_header" >&5
19701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19703   echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705   eval "$as_ac_Header=$ac_header_preproc"
19706 fi
19707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19709
19710 fi
19711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19712   cat >>confdefs.h <<_ACEOF
19713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19714 _ACEOF
19715
19716 fi
19717
19718 done
19719
19720
19721
19722 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19723 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19724 if test "${ac_cv_c_const+set}" = set; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727   cat >conftest.$ac_ext <<_ACEOF
19728 #line $LINENO "configure"
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734
19735 int
19736 main ()
19737 {
19738 /* FIXME: Include the comments suggested by Paul. */
19739 #ifndef __cplusplus
19740   /* Ultrix mips cc rejects this.  */
19741   typedef int charset[2];
19742   const charset x;
19743   /* SunOS 4.1.1 cc rejects this.  */
19744   char const *const *ccp;
19745   char **p;
19746   /* NEC SVR4.0.2 mips cc rejects this.  */
19747   struct point {int x, y;};
19748   static struct point const zero = {0,0};
19749   /* AIX XL C 1.02.0.0 rejects this.
19750      It does not let you subtract one const X* pointer from another in
19751      an arm of an if-expression whose if-part is not a constant
19752      expression */
19753   const char *g = "string";
19754   ccp = &g + (g ? g-g : 0);
19755   /* HPUX 7.0 cc rejects these. */
19756   ++ccp;
19757   p = (char**) ccp;
19758   ccp = (char const *const *) p;
19759   { /* SCO 3.2v4 cc rejects this.  */
19760     char *t;
19761     char const *s = 0 ? (char *) 0 : (char const *) 0;
19762
19763     *t++ = 0;
19764   }
19765   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19766     int x[] = {25, 17};
19767     const int *foo = &x[0];
19768     ++foo;
19769   }
19770   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19771     typedef const int *iptr;
19772     iptr p = 0;
19773     ++p;
19774   }
19775   { /* AIX XL C 1.02.0.0 rejects this saying
19776        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19777     struct s { int j; const int *ap[3]; };
19778     struct s *b; b->j = 5;
19779   }
19780   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19781     const int foo = 10;
19782   }
19783 #endif
19784
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>&5
19792   ac_status=$?
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -s conftest.$ac_objext'
19796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797   (eval $ac_try) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; }; then
19801   ac_cv_c_const=yes
19802 else
19803   echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 ac_cv_c_const=no
19807 fi
19808 rm -f conftest.$ac_objext conftest.$ac_ext
19809 fi
19810 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19811 echo "${ECHO_T}$ac_cv_c_const" >&6
19812 if test $ac_cv_c_const = no; then
19813
19814 cat >>confdefs.h <<\_ACEOF
19815 #define const
19816 _ACEOF
19817
19818 fi
19819
19820 echo "$as_me:$LINENO: checking for inline" >&5
19821 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19822 if test "${ac_cv_c_inline+set}" = set; then
19823   echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825   ac_cv_c_inline=no
19826 for ac_kw in inline __inline__ __inline; do
19827   cat >conftest.$ac_ext <<_ACEOF
19828 #line $LINENO "configure"
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 #ifndef __cplusplus
19835 typedef int foo_t;
19836 static $ac_kw foo_t static_foo () {return 0; }
19837 $ac_kw foo_t foo () {return 0; }
19838 #endif
19839
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843   (eval $ac_compile) 2>&5
19844   ac_status=$?
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } &&
19847          { ac_try='test -s conftest.$ac_objext'
19848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849   (eval $ac_try) 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }; }; then
19853   ac_cv_c_inline=$ac_kw; break
19854 else
19855   echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19857
19858 fi
19859 rm -f conftest.$ac_objext conftest.$ac_ext
19860 done
19861
19862 fi
19863 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19864 echo "${ECHO_T}$ac_cv_c_inline" >&6
19865 case $ac_cv_c_inline in
19866   inline | yes) ;;
19867   no)
19868 cat >>confdefs.h <<\_ACEOF
19869 #define inline
19870 _ACEOF
19871  ;;
19872   *)  cat >>confdefs.h <<_ACEOF
19873 #define inline $ac_cv_c_inline
19874 _ACEOF
19875  ;;
19876 esac
19877
19878
19879 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19880 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19881 if test "${ac_cv_c_bigendian+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   # See if sys/param.h defines the BYTE_ORDER macro.
19885 cat >conftest.$ac_ext <<_ACEOF
19886 #line $LINENO "configure"
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892 #include <sys/types.h>
19893 #include <sys/param.h>
19894
19895 int
19896 main ()
19897 {
19898 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19899  bogus endian macros
19900 #endif
19901
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908   (eval $ac_compile) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } &&
19912          { ac_try='test -s conftest.$ac_objext'
19913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914   (eval $ac_try) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; }; then
19918   # It does; now see whether it defined to BIG_ENDIAN or not.
19919 cat >conftest.$ac_ext <<_ACEOF
19920 #line $LINENO "configure"
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926 #include <sys/types.h>
19927 #include <sys/param.h>
19928
19929 int
19930 main ()
19931 {
19932 #if BYTE_ORDER != BIG_ENDIAN
19933  not big endian
19934 #endif
19935
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942   (eval $ac_compile) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } &&
19946          { ac_try='test -s conftest.$ac_objext'
19947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948   (eval $ac_try) 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; }; then
19952   ac_cv_c_bigendian=yes
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957 ac_cv_c_bigendian=no
19958 fi
19959 rm -f conftest.$ac_objext conftest.$ac_ext
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 # It does not; compile a test program.
19965 if test "$cross_compiling" = yes; then
19966   # try to guess the endianness by grepping values into an object file
19967   ac_cv_c_bigendian=unknown
19968   cat >conftest.$ac_ext <<_ACEOF
19969 #line $LINENO "configure"
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19976 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19977 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19978 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19979 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19980 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19981 int
19982 main ()
19983 {
19984  _ascii (); _ebcdic ();
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991   (eval $ac_compile) 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -s conftest.$ac_objext'
19996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997   (eval $ac_try) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; }; then
20001   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20002   ac_cv_c_bigendian=yes
20003 fi
20004 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20005   if test "$ac_cv_c_bigendian" = unknown; then
20006     ac_cv_c_bigendian=no
20007   else
20008     # finding both strings is unlikely to happen, but who knows?
20009     ac_cv_c_bigendian=unknown
20010   fi
20011 fi
20012 else
20013   echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 fi
20017 rm -f conftest.$ac_objext conftest.$ac_ext
20018 else
20019   cat >conftest.$ac_ext <<_ACEOF
20020 #line $LINENO "configure"
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 int
20027 main ()
20028 {
20029   /* Are we little or big endian?  From Harbison&Steele.  */
20030   union
20031   {
20032     long l;
20033     char c[sizeof (long)];
20034   } u;
20035   u.l = 1;
20036   exit (u.c[sizeof (long) - 1] == 1);
20037 }
20038 _ACEOF
20039 rm -f conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041   (eval $ac_link) 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046   (eval $ac_try) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; }; then
20050   ac_cv_c_bigendian=no
20051 else
20052   echo "$as_me: program exited with status $ac_status" >&5
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 ( exit $ac_status )
20057 ac_cv_c_bigendian=yes
20058 fi
20059 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20060 fi
20061 fi
20062 rm -f conftest.$ac_objext conftest.$ac_ext
20063 fi
20064 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20065 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20066 case $ac_cv_c_bigendian in
20067   yes)
20068
20069 cat >>confdefs.h <<\_ACEOF
20070 #define ENDIAN_BIG
20071 _ACEOF
20072  ;;
20073   no)
20074
20075 cat >>confdefs.h <<\_ACEOF
20076 #define ENDIAN_LITTLE
20077 _ACEOF
20078  ;;
20079   *)
20080     { { echo "$as_me:$LINENO: error: unknown endianness
20081 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20082 echo "$as_me: error: unknown endianness
20083 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20084    { (exit 1); exit 1; }; } ;;
20085 esac
20086
20087
20088 echo "$as_me:$LINENO: checking for pid_t" >&5
20089 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20090 if test "${ac_cv_type_pid_t+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   cat >conftest.$ac_ext <<_ACEOF
20094 #line $LINENO "configure"
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 $ac_includes_default
20101 int
20102 main ()
20103 {
20104 if ((pid_t *) 0)
20105   return 0;
20106 if (sizeof (pid_t))
20107   return 0;
20108   ;
20109   return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114   (eval $ac_compile) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } &&
20118          { ac_try='test -s conftest.$ac_objext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_type_pid_t=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_cv_type_pid_t=no
20130 fi
20131 rm -f conftest.$ac_objext conftest.$ac_ext
20132 fi
20133 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20134 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20135 if test $ac_cv_type_pid_t = yes; then
20136   :
20137 else
20138
20139 cat >>confdefs.h <<_ACEOF
20140 #define pid_t int
20141 _ACEOF
20142
20143 fi
20144
20145 echo "$as_me:$LINENO: checking for size_t" >&5
20146 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20147 if test "${ac_cv_type_size_t+set}" = set; then
20148   echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150   cat >conftest.$ac_ext <<_ACEOF
20151 #line $LINENO "configure"
20152 /* confdefs.h.  */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h.  */
20157 $ac_includes_default
20158 int
20159 main ()
20160 {
20161 if ((size_t *) 0)
20162   return 0;
20163 if (sizeof (size_t))
20164   return 0;
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171   (eval $ac_compile) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -s conftest.$ac_objext'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; }; then
20181   ac_cv_type_size_t=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186 ac_cv_type_size_t=no
20187 fi
20188 rm -f conftest.$ac_objext conftest.$ac_ext
20189 fi
20190 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20191 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20192 if test $ac_cv_type_size_t = yes; then
20193   :
20194 else
20195
20196 cat >>confdefs.h <<_ACEOF
20197 #define size_t unsigned
20198 _ACEOF
20199
20200 fi
20201
20202 echo "$as_me:$LINENO: checking for int64_t" >&5
20203 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20204 if test "${ac_cv_type_int64_t+set}" = set; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   cat >conftest.$ac_ext <<_ACEOF
20208 #line $LINENO "configure"
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 $ac_includes_default
20215 int
20216 main ()
20217 {
20218 if ((int64_t *) 0)
20219   return 0;
20220 if (sizeof (int64_t))
20221   return 0;
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext
20227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20228   (eval $ac_compile) 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } &&
20232          { ac_try='test -s conftest.$ac_objext'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_type_int64_t=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_type_int64_t=no
20244 fi
20245 rm -f conftest.$ac_objext conftest.$ac_ext
20246 fi
20247 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20248 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20249 if test $ac_cv_type_int64_t = yes; then
20250
20251 cat >>confdefs.h <<_ACEOF
20252 #define HAVE_INT64_T 1
20253 _ACEOF
20254
20255
20256 else
20257   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20258 echo "$as_me: error: Type int64_t required but not found" >&2;}
20259    { (exit 1); exit 1; }; }
20260 fi
20261
20262 echo "$as_me:$LINENO: checking for uint64_t" >&5
20263 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20264 if test "${ac_cv_type_uint64_t+set}" = set; then
20265   echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267   cat >conftest.$ac_ext <<_ACEOF
20268 #line $LINENO "configure"
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274 $ac_includes_default
20275 int
20276 main ()
20277 {
20278 if ((uint64_t *) 0)
20279   return 0;
20280 if (sizeof (uint64_t))
20281   return 0;
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288   (eval $ac_compile) 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } &&
20292          { ac_try='test -s conftest.$ac_objext'
20293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294   (eval $ac_try) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   ac_cv_type_uint64_t=yes
20299 else
20300   echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 ac_cv_type_uint64_t=no
20304 fi
20305 rm -f conftest.$ac_objext conftest.$ac_ext
20306 fi
20307 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20308 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20309 if test $ac_cv_type_uint64_t = yes; then
20310
20311 cat >>confdefs.h <<_ACEOF
20312 #define HAVE_UINT64_T 1
20313 _ACEOF
20314
20315
20316 else
20317   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20318 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20319    { (exit 1); exit 1; }; }
20320 fi
20321
20322 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20323 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20324 if test "${ac_cv_header_time+set}" = set; then
20325   echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327   cat >conftest.$ac_ext <<_ACEOF
20328 #line $LINENO "configure"
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334 #include <sys/types.h>
20335 #include <sys/time.h>
20336 #include <time.h>
20337
20338 int
20339 main ()
20340 {
20341 if ((struct tm *) 0)
20342 return 0;
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349   (eval $ac_compile) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -s conftest.$ac_objext'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_header_time=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ac_cv_header_time=no
20365 fi
20366 rm -f conftest.$ac_objext conftest.$ac_ext
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20369 echo "${ECHO_T}$ac_cv_header_time" >&6
20370 if test $ac_cv_header_time = yes; then
20371
20372 cat >>confdefs.h <<\_ACEOF
20373 #define TIME_WITH_SYS_TIME 1
20374 _ACEOF
20375
20376 fi
20377
20378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20380 if test "${ac_cv_struct_tm+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384 #line $LINENO "configure"
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 #include <sys/types.h>
20391 #include <time.h>
20392
20393 int
20394 main ()
20395 {
20396 struct tm *tp; tp->tm_sec;
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403   (eval $ac_compile) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); } &&
20407          { ac_try='test -s conftest.$ac_objext'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; }; then
20413   ac_cv_struct_tm=time.h
20414 else
20415   echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ac_cv_struct_tm=sys/time.h
20419 fi
20420 rm -f conftest.$ac_objext conftest.$ac_ext
20421 fi
20422 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20423 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20424 if test $ac_cv_struct_tm = sys/time.h; then
20425
20426 cat >>confdefs.h <<\_ACEOF
20427 #define TM_IN_SYS_TIME 1
20428 _ACEOF
20429
20430 fi
20431
20432
20433
20434
20435
20436         ac_ext=c
20437 ac_cpp='$CPP $CPPFLAGS'
20438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441
20442         if test "$cross_compiling" = yes; then
20443   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20444 See \`config.log' for more details." >&5
20445 echo "$as_me: error: cannot run test program while cross compiling
20446 See \`config.log' for more details." >&2;}
20447    { (exit 1); exit 1; }; }
20448 else
20449   cat >conftest.$ac_ext <<_ACEOF
20450 #line $LINENO "configure"
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 #include <stdio.h>
20457                                  #include <stdlib.h>
20458 int
20459 main ()
20460 {
20461
20462                                  volatile double A, B;
20463                                  char Buffer[100];
20464                                  A = 1;
20465                                  A /= 10.0;
20466                                  sprintf(Buffer, "%a", A);
20467                                  B = atof(Buffer);
20468                                  if (A != B)
20469                                                          return (1);
20470                                  if (A != 0x1.999999999999ap-4)
20471                                                          return (1);
20472                                  return (0);
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest$ac_exeext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20479   (eval $ac_link) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; }; then
20488   ac_c_printf_a=yes
20489 else
20490   echo "$as_me: program exited with status $ac_status" >&5
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ( exit $ac_status )
20495 ac_c_printf_a=no
20496 fi
20497 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20498 fi
20499         ac_ext=c
20500 ac_cpp='$CPP $CPPFLAGS'
20501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504
20505         if test "$ac_c_printf_a" = "yes"; then
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_PRINTF_A 1
20509 _ACEOF
20510
20511         fi
20512
20513
20514 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20515 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20516 if test "${ac_cv_cxx_namespaces+set}" = set; then
20517   echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519
20520
20521  ac_ext=cc
20522 ac_cpp='$CXXCPP $CPPFLAGS'
20523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20526
20527  cat >conftest.$ac_ext <<_ACEOF
20528 #line $LINENO "configure"
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 namespace Outer { namespace Inner { int i = 0; }}
20535 int
20536 main ()
20537 {
20538 using namespace Outer::Inner; return i;
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545   (eval $ac_compile) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -s conftest.$ac_objext'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; }; then
20555   ac_cv_cxx_namespaces=yes
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_cxx_namespaces=no
20561 fi
20562 rm -f conftest.$ac_objext conftest.$ac_ext
20563  ac_ext=c
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570 fi
20571 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20572 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20573 if test "$ac_cv_cxx_namespaces" = yes; then
20574
20575 cat >>confdefs.h <<\_ACEOF
20576 #define HAVE_NAMESPACES
20577 _ACEOF
20578
20579 fi
20580
20581 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20582 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20583 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20584   echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20586
20587
20588
20589   ac_ext=cc
20590 ac_cpp='$CXXCPP $CPPFLAGS'
20591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20594
20595   cat >conftest.$ac_ext <<_ACEOF
20596 #line $LINENO "configure"
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602 #include <ext/hash_map>
20603 #ifdef HAVE_NAMESPACES
20604 using namespace std;
20605 #endif
20606 int
20607 main ()
20608 {
20609 hash_map<int, int> t;
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616   (eval $ac_compile) 2>&5
20617   ac_status=$?
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } &&
20620          { ac_try='test -s conftest.$ac_objext'
20621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622   (eval $ac_try) 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); }; }; then
20626   ac_cv_cxx_have_std_ext_hash_map=yes
20627 else
20628   echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631 ac_cv_cxx_have_std_ext_hash_map=no
20632 fi
20633 rm -f conftest.$ac_objext conftest.$ac_ext
20634   ac_ext=c
20635 ac_cpp='$CPP $CPPFLAGS'
20636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639
20640 fi
20641 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20642 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20643  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20644
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_STD_EXT_HASH_MAP
20647 _ACEOF
20648
20649  fi
20650  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20651 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20652 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655
20656
20657
20658   ac_ext=cc
20659 ac_cpp='$CXXCPP $CPPFLAGS'
20660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20663
20664   cat >conftest.$ac_ext <<_ACEOF
20665 #line $LINENO "configure"
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671 #include <ext/hash_map>
20672 #ifdef HAVE_NAMESPACES
20673 using namespace __gnu_cxx;
20674 #endif
20675 int
20676 main ()
20677 {
20678 hash_map<int,int> t;
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest.$ac_objext
20684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20685   (eval $ac_compile) 2>&5
20686   ac_status=$?
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } &&
20689          { ac_try='test -s conftest.$ac_objext'
20690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691   (eval $ac_try) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_cxx_have_gnu_ext_hash_map=yes
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 ac_cv_cxx_have_gnu_ext_hash_map=no
20701 fi
20702 rm -f conftest.$ac_objext conftest.$ac_ext
20703   ac_ext=c
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20708
20709 fi
20710 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20711 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20712  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20713
20714 cat >>confdefs.h <<\_ACEOF
20715 #define HAVE_GNU_EXT_HASH_MAP
20716 _ACEOF
20717
20718  fi
20719  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20720 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20721 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20722   echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724
20725
20726
20727   ac_ext=cc
20728 ac_cpp='$CXXCPP $CPPFLAGS'
20729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20732
20733   cat >conftest.$ac_ext <<_ACEOF
20734 #line $LINENO "configure"
20735 /* confdefs.h.  */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h.  */
20740 #include <hash_map>
20741 int
20742 main ()
20743 {
20744 hash_map<int,int> t;
20745   ;
20746   return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751   (eval $ac_compile) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_cv_cxx_have_global_hash_map=yes
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 ac_cv_cxx_have_global_hash_map=no
20767 fi
20768 rm -f conftest.$ac_objext conftest.$ac_ext
20769   ac_ext=c
20770 ac_cpp='$CPP $CPPFLAGS'
20771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20774
20775 fi
20776 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20777 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20778  if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_GLOBAL_HASH_MAP
20782 _ACEOF
20783
20784  fi
20785 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20786 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20787 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790
20791
20792
20793   ac_ext=cc
20794 ac_cpp='$CXXCPP $CPPFLAGS'
20795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799   cat >conftest.$ac_ext <<_ACEOF
20800 #line $LINENO "configure"
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 #include <ext/hash_set>
20807 #ifdef HAVE_NAMESPACES
20808 using namespace std;
20809 #endif
20810 int
20811 main ()
20812 {
20813 hash_set<int> t;
20814   ;
20815   return 0;
20816 }
20817 _ACEOF
20818 rm -f conftest.$ac_objext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20820   (eval $ac_compile) 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } &&
20824          { ac_try='test -s conftest.$ac_objext'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; }; then
20830   ac_cv_cxx_have_std_ext_hash_set=yes
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 ac_cv_cxx_have_std_ext_hash_set=no
20836 fi
20837 rm -f conftest.$ac_objext conftest.$ac_ext
20838   ac_ext=c
20839 ac_cpp='$CPP $CPPFLAGS'
20840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20843
20844 fi
20845 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20846 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20847  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_STD_EXT_HASH_SET
20851 _ACEOF
20852
20853  fi
20854  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20855 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20856 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20857   echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859
20860
20861
20862   ac_ext=cc
20863 ac_cpp='$CXXCPP $CPPFLAGS'
20864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20867
20868   cat >conftest.$ac_ext <<_ACEOF
20869 #line $LINENO "configure"
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <ext/hash_set>
20876 #ifdef HAVE_NAMESPACES
20877 using namespace __gnu_cxx;
20878 #endif
20879 int
20880 main ()
20881 {
20882 hash_set<int> t;
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20889   (eval $ac_compile) 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } &&
20893          { ac_try='test -s conftest.$ac_objext'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; }; then
20899   ac_cv_cxx_have_gnu_ext_hash_set=yes
20900 else
20901   echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 ac_cv_cxx_have_gnu_ext_hash_set=no
20905 fi
20906 rm -f conftest.$ac_objext conftest.$ac_ext
20907   ac_ext=c
20908 ac_cpp='$CPP $CPPFLAGS'
20909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912
20913 fi
20914 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20915 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20916  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20917
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_GNU_EXT_HASH_SET
20920 _ACEOF
20921
20922  fi
20923  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20924 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20925 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20926   echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928
20929
20930
20931   ac_ext=cc
20932 ac_cpp='$CXXCPP $CPPFLAGS'
20933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20936
20937   cat >conftest.$ac_ext <<_ACEOF
20938 #line $LINENO "configure"
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 #include <hash_set>
20945 int
20946 main ()
20947 {
20948 hash_set<int> t; return 0;
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955   (eval $ac_compile) 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } &&
20959          { ac_try='test -s conftest.$ac_objext'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; }; then
20965   ac_cv_cxx_have_global_hash_set=yes
20966 else
20967   echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970 ac_cv_cxx_have_global_hash_set=no
20971 fi
20972 rm -f conftest.$ac_objext conftest.$ac_ext
20973   ac_ext=c
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20978
20979 fi
20980 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20981 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20982  if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20983
20984 cat >>confdefs.h <<\_ACEOF
20985 #define HAVE_GLOBAL_HASH_SET
20986 _ACEOF
20987
20988  fi
20989 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20990 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20991 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994
20995
20996
20997   ac_ext=cc
20998 ac_cpp='$CXXCPP $CPPFLAGS'
20999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21002
21003   cat >conftest.$ac_ext <<_ACEOF
21004 #line $LINENO "configure"
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010 #include <ext/slist>
21011 #ifdef HAVE_NAMESPACES
21012 using namespace std;
21013 #endif
21014 int
21015 main ()
21016 {
21017 slist<int> s; return 0;
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024   (eval $ac_compile) 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } &&
21028          { ac_try='test -s conftest.$ac_objext'
21029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030   (eval $ac_try) 2>&5
21031   ac_status=$?
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); }; }; then
21034   ac_cv_cxx_have_ext_slist=std
21035 else
21036   echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 ac_cv_cxx_have_ext_slist=no
21040 fi
21041 rm -f conftest.$ac_objext conftest.$ac_ext
21042   cat >conftest.$ac_ext <<_ACEOF
21043 #line $LINENO "configure"
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 #include <ext/slist>
21050 #ifdef HAVE_NAMESPACES
21051 using namespace __gnu_cxx;
21052 #endif
21053 int
21054 main ()
21055 {
21056 slist<int> s; return 0;
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063   (eval $ac_compile) 2>&5
21064   ac_status=$?
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } &&
21067          { ac_try='test -s conftest.$ac_objext'
21068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069   (eval $ac_try) 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; }; then
21073   ac_cv_cxx_have_ext_slist=gnu
21074 else
21075   echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 ac_cv_cxx_have_ext_slist=no
21079 fi
21080 rm -f conftest.$ac_objext conftest.$ac_ext
21081
21082   ac_ext=c
21083 ac_cpp='$CPP $CPPFLAGS'
21084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088
21089 fi
21090 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21091 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21092 if test "$ac_cv_cxx_have_ext_slist" = std; then
21093
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_EXT_SLIST std
21096 _ACEOF
21097
21098 fi
21099 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_EXT_SLIST gnu
21103 _ACEOF
21104
21105 fi
21106
21107 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21108 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21109 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21110   echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112
21113
21114
21115   ac_ext=cc
21116 ac_cpp='$CXXCPP $CPPFLAGS'
21117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21120
21121   cat >conftest.$ac_ext <<_ACEOF
21122 #line $LINENO "configure"
21123 /* confdefs.h.  */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h.  */
21128 #include <iterator>
21129 #ifdef HAVE_NAMESPACES
21130 using namespace std;
21131 #endif
21132 int
21133 main ()
21134 {
21135 iterator<int,int,int> t; return 0;
21136   ;
21137   return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest.$ac_objext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21142   (eval $ac_compile) 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); } &&
21146          { ac_try='test -s conftest.$ac_objext'
21147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148   (eval $ac_try) 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); }; }; then
21152   ac_cv_cxx_have_std_iterator=yes
21153 else
21154   echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157 ac_cv_cxx_have_std_iterator=no
21158 fi
21159 rm -f conftest.$ac_objext conftest.$ac_ext
21160   ac_ext=c
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21165
21166
21167 fi
21168 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21169 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21170 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21171
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_STD_ITERATOR
21174 _ACEOF
21175
21176 fi
21177
21178 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21179 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21180 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183
21184
21185
21186   ac_ext=cc
21187 ac_cpp='$CXXCPP $CPPFLAGS'
21188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21191
21192   cat >conftest.$ac_ext <<_ACEOF
21193 #line $LINENO "configure"
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 #include <iterator>
21200 #ifdef HAVE_NAMESPACES
21201 using namespace std;
21202 #endif
21203 int
21204 main ()
21205 {
21206 bidirectional_iterator<int,int> t; return 0;
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>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); } &&
21217          { ac_try='test -s conftest.$ac_objext'
21218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219   (eval $ac_try) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_cv_cxx_have_bi_iterator=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228 ac_cv_cxx_have_bi_iterator=no
21229 fi
21230 rm -f conftest.$ac_objext conftest.$ac_ext
21231   ac_ext=c
21232 ac_cpp='$CPP $CPPFLAGS'
21233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21236
21237
21238 fi
21239 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21240 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21241 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21242
21243 cat >>confdefs.h <<\_ACEOF
21244 #define HAVE_BI_ITERATOR
21245 _ACEOF
21246
21247 fi
21248
21249 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21250 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21251 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254
21255
21256
21257   ac_ext=cc
21258 ac_cpp='$CXXCPP $CPPFLAGS'
21259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21262
21263   cat >conftest.$ac_ext <<_ACEOF
21264 #line $LINENO "configure"
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 #include <iterator>
21271 #ifdef HAVE_NAMESPACES
21272 using namespace std;
21273 #endif
21274 int
21275 main ()
21276 {
21277 forward_iterator<int,int> t; return 0;
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284   (eval $ac_compile) 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } &&
21288          { ac_try='test -s conftest.$ac_objext'
21289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290   (eval $ac_try) 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; }; then
21294   ac_cv_cxx_have_fwd_iterator=yes
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_cv_cxx_have_fwd_iterator=no
21300 fi
21301 rm -f conftest.$ac_objext conftest.$ac_ext
21302   ac_ext=c
21303 ac_cpp='$CPP $CPPFLAGS'
21304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307
21308
21309 fi
21310 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21311 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21312 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21313
21314 cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_FWD_ITERATOR
21316 _ACEOF
21317
21318 fi
21319
21320
21321 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21322 # for constant arguments.  Useless!
21323 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21324 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21325 if test "${ac_cv_working_alloca_h+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   cat >conftest.$ac_ext <<_ACEOF
21329 #line $LINENO "configure"
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 #include <alloca.h>
21336 int
21337 main ()
21338 {
21339 char *p = (char *) alloca (2 * sizeof (int));
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346   (eval $ac_link) 2>&5
21347   ac_status=$?
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); } &&
21350          { ac_try='test -s conftest$ac_exeext'
21351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352   (eval $ac_try) 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); }; }; then
21356   ac_cv_working_alloca_h=yes
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ac_cv_working_alloca_h=no
21362 fi
21363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21364 fi
21365 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21366 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21367 if test $ac_cv_working_alloca_h = yes; then
21368
21369 cat >>confdefs.h <<\_ACEOF
21370 #define HAVE_ALLOCA_H 1
21371 _ACEOF
21372
21373 fi
21374
21375 echo "$as_me:$LINENO: checking for alloca" >&5
21376 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21377 if test "${ac_cv_func_alloca_works+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   cat >conftest.$ac_ext <<_ACEOF
21381 #line $LINENO "configure"
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 #ifdef __GNUC__
21388 # define alloca __builtin_alloca
21389 #else
21390 # ifdef _MSC_VER
21391 #  include <malloc.h>
21392 #  define alloca _alloca
21393 # else
21394 #  if HAVE_ALLOCA_H
21395 #   include <alloca.h>
21396 #  else
21397 #   ifdef _AIX
21398  #pragma alloca
21399 #   else
21400 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21401 char *alloca ();
21402 #    endif
21403 #   endif
21404 #  endif
21405 # endif
21406 #endif
21407
21408 int
21409 main ()
21410 {
21411 char *p = (char *) alloca (1);
21412   ;
21413   return 0;
21414 }
21415 _ACEOF
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21418   (eval $ac_link) 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } &&
21422          { ac_try='test -s conftest$ac_exeext'
21423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424   (eval $ac_try) 2>&5
21425   ac_status=$?
21426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427   (exit $ac_status); }; }; then
21428   ac_cv_func_alloca_works=yes
21429 else
21430   echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433 ac_cv_func_alloca_works=no
21434 fi
21435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21436 fi
21437 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21438 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21439
21440 if test $ac_cv_func_alloca_works = yes; then
21441
21442 cat >>confdefs.h <<\_ACEOF
21443 #define HAVE_ALLOCA 1
21444 _ACEOF
21445
21446 else
21447   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21448 # that cause trouble.  Some versions do not even contain alloca or
21449 # contain a buggy version.  If you still want to use their alloca,
21450 # use ar to extract alloca.o from them instead of compiling alloca.c.
21451
21452 ALLOCA=alloca.$ac_objext
21453
21454 cat >>confdefs.h <<\_ACEOF
21455 #define C_ALLOCA 1
21456 _ACEOF
21457
21458
21459 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21460 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21461 if test "${ac_cv_os_cray+set}" = set; then
21462   echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464   cat >conftest.$ac_ext <<_ACEOF
21465 #line $LINENO "configure"
21466 /* confdefs.h.  */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h.  */
21471 #if defined(CRAY) && ! defined(CRAY2)
21472 webecray
21473 #else
21474 wenotbecray
21475 #endif
21476
21477 _ACEOF
21478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21479   $EGREP "webecray" >/dev/null 2>&1; then
21480   ac_cv_os_cray=yes
21481 else
21482   ac_cv_os_cray=no
21483 fi
21484 rm -f conftest*
21485
21486 fi
21487 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21488 echo "${ECHO_T}$ac_cv_os_cray" >&6
21489 if test $ac_cv_os_cray = yes; then
21490   for ac_func in _getb67 GETB67 getb67; do
21491     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21492 echo "$as_me:$LINENO: checking for $ac_func" >&5
21493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21494 if eval "test \"\${$as_ac_var+set}\" = set"; then
21495   echo $ECHO_N "(cached) $ECHO_C" >&6
21496 else
21497   cat >conftest.$ac_ext <<_ACEOF
21498 #line $LINENO "configure"
21499 /* confdefs.h.  */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h.  */
21504 /* System header to define __stub macros and hopefully few prototypes,
21505     which can conflict with char $ac_func (); below.
21506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21507     <limits.h> exists even on freestanding compilers.  */
21508 #ifdef __STDC__
21509 # include <limits.h>
21510 #else
21511 # include <assert.h>
21512 #endif
21513 /* Override any gcc2 internal prototype to avoid an error.  */
21514 #ifdef __cplusplus
21515 extern "C"
21516 {
21517 #endif
21518 /* We use char because int might match the return type of a gcc2
21519    builtin and then its argument prototype would still apply.  */
21520 char $ac_func ();
21521 /* The GNU C library defines this for functions which it implements
21522     to always fail with ENOSYS.  Some functions are actually named
21523     something starting with __ and the normal name is an alias.  */
21524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21525 choke me
21526 #else
21527 char (*f) () = $ac_func;
21528 #endif
21529 #ifdef __cplusplus
21530 }
21531 #endif
21532
21533 int
21534 main ()
21535 {
21536 return f != $ac_func;
21537   ;
21538   return 0;
21539 }
21540 _ACEOF
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21543   (eval $ac_link) 2>&5
21544   ac_status=$?
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); } &&
21547          { ac_try='test -s conftest$ac_exeext'
21548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549   (eval $ac_try) 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); }; }; then
21553   eval "$as_ac_var=yes"
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 eval "$as_ac_var=no"
21559 fi
21560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21561 fi
21562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21564 if test `eval echo '${'$as_ac_var'}'` = yes; then
21565
21566 cat >>confdefs.h <<_ACEOF
21567 #define CRAY_STACKSEG_END $ac_func
21568 _ACEOF
21569
21570     break
21571 fi
21572
21573   done
21574 fi
21575
21576 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21577 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21578 if test "${ac_cv_c_stack_direction+set}" = set; then
21579   echo $ECHO_N "(cached) $ECHO_C" >&6
21580 else
21581   if test "$cross_compiling" = yes; then
21582   ac_cv_c_stack_direction=0
21583 else
21584   cat >conftest.$ac_ext <<_ACEOF
21585 #line $LINENO "configure"
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 int
21592 find_stack_direction ()
21593 {
21594   static char *addr = 0;
21595   auto char dummy;
21596   if (addr == 0)
21597     {
21598       addr = &dummy;
21599       return find_stack_direction ();
21600     }
21601   else
21602     return (&dummy > addr) ? 1 : -1;
21603 }
21604
21605 int
21606 main ()
21607 {
21608   exit (find_stack_direction () < 0);
21609 }
21610 _ACEOF
21611 rm -f conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613   (eval $ac_link) 2>&5
21614   ac_status=$?
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618   (eval $ac_try) 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); }; }; then
21622   ac_cv_c_stack_direction=1
21623 else
21624   echo "$as_me: program exited with status $ac_status" >&5
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 ( exit $ac_status )
21629 ac_cv_c_stack_direction=-1
21630 fi
21631 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21632 fi
21633 fi
21634 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21635 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21636
21637 cat >>confdefs.h <<_ACEOF
21638 #define STACK_DIRECTION $ac_cv_c_stack_direction
21639 _ACEOF
21640
21641
21642 fi
21643
21644 if test $ac_cv_c_compiler_gnu = yes; then
21645     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21646 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21647 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650     ac_pattern="Autoconf.*'x'"
21651   cat >conftest.$ac_ext <<_ACEOF
21652 #line $LINENO "configure"
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 #include <sgtty.h>
21659 Autoconf TIOCGETP
21660 _ACEOF
21661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21662   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21663   ac_cv_prog_gcc_traditional=yes
21664 else
21665   ac_cv_prog_gcc_traditional=no
21666 fi
21667 rm -f conftest*
21668
21669
21670   if test $ac_cv_prog_gcc_traditional = no; then
21671     cat >conftest.$ac_ext <<_ACEOF
21672 #line $LINENO "configure"
21673 /* confdefs.h.  */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h.  */
21678 #include <termio.h>
21679 Autoconf TCGETA
21680 _ACEOF
21681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21682   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21683   ac_cv_prog_gcc_traditional=yes
21684 fi
21685 rm -f conftest*
21686
21687   fi
21688 fi
21689 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21690 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21691   if test $ac_cv_prog_gcc_traditional = yes; then
21692     CC="$CC -traditional"
21693   fi
21694 fi
21695
21696 echo "$as_me:$LINENO: checking for working memcmp" >&5
21697 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21698 if test "${ac_cv_func_memcmp_working+set}" = set; then
21699   echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701   if test "$cross_compiling" = yes; then
21702   ac_cv_func_memcmp_working=no
21703 else
21704   cat >conftest.$ac_ext <<_ACEOF
21705 #line $LINENO "configure"
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711
21712 int
21713 main ()
21714 {
21715
21716   /* Some versions of memcmp are not 8-bit clean.  */
21717   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21718   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21719     exit (1);
21720
21721   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21722      or more and with at least one buffer not starting on a 4-byte boundary.
21723      William Lewis provided this test program.   */
21724   {
21725     char foo[21];
21726     char bar[21];
21727     int i;
21728     for (i = 0; i < 4; i++)
21729       {
21730         char *a = foo + i;
21731         char *b = bar + i;
21732         strcpy (a, "--------01111111");
21733         strcpy (b, "--------10000000");
21734         if (memcmp (a, b, 16) >= 0)
21735           exit (1);
21736       }
21737     exit (0);
21738   }
21739
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest$ac_exeext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21746   (eval $ac_link) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751   (eval $ac_try) 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; }; then
21755   ac_cv_func_memcmp_working=yes
21756 else
21757   echo "$as_me: program exited with status $ac_status" >&5
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761 ( exit $ac_status )
21762 ac_cv_func_memcmp_working=no
21763 fi
21764 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21765 fi
21766 fi
21767 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21768 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21769 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21770
21771
21772
21773 for ac_header in stdlib.h unistd.h
21774 do
21775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21777   echo "$as_me:$LINENO: checking for $ac_header" >&5
21778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 fi
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21784 else
21785   # Is the header compilable?
21786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21788 cat >conftest.$ac_ext <<_ACEOF
21789 #line $LINENO "configure"
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795 $ac_includes_default
21796 #include <$ac_header>
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800   (eval $ac_compile) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } &&
21804          { ac_try='test -s conftest.$ac_objext'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; }; then
21810   ac_header_compiler=yes
21811 else
21812   echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815 ac_header_compiler=no
21816 fi
21817 rm -f conftest.$ac_objext conftest.$ac_ext
21818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21819 echo "${ECHO_T}$ac_header_compiler" >&6
21820
21821 # Is the header present?
21822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21825 #line $LINENO "configure"
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831 #include <$ac_header>
21832 _ACEOF
21833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } >/dev/null; then
21841   if test -s conftest.err; then
21842     ac_cpp_err=$ac_c_preproc_warn_flag
21843   else
21844     ac_cpp_err=
21845   fi
21846 else
21847   ac_cpp_err=yes
21848 fi
21849 if test -z "$ac_cpp_err"; then
21850   ac_header_preproc=yes
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855   ac_header_preproc=no
21856 fi
21857 rm -f conftest.err conftest.$ac_ext
21858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21859 echo "${ECHO_T}$ac_header_preproc" >&6
21860
21861 # So?  What about this header?
21862 case $ac_header_compiler:$ac_header_preproc in
21863   yes:no )
21864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21868     (
21869       cat <<\_ASBOX
21870 ## ------------------------------------ ##
21871 ## Report this to bug-autoconf@gnu.org. ##
21872 ## ------------------------------------ ##
21873 _ASBOX
21874     ) |
21875       sed "s/^/$as_me: WARNING:     /" >&2
21876     ;;
21877   no:yes )
21878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21880     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21884     (
21885       cat <<\_ASBOX
21886 ## ------------------------------------ ##
21887 ## Report this to bug-autoconf@gnu.org. ##
21888 ## ------------------------------------ ##
21889 _ASBOX
21890     ) |
21891       sed "s/^/$as_me: WARNING:     /" >&2
21892     ;;
21893 esac
21894 echo "$as_me:$LINENO: checking for $ac_header" >&5
21895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899   eval "$as_ac_Header=$ac_header_preproc"
21900 fi
21901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21903
21904 fi
21905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21906   cat >>confdefs.h <<_ACEOF
21907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21908 _ACEOF
21909
21910 fi
21911
21912 done
21913
21914
21915 for ac_func in getpagesize
21916 do
21917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21918 echo "$as_me:$LINENO: checking for $ac_func" >&5
21919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21920 if eval "test \"\${$as_ac_var+set}\" = set"; then
21921   echo $ECHO_N "(cached) $ECHO_C" >&6
21922 else
21923   cat >conftest.$ac_ext <<_ACEOF
21924 #line $LINENO "configure"
21925 /* confdefs.h.  */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h.  */
21930 /* System header to define __stub macros and hopefully few prototypes,
21931     which can conflict with char $ac_func (); below.
21932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21933     <limits.h> exists even on freestanding compilers.  */
21934 #ifdef __STDC__
21935 # include <limits.h>
21936 #else
21937 # include <assert.h>
21938 #endif
21939 /* Override any gcc2 internal prototype to avoid an error.  */
21940 #ifdef __cplusplus
21941 extern "C"
21942 {
21943 #endif
21944 /* We use char because int might match the return type of a gcc2
21945    builtin and then its argument prototype would still apply.  */
21946 char $ac_func ();
21947 /* The GNU C library defines this for functions which it implements
21948     to always fail with ENOSYS.  Some functions are actually named
21949     something starting with __ and the normal name is an alias.  */
21950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21951 choke me
21952 #else
21953 char (*f) () = $ac_func;
21954 #endif
21955 #ifdef __cplusplus
21956 }
21957 #endif
21958
21959 int
21960 main ()
21961 {
21962 return f != $ac_func;
21963   ;
21964   return 0;
21965 }
21966 _ACEOF
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21969   (eval $ac_link) 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); } &&
21973          { ac_try='test -s conftest$ac_exeext'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   eval "$as_ac_var=yes"
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 eval "$as_ac_var=no"
21985 fi
21986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21987 fi
21988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21990 if test `eval echo '${'$as_ac_var'}'` = yes; then
21991   cat >>confdefs.h <<_ACEOF
21992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21993 _ACEOF
21994
21995 fi
21996 done
21997
21998 echo "$as_me:$LINENO: checking for working mmap" >&5
21999 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22000 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22001   echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003   if test "$cross_compiling" = yes; then
22004   ac_cv_func_mmap_fixed_mapped=no
22005 else
22006   cat >conftest.$ac_ext <<_ACEOF
22007 #line $LINENO "configure"
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013 $ac_includes_default
22014 /* malloc might have been renamed as rpl_malloc. */
22015 #undef malloc
22016
22017 /* Thanks to Mike Haertel and Jim Avera for this test.
22018    Here is a matrix of mmap possibilities:
22019         mmap private not fixed
22020         mmap private fixed at somewhere currently unmapped
22021         mmap private fixed at somewhere already mapped
22022         mmap shared not fixed
22023         mmap shared fixed at somewhere currently unmapped
22024         mmap shared fixed at somewhere already mapped
22025    For private mappings, we should verify that changes cannot be read()
22026    back from the file, nor mmap's back from the file at a different
22027    address.  (There have been systems where private was not correctly
22028    implemented like the infamous i386 svr4.0, and systems where the
22029    VM page cache was not coherent with the file system buffer cache
22030    like early versions of FreeBSD and possibly contemporary NetBSD.)
22031    For shared mappings, we should conversely verify that changes get
22032    propagated back to all the places they're supposed to be.
22033
22034    Grep wants private fixed already mapped.
22035    The main things grep needs to know about mmap are:
22036    * does it exist and is it safe to write into the mmap'd area
22037    * how to use it (BSD variants)  */
22038
22039 #include <fcntl.h>
22040 #include <sys/mman.h>
22041
22042 #if !STDC_HEADERS && !HAVE_STDLIB_H
22043 char *malloc ();
22044 #endif
22045
22046 /* This mess was copied from the GNU getpagesize.h.  */
22047 #if !HAVE_GETPAGESIZE
22048 /* Assume that all systems that can run configure have sys/param.h.  */
22049 # if !HAVE_SYS_PARAM_H
22050 #  define HAVE_SYS_PARAM_H 1
22051 # endif
22052
22053 # ifdef _SC_PAGESIZE
22054 #  define getpagesize() sysconf(_SC_PAGESIZE)
22055 # else /* no _SC_PAGESIZE */
22056 #  if HAVE_SYS_PARAM_H
22057 #   include <sys/param.h>
22058 #   ifdef EXEC_PAGESIZE
22059 #    define getpagesize() EXEC_PAGESIZE
22060 #   else /* no EXEC_PAGESIZE */
22061 #    ifdef NBPG
22062 #     define getpagesize() NBPG * CLSIZE
22063 #     ifndef CLSIZE
22064 #      define CLSIZE 1
22065 #     endif /* no CLSIZE */
22066 #    else /* no NBPG */
22067 #     ifdef NBPC
22068 #      define getpagesize() NBPC
22069 #     else /* no NBPC */
22070 #      ifdef PAGESIZE
22071 #       define getpagesize() PAGESIZE
22072 #      endif /* PAGESIZE */
22073 #     endif /* no NBPC */
22074 #    endif /* no NBPG */
22075 #   endif /* no EXEC_PAGESIZE */
22076 #  else /* no HAVE_SYS_PARAM_H */
22077 #   define getpagesize() 8192   /* punt totally */
22078 #  endif /* no HAVE_SYS_PARAM_H */
22079 # endif /* no _SC_PAGESIZE */
22080
22081 #endif /* no HAVE_GETPAGESIZE */
22082
22083 int
22084 main ()
22085 {
22086   char *data, *data2, *data3;
22087   int i, pagesize;
22088   int fd;
22089
22090   pagesize = getpagesize ();
22091
22092   /* First, make a file with some known garbage in it. */
22093   data = (char *) malloc (pagesize);
22094   if (!data)
22095     exit (1);
22096   for (i = 0; i < pagesize; ++i)
22097     *(data + i) = rand ();
22098   umask (0);
22099   fd = creat ("conftest.mmap", 0600);
22100   if (fd < 0)
22101     exit (1);
22102   if (write (fd, data, pagesize) != pagesize)
22103     exit (1);
22104   close (fd);
22105
22106   /* Next, try to mmap the file at a fixed address which already has
22107      something else allocated at it.  If we can, also make sure that
22108      we see the same garbage.  */
22109   fd = open ("conftest.mmap", O_RDWR);
22110   if (fd < 0)
22111     exit (1);
22112   data2 = (char *) malloc (2 * pagesize);
22113   if (!data2)
22114     exit (1);
22115   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22116   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22117                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22118     exit (1);
22119   for (i = 0; i < pagesize; ++i)
22120     if (*(data + i) != *(data2 + i))
22121       exit (1);
22122
22123   /* Finally, make sure that changes to the mapped area do not
22124      percolate back to the file as seen by read().  (This is a bug on
22125      some variants of i386 svr4.0.)  */
22126   for (i = 0; i < pagesize; ++i)
22127     *(data2 + i) = *(data2 + i) + 1;
22128   data3 = (char *) malloc (pagesize);
22129   if (!data3)
22130     exit (1);
22131   if (read (fd, data3, pagesize) != pagesize)
22132     exit (1);
22133   for (i = 0; i < pagesize; ++i)
22134     if (*(data + i) != *(data3 + i))
22135       exit (1);
22136   close (fd);
22137   exit (0);
22138 }
22139 _ACEOF
22140 rm -f conftest$ac_exeext
22141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22142   (eval $ac_link) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147   (eval $ac_try) 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; }; then
22151   ac_cv_func_mmap_fixed_mapped=yes
22152 else
22153   echo "$as_me: program exited with status $ac_status" >&5
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ( exit $ac_status )
22158 ac_cv_func_mmap_fixed_mapped=no
22159 fi
22160 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22161 fi
22162 fi
22163 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22164 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22165 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22166
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_MMAP 1
22169 _ACEOF
22170
22171 fi
22172 rm -f conftest.mmap
22173
22174 echo "$as_me:$LINENO: checking for mmap of files" >&5
22175 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22176 if test "${ac_cv_func_mmap_file+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179
22180
22181   ac_ext=c
22182 ac_cpp='$CPP $CPPFLAGS'
22183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22186
22187   if test "$cross_compiling" = yes; then
22188   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22189 See \`config.log' for more details." >&5
22190 echo "$as_me: error: cannot run test program while cross compiling
22191 See \`config.log' for more details." >&2;}
22192    { (exit 1); exit 1; }; }
22193 else
22194   cat >conftest.$ac_ext <<_ACEOF
22195 #line $LINENO "configure"
22196 /* confdefs.h.  */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h.  */
22201
22202 #ifdef HAVE_SYS_TYPES_H
22203 #include <sys/types.h>
22204 #endif
22205
22206 #ifdef HAVE_SYS_MMAN_H
22207 #include <sys/mman.h>
22208 #endif
22209
22210 #ifdef HAVE_FCNTL_H
22211 #include <fcntl.h>
22212 #endif
22213
22214   int fd;
22215   int main () {
22216   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22217 _ACEOF
22218 rm -f conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220   (eval $ac_link) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225   (eval $ac_try) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); }; }; then
22229   ac_cv_func_mmap_file=yes
22230 else
22231   echo "$as_me: program exited with status $ac_status" >&5
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 ( exit $ac_status )
22236 ac_cv_func_mmap_file=no
22237 fi
22238 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22239 fi
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
22247 fi
22248 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22249 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22250 if test "$ac_cv_func_mmap_file" = yes; then
22251
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_MMAP_FILE
22254 _ACEOF
22255
22256    MMAP_FILE=yes
22257
22258 fi
22259
22260 if test ${ac_cv_func_mmap_file} = "no"
22261 then
22262         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22263 echo "$as_me: error: mmap() of files required but not found" >&2;}
22264    { (exit 1); exit 1; }; }
22265 fi
22266 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22267 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22268 if test "${ac_cv_header_mmap_anon+set}" = set; then
22269   echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271
22272
22273   ac_ext=c
22274 ac_cpp='$CPP $CPPFLAGS'
22275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22278
22279   cat >conftest.$ac_ext <<_ACEOF
22280 #line $LINENO "configure"
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 #include <sys/mman.h>
22287   #include <unistd.h>
22288   #include <fcntl.h>
22289 int
22290 main ()
22291 {
22292 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299   (eval $ac_compile) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } &&
22303          { ac_try='test -s conftest.$ac_objext'
22304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; }; then
22309   ac_cv_header_mmap_anon=yes
22310 else
22311   echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 ac_cv_header_mmap_anon=no
22315 fi
22316 rm -f conftest.$ac_objext conftest.$ac_ext
22317   ac_ext=c
22318 ac_cpp='$CPP $CPPFLAGS'
22319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22322
22323
22324 fi
22325 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22326 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22327 if test "$ac_cv_header_mmap_anon" = yes; then
22328
22329 cat >>confdefs.h <<\_ACEOF
22330 #define HAVE_MMAP_ANONYMOUS
22331 _ACEOF
22332
22333 fi
22334
22335 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22336 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22337 if test "${ac_cv_type_signal+set}" = set; then
22338   echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340   cat >conftest.$ac_ext <<_ACEOF
22341 #line $LINENO "configure"
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 #include <sys/types.h>
22348 #include <signal.h>
22349 #ifdef signal
22350 # undef signal
22351 #endif
22352 #ifdef __cplusplus
22353 extern "C" void (*signal (int, void (*)(int)))(int);
22354 #else
22355 void (*signal ()) ();
22356 #endif
22357
22358 int
22359 main ()
22360 {
22361 int i;
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22368   (eval $ac_compile) 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } &&
22372          { ac_try='test -s conftest.$ac_objext'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_cv_type_signal=void
22379 else
22380   echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383 ac_cv_type_signal=int
22384 fi
22385 rm -f conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22388 echo "${ECHO_T}$ac_cv_type_signal" >&6
22389
22390 cat >>confdefs.h <<_ACEOF
22391 #define RETSIGTYPE $ac_cv_type_signal
22392 _ACEOF
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22407 do
22408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22409 echo "$as_me:$LINENO: checking for $ac_func" >&5
22410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22411 if eval "test \"\${$as_ac_var+set}\" = set"; then
22412   echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414   cat >conftest.$ac_ext <<_ACEOF
22415 #line $LINENO "configure"
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421 /* System header to define __stub macros and hopefully few prototypes,
22422     which can conflict with char $ac_func (); below.
22423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22424     <limits.h> exists even on freestanding compilers.  */
22425 #ifdef __STDC__
22426 # include <limits.h>
22427 #else
22428 # include <assert.h>
22429 #endif
22430 /* Override any gcc2 internal prototype to avoid an error.  */
22431 #ifdef __cplusplus
22432 extern "C"
22433 {
22434 #endif
22435 /* We use char because int might match the return type of a gcc2
22436    builtin and then its argument prototype would still apply.  */
22437 char $ac_func ();
22438 /* The GNU C library defines this for functions which it implements
22439     to always fail with ENOSYS.  Some functions are actually named
22440     something starting with __ and the normal name is an alias.  */
22441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22442 choke me
22443 #else
22444 char (*f) () = $ac_func;
22445 #endif
22446 #ifdef __cplusplus
22447 }
22448 #endif
22449
22450 int
22451 main ()
22452 {
22453 return f != $ac_func;
22454   ;
22455   return 0;
22456 }
22457 _ACEOF
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22460   (eval $ac_link) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); } &&
22464          { ac_try='test -s conftest$ac_exeext'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; }; then
22470   eval "$as_ac_var=yes"
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475 eval "$as_ac_var=no"
22476 fi
22477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22478 fi
22479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22481 if test `eval echo '${'$as_ac_var'}'` = yes; then
22482   cat >>confdefs.h <<_ACEOF
22483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22484 _ACEOF
22485
22486 fi
22487 done
22488
22489
22490
22491 echo "$as_me:$LINENO: checking for mmap" >&5
22492 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22493 if test "${ac_cv_func_mmap+set}" = set; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496   cat >conftest.$ac_ext <<_ACEOF
22497 #line $LINENO "configure"
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503 /* System header to define __stub macros and hopefully few prototypes,
22504     which can conflict with char mmap (); below.
22505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22506     <limits.h> exists even on freestanding compilers.  */
22507 #ifdef __STDC__
22508 # include <limits.h>
22509 #else
22510 # include <assert.h>
22511 #endif
22512 /* Override any gcc2 internal prototype to avoid an error.  */
22513 #ifdef __cplusplus
22514 extern "C"
22515 {
22516 #endif
22517 /* We use char because int might match the return type of a gcc2
22518    builtin and then its argument prototype would still apply.  */
22519 char mmap ();
22520 /* The GNU C library defines this for functions which it implements
22521     to always fail with ENOSYS.  Some functions are actually named
22522     something starting with __ and the normal name is an alias.  */
22523 #if defined (__stub_mmap) || defined (__stub___mmap)
22524 choke me
22525 #else
22526 char (*f) () = mmap;
22527 #endif
22528 #ifdef __cplusplus
22529 }
22530 #endif
22531
22532 int
22533 main ()
22534 {
22535 return f != mmap;
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542   (eval $ac_link) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } &&
22546          { ac_try='test -s conftest$ac_exeext'
22547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548   (eval $ac_try) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   ac_cv_func_mmap=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 ac_cv_func_mmap=no
22558 fi
22559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22560 fi
22561 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22562 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22563 if test $ac_cv_func_mmap = yes; then
22564   :
22565 else
22566   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22567 echo "$as_me: error: Function mmap() required but not found" >&2;}
22568    { (exit 1); exit 1; }; }
22569 fi
22570
22571 echo "$as_me:$LINENO: checking for mprotect" >&5
22572 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22573 if test "${ac_cv_func_mprotect+set}" = set; then
22574   echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576   cat >conftest.$ac_ext <<_ACEOF
22577 #line $LINENO "configure"
22578 /* confdefs.h.  */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h.  */
22583 /* System header to define __stub macros and hopefully few prototypes,
22584     which can conflict with char mprotect (); below.
22585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22586     <limits.h> exists even on freestanding compilers.  */
22587 #ifdef __STDC__
22588 # include <limits.h>
22589 #else
22590 # include <assert.h>
22591 #endif
22592 /* Override any gcc2 internal prototype to avoid an error.  */
22593 #ifdef __cplusplus
22594 extern "C"
22595 {
22596 #endif
22597 /* We use char because int might match the return type of a gcc2
22598    builtin and then its argument prototype would still apply.  */
22599 char mprotect ();
22600 /* The GNU C library defines this for functions which it implements
22601     to always fail with ENOSYS.  Some functions are actually named
22602     something starting with __ and the normal name is an alias.  */
22603 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22604 choke me
22605 #else
22606 char (*f) () = mprotect;
22607 #endif
22608 #ifdef __cplusplus
22609 }
22610 #endif
22611
22612 int
22613 main ()
22614 {
22615 return f != mprotect;
22616   ;
22617   return 0;
22618 }
22619 _ACEOF
22620 rm -f conftest.$ac_objext conftest$ac_exeext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22622   (eval $ac_link) 2>&5
22623   ac_status=$?
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } &&
22626          { ac_try='test -s conftest$ac_exeext'
22627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628   (eval $ac_try) 2>&5
22629   ac_status=$?
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); }; }; then
22632   ac_cv_func_mprotect=yes
22633 else
22634   echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637 ac_cv_func_mprotect=no
22638 fi
22639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22640 fi
22641 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22642 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22643 if test $ac_cv_func_mprotect = yes; then
22644   :
22645 else
22646   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22647 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22648    { (exit 1); exit 1; }; }
22649 fi
22650
22651
22652
22653
22654
22655   ac_ext=c
22656 ac_cpp='$CPP $CPPFLAGS'
22657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22660
22661   oldcflags="$CFLAGS"
22662   CFLAGS="$CFLAGS -Wl,-R."
22663   cat >conftest.$ac_ext <<_ACEOF
22664 int main() { return 0; }
22665 _ACEOF
22666 rm -f conftest.$ac_objext conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668   (eval $ac_link) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -s conftest$ac_exeext'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; }; then
22678   ac_cv_link_use_r=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683 ac_cv_link_use_r=no
22684 fi
22685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22686   CFLAGS="$oldcflags"
22687   ac_ext=c
22688 ac_cpp='$CPP $CPPFLAGS'
22689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22692
22693   if test "$ac_cv_link_use_r" = yes
22694   then
22695
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_LINK_R 1
22698 _ACEOF
22699
22700   fi
22701
22702
22703
22704 # Check whether --enable-purify or --disable-purify was given.
22705 if test "${enable_purify+set}" = set; then
22706   enableval="$enable_purify"
22707
22708 else
22709   enableval="no"
22710 fi;
22711 if test ${enableval} = "no"
22712 then
22713         ENABLE_PURIFY=
22714
22715 else
22716         ENABLE_PURIFY=ENABLE_PURIFY=1
22717
22718 fi
22719
22720 # Check whether --enable-optimized or --disable-optimized was given.
22721 if test "${enable_optimized+set}" = set; then
22722   enableval="$enable_optimized"
22723
22724 else
22725   enableval=no
22726 fi;
22727 if test ${enableval} = "no"
22728 then
22729         ENABLE_OPTIMIZED=
22730
22731 else
22732         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22733
22734 fi
22735
22736 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22737 if test "${enable_spec2000+set}" = set; then
22738   enableval="$enable_spec2000"
22739
22740 else
22741   enableval=no
22742 fi;
22743 if test ${enableval} = "no"
22744 then
22745         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22746         then
22747                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22748
22749                 USE_SPEC=USE_SPEC=1
22750
22751         else
22752                 USE_SPEC=
22753
22754
22755         fi
22756 else
22757         if test ${enableval} = ""
22758         then
22759                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22760
22761         else
22762                 SPEC_ROOT=${enableval}
22763
22764         fi
22765         USE_SPEC=USE_SPEC=1
22766
22767 fi
22768
22769 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22770 if test "${enable_precompiled_bytecode+set}" = set; then
22771   enableval="$enable_precompiled_bytecode"
22772
22773 else
22774   enableval=no
22775 fi;
22776 if test ${enableval} = "no"
22777 then
22778         UPB=
22779
22780 else
22781         UPB=USE_PRECOMPILED_BYTECODE=1
22782
22783 fi
22784
22785
22786 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22787 if test "${enable_llc_diffs+set}" = set; then
22788   enableval="$enable_llc_diffs"
22789
22790 else
22791   enableval=yes
22792 fi;
22793 if test ${enableval} = "no"
22794 then
22795         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22796
22797 else
22798         DISABLE_LLC_DIFFS=
22799
22800 fi
22801
22802 # Check whether --enable-jit or --disable-jit was given.
22803 if test "${enable_jit+set}" = set; then
22804   enableval="$enable_jit"
22805
22806 else
22807   enableval=default
22808 fi;
22809
22810 if test ${enableval} = "no"
22811 then
22812         JIT=
22813
22814 else
22815         case $target in
22816                 *i*86*)
22817                         JIT=TARGET_HAS_JIT=1
22818
22819                         ;;
22820                 *sparc*)
22821                         JIT=TARGET_HAS_JIT=1
22822
22823                         ;;
22824                 *)
22825                         JIT=
22826
22827                         ;;
22828         esac
22829 fi
22830
22831
22832
22833 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22834 if test "${with_llvmgccdir+set}" = set; then
22835   withval="$with_llvmgccdir"
22836   LLVMGCCDIR=$withval
22837
22838 fi;
22839
22840 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22841 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22842 LLVM_GCC_CHECK=no
22843 if test -d "$LLVMGCCDIR"
22844 then
22845         if test -x "$LLVMGCCDIR/bin/gcc"
22846         then
22847                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22848         fi
22849 fi
22850 llvmgccwarn=no
22851 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22852 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22853 if test "$LLVM_GCC_CHECK" = "no"
22854 then
22855     llvmgccwarn=yes
22856 fi
22857
22858 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22859 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22860 LLVM_GCC_SANE=no
22861 if test -x "$LLVM_GCC_CHECK"
22862 then
22863         cp /dev/null conftest.c
22864     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22865         if test $? -eq 0
22866         then
22867                 LLVM_GCC_SANE=yes
22868         fi
22869         rm conftest.c
22870 fi
22871 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22872 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22873 if test "$LLVM_GCC_SANE" = "no"
22874 then
22875         llvmgccwarn=yes
22876 fi
22877
22878
22879 # Check whether --with-bcrepos or --without-bcrepos was given.
22880 if test "${with_bcrepos+set}" = set; then
22881   withval="$with_bcrepos"
22882   BCR=$withval
22883
22884 else
22885   BCR=/home/vadve/lattner/LLVMPrograms
22886
22887 fi;
22888
22889
22890 # Check whether --with-papi or --without-papi was given.
22891 if test "${with_papi+set}" = set; then
22892   withval="$with_papi"
22893   PAPIDIR=$withval
22894
22895 else
22896   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22897
22898 fi;
22899
22900
22901 # Check whether --with-purify or --without-purify was given.
22902 if test "${with_purify+set}" = set; then
22903   withval="$with_purify"
22904   PURIFY=$withval
22905
22906 fi;
22907
22908
22909           ac_config_files="$ac_config_files Makefile.config"
22910 cat >confcache <<\_ACEOF
22911 # This file is a shell script that caches the results of configure
22912 # tests run on this system so they can be shared between configure
22913 # scripts and configure runs, see configure's option --config-cache.
22914 # It is not useful on other systems.  If it contains results you don't
22915 # want to keep, you may remove or edit it.
22916 #
22917 # config.status only pays attention to the cache file if you give it
22918 # the --recheck option to rerun configure.
22919 #
22920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22922 # following values.
22923
22924 _ACEOF
22925
22926 # The following way of writing the cache mishandles newlines in values,
22927 # but we know of no workaround that is simple, portable, and efficient.
22928 # So, don't put newlines in cache variables' values.
22929 # Ultrix sh set writes to stderr and can't be redirected directly,
22930 # and sets the high bit in the cache file unless we assign to the vars.
22931 {
22932   (set) 2>&1 |
22933     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22934     *ac_space=\ *)
22935       # `set' does not quote correctly, so add quotes (double-quote
22936       # substitution turns \\\\ into \\, and sed turns \\ into \).
22937       sed -n \
22938         "s/'/'\\\\''/g;
22939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22940       ;;
22941     *)
22942       # `set' quotes correctly as required by POSIX, so do not add quotes.
22943       sed -n \
22944         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22945       ;;
22946     esac;
22947 } |
22948   sed '
22949      t clear
22950      : clear
22951      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22952      t end
22953      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22954      : end' >>confcache
22955 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22956   if test -w $cache_file; then
22957     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22958     cat confcache >$cache_file
22959   else
22960     echo "not updating unwritable cache $cache_file"
22961   fi
22962 fi
22963 rm -f confcache
22964
22965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22966 # Let make expand exec_prefix.
22967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22968
22969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22971 # trailing colons and then remove the whole line if VPATH becomes empty
22972 # (actually we leave an empty line to preserve line numbers).
22973 if test "x$srcdir" = x.; then
22974   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22975 s/:*\$(srcdir):*/:/;
22976 s/:*\${srcdir}:*/:/;
22977 s/:*@srcdir@:*/:/;
22978 s/^\([^=]*=[    ]*\):*/\1/;
22979 s/:*$//;
22980 s/^[^=]*=[      ]*$//;
22981 }'
22982 fi
22983
22984 DEFS=-DHAVE_CONFIG_H
22985
22986 ac_libobjs=
22987 ac_ltlibobjs=
22988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22989   # 1. Remove the extension, and $U if already installed.
22990   ac_i=`echo "$ac_i" |
22991          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22992   # 2. Add them.
22993   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22994   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22995 done
22996 LIBOBJS=$ac_libobjs
22997
22998 LTLIBOBJS=$ac_ltlibobjs
22999
23000
23001
23002 : ${CONFIG_STATUS=./config.status}
23003 ac_clean_files_save=$ac_clean_files
23004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23005 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23006 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23007 cat >$CONFIG_STATUS <<_ACEOF
23008 #! $SHELL
23009 # Generated by $as_me.
23010 # Run this file to recreate the current configuration.
23011 # Compiler output produced by configure, useful for debugging
23012 # configure, is in config.log if it exists.
23013
23014 debug=false
23015 ac_cs_recheck=false
23016 ac_cs_silent=false
23017 SHELL=\${CONFIG_SHELL-$SHELL}
23018 _ACEOF
23019
23020 cat >>$CONFIG_STATUS <<\_ACEOF
23021 ## --------------------- ##
23022 ## M4sh Initialization.  ##
23023 ## --------------------- ##
23024
23025 # Be Bourne compatible
23026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23027   emulate sh
23028   NULLCMD=:
23029   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23030   # is contrary to our usage.  Disable this feature.
23031   alias -g '${1+"$@"}'='"$@"'
23032 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23033   set -o posix
23034 fi
23035
23036 # Support unset when possible.
23037 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23038   as_unset=unset
23039 else
23040   as_unset=false
23041 fi
23042
23043
23044 # Work around bugs in pre-3.0 UWIN ksh.
23045 $as_unset ENV MAIL MAILPATH
23046 PS1='$ '
23047 PS2='> '
23048 PS4='+ '
23049
23050 # NLS nuisances.
23051 for as_var in \
23052   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23053   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23054   LC_TELEPHONE LC_TIME
23055 do
23056   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23057     eval $as_var=C; export $as_var
23058   else
23059     $as_unset $as_var
23060   fi
23061 done
23062
23063 # Required to use basename.
23064 if expr a : '\(a\)' >/dev/null 2>&1; then
23065   as_expr=expr
23066 else
23067   as_expr=false
23068 fi
23069
23070 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23071   as_basename=basename
23072 else
23073   as_basename=false
23074 fi
23075
23076
23077 # Name of the executable.
23078 as_me=`$as_basename "$0" ||
23079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23080          X"$0" : 'X\(//\)$' \| \
23081          X"$0" : 'X\(/\)$' \| \
23082          .     : '\(.\)' 2>/dev/null ||
23083 echo X/"$0" |
23084     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23085           /^X\/\(\/\/\)$/{ s//\1/; q; }
23086           /^X\/\(\/\).*/{ s//\1/; q; }
23087           s/.*/./; q'`
23088
23089
23090 # PATH needs CR, and LINENO needs CR and PATH.
23091 # Avoid depending upon Character Ranges.
23092 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23093 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23094 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23095 as_cr_digits='0123456789'
23096 as_cr_alnum=$as_cr_Letters$as_cr_digits
23097
23098 # The user is always right.
23099 if test "${PATH_SEPARATOR+set}" != set; then
23100   echo "#! /bin/sh" >conf$$.sh
23101   echo  "exit 0"   >>conf$$.sh
23102   chmod +x conf$$.sh
23103   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23104     PATH_SEPARATOR=';'
23105   else
23106     PATH_SEPARATOR=:
23107   fi
23108   rm -f conf$$.sh
23109 fi
23110
23111
23112   as_lineno_1=$LINENO
23113   as_lineno_2=$LINENO
23114   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23115   test "x$as_lineno_1" != "x$as_lineno_2" &&
23116   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23117   # Find who we are.  Look in the path if we contain no path at all
23118   # relative or not.
23119   case $0 in
23120     *[\\/]* ) as_myself=$0 ;;
23121     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23122 for as_dir in $PATH
23123 do
23124   IFS=$as_save_IFS
23125   test -z "$as_dir" && as_dir=.
23126   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23127 done
23128
23129        ;;
23130   esac
23131   # We did not find ourselves, most probably we were run as `sh COMMAND'
23132   # in which case we are not to be found in the path.
23133   if test "x$as_myself" = x; then
23134     as_myself=$0
23135   fi
23136   if test ! -f "$as_myself"; then
23137     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23138 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23139    { (exit 1); exit 1; }; }
23140   fi
23141   case $CONFIG_SHELL in
23142   '')
23143     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23144 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23145 do
23146   IFS=$as_save_IFS
23147   test -z "$as_dir" && as_dir=.
23148   for as_base in sh bash ksh sh5; do
23149          case $as_dir in
23150          /*)
23151            if ("$as_dir/$as_base" -c '
23152   as_lineno_1=$LINENO
23153   as_lineno_2=$LINENO
23154   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23155   test "x$as_lineno_1" != "x$as_lineno_2" &&
23156   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23157              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23158              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23159              CONFIG_SHELL=$as_dir/$as_base
23160              export CONFIG_SHELL
23161              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23162            fi;;
23163          esac
23164        done
23165 done
23166 ;;
23167   esac
23168
23169   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23170   # uniformly replaced by the line number.  The first 'sed' inserts a
23171   # line-number line before each line; the second 'sed' does the real
23172   # work.  The second script uses 'N' to pair each line-number line
23173   # with the numbered line, and appends trailing '-' during
23174   # substitution so that $LINENO is not a special case at line end.
23175   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23176   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23177   sed '=' <$as_myself |
23178     sed '
23179       N
23180       s,$,-,
23181       : loop
23182       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23183       t loop
23184       s,-$,,
23185       s,^['$as_cr_digits']*\n,,
23186     ' >$as_me.lineno &&
23187   chmod +x $as_me.lineno ||
23188     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23189 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23190    { (exit 1); exit 1; }; }
23191
23192   # Don't try to exec as it changes $[0], causing all sort of problems
23193   # (the dirname of $[0] is not the place where we might find the
23194   # original and so on.  Autoconf is especially sensible to this).
23195   . ./$as_me.lineno
23196   # Exit status is that of the last command.
23197   exit
23198 }
23199
23200
23201 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23202   *c*,-n*) ECHO_N= ECHO_C='
23203 ' ECHO_T='      ' ;;
23204   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23205   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23206 esac
23207
23208 if expr a : '\(a\)' >/dev/null 2>&1; then
23209   as_expr=expr
23210 else
23211   as_expr=false
23212 fi
23213
23214 rm -f conf$$ conf$$.exe conf$$.file
23215 echo >conf$$.file
23216 if ln -s conf$$.file conf$$ 2>/dev/null; then
23217   # We could just check for DJGPP; but this test a) works b) is more generic
23218   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23219   if test -f conf$$.exe; then
23220     # Don't use ln at all; we don't have any links
23221     as_ln_s='cp -p'
23222   else
23223     as_ln_s='ln -s'
23224   fi
23225 elif ln conf$$.file conf$$ 2>/dev/null; then
23226   as_ln_s=ln
23227 else
23228   as_ln_s='cp -p'
23229 fi
23230 rm -f conf$$ conf$$.exe conf$$.file
23231
23232 if mkdir -p . 2>/dev/null; then
23233   as_mkdir_p=:
23234 else
23235   as_mkdir_p=false
23236 fi
23237
23238 as_executable_p="test -f"
23239
23240 # Sed expression to map a string onto a valid CPP name.
23241 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23242
23243 # Sed expression to map a string onto a valid variable name.
23244 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23245
23246
23247 # IFS
23248 # We need space, tab and new line, in precisely that order.
23249 as_nl='
23250 '
23251 IFS="   $as_nl"
23252
23253 # CDPATH.
23254 $as_unset CDPATH
23255
23256 exec 6>&1
23257
23258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23259 # report actual input values of CONFIG_FILES etc. instead of their
23260 # values after options handling.  Logging --version etc. is OK.
23261 exec 5>>config.log
23262 {
23263   echo
23264   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23265 ## Running $as_me. ##
23266 _ASBOX
23267 } >&5
23268 cat >&5 <<_CSEOF
23269
23270 This file was extended by [LLVM] $as_me [1.1], which was
23271 generated by GNU Autoconf 2.57.  Invocation command line was
23272
23273   CONFIG_FILES    = $CONFIG_FILES
23274   CONFIG_HEADERS  = $CONFIG_HEADERS
23275   CONFIG_LINKS    = $CONFIG_LINKS
23276   CONFIG_COMMANDS = $CONFIG_COMMANDS
23277   $ $0 $@
23278
23279 _CSEOF
23280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23281 echo >&5
23282 _ACEOF
23283
23284 # Files that config.status was made for.
23285 if test -n "$ac_config_files"; then
23286   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23287 fi
23288
23289 if test -n "$ac_config_headers"; then
23290   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23291 fi
23292
23293 if test -n "$ac_config_links"; then
23294   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23295 fi
23296
23297 if test -n "$ac_config_commands"; then
23298   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23299 fi
23300
23301 cat >>$CONFIG_STATUS <<\_ACEOF
23302
23303 ac_cs_usage="\
23304 \`$as_me' instantiates files from templates according to the
23305 current configuration.
23306
23307 Usage: $0 [OPTIONS] [FILE]...
23308
23309   -h, --help       print this help, then exit
23310   -V, --version    print version number, then exit
23311   -q, --quiet      do not print progress messages
23312   -d, --debug      don't remove temporary files
23313       --recheck    update $as_me by reconfiguring in the same conditions
23314   --file=FILE[:TEMPLATE]
23315                    instantiate the configuration file FILE
23316   --header=FILE[:TEMPLATE]
23317                    instantiate the configuration header FILE
23318
23319 Configuration files:
23320 $config_files
23321
23322 Configuration headers:
23323 $config_headers
23324
23325 Configuration commands:
23326 $config_commands
23327
23328 Report bugs to <bug-autoconf@gnu.org>."
23329 _ACEOF
23330
23331 cat >>$CONFIG_STATUS <<_ACEOF
23332 ac_cs_version="\\
23333 [LLVM] config.status [1.1]
23334 configured by $0, generated by GNU Autoconf 2.57,
23335   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23336
23337 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23338 Free Software Foundation, Inc.
23339 This config.status script is free software; the Free Software Foundation
23340 gives unlimited permission to copy, distribute and modify it."
23341 srcdir=$srcdir
23342 INSTALL="$INSTALL"
23343 _ACEOF
23344
23345 cat >>$CONFIG_STATUS <<\_ACEOF
23346 # If no file are specified by the user, then we need to provide default
23347 # value.  By we need to know if files were specified by the user.
23348 ac_need_defaults=:
23349 while test $# != 0
23350 do
23351   case $1 in
23352   --*=*)
23353     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23354     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23355     ac_shift=:
23356     ;;
23357   -*)
23358     ac_option=$1
23359     ac_optarg=$2
23360     ac_shift=shift
23361     ;;
23362   *) # This is not an option, so the user has probably given explicit
23363      # arguments.
23364      ac_option=$1
23365      ac_need_defaults=false;;
23366   esac
23367
23368   case $ac_option in
23369   # Handling of the options.
23370 _ACEOF
23371 cat >>$CONFIG_STATUS <<\_ACEOF
23372   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23373     ac_cs_recheck=: ;;
23374   --version | --vers* | -V )
23375     echo "$ac_cs_version"; exit 0 ;;
23376   --he | --h)
23377     # Conflict between --help and --header
23378     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23379 Try \`$0 --help' for more information." >&5
23380 echo "$as_me: error: ambiguous option: $1
23381 Try \`$0 --help' for more information." >&2;}
23382    { (exit 1); exit 1; }; };;
23383   --help | --hel | -h )
23384     echo "$ac_cs_usage"; exit 0 ;;
23385   --debug | --d* | -d )
23386     debug=: ;;
23387   --file | --fil | --fi | --f )
23388     $ac_shift
23389     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23390     ac_need_defaults=false;;
23391   --header | --heade | --head | --hea )
23392     $ac_shift
23393     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23394     ac_need_defaults=false;;
23395   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23396   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23397     ac_cs_silent=: ;;
23398
23399   # This is an error.
23400   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23401 Try \`$0 --help' for more information." >&5
23402 echo "$as_me: error: unrecognized option: $1
23403 Try \`$0 --help' for more information." >&2;}
23404    { (exit 1); exit 1; }; } ;;
23405
23406   *) ac_config_targets="$ac_config_targets $1" ;;
23407
23408   esac
23409   shift
23410 done
23411
23412 ac_configure_extra_args=
23413
23414 if $ac_cs_silent; then
23415   exec 6>/dev/null
23416   ac_configure_extra_args="$ac_configure_extra_args --silent"
23417 fi
23418
23419 _ACEOF
23420 cat >>$CONFIG_STATUS <<_ACEOF
23421 if \$ac_cs_recheck; then
23422   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23423   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23424 fi
23425
23426 _ACEOF
23427
23428 cat >>$CONFIG_STATUS <<_ACEOF
23429 #
23430 # INIT-COMMANDS section.
23431 #
23432
23433 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23480
23481 _ACEOF
23482
23483
23484
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 for ac_config_target in $ac_config_targets
23487 do
23488   case "$ac_config_target" in
23489   # Handling of arguments.
23490   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23491   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23492   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23493   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23494   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23495   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23496   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23497   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23498   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23499   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23500   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23501   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23502   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23503   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23504   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23505   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23506   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23507   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23508   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23509   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23510   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23511   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23512   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23513   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23514   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23515   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23516   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23517   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23518   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23519   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23520   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23521   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23522   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23523   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23524   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23525   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23526   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23527   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23528   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23529   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23530   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23531   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23532   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23533   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23534   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23535   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23536   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23537   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23538   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23539   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23540 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23541    { (exit 1); exit 1; }; };;
23542   esac
23543 done
23544
23545 # If the user did not use the arguments to specify the items to instantiate,
23546 # then the envvar interface is used.  Set only those that are not.
23547 # We use the long form for the default assignment because of an extremely
23548 # bizarre bug on SunOS 4.1.3.
23549 if $ac_need_defaults; then
23550   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23551   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23552   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23553 fi
23554
23555 # Have a temporary directory for convenience.  Make it in the build tree
23556 # simply because there is no reason to put it here, and in addition,
23557 # creating and moving files from /tmp can sometimes cause problems.
23558 # Create a temporary directory, and hook for its removal unless debugging.
23559 $debug ||
23560 {
23561   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23562   trap '{ (exit 1); exit 1; }' 1 2 13 15
23563 }
23564
23565 # Create a (secure) tmp directory for tmp files.
23566
23567 {
23568   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23569   test -n "$tmp" && test -d "$tmp"
23570 }  ||
23571 {
23572   tmp=./confstat$$-$RANDOM
23573   (umask 077 && mkdir $tmp)
23574 } ||
23575 {
23576    echo "$me: cannot create a temporary directory in ." >&2
23577    { (exit 1); exit 1; }
23578 }
23579
23580 _ACEOF
23581
23582 cat >>$CONFIG_STATUS <<_ACEOF
23583
23584 #
23585 # CONFIG_FILES section.
23586 #
23587
23588 # No need to generate the scripts if there are no CONFIG_FILES.
23589 # This happens for instance when ./config.status config.h
23590 if test -n "\$CONFIG_FILES"; then
23591   # Protect against being on the right side of a sed subst in config.status.
23592   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23593    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23594 s,@SHELL@,$SHELL,;t t
23595 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23596 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23597 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23598 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23599 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23600 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23601 s,@exec_prefix@,$exec_prefix,;t t
23602 s,@prefix@,$prefix,;t t
23603 s,@program_transform_name@,$program_transform_name,;t t
23604 s,@bindir@,$bindir,;t t
23605 s,@sbindir@,$sbindir,;t t
23606 s,@libexecdir@,$libexecdir,;t t
23607 s,@datadir@,$datadir,;t t
23608 s,@sysconfdir@,$sysconfdir,;t t
23609 s,@sharedstatedir@,$sharedstatedir,;t t
23610 s,@localstatedir@,$localstatedir,;t t
23611 s,@libdir@,$libdir,;t t
23612 s,@includedir@,$includedir,;t t
23613 s,@oldincludedir@,$oldincludedir,;t t
23614 s,@infodir@,$infodir,;t t
23615 s,@mandir@,$mandir,;t t
23616 s,@build_alias@,$build_alias,;t t
23617 s,@host_alias@,$host_alias,;t t
23618 s,@target_alias@,$target_alias,;t t
23619 s,@DEFS@,$DEFS,;t t
23620 s,@ECHO_C@,$ECHO_C,;t t
23621 s,@ECHO_N@,$ECHO_N,;t t
23622 s,@ECHO_T@,$ECHO_T,;t t
23623 s,@LIBS@,$LIBS,;t t
23624 s,@subdirs@,$subdirs,;t t
23625 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23626 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23627 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23628 s,@build@,$build,;t t
23629 s,@build_cpu@,$build_cpu,;t t
23630 s,@build_vendor@,$build_vendor,;t t
23631 s,@build_os@,$build_os,;t t
23632 s,@host@,$host,;t t
23633 s,@host_cpu@,$host_cpu,;t t
23634 s,@host_vendor@,$host_vendor,;t t
23635 s,@host_os@,$host_os,;t t
23636 s,@target@,$target,;t t
23637 s,@target_cpu@,$target_cpu,;t t
23638 s,@target_vendor@,$target_vendor,;t t
23639 s,@target_os@,$target_os,;t t
23640 s,@OS@,$OS,;t t
23641 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23642 s,@ARCH@,$ARCH,;t t
23643 s,@CXX@,$CXX,;t t
23644 s,@CXXFLAGS@,$CXXFLAGS,;t t
23645 s,@LDFLAGS@,$LDFLAGS,;t t
23646 s,@CPPFLAGS@,$CPPFLAGS,;t t
23647 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23648 s,@EXEEXT@,$EXEEXT,;t t
23649 s,@OBJEXT@,$OBJEXT,;t t
23650 s,@CC@,$CC,;t t
23651 s,@CFLAGS@,$CFLAGS,;t t
23652 s,@ac_ct_CC@,$ac_ct_CC,;t t
23653 s,@CPP@,$CPP,;t t
23654 s,@ifGNUmake@,$ifGNUmake,;t t
23655 s,@LEX@,$LEX,;t t
23656 s,@LEXLIB@,$LEXLIB,;t t
23657 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23658 s,@YACC@,$YACC,;t t
23659 s,@EGREP@,$EGREP,;t t
23660 s,@LN_S@,$LN_S,;t t
23661 s,@ECHO@,$ECHO,;t t
23662 s,@AR@,$AR,;t t
23663 s,@ac_ct_AR@,$ac_ct_AR,;t t
23664 s,@RANLIB@,$RANLIB,;t t
23665 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23666 s,@STRIP@,$STRIP,;t t
23667 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23668 s,@CXXCPP@,$CXXCPP,;t t
23669 s,@F77@,$F77,;t t
23670 s,@FFLAGS@,$FFLAGS,;t t
23671 s,@ac_ct_F77@,$ac_ct_F77,;t t
23672 s,@LIBTOOL@,$LIBTOOL,;t t
23673 s,@RPWD@,$RPWD,;t t
23674 s,@SED@,$SED,;t t
23675 s,@RM@,$RM,;t t
23676 s,@MKDIR@,$MKDIR,;t t
23677 s,@DATE@,$DATE,;t t
23678 s,@MV@,$MV,;t t
23679 s,@DOT@,$DOT,;t t
23680 s,@ETAGS@,$ETAGS,;t t
23681 s,@PYTHON@,$PYTHON,;t t
23682 s,@QMTEST@,$QMTEST,;t t
23683 s,@ALLOCA@,$ALLOCA,;t t
23684 s,@LIBOBJS@,$LIBOBJS,;t t
23685 s,@MMAP_FILE@,$MMAP_FILE,;t t
23686 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23687 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23688 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23689 s,@USE_SPEC@,$USE_SPEC,;t t
23690 s,@UPB@,$UPB,;t t
23691 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23692 s,@JIT@,$JIT,;t t
23693 s,@BCR@,$BCR,;t t
23694 s,@PAPIDIR@,$PAPIDIR,;t t
23695 s,@PURIFY@,$PURIFY,;t t
23696 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23697 CEOF
23698
23699 _ACEOF
23700
23701   cat >>$CONFIG_STATUS <<\_ACEOF
23702   # Split the substitutions into bite-sized pieces for seds with
23703   # small command number limits, like on Digital OSF/1 and HP-UX.
23704   ac_max_sed_lines=48
23705   ac_sed_frag=1 # Number of current file.
23706   ac_beg=1 # First line for current file.
23707   ac_end=$ac_max_sed_lines # Line after last line for current file.
23708   ac_more_lines=:
23709   ac_sed_cmds=
23710   while $ac_more_lines; do
23711     if test $ac_beg -gt 1; then
23712       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23713     else
23714       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23715     fi
23716     if test ! -s $tmp/subs.frag; then
23717       ac_more_lines=false
23718     else
23719       # The purpose of the label and of the branching condition is to
23720       # speed up the sed processing (if there are no `@' at all, there
23721       # is no need to browse any of the substitutions).
23722       # These are the two extra sed commands mentioned above.
23723       (echo ':t
23724   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23725       if test -z "$ac_sed_cmds"; then
23726         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23727       else
23728         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23729       fi
23730       ac_sed_frag=`expr $ac_sed_frag + 1`
23731       ac_beg=$ac_end
23732       ac_end=`expr $ac_end + $ac_max_sed_lines`
23733     fi
23734   done
23735   if test -z "$ac_sed_cmds"; then
23736     ac_sed_cmds=cat
23737   fi
23738 fi # test -n "$CONFIG_FILES"
23739
23740 _ACEOF
23741 cat >>$CONFIG_STATUS <<\_ACEOF
23742 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23743   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23744   case $ac_file in
23745   - | *:- | *:-:* ) # input from stdin
23746         cat >$tmp/stdin
23747         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23749   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23750         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23751   * )   ac_file_in=$ac_file.in ;;
23752   esac
23753
23754   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23755   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23757          X"$ac_file" : 'X\(//\)[^/]' \| \
23758          X"$ac_file" : 'X\(//\)$' \| \
23759          X"$ac_file" : 'X\(/\)' \| \
23760          .     : '\(.\)' 2>/dev/null ||
23761 echo X"$ac_file" |
23762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23763           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23764           /^X\(\/\/\)$/{ s//\1/; q; }
23765           /^X\(\/\).*/{ s//\1/; q; }
23766           s/.*/./; q'`
23767   { if $as_mkdir_p; then
23768     mkdir -p "$ac_dir"
23769   else
23770     as_dir="$ac_dir"
23771     as_dirs=
23772     while test ! -d "$as_dir"; do
23773       as_dirs="$as_dir $as_dirs"
23774       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776          X"$as_dir" : 'X\(//\)[^/]' \| \
23777          X"$as_dir" : 'X\(//\)$' \| \
23778          X"$as_dir" : 'X\(/\)' \| \
23779          .     : '\(.\)' 2>/dev/null ||
23780 echo X"$as_dir" |
23781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23782           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23783           /^X\(\/\/\)$/{ s//\1/; q; }
23784           /^X\(\/\).*/{ s//\1/; q; }
23785           s/.*/./; q'`
23786     done
23787     test ! -n "$as_dirs" || mkdir $as_dirs
23788   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23790    { (exit 1); exit 1; }; }; }
23791
23792   ac_builddir=.
23793
23794 if test "$ac_dir" != .; then
23795   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23796   # A "../" for each directory in $ac_dir_suffix.
23797   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23798 else
23799   ac_dir_suffix= ac_top_builddir=
23800 fi
23801
23802 case $srcdir in
23803   .)  # No --srcdir option.  We are building in place.
23804     ac_srcdir=.
23805     if test -z "$ac_top_builddir"; then
23806        ac_top_srcdir=.
23807     else
23808        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23809     fi ;;
23810   [\\/]* | ?:[\\/]* )  # Absolute path.
23811     ac_srcdir=$srcdir$ac_dir_suffix;
23812     ac_top_srcdir=$srcdir ;;
23813   *) # Relative path.
23814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23816 esac
23817 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23818 # absolute.
23819 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23820 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23821 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23822 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23823
23824
23825   case $INSTALL in
23826   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23827   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23828   esac
23829
23830   if test x"$ac_file" != x-; then
23831     { echo "$as_me:$LINENO: creating $ac_file" >&5
23832 echo "$as_me: creating $ac_file" >&6;}
23833     rm -f "$ac_file"
23834   fi
23835   # Let's still pretend it is `configure' which instantiates (i.e., don't
23836   # use $as_me), people would be surprised to read:
23837   #    /* config.h.  Generated by config.status.  */
23838   if test x"$ac_file" = x-; then
23839     configure_input=
23840   else
23841     configure_input="$ac_file.  "
23842   fi
23843   configure_input=$configure_input"Generated from `echo $ac_file_in |
23844                                      sed 's,.*/,,'` by configure."
23845
23846   # First look for the input files in the build tree, otherwise in the
23847   # src tree.
23848   ac_file_inputs=`IFS=:
23849     for f in $ac_file_in; do
23850       case $f in
23851       -) echo $tmp/stdin ;;
23852       [\\/$]*)
23853          # Absolute (can't be DOS-style, as IFS=:)
23854          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23855 echo "$as_me: error: cannot find input file: $f" >&2;}
23856    { (exit 1); exit 1; }; }
23857          echo $f;;
23858       *) # Relative
23859          if test -f "$f"; then
23860            # Build tree
23861            echo $f
23862          elif test -f "$srcdir/$f"; then
23863            # Source tree
23864            echo $srcdir/$f
23865          else
23866            # /dev/null tree
23867            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23868 echo "$as_me: error: cannot find input file: $f" >&2;}
23869    { (exit 1); exit 1; }; }
23870          fi;;
23871       esac
23872     done` || { (exit 1); exit 1; }
23873 _ACEOF
23874 cat >>$CONFIG_STATUS <<_ACEOF
23875   sed "$ac_vpsub
23876 $extrasub
23877 _ACEOF
23878 cat >>$CONFIG_STATUS <<\_ACEOF
23879 :t
23880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23881 s,@configure_input@,$configure_input,;t t
23882 s,@srcdir@,$ac_srcdir,;t t
23883 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23884 s,@top_srcdir@,$ac_top_srcdir,;t t
23885 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23886 s,@builddir@,$ac_builddir,;t t
23887 s,@abs_builddir@,$ac_abs_builddir,;t t
23888 s,@top_builddir@,$ac_top_builddir,;t t
23889 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23890 s,@INSTALL@,$ac_INSTALL,;t t
23891 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23892   rm -f $tmp/stdin
23893   if test x"$ac_file" != x-; then
23894     mv $tmp/out $ac_file
23895   else
23896     cat $tmp/out
23897     rm -f $tmp/out
23898   fi
23899
23900 done
23901 _ACEOF
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23903
23904 #
23905 # CONFIG_HEADER section.
23906 #
23907
23908 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23909 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23910 #
23911 # ac_d sets the value in "#define NAME VALUE" lines.
23912 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23913 ac_dB='[        ].*$,\1#\2'
23914 ac_dC=' '
23915 ac_dD=',;t'
23916 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23917 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23918 ac_uB='$,\1#\2define\3'
23919 ac_uC=' '
23920 ac_uD=',;t'
23921
23922 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23923   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23924   case $ac_file in
23925   - | *:- | *:-:* ) # input from stdin
23926         cat >$tmp/stdin
23927         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23928         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23929   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23930         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23931   * )   ac_file_in=$ac_file.in ;;
23932   esac
23933
23934   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23935 echo "$as_me: creating $ac_file" >&6;}
23936
23937   # First look for the input files in the build tree, otherwise in the
23938   # src tree.
23939   ac_file_inputs=`IFS=:
23940     for f in $ac_file_in; do
23941       case $f in
23942       -) echo $tmp/stdin ;;
23943       [\\/$]*)
23944          # Absolute (can't be DOS-style, as IFS=:)
23945          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23946 echo "$as_me: error: cannot find input file: $f" >&2;}
23947    { (exit 1); exit 1; }; }
23948          echo $f;;
23949       *) # Relative
23950          if test -f "$f"; then
23951            # Build tree
23952            echo $f
23953          elif test -f "$srcdir/$f"; then
23954            # Source tree
23955            echo $srcdir/$f
23956          else
23957            # /dev/null tree
23958            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23959 echo "$as_me: error: cannot find input file: $f" >&2;}
23960    { (exit 1); exit 1; }; }
23961          fi;;
23962       esac
23963     done` || { (exit 1); exit 1; }
23964   # Remove the trailing spaces.
23965   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23966
23967 _ACEOF
23968
23969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23970 # `conftest.undefs', that substitutes the proper values into
23971 # config.h.in to produce config.h.  The first handles `#define'
23972 # templates, and the second `#undef' templates.
23973 # And first: Protect against being on the right side of a sed subst in
23974 # config.status.  Protect against being in an unquoted here document
23975 # in config.status.
23976 rm -f conftest.defines conftest.undefs
23977 # Using a here document instead of a string reduces the quoting nightmare.
23978 # Putting comments in sed scripts is not portable.
23979 #
23980 # `end' is used to avoid that the second main sed command (meant for
23981 # 0-ary CPP macros) applies to n-ary macro definitions.
23982 # See the Autoconf documentation for `clear'.
23983 cat >confdef2sed.sed <<\_ACEOF
23984 s/[\\&,]/\\&/g
23985 s,[\\$`],\\&,g
23986 t clear
23987 : clear
23988 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23989 t end
23990 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23991 : end
23992 _ACEOF
23993 # If some macros were called several times there might be several times
23994 # the same #defines, which is useless.  Nevertheless, we may not want to
23995 # sort them, since we want the *last* AC-DEFINE to be honored.
23996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23998 rm -f confdef2sed.sed
23999
24000 # This sed command replaces #undef with comments.  This is necessary, for
24001 # example, in the case of _POSIX_SOURCE, which is predefined and required
24002 # on some systems where configure will not decide to define it.
24003 cat >>conftest.undefs <<\_ACEOF
24004 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24005 _ACEOF
24006
24007 # Break up conftest.defines because some shells have a limit on the size
24008 # of here documents, and old seds have small limits too (100 cmds).
24009 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24010 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24011 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24012 echo '  :' >>$CONFIG_STATUS
24013 rm -f conftest.tail
24014 while grep . conftest.defines >/dev/null
24015 do
24016   # Write a limited-size here document to $tmp/defines.sed.
24017   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24018   # Speed up: don't consider the non `#define' lines.
24019   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24020   # Work around the forget-to-reset-the-flag bug.
24021   echo 't clr' >>$CONFIG_STATUS
24022   echo ': clr' >>$CONFIG_STATUS
24023   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24024   echo 'CEOF
24025   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24026   rm -f $tmp/in
24027   mv $tmp/out $tmp/in
24028 ' >>$CONFIG_STATUS
24029   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24030   rm -f conftest.defines
24031   mv conftest.tail conftest.defines
24032 done
24033 rm -f conftest.defines
24034 echo '  fi # grep' >>$CONFIG_STATUS
24035 echo >>$CONFIG_STATUS
24036
24037 # Break up conftest.undefs because some shells have a limit on the size
24038 # of here documents, and old seds have small limits too (100 cmds).
24039 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24040 rm -f conftest.tail
24041 while grep . conftest.undefs >/dev/null
24042 do
24043   # Write a limited-size here document to $tmp/undefs.sed.
24044   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24045   # Speed up: don't consider the non `#undef'
24046   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24047   # Work around the forget-to-reset-the-flag bug.
24048   echo 't clr' >>$CONFIG_STATUS
24049   echo ': clr' >>$CONFIG_STATUS
24050   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24051   echo 'CEOF
24052   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24053   rm -f $tmp/in
24054   mv $tmp/out $tmp/in
24055 ' >>$CONFIG_STATUS
24056   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24057   rm -f conftest.undefs
24058   mv conftest.tail conftest.undefs
24059 done
24060 rm -f conftest.undefs
24061
24062 cat >>$CONFIG_STATUS <<\_ACEOF
24063   # Let's still pretend it is `configure' which instantiates (i.e., don't
24064   # use $as_me), people would be surprised to read:
24065   #    /* config.h.  Generated by config.status.  */
24066   if test x"$ac_file" = x-; then
24067     echo "/* Generated by configure.  */" >$tmp/config.h
24068   else
24069     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24070   fi
24071   cat $tmp/in >>$tmp/config.h
24072   rm -f $tmp/in
24073   if test x"$ac_file" != x-; then
24074     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24075       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24076 echo "$as_me: $ac_file is unchanged" >&6;}
24077     else
24078       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080          X"$ac_file" : 'X\(//\)[^/]' \| \
24081          X"$ac_file" : 'X\(//\)$' \| \
24082          X"$ac_file" : 'X\(/\)' \| \
24083          .     : '\(.\)' 2>/dev/null ||
24084 echo X"$ac_file" |
24085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087           /^X\(\/\/\)$/{ s//\1/; q; }
24088           /^X\(\/\).*/{ s//\1/; q; }
24089           s/.*/./; q'`
24090       { if $as_mkdir_p; then
24091     mkdir -p "$ac_dir"
24092   else
24093     as_dir="$ac_dir"
24094     as_dirs=
24095     while test ! -d "$as_dir"; do
24096       as_dirs="$as_dir $as_dirs"
24097       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24099          X"$as_dir" : 'X\(//\)[^/]' \| \
24100          X"$as_dir" : 'X\(//\)$' \| \
24101          X"$as_dir" : 'X\(/\)' \| \
24102          .     : '\(.\)' 2>/dev/null ||
24103 echo X"$as_dir" |
24104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24106           /^X\(\/\/\)$/{ s//\1/; q; }
24107           /^X\(\/\).*/{ s//\1/; q; }
24108           s/.*/./; q'`
24109     done
24110     test ! -n "$as_dirs" || mkdir $as_dirs
24111   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24113    { (exit 1); exit 1; }; }; }
24114
24115       rm -f $ac_file
24116       mv $tmp/config.h $ac_file
24117     fi
24118   else
24119     cat $tmp/config.h
24120     rm -f $tmp/config.h
24121   fi
24122 done
24123 _ACEOF
24124 cat >>$CONFIG_STATUS <<\_ACEOF
24125
24126 #
24127 # CONFIG_COMMANDS section.
24128 #
24129 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24130   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24131   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24132   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24133 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134          X"$ac_dest" : 'X\(//\)[^/]' \| \
24135          X"$ac_dest" : 'X\(//\)$' \| \
24136          X"$ac_dest" : 'X\(/\)' \| \
24137          .     : '\(.\)' 2>/dev/null ||
24138 echo X"$ac_dest" |
24139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24140           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24141           /^X\(\/\/\)$/{ s//\1/; q; }
24142           /^X\(\/\).*/{ s//\1/; q; }
24143           s/.*/./; q'`
24144   ac_builddir=.
24145
24146 if test "$ac_dir" != .; then
24147   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24148   # A "../" for each directory in $ac_dir_suffix.
24149   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24150 else
24151   ac_dir_suffix= ac_top_builddir=
24152 fi
24153
24154 case $srcdir in
24155   .)  # No --srcdir option.  We are building in place.
24156     ac_srcdir=.
24157     if test -z "$ac_top_builddir"; then
24158        ac_top_srcdir=.
24159     else
24160        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24161     fi ;;
24162   [\\/]* | ?:[\\/]* )  # Absolute path.
24163     ac_srcdir=$srcdir$ac_dir_suffix;
24164     ac_top_srcdir=$srcdir ;;
24165   *) # Relative path.
24166     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24167     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24168 esac
24169 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24170 # absolute.
24171 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24172 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24173 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24174 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24175
24176
24177   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24178 echo "$as_me: executing $ac_dest commands" >&6;}
24179   case $ac_dest in
24180     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24181     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24182     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24183     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24184     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24185     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24186     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24187     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24188     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24189     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24190     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24191     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24192     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24193     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24194     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24195     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24196     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24197     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24198     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24199     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24200     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24201     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24202     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24203     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24204     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24205     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24206     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24207     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24208     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24209     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24210     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24211     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24212     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24213     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24214     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24215     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24216     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24217     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24218     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24219     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24220     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24221     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
24222     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24223     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24224     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24225     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24226     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24227   esac
24228 done
24229 _ACEOF
24230
24231 cat >>$CONFIG_STATUS <<\_ACEOF
24232
24233 { (exit 0); exit 0; }
24234 _ACEOF
24235 chmod +x $CONFIG_STATUS
24236 ac_clean_files=$ac_clean_files_save
24237
24238
24239 # configure is writing to config.log, and then calls config.status.
24240 # config.status does its own redirection, appending to config.log.
24241 # Unfortunately, on DOS this fails, as config.log is still kept open
24242 # by configure, so config.status won't be able to write to it; its
24243 # output is simply discarded.  So we exec the FD to /dev/null,
24244 # effectively closing config.log, so it can be properly (re)opened and
24245 # appended to by config.status.  When coming back to configure, we
24246 # need to make the FD available again.
24247 if test "$no_create" != yes; then
24248   ac_cs_success=:
24249   ac_config_status_args=
24250   test "$silent" = yes &&
24251     ac_config_status_args="$ac_config_status_args --quiet"
24252   exec 5>/dev/null
24253   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24254   exec 5>>config.log
24255   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24256   # would make configure fail if this is the last instruction.
24257   $ac_cs_success || { (exit 1); exit 1; }
24258 fi
24259
24260 #
24261 # CONFIG_SUBDIRS section.
24262 #
24263 if test "$no_recursion" != yes; then
24264
24265   # Remove --cache-file and --srcdir arguments so they do not pile up.
24266   ac_sub_configure_args=
24267   ac_prev=
24268   for ac_arg in $ac_configure_args; do
24269     if test -n "$ac_prev"; then
24270       ac_prev=
24271       continue
24272     fi
24273     case $ac_arg in
24274     -cache-file | --cache-file | --cache-fil | --cache-fi \
24275     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24276       ac_prev=cache_file ;;
24277     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24278     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24279     | --c=*)
24280       ;;
24281     --config-cache | -C)
24282       ;;
24283     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24284       ac_prev=srcdir ;;
24285     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24286       ;;
24287     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24288       ac_prev=prefix ;;
24289     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24290       ;;
24291     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24292     esac
24293   done
24294
24295   # Always prepend --prefix to ensure using the same prefix
24296   # in subdir configurations.
24297   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24298
24299   ac_popdir=`pwd`
24300   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24301
24302     # Do not complain, so a configure script can configure whichever
24303     # parts of a large source tree are present.
24304     test -d $srcdir/$ac_dir || continue
24305
24306     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24307 echo "$as_me: configuring in $ac_dir" >&6;}
24308     { if $as_mkdir_p; then
24309     mkdir -p "$ac_dir"
24310   else
24311     as_dir="$ac_dir"
24312     as_dirs=
24313     while test ! -d "$as_dir"; do
24314       as_dirs="$as_dir $as_dirs"
24315       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317          X"$as_dir" : 'X\(//\)[^/]' \| \
24318          X"$as_dir" : 'X\(//\)$' \| \
24319          X"$as_dir" : 'X\(/\)' \| \
24320          .     : '\(.\)' 2>/dev/null ||
24321 echo X"$as_dir" |
24322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24323           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24324           /^X\(\/\/\)$/{ s//\1/; q; }
24325           /^X\(\/\).*/{ s//\1/; q; }
24326           s/.*/./; q'`
24327     done
24328     test ! -n "$as_dirs" || mkdir $as_dirs
24329   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24331    { (exit 1); exit 1; }; }; }
24332
24333     ac_builddir=.
24334
24335 if test "$ac_dir" != .; then
24336   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24337   # A "../" for each directory in $ac_dir_suffix.
24338   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24339 else
24340   ac_dir_suffix= ac_top_builddir=
24341 fi
24342
24343 case $srcdir in
24344   .)  # No --srcdir option.  We are building in place.
24345     ac_srcdir=.
24346     if test -z "$ac_top_builddir"; then
24347        ac_top_srcdir=.
24348     else
24349        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24350     fi ;;
24351   [\\/]* | ?:[\\/]* )  # Absolute path.
24352     ac_srcdir=$srcdir$ac_dir_suffix;
24353     ac_top_srcdir=$srcdir ;;
24354   *) # Relative path.
24355     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24356     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24357 esac
24358 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24359 # absolute.
24360 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24361 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24362 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24363 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24364
24365
24366     cd $ac_dir
24367
24368     # Check for guested configure; otherwise get Cygnus style configure.
24369     if test -f $ac_srcdir/configure.gnu; then
24370       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24371     elif test -f $ac_srcdir/configure; then
24372       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24373     elif test -f $ac_srcdir/configure.in; then
24374       ac_sub_configure=$ac_configure
24375     else
24376       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24377 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24378       ac_sub_configure=
24379     fi
24380
24381     # The recursion is here.
24382     if test -n "$ac_sub_configure"; then
24383       # Make the cache file name correct relative to the subdirectory.
24384       case $cache_file in
24385       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24386       *) # Relative path.
24387         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24388       esac
24389
24390       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24391 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24392       # The eval makes quoting arguments work.
24393       eval $ac_sub_configure $ac_sub_configure_args \
24394            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24395         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24396 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24397    { (exit 1); exit 1; }; }
24398     fi
24399
24400     cd $ac_popdir
24401   done
24402 fi
24403
24404
24405 if test $llvmgccwarn = yes
24406 then
24407         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24408 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24409         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24410 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24411         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24412 echo "$as_me: WARNING: ***** " >&2;}
24413         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24414 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24415         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24416 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24417         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24418 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24419 fi