Okay, make the prose match the example too.
[oota-llvm.git] / projects / Stacker / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for [Stacker] [1.0].
4 #
5 # Report bugs to <rspencer@x10sys.com>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='[Stacker]'
425 PACKAGE_TARNAME='--stacker--'
426 PACKAGE_VERSION='[1.0]'
427 PACKAGE_STRING='[Stacker] [1.0]'
428 PACKAGE_BUGREPORT='rspencer@x10sys.com'
429
430 ac_unique_file="lib/compiler/StackerParser.y"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SHLIBEXT LLVM_SRC LLVM_OBJ LIBOBJS 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_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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 [Stacker] [1.0] 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 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [Stacker] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037   --with-pic              try to use only PIC/non-PIC objects [default=use
1038                           both]
1039   --with-tags[=TAGS]
1040                           include additional configurations [automatic]
1041   --with-llvmsrc          Location of LLVM Source Code
1042   --with-llvmobj          Location of LLVM Object Code
1043
1044 Some influential environment variables:
1045   CC          C compiler command
1046   CFLAGS      C compiler flags
1047   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1048               nonstandard directory <lib dir>
1049   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050               headers in a nonstandard directory <include dir>
1051   CPP         C preprocessor
1052   CXX         C++ compiler command
1053   CXXFLAGS    C++ compiler flags
1054   CXXCPP      C++ preprocessor
1055   F77         Fortran 77 compiler command
1056   FFLAGS      Fortran 77 compiler flags
1057
1058 Use these variables to override the choices made by `configure' or to help
1059 it to find libraries and programs with nonstandard names/locations.
1060
1061 Report bugs to <rspencer@x10sys.com>.
1062 _ACEOF
1063 fi
1064
1065 if test "$ac_init_help" = "recursive"; then
1066   # If there are subdirs, report their specific --help.
1067   ac_popdir=`pwd`
1068   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069     test -d $ac_dir || continue
1070     ac_builddir=.
1071
1072 if test "$ac_dir" != .; then
1073   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074   # A "../" for each directory in $ac_dir_suffix.
1075   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077   ac_dir_suffix= ac_top_builddir=
1078 fi
1079
1080 case $srcdir in
1081   .)  # No --srcdir option.  We are building in place.
1082     ac_srcdir=.
1083     if test -z "$ac_top_builddir"; then
1084        ac_top_srcdir=.
1085     else
1086        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087     fi ;;
1088   [\\/]* | ?:[\\/]* )  # Absolute path.
1089     ac_srcdir=$srcdir$ac_dir_suffix;
1090     ac_top_srcdir=$srcdir ;;
1091   *) # Relative path.
1092     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1095
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1100 *)
1101   case "$ac_dir" in
1102   .) ac_abs_builddir=`pwd`;;
1103   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105   esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 *)
1110   case ${ac_top_builddir}. in
1111   .) ac_abs_top_builddir=$ac_abs_builddir;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114   esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1118 *)
1119   case $ac_srcdir in
1120   .) ac_abs_srcdir=$ac_abs_builddir;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 *)
1128   case $ac_top_srcdir in
1129   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132   esac;;
1133 esac
1134
1135     cd $ac_dir
1136     # Check for guested configure; otherwise get Cygnus style configure.
1137     if test -f $ac_srcdir/configure.gnu; then
1138       echo
1139       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1140     elif test -f $ac_srcdir/configure; then
1141       echo
1142       $SHELL $ac_srcdir/configure  --help=recursive
1143     elif test -f $ac_srcdir/configure.ac ||
1144            test -f $ac_srcdir/configure.in; then
1145       echo
1146       $ac_configure --help
1147     else
1148       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1149     fi
1150     cd $ac_popdir
1151   done
1152 fi
1153
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156   cat <<\_ACEOF
1157 [Stacker] configure [1.0]
1158 generated by GNU Autoconf 2.59
1159
1160 Copyright (C) 2003 Free Software Foundation, Inc.
1161 This configure script is free software; the Free Software Foundation
1162 gives unlimited permission to copy, distribute and modify it.
1163 _ACEOF
1164   exit 0
1165 fi
1166 exec 5>config.log
1167 cat >&5 <<_ACEOF
1168 This file contains any messages produced by compilers while
1169 running configure, to aid debugging if configure makes a mistake.
1170
1171 It was created by [Stacker] $as_me [1.0], which was
1172 generated by GNU Autoconf 2.59.  Invocation command line was
1173
1174   $ $0 $@
1175
1176 _ACEOF
1177 {
1178 cat <<_ASUNAME
1179 ## --------- ##
1180 ## Platform. ##
1181 ## --------- ##
1182
1183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188
1189 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1191
1192 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1193 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1194 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1196 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1197 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1198 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1199
1200 _ASUNAME
1201
1202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203 for as_dir in $PATH
1204 do
1205   IFS=$as_save_IFS
1206   test -z "$as_dir" && as_dir=.
1207   echo "PATH: $as_dir"
1208 done
1209
1210 } >&5
1211
1212 cat >&5 <<_ACEOF
1213
1214
1215 ## ----------- ##
1216 ## Core tests. ##
1217 ## ----------- ##
1218
1219 _ACEOF
1220
1221
1222 # Keep a trace of the command line.
1223 # Strip out --no-create and --no-recursion so they do not pile up.
1224 # Strip out --silent because we don't want to record it for future runs.
1225 # Also quote any args containing shell meta-characters.
1226 # Make two passes to allow for proper duplicate-argument suppression.
1227 ac_configure_args=
1228 ac_configure_args0=
1229 ac_configure_args1=
1230 ac_sep=
1231 ac_must_keep_next=false
1232 for ac_pass in 1 2
1233 do
1234   for ac_arg
1235   do
1236     case $ac_arg in
1237     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239     | -silent | --silent | --silen | --sile | --sil)
1240       continue ;;
1241     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243     esac
1244     case $ac_pass in
1245     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246     2)
1247       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248       if test $ac_must_keep_next = true; then
1249         ac_must_keep_next=false # Got value, back to normal.
1250       else
1251         case $ac_arg in
1252           *=* | --config-cache | -C | -disable-* | --disable-* \
1253           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255           | -with-* | --with-* | -without-* | --without-* | --x)
1256             case "$ac_configure_args0 " in
1257               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258             esac
1259             ;;
1260           -* ) ac_must_keep_next=true ;;
1261         esac
1262       fi
1263       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264       # Get rid of the leading space.
1265       ac_sep=" "
1266       ;;
1267     esac
1268   done
1269 done
1270 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272
1273 # When interrupted or exit'd, cleanup temporary files, and complete
1274 # config.log.  We remove comments because anyway the quotes in there
1275 # would cause problems or look ugly.
1276 # WARNING: Be sure not to use single quotes in there, as some shells,
1277 # such as our DU 5.0 friend, will then `close' the trap.
1278 trap 'exit_status=$?
1279   # Save into config.log some information that might help in debugging.
1280   {
1281     echo
1282
1283     cat <<\_ASBOX
1284 ## ---------------- ##
1285 ## Cache variables. ##
1286 ## ---------------- ##
1287 _ASBOX
1288     echo
1289     # The following way of writing the cache mishandles newlines in values,
1290 {
1291   (set) 2>&1 |
1292     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293     *ac_space=\ *)
1294       sed -n \
1295         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297       ;;
1298     *)
1299       sed -n \
1300         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301       ;;
1302     esac;
1303 }
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ----------------- ##
1308 ## Output variables. ##
1309 ## ----------------- ##
1310 _ASBOX
1311     echo
1312     for ac_var in $ac_subst_vars
1313     do
1314       eval ac_val=$`echo $ac_var`
1315       echo "$ac_var='"'"'$ac_val'"'"'"
1316     done | sort
1317     echo
1318
1319     if test -n "$ac_subst_files"; then
1320       cat <<\_ASBOX
1321 ## ------------- ##
1322 ## Output files. ##
1323 ## ------------- ##
1324 _ASBOX
1325       echo
1326       for ac_var in $ac_subst_files
1327       do
1328         eval ac_val=$`echo $ac_var`
1329         echo "$ac_var='"'"'$ac_val'"'"'"
1330       done | sort
1331       echo
1332     fi
1333
1334     if test -s confdefs.h; then
1335       cat <<\_ASBOX
1336 ## ----------- ##
1337 ## confdefs.h. ##
1338 ## ----------- ##
1339 _ASBOX
1340       echo
1341       sed "/^$/d" confdefs.h | sort
1342       echo
1343     fi
1344     test "$ac_signal" != 0 &&
1345       echo "$as_me: caught signal $ac_signal"
1346     echo "$as_me: exit $exit_status"
1347   } >&5
1348   rm -f core *.core &&
1349   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350     exit $exit_status
1351      ' 0
1352 for ac_signal in 1 2 13 15; do
1353   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354 done
1355 ac_signal=0
1356
1357 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1358 rm -rf conftest* confdefs.h
1359 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360 echo >confdefs.h
1361
1362 # Predefined preprocessor variables.
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_NAME "$PACKAGE_NAME"
1366 _ACEOF
1367
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_STRING "$PACKAGE_STRING"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386 _ACEOF
1387
1388
1389 # Let the site file select an alternate cache file if it wants to.
1390 # Prefer explicitly selected file to automatically selected ones.
1391 if test -z "$CONFIG_SITE"; then
1392   if test "x$prefix" != xNONE; then
1393     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394   else
1395     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396   fi
1397 fi
1398 for ac_site_file in $CONFIG_SITE; do
1399   if test -r "$ac_site_file"; then
1400     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401 echo "$as_me: loading site script $ac_site_file" >&6;}
1402     sed 's/^/| /' "$ac_site_file" >&5
1403     . "$ac_site_file"
1404   fi
1405 done
1406
1407 if test -r "$cache_file"; then
1408   # Some versions of bash will fail to source /dev/null (special
1409   # files actually), so we avoid doing that.
1410   if test -f "$cache_file"; then
1411     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412 echo "$as_me: loading cache $cache_file" >&6;}
1413     case $cache_file in
1414       [\\/]* | ?:[\\/]* ) . $cache_file;;
1415       *)                      . ./$cache_file;;
1416     esac
1417   fi
1418 else
1419   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420 echo "$as_me: creating cache $cache_file" >&6;}
1421   >$cache_file
1422 fi
1423
1424 # Check that the precious variables saved in the cache have kept the same
1425 # value.
1426 ac_cache_corrupted=false
1427 for ac_var in `(set) 2>&1 |
1428                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430   eval ac_new_set=\$ac_env_${ac_var}_set
1431   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432   eval ac_new_val="\$ac_env_${ac_var}_value"
1433   case $ac_old_set,$ac_new_set in
1434     set,)
1435       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437       ac_cache_corrupted=: ;;
1438     ,set)
1439       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441       ac_cache_corrupted=: ;;
1442     ,);;
1443     *)
1444       if test "x$ac_old_val" != "x$ac_new_val"; then
1445         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1448 echo "$as_me:   former value:  $ac_old_val" >&2;}
1449         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1450 echo "$as_me:   current value: $ac_new_val" >&2;}
1451         ac_cache_corrupted=:
1452       fi;;
1453   esac
1454   # Pass precious variables to config.status.
1455   if test "$ac_new_set" = set; then
1456     case $ac_new_val in
1457     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459     *) ac_arg=$ac_var=$ac_new_val ;;
1460     esac
1461     case " $ac_configure_args " in
1462       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1463       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464     esac
1465   fi
1466 done
1467 if $ac_cache_corrupted; then
1468   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472    { (exit 1); exit 1; }; }
1473 fi
1474
1475 ac_ext=c
1476 ac_cpp='$CPP $CPPFLAGS'
1477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508 ac_aux_dir=
1509 for ac_dir in autoconf $srcdir/autoconf; do
1510   if test -f $ac_dir/install-sh; then
1511     ac_aux_dir=$ac_dir
1512     ac_install_sh="$ac_aux_dir/install-sh -c"
1513     break
1514   elif test -f $ac_dir/install.sh; then
1515     ac_aux_dir=$ac_dir
1516     ac_install_sh="$ac_aux_dir/install.sh -c"
1517     break
1518   elif test -f $ac_dir/shtool; then
1519     ac_aux_dir=$ac_dir
1520     ac_install_sh="$ac_aux_dir/shtool install -c"
1521     break
1522   fi
1523 done
1524 if test -z "$ac_aux_dir"; then
1525   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1526 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533
1534
1535
1536           ac_config_files="$ac_config_files Makefile.common"
1537
1538
1539
1540           ac_config_commands="$ac_config_commands Makefile"
1541
1542
1543           ac_config_commands="$ac_config_commands lib/Makefile"
1544
1545
1546           ac_config_commands="$ac_config_commands lib/compiler/Makefile"
1547
1548
1549           ac_config_commands="$ac_config_commands lib/runtime/Makefile"
1550
1551
1552           ac_config_commands="$ac_config_commands test/Makefile"
1553
1554
1555           ac_config_commands="$ac_config_commands tools/Makefile"
1556
1557
1558           ac_config_commands="$ac_config_commands tools/stkrc/Makefile"
1559
1560
1561
1562
1563 # Check whether --enable-shared or --disable-shared was given.
1564 if test "${enable_shared+set}" = set; then
1565   enableval="$enable_shared"
1566   p=${PACKAGE-default}
1567     case $enableval in
1568     yes) enable_shared=yes ;;
1569     no) enable_shared=no ;;
1570     *)
1571       enable_shared=no
1572       # Look at the argument we got.  We use all the common list separators.
1573       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1574       for pkg in $enableval; do
1575         IFS="$lt_save_ifs"
1576         if test "X$pkg" = "X$p"; then
1577           enable_shared=yes
1578         fi
1579       done
1580       IFS="$lt_save_ifs"
1581       ;;
1582     esac
1583 else
1584   enable_shared=yes
1585 fi;
1586
1587 # Check whether --enable-static or --disable-static was given.
1588 if test "${enable_static+set}" = set; then
1589   enableval="$enable_static"
1590   p=${PACKAGE-default}
1591     case $enableval in
1592     yes) enable_static=yes ;;
1593     no) enable_static=no ;;
1594     *)
1595      enable_static=no
1596       # Look at the argument we got.  We use all the common list separators.
1597       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1598       for pkg in $enableval; do
1599         IFS="$lt_save_ifs"
1600         if test "X$pkg" = "X$p"; then
1601           enable_static=yes
1602         fi
1603       done
1604       IFS="$lt_save_ifs"
1605       ;;
1606     esac
1607 else
1608   enable_static=yes
1609 fi;
1610
1611 # Check whether --enable-fast-install or --disable-fast-install was given.
1612 if test "${enable_fast_install+set}" = set; then
1613   enableval="$enable_fast_install"
1614   p=${PACKAGE-default}
1615     case $enableval in
1616     yes) enable_fast_install=yes ;;
1617     no) enable_fast_install=no ;;
1618     *)
1619       enable_fast_install=no
1620       # Look at the argument we got.  We use all the common list separators.
1621       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1622       for pkg in $enableval; do
1623         IFS="$lt_save_ifs"
1624         if test "X$pkg" = "X$p"; then
1625           enable_fast_install=yes
1626         fi
1627       done
1628       IFS="$lt_save_ifs"
1629       ;;
1630     esac
1631 else
1632   enable_fast_install=yes
1633 fi;
1634
1635 # Make sure we can run config.sub.
1636 $ac_config_sub sun4 >/dev/null 2>&1 ||
1637   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1638 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1639    { (exit 1); exit 1; }; }
1640
1641 echo "$as_me:$LINENO: checking build system type" >&5
1642 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1643 if test "${ac_cv_build+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_build_alias=$build_alias
1647 test -z "$ac_cv_build_alias" &&
1648   ac_cv_build_alias=`$ac_config_guess`
1649 test -z "$ac_cv_build_alias" &&
1650   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1651 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1652    { (exit 1); exit 1; }; }
1653 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1654   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1656    { (exit 1); exit 1; }; }
1657
1658 fi
1659 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1660 echo "${ECHO_T}$ac_cv_build" >&6
1661 build=$ac_cv_build
1662 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667 echo "$as_me:$LINENO: checking host system type" >&5
1668 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1669 if test "${ac_cv_host+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   ac_cv_host_alias=$host_alias
1673 test -z "$ac_cv_host_alias" &&
1674   ac_cv_host_alias=$ac_cv_build_alias
1675 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1676   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1677 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1678    { (exit 1); exit 1; }; }
1679
1680 fi
1681 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1682 echo "${ECHO_T}$ac_cv_host" >&6
1683 host=$ac_cv_host
1684 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687
1688
1689 ac_ext=c
1690 ac_cpp='$CPP $CPPFLAGS'
1691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694 if test -n "$ac_tool_prefix"; then
1695   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$ac_cv_prog_CC"; then
1732   ac_ct_CC=$CC
1733   # Extract the first word of "gcc", so it can be a program name with args.
1734 set dummy gcc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="gcc"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   CC=$ac_ct_CC
1769 else
1770   CC="$ac_cv_prog_CC"
1771 fi
1772
1773 if test -z "$CC"; then
1774   if test -n "$ac_tool_prefix"; then
1775   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1776 set dummy ${ac_tool_prefix}cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   if test -n "$CC"; then
1783   ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     ac_cv_prog_CC="${ac_tool_prefix}cc"
1793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794     break 2
1795   fi
1796 done
1797 done
1798
1799 fi
1800 fi
1801 CC=$ac_cv_prog_CC
1802 if test -n "$CC"; then
1803   echo "$as_me:$LINENO: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1805 else
1806   echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810 fi
1811 if test -z "$ac_cv_prog_CC"; then
1812   ac_ct_CC=$CC
1813   # Extract the first word of "cc", so it can be a program name with args.
1814 set dummy cc; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1818   echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820   if test -n "$ac_ct_CC"; then
1821   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826   IFS=$as_save_IFS
1827   test -z "$as_dir" && as_dir=.
1828   for ac_exec_ext in '' $ac_executable_extensions; do
1829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830     ac_cv_prog_ac_ct_CC="cc"
1831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832     break 2
1833   fi
1834 done
1835 done
1836
1837 fi
1838 fi
1839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1840 if test -n "$ac_ct_CC"; then
1841   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1842 echo "${ECHO_T}$ac_ct_CC" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848   CC=$ac_ct_CC
1849 else
1850   CC="$ac_cv_prog_CC"
1851 fi
1852
1853 fi
1854 if test -z "$CC"; then
1855   # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   if test -n "$CC"; then
1863   ac_cv_prog_CC="$CC" # Let the user override the test.
1864 else
1865   ac_prog_rejected=no
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1868 do
1869   IFS=$as_save_IFS
1870   test -z "$as_dir" && as_dir=.
1871   for ac_exec_ext in '' $ac_executable_extensions; do
1872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1874        ac_prog_rejected=yes
1875        continue
1876      fi
1877     ac_cv_prog_CC="cc"
1878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879     break 2
1880   fi
1881 done
1882 done
1883
1884 if test $ac_prog_rejected = yes; then
1885   # We found a bogon in the path, so make sure we never use it.
1886   set dummy $ac_cv_prog_CC
1887   shift
1888   if test $# != 0; then
1889     # We chose a different compiler from the bogus one.
1890     # However, it has the same basename, so the bogon will be chosen
1891     # first if we set CC to just the basename; use the full file name.
1892     shift
1893     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1894   fi
1895 fi
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$CC"; then
1909   if test -n "$ac_tool_prefix"; then
1910   for ac_prog in cl
1911   do
1912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$CC"; then
1920   ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940   echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947     test -n "$CC" && break
1948   done
1949 fi
1950 if test -z "$CC"; then
1951   ac_ct_CC=$CC
1952   for ac_prog in cl
1953 do
1954   # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CC"; then
1962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_CC="$ac_prog"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989   test -n "$ac_ct_CC" && break
1990 done
1991
1992   CC=$ac_ct_CC
1993 fi
1994
1995 fi
1996
1997
1998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1999 See \`config.log' for more details." >&5
2000 echo "$as_me: error: no acceptable C compiler found in \$PATH
2001 See \`config.log' for more details." >&2;}
2002    { (exit 1); exit 1; }; }
2003
2004 # Provide some information about the compiler.
2005 echo "$as_me:$LINENO:" \
2006      "checking for C compiler version" >&5
2007 ac_compiler=`set X $ac_compile; echo $2`
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009   (eval $ac_compiler --version </dev/null >&5) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); }
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014   (eval $ac_compiler -v </dev/null >&5) 2>&5
2015   ac_status=$?
2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017   (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019   (eval $ac_compiler -V </dev/null >&5) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }
2023
2024 cat >conftest.$ac_ext <<_ACEOF
2025 /* confdefs.h.  */
2026 _ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h.  */
2030
2031 int
2032 main ()
2033 {
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2043 # of exeext.
2044 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2048   (eval $ac_link_default) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; then
2052   # Find the output, starting from the most likely.  This scheme is
2053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2054 # resort.
2055
2056 # Be careful to initialize this variable, since it used to be cached.
2057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2058 ac_cv_exeext=
2059 # b.out is created by i960 compilers.
2060 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2061 do
2062   test -f "$ac_file" || continue
2063   case $ac_file in
2064     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2065         ;;
2066     conftest.$ac_ext )
2067         # This is the source file.
2068         ;;
2069     [ab].out )
2070         # We found the default executable, but exeext='' is most
2071         # certainly right.
2072         break;;
2073     *.* )
2074         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075         # FIXME: I believe we export ac_cv_exeext for Libtool,
2076         # but it would be cool to find out if it's true.  Does anybody
2077         # maintain Libtool? --akim.
2078         export ac_cv_exeext
2079         break;;
2080     * )
2081         break;;
2082   esac
2083 done
2084 else
2085   echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: C compiler cannot create executables
2091 See \`config.log' for more details." >&2;}
2092    { (exit 77); exit 77; }; }
2093 fi
2094
2095 ac_exeext=$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_file" >&5
2097 echo "${ECHO_T}$ac_file" >&6
2098
2099 # Check the compiler produces executables we can run.  If not, either
2100 # the compiler is broken, or we cross compile.
2101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104 # If not cross compiling, check that we can run a simple program.
2105 if test "$cross_compiling" != yes; then
2106   if { ac_try='./$ac_file'
2107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108   (eval $ac_try) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }; }; then
2112     cross_compiling=no
2113   else
2114     if test "$cross_compiling" = maybe; then
2115         cross_compiling=yes
2116     else
2117         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&2;}
2123    { (exit 1); exit 1; }; }
2124     fi
2125   fi
2126 fi
2127 echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6
2129
2130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2131 ac_clean_files=$ac_clean_files_save
2132 # Check the compiler produces executables we can run.  If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2137 echo "${ECHO_T}$cross_compiling" >&6
2138
2139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2142   (eval $ac_link) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; then
2146   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2147 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2148 # work properly (i.e., refer to `conftest.exe'), while it won't with
2149 # `rm'.
2150 for ac_file in conftest.exe conftest conftest.*; do
2151   test -f "$ac_file" || continue
2152   case $ac_file in
2153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2154     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2155           export ac_cv_exeext
2156           break;;
2157     * ) break;;
2158   esac
2159 done
2160 else
2161   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2164 See \`config.log' for more details." >&2;}
2165    { (exit 1); exit 1; }; }
2166 fi
2167
2168 rm -f conftest$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170 echo "${ECHO_T}$ac_cv_exeext" >&6
2171
2172 rm -f conftest.$ac_ext
2173 EXEEXT=$ac_cv_exeext
2174 ac_exeext=$EXEEXT
2175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177 if test "${ac_cv_objext+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h.  */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h.  */
2186
2187 int
2188 main ()
2189 {
2190
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 rm -f conftest.o conftest.obj
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197   (eval $ac_compile) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; then
2201   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2202   case $ac_file in
2203     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2204     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2205        break;;
2206   esac
2207 done
2208 else
2209   echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2215 See \`config.log' for more details." >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218
2219 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2220 fi
2221 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222 echo "${ECHO_T}$ac_cv_objext" >&6
2223 OBJEXT=$ac_cv_objext
2224 ac_objext=$OBJEXT
2225 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   cat >conftest.$ac_ext <<_ACEOF
2231 /* confdefs.h.  */
2232 _ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h.  */
2236
2237 int
2238 main ()
2239 {
2240 #ifndef __GNUC__
2241        choke me
2242 #endif
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>conftest.er1
2251   ac_status=$?
2252   grep -v '^ *+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -z "$ac_c_werror_flag"
2258                          || test ! -s conftest.err'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   ac_compiler_gnu=yes
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 ac_compiler_gnu=no
2276 fi
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2279
2280 fi
2281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2283 GCC=`test $ac_compiler_gnu = yes && echo yes`
2284 ac_test_CFLAGS=${CFLAGS+set}
2285 ac_save_CFLAGS=$CFLAGS
2286 CFLAGS="-g"
2287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2289 if test "${ac_cv_prog_cc_g+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>conftest.er1
2310   ac_status=$?
2311   grep -v '^ *+' conftest.er1 >conftest.err
2312   rm -f conftest.er1
2313   cat conftest.err >&5
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); } &&
2316          { ac_try='test -z "$ac_c_werror_flag"
2317                          || test ! -s conftest.err'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; } &&
2323          { ac_try='test -s conftest.$ac_objext'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329   ac_cv_prog_cc_g=yes
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 ac_cv_prog_cc_g=no
2335 fi
2336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340 if test "$ac_test_CFLAGS" = set; then
2341   CFLAGS=$ac_save_CFLAGS
2342 elif test $ac_cv_prog_cc_g = yes; then
2343   if test "$GCC" = yes; then
2344     CFLAGS="-g -O2"
2345   else
2346     CFLAGS="-g"
2347   fi
2348 else
2349   if test "$GCC" = yes; then
2350     CFLAGS="-O2"
2351   else
2352     CFLAGS=
2353   fi
2354 fi
2355 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2356 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   ac_cv_prog_cc_stdc=no
2361 ac_save_CC=$CC
2362 cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368 #include <stdarg.h>
2369 #include <stdio.h>
2370 #include <sys/types.h>
2371 #include <sys/stat.h>
2372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2373 struct buf { int x; };
2374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2375 static char *e (p, i)
2376      char **p;
2377      int i;
2378 {
2379   return p[i];
2380 }
2381 static char *f (char * (*g) (char **, int), char **p, ...)
2382 {
2383   char *s;
2384   va_list v;
2385   va_start (v,p);
2386   s = g (p, va_arg (v,int));
2387   va_end (v);
2388   return s;
2389 }
2390
2391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2392    function prototypes and stuff, but not '\xHH' hex character constants.
2393    These don't provoke an error unfortunately, instead are silently treated
2394    as 'x'.  The following induces an error, until -std1 is added to get
2395    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2396    array size at least.  It's necessary to write '\x00'==0 to get something
2397    that's true only with -std1.  */
2398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2399
2400 int test (int i, double x);
2401 struct s1 {int (*f) (int a);};
2402 struct s2 {int (*f) (double a);};
2403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2404 int argc;
2405 char **argv;
2406 int
2407 main ()
2408 {
2409 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 # Don't try gcc -ansi; that turns off useful extensions and
2415 # breaks some systems' header files.
2416 # AIX                   -qlanglvl=ansi
2417 # Ultrix and OSF/1      -std1
2418 # HP-UX 10.20 and later -Ae
2419 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2420 # SVR4                  -Xc -D__EXTENSIONS__
2421 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2422 do
2423   CC="$ac_save_CC $ac_arg"
2424   rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>conftest.er1
2427   ac_status=$?
2428   grep -v '^ *+' conftest.er1 >conftest.err
2429   rm -f conftest.er1
2430   cat conftest.err >&5
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -z "$ac_c_werror_flag"
2434                          || test ! -s conftest.err'
2435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436   (eval $ac_try) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; } &&
2440          { ac_try='test -s conftest.$ac_objext'
2441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442   (eval $ac_try) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; }; then
2446   ac_cv_prog_cc_stdc=$ac_arg
2447 break
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 fi
2453 rm -f conftest.err conftest.$ac_objext
2454 done
2455 rm -f conftest.$ac_ext conftest.$ac_objext
2456 CC=$ac_save_CC
2457
2458 fi
2459
2460 case "x$ac_cv_prog_cc_stdc" in
2461   x|xno)
2462     echo "$as_me:$LINENO: result: none needed" >&5
2463 echo "${ECHO_T}none needed" >&6 ;;
2464   *)
2465     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2467     CC="$CC $ac_cv_prog_cc_stdc" ;;
2468 esac
2469
2470 # Some people use a C++ compiler to compile C.  Since we use `exit',
2471 # in C++ we need to declare it.  In case someone uses the same compiler
2472 # for both compiling C and C++ we need to have the C++ compiler decide
2473 # the declaration of exit, since it's the most demanding environment.
2474 cat >conftest.$ac_ext <<_ACEOF
2475 #ifndef __cplusplus
2476   choke me
2477 #endif
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481   (eval $ac_compile) 2>conftest.er1
2482   ac_status=$?
2483   grep -v '^ *+' conftest.er1 >conftest.err
2484   rm -f conftest.er1
2485   cat conftest.err >&5
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); } &&
2488          { ac_try='test -z "$ac_c_werror_flag"
2489                          || test ! -s conftest.err'
2490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491   (eval $ac_try) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497   (eval $ac_try) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; }; then
2501   for ac_declaration in \
2502    '' \
2503    'extern "C" void std::exit (int) throw (); using std::exit;' \
2504    'extern "C" void std::exit (int); using std::exit;' \
2505    'extern "C" void exit (int) throw ();' \
2506    'extern "C" void exit (int);' \
2507    'void exit (int);'
2508 do
2509   cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515 $ac_declaration
2516 #include <stdlib.h>
2517 int
2518 main ()
2519 {
2520 exit (42);
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -z "$ac_c_werror_flag"
2535                          || test ! -s conftest.err'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; } &&
2541          { ac_try='test -s conftest.$ac_objext'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   :
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 continue
2553 fi
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555   cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h.  */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h.  */
2561 $ac_declaration
2562 int
2563 main ()
2564 {
2565 exit (42);
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572   (eval $ac_compile) 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_c_werror_flag"
2580                          || test ! -s conftest.err'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; } &&
2586          { ac_try='test -s conftest.$ac_objext'
2587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588   (eval $ac_try) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; }; then
2592   break
2593 else
2594   echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 fi
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 done
2600 rm -f conftest*
2601 if test -n "$ac_declaration"; then
2602   echo '#ifdef __cplusplus' >>confdefs.h
2603   echo $ac_declaration      >>confdefs.h
2604   echo '#endif'             >>confdefs.h
2605 fi
2606
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 fi
2612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2620 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2621 if test "${lt_cv_path_SED+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   # Loop through the user's path and test for sed and gsed.
2625 # Then use that list of sed's as ones to test for truncation.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for lt_ac_prog in sed gsed; do
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2634         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2635       fi
2636     done
2637   done
2638 done
2639 lt_ac_max=0
2640 lt_ac_count=0
2641 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2642 # along with /bin/sed that truncates output.
2643 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2644   test ! -f $lt_ac_sed && break
2645   cat /dev/null > conftest.in
2646   lt_ac_count=0
2647   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2648   # Check for GNU sed and select it if it is found.
2649   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2650     lt_cv_path_SED=$lt_ac_sed
2651     break
2652   fi
2653   while true; do
2654     cat conftest.in conftest.in >conftest.tmp
2655     mv conftest.tmp conftest.in
2656     cp conftest.in conftest.nl
2657     echo >>conftest.nl
2658     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2659     cmp -s conftest.out conftest.nl || break
2660     # 10000 chars as input seems more than enough
2661     test $lt_ac_count -gt 10 && break
2662     lt_ac_count=`expr $lt_ac_count + 1`
2663     if test $lt_ac_count -gt $lt_ac_max; then
2664       lt_ac_max=$lt_ac_count
2665       lt_cv_path_SED=$lt_ac_sed
2666     fi
2667   done
2668 done
2669 SED=$lt_cv_path_SED
2670
2671 fi
2672
2673 echo "$as_me:$LINENO: result: $SED" >&5
2674 echo "${ECHO_T}$SED" >&6
2675
2676 echo "$as_me:$LINENO: checking for egrep" >&5
2677 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2678 if test "${ac_cv_prog_egrep+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2682     then ac_cv_prog_egrep='grep -E'
2683     else ac_cv_prog_egrep='egrep'
2684     fi
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2687 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2688  EGREP=$ac_cv_prog_egrep
2689
2690
2691
2692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2693 if test "${with_gnu_ld+set}" = set; then
2694   withval="$with_gnu_ld"
2695   test "$withval" = no || with_gnu_ld=yes
2696 else
2697   with_gnu_ld=no
2698 fi;
2699 ac_prog=ld
2700 if test "$GCC" = yes; then
2701   # Check if gcc -print-prog-name=ld gives a path.
2702   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2703 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2704   case $host in
2705   *-*-mingw*)
2706     # gcc leaves a trailing carriage return which upsets mingw
2707     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2708   *)
2709     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2710   esac
2711   case $ac_prog in
2712     # Accept absolute paths.
2713     [\\/]* | ?:[\\/]*)
2714       re_direlt='/[^/][^/]*/\.\./'
2715       # Canonicalize the path of ld
2716       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2717       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2718         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2719       done
2720       test -z "$LD" && LD="$ac_prog"
2721       ;;
2722   "")
2723     # If it fails, then pretend we aren't using GCC.
2724     ac_prog=ld
2725     ;;
2726   *)
2727     # If it is relative, then search for the first ld in PATH.
2728     with_gnu_ld=unknown
2729     ;;
2730   esac
2731 elif test "$with_gnu_ld" = yes; then
2732   echo "$as_me:$LINENO: checking for GNU ld" >&5
2733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2734 else
2735   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2737 fi
2738 if test "${lt_cv_path_LD+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   if test -z "$LD"; then
2742   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2743   for ac_dir in $PATH; do
2744     IFS="$lt_save_ifs"
2745     test -z "$ac_dir" && ac_dir=.
2746     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2747       lt_cv_path_LD="$ac_dir/$ac_prog"
2748       # Check to see if the program is GNU ld.  I'd rather use --version,
2749       # but apparently some GNU ld's only accept -v.
2750       # Break only if it was the GNU/non-GNU ld that we prefer.
2751       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2752       *GNU* | *'with BFD'*)
2753         test "$with_gnu_ld" != no && break
2754         ;;
2755       *)
2756         test "$with_gnu_ld" != yes && break
2757         ;;
2758       esac
2759     fi
2760   done
2761   IFS="$lt_save_ifs"
2762 else
2763   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2764 fi
2765 fi
2766
2767 LD="$lt_cv_path_LD"
2768 if test -n "$LD"; then
2769   echo "$as_me:$LINENO: result: $LD" >&5
2770 echo "${ECHO_T}$LD" >&6
2771 else
2772   echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2774 fi
2775 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2776 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2777    { (exit 1); exit 1; }; }
2778 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2779 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2780 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2781   echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2784 case `"$LD" -v 2>&1 </dev/null` in
2785 *GNU* | *'with BFD'*)
2786   lt_cv_prog_gnu_ld=yes
2787   ;;
2788 *)
2789   lt_cv_prog_gnu_ld=no
2790   ;;
2791 esac
2792 fi
2793 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2794 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2795 with_gnu_ld=$lt_cv_prog_gnu_ld
2796
2797
2798 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2799 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2800 if test "${lt_cv_ld_reload_flag+set}" = set; then
2801   echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803   lt_cv_ld_reload_flag='-r'
2804 fi
2805 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2806 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2807 reload_flag=$lt_cv_ld_reload_flag
2808 case $reload_flag in
2809 "" | " "*) ;;
2810 *) reload_flag=" $reload_flag" ;;
2811 esac
2812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2813
2814 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2815 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2816 if test "${lt_cv_path_NM+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$NM"; then
2820   # Let the user override the test.
2821   lt_cv_path_NM="$NM"
2822 else
2823   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2824   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2825     IFS="$lt_save_ifs"
2826     test -z "$ac_dir" && ac_dir=.
2827     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2828     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2829       # Check to see if the nm accepts a BSD-compat flag.
2830       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2831       #   nm: unknown option "B" ignored
2832       # Tru64's nm complains that /dev/null is an invalid object file
2833       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2834       */dev/null* | *'Invalid file or object type'*)
2835         lt_cv_path_NM="$tmp_nm -B"
2836         break
2837         ;;
2838       *)
2839         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2840         */dev/null*)
2841           lt_cv_path_NM="$tmp_nm -p"
2842           break
2843           ;;
2844         *)
2845           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2846           continue # so that we can try to find one that supports BSD flags
2847           ;;
2848         esac
2849       esac
2850     fi
2851   done
2852   IFS="$lt_save_ifs"
2853   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2854 fi
2855 fi
2856 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2857 echo "${ECHO_T}$lt_cv_path_NM" >&6
2858 NM="$lt_cv_path_NM"
2859
2860 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2861 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2862 LN_S=$as_ln_s
2863 if test "$LN_S" = "ln -s"; then
2864   echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2866 else
2867   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2868 echo "${ECHO_T}no, using $LN_S" >&6
2869 fi
2870
2871 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2872 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2873 if test "${lt_cv_deplibs_check_method+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   lt_cv_file_magic_cmd='$MAGIC_CMD'
2877 lt_cv_file_magic_test_file=
2878 lt_cv_deplibs_check_method='unknown'
2879 # Need to set the preceding variable on all platforms that support
2880 # interlibrary dependencies.
2881 # 'none' -- dependencies not supported.
2882 # `unknown' -- same as none, but documents that we really don't know.
2883 # 'pass_all' -- all dependencies passed with no checks.
2884 # 'test_compile' -- check by making test program.
2885 # 'file_magic [[regex]]' -- check by looking for files in library path
2886 # which responds to the $file_magic_cmd with a given extended regex.
2887 # If you have `file' or equivalent on your system and you're not sure
2888 # whether `pass_all' will *always* work, you probably want this one.
2889
2890 case $host_os in
2891 aix4* | aix5*)
2892   lt_cv_deplibs_check_method=pass_all
2893   ;;
2894
2895 beos*)
2896   lt_cv_deplibs_check_method=pass_all
2897   ;;
2898
2899 bsdi4*)
2900   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2901   lt_cv_file_magic_cmd='/usr/bin/file -L'
2902   lt_cv_file_magic_test_file=/shlib/libc.so
2903   ;;
2904
2905 cygwin* | mingw* | pw32*)
2906   # win32_libid is a shell function defined in ltmain.sh
2907   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2908   lt_cv_file_magic_cmd='win32_libid'
2909   ;;
2910
2911 darwin* | rhapsody*)
2912   # this will be overwritten by pass_all, but leave it in just in case
2913   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2914   lt_cv_file_magic_cmd='/usr/bin/file -L'
2915   case "$host_os" in
2916   rhapsody* | darwin1.[012])
2917     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2918     ;;
2919   *) # Darwin 1.3 on
2920     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2921     ;;
2922   esac
2923   lt_cv_deplibs_check_method=pass_all
2924   ;;
2925
2926 freebsd*)
2927   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2928     case $host_cpu in
2929     i*86 )
2930       # Not sure whether the presence of OpenBSD here was a mistake.
2931       # Let's accept both of them until this is cleared up.
2932       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2933       lt_cv_file_magic_cmd=/usr/bin/file
2934       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2935       ;;
2936     esac
2937   else
2938     lt_cv_deplibs_check_method=pass_all
2939   fi
2940   ;;
2941
2942 gnu*)
2943   lt_cv_deplibs_check_method=pass_all
2944   ;;
2945
2946 hpux10.20* | hpux11*)
2947   lt_cv_file_magic_cmd=/usr/bin/file
2948   case "$host_cpu" in
2949   ia64*)
2950     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2951     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2952     ;;
2953   hppa*64*)
2954     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]'
2955     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2956     ;;
2957   *)
2958     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2959     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2960     ;;
2961   esac
2962   ;;
2963
2964 irix5* | irix6* | nonstopux*)
2965   case $host_os in
2966   irix5* | nonstopux*)
2967     # this will be overridden with pass_all, but let us keep it just in case
2968     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2969     ;;
2970   *)
2971     case $LD in
2972     *-32|*"-32 ") libmagic=32-bit;;
2973     *-n32|*"-n32 ") libmagic=N32;;
2974     *-64|*"-64 ") libmagic=64-bit;;
2975     *) libmagic=never-match;;
2976     esac
2977     # this will be overridden with pass_all, but let us keep it just in case
2978     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2979     ;;
2980   esac
2981   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2982   lt_cv_deplibs_check_method=pass_all
2983   ;;
2984
2985 # This must be Linux ELF.
2986 linux*)
2987   case $host_cpu in
2988   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2989     lt_cv_deplibs_check_method=pass_all ;;
2990   *)
2991     # glibc up to 2.1.1 does not perform some relocations on ARM
2992     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2993   esac
2994   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2995   ;;
2996
2997 netbsd*)
2998   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2999     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3000   else
3001     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3002   fi
3003   ;;
3004
3005 newos6*)
3006   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3007   lt_cv_file_magic_cmd=/usr/bin/file
3008   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3009   ;;
3010
3011 nto-qnx)
3012   lt_cv_deplibs_check_method=unknown
3013   ;;
3014
3015 openbsd*)
3016   lt_cv_file_magic_cmd=/usr/bin/file
3017   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3018   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3019     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3020   else
3021     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3022   fi
3023   ;;
3024
3025 osf3* | osf4* | osf5*)
3026   # this will be overridden with pass_all, but let us keep it just in case
3027   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3028   lt_cv_file_magic_test_file=/shlib/libc.so
3029   lt_cv_deplibs_check_method=pass_all
3030   ;;
3031
3032 sco3.2v5*)
3033   lt_cv_deplibs_check_method=pass_all
3034   ;;
3035
3036 solaris*)
3037   lt_cv_deplibs_check_method=pass_all
3038   lt_cv_file_magic_test_file=/lib/libc.so
3039   ;;
3040
3041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3042   case $host_vendor in
3043   motorola)
3044     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]'
3045     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3046     ;;
3047   ncr)
3048     lt_cv_deplibs_check_method=pass_all
3049     ;;
3050   sequent)
3051     lt_cv_file_magic_cmd='/bin/file'
3052     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3053     ;;
3054   sni)
3055     lt_cv_file_magic_cmd='/bin/file'
3056     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3057     lt_cv_file_magic_test_file=/lib/libc.so
3058     ;;
3059   siemens)
3060     lt_cv_deplibs_check_method=pass_all
3061     ;;
3062   esac
3063   ;;
3064
3065 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3066   lt_cv_deplibs_check_method=pass_all
3067   ;;
3068 esac
3069
3070 fi
3071 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3072 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3073 file_magic_cmd=$lt_cv_file_magic_cmd
3074 deplibs_check_method=$lt_cv_deplibs_check_method
3075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3076
3077
3078
3079
3080 # If no C compiler was specified, use CC.
3081 LTCC=${LTCC-"$CC"}
3082
3083 # Allow CC to be a program name with arguments.
3084 compiler=$CC
3085
3086
3087 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3088 if test "${enable_libtool_lock+set}" = set; then
3089   enableval="$enable_libtool_lock"
3090
3091 fi;
3092 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3093
3094 # Some flags need to be propagated to the compiler or linker for good
3095 # libtool support.
3096 case $host in
3097 ia64-*-hpux*)
3098   # Find out which ABI we are using.
3099   echo 'int i;' > conftest.$ac_ext
3100   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101   (eval $ac_compile) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; then
3105     case `/usr/bin/file conftest.$ac_objext` in
3106     *ELF-32*)
3107       HPUX_IA64_MODE="32"
3108       ;;
3109     *ELF-64*)
3110       HPUX_IA64_MODE="64"
3111       ;;
3112     esac
3113   fi
3114   rm -rf conftest*
3115   ;;
3116 *-*-irix6*)
3117   # Find out which ABI we are using.
3118   echo '#line 3118 "configure"' > conftest.$ac_ext
3119   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120   (eval $ac_compile) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; then
3124    if test "$lt_cv_prog_gnu_ld" = yes; then
3125     case `/usr/bin/file conftest.$ac_objext` in
3126     *32-bit*)
3127       LD="${LD-ld} -melf32bsmip"
3128       ;;
3129     *N32*)
3130       LD="${LD-ld} -melf32bmipn32"
3131       ;;
3132     *64-bit*)
3133       LD="${LD-ld} -melf64bmip"
3134       ;;
3135     esac
3136    else
3137     case `/usr/bin/file conftest.$ac_objext` in
3138     *32-bit*)
3139       LD="${LD-ld} -32"
3140       ;;
3141     *N32*)
3142       LD="${LD-ld} -n32"
3143       ;;
3144     *64-bit*)
3145       LD="${LD-ld} -64"
3146       ;;
3147     esac
3148    fi
3149   fi
3150   rm -rf conftest*
3151   ;;
3152
3153 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3154   # Find out which ABI we are using.
3155   echo 'int i;' > conftest.$ac_ext
3156   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157   (eval $ac_compile) 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; then
3161     case "`/usr/bin/file conftest.o`" in
3162     *32-bit*)
3163       case $host in
3164         x86_64-*linux*)
3165           LD="${LD-ld} -m elf_i386"
3166           ;;
3167         ppc64-*linux*)
3168           LD="${LD-ld} -m elf32ppclinux"
3169           ;;
3170         s390x-*linux*)
3171           LD="${LD-ld} -m elf_s390"
3172           ;;
3173         sparc64-*linux*)
3174           LD="${LD-ld} -m elf32_sparc"
3175           ;;
3176       esac
3177       ;;
3178     *64-bit*)
3179       case $host in
3180         x86_64-*linux*)
3181           LD="${LD-ld} -m elf_x86_64"
3182           ;;
3183         ppc*-*linux*|powerpc*-*linux*)
3184           LD="${LD-ld} -m elf64ppc"
3185           ;;
3186         s390*-*linux*)
3187           LD="${LD-ld} -m elf64_s390"
3188           ;;
3189         sparc*-*linux*)
3190           LD="${LD-ld} -m elf64_sparc"
3191           ;;
3192       esac
3193       ;;
3194     esac
3195   fi
3196   rm -rf conftest*
3197   ;;
3198
3199 *-*-sco3.2v5*)
3200   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3201   SAVE_CFLAGS="$CFLAGS"
3202   CFLAGS="$CFLAGS -belf"
3203   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3204 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3205 if test "${lt_cv_cc_needs_belf+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214      cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext conftest$ac_exeext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3231   (eval $ac_link) 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } &&
3238          { ac_try='test -z "$ac_c_werror_flag"
3239                          || test ! -s conftest.err'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest$ac_exeext'
3246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; }; then
3251   lt_cv_cc_needs_belf=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 lt_cv_cc_needs_belf=no
3257 fi
3258 rm -f conftest.err conftest.$ac_objext \
3259       conftest$ac_exeext conftest.$ac_ext
3260      ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266 fi
3267 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3268 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3269   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3270     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3271     CFLAGS="$SAVE_CFLAGS"
3272   fi
3273   ;;
3274
3275 esac
3276
3277 need_locks="$enable_libtool_lock"
3278
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3289   CPP=
3290 fi
3291 if test -z "$CPP"; then
3292   if test "${ac_cv_prog_CPP+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295       # Double quotes because CPP needs to be expanded
3296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3297     do
3298       ac_preproc_ok=false
3299 for ac_c_preproc_warn_flag in '' yes
3300 do
3301   # Use a header file that comes with gcc, so configuring glibc
3302   # with a fresh cross-compiler works.
3303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304   # <limits.h> exists even on freestanding compilers.
3305   # On the NeXT, cc -E runs the code through the compiler's parser,
3306   # not just through cpp. "Syntax error" is here to catch this case.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #ifdef __STDC__
3314 # include <limits.h>
3315 #else
3316 # include <assert.h>
3317 #endif
3318                      Syntax error
3319 _ACEOF
3320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } >/dev/null; then
3328   if test -s conftest.err; then
3329     ac_cpp_err=$ac_c_preproc_warn_flag
3330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331   else
3332     ac_cpp_err=
3333   fi
3334 else
3335   ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338   :
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343   # Broken: fails on valid input.
3344 continue
3345 fi
3346 rm -f conftest.err conftest.$ac_ext
3347
3348   # OK, works on sane cases.  Now check whether non-existent headers
3349   # can be detected and how.
3350   cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h.  */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h.  */
3356 #include <ac_nonexistent.h>
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   # Broken: success on invalid input.
3377 continue
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Passes both tests.
3383 ac_preproc_ok=:
3384 break
3385 fi
3386 rm -f conftest.err conftest.$ac_ext
3387
3388 done
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3392   break
3393 fi
3394
3395     done
3396     ac_cv_prog_CPP=$CPP
3397
3398 fi
3399   CPP=$ac_cv_prog_CPP
3400 else
3401   ac_cv_prog_CPP=$CPP
3402 fi
3403 echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408   # Use a header file that comes with gcc, so configuring glibc
3409   # with a fresh cross-compiler works.
3410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411   # <limits.h> exists even on freestanding compilers.
3412   # On the NeXT, cc -E runs the code through the compiler's parser,
3413   # not just through cpp. "Syntax error" is here to catch this case.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425                      Syntax error
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } >/dev/null; then
3435   if test -s conftest.err; then
3436     ac_cpp_err=$ac_c_preproc_warn_flag
3437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438   else
3439     ac_cpp_err=
3440   fi
3441 else
3442   ac_cpp_err=yes
3443 fi
3444 if test -z "$ac_cpp_err"; then
3445   :
3446 else
3447   echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450   # Broken: fails on valid input.
3451 continue
3452 fi
3453 rm -f conftest.err conftest.$ac_ext
3454
3455   # OK, works on sane cases.  Now check whether non-existent headers
3456   # can be detected and how.
3457   cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } >/dev/null; then
3473   if test -s conftest.err; then
3474     ac_cpp_err=$ac_c_preproc_warn_flag
3475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476   else
3477     ac_cpp_err=
3478   fi
3479 else
3480   ac_cpp_err=yes
3481 fi
3482 if test -z "$ac_cpp_err"; then
3483   # Broken: success on invalid input.
3484 continue
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489   # Passes both tests.
3490 ac_preproc_ok=:
3491 break
3492 fi
3493 rm -f conftest.err conftest.$ac_ext
3494
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3499   :
3500 else
3501   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3504 See \`config.log' for more details." >&2;}
3505    { (exit 1); exit 1; }; }
3506 fi
3507
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513
3514
3515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517 if test "${ac_cv_header_stdc+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <stdlib.h>
3527 #include <stdarg.h>
3528 #include <string.h>
3529 #include <float.h>
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541   (eval $ac_compile) 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } &&
3548          { ac_try='test -z "$ac_c_werror_flag"
3549                          || test ! -s conftest.err'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; } &&
3555          { ac_try='test -s conftest.$ac_objext'
3556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557   (eval $ac_try) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561   ac_cv_header_stdc=yes
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 ac_cv_header_stdc=no
3567 fi
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569
3570 if test $ac_cv_header_stdc = yes; then
3571   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572   cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578 #include <string.h>
3579
3580 _ACEOF
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582   $EGREP "memchr" >/dev/null 2>&1; then
3583   :
3584 else
3585   ac_cv_header_stdc=no
3586 fi
3587 rm -f conftest*
3588
3589 fi
3590
3591 if test $ac_cv_header_stdc = yes; then
3592   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 #include <stdlib.h>
3600
3601 _ACEOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603   $EGREP "free" >/dev/null 2>&1; then
3604   :
3605 else
3606   ac_cv_header_stdc=no
3607 fi
3608 rm -f conftest*
3609
3610 fi
3611
3612 if test $ac_cv_header_stdc = yes; then
3613   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3614   if test "$cross_compiling" = yes; then
3615   :
3616 else
3617   cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h.  */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h.  */
3623 #include <ctype.h>
3624 #if ((' ' & 0x0FF) == 0x020)
3625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3627 #else
3628 # define ISLOWER(c) \
3629                    (('a' <= (c) && (c) <= 'i') \
3630                      || ('j' <= (c) && (c) <= 'r') \
3631                      || ('s' <= (c) && (c) <= 'z'))
3632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633 #endif
3634
3635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3636 int
3637 main ()
3638 {
3639   int i;
3640   for (i = 0; i < 256; i++)
3641     if (XOR (islower (i), ISLOWER (i))
3642         || toupper (i) != TOUPPER (i))
3643       exit(2);
3644   exit (0);
3645 }
3646 _ACEOF
3647 rm -f conftest$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649   (eval $ac_link) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654   (eval $ac_try) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); }; }; then
3658   :
3659 else
3660   echo "$as_me: program exited with status $ac_status" >&5
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 ( exit $ac_status )
3665 ac_cv_header_stdc=no
3666 fi
3667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 fi
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3672 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3673 if test $ac_cv_header_stdc = yes; then
3674
3675 cat >>confdefs.h <<\_ACEOF
3676 #define STDC_HEADERS 1
3677 _ACEOF
3678
3679 fi
3680
3681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3692                   inttypes.h stdint.h unistd.h
3693 do
3694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3695 echo "$as_me:$LINENO: checking for $ac_header" >&5
3696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h.  */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h.  */
3706 $ac_includes_default
3707
3708 #include <$ac_header>
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712   (eval $ac_compile) 2>conftest.er1
3713   ac_status=$?
3714   grep -v '^ *+' conftest.er1 >conftest.err
3715   rm -f conftest.er1
3716   cat conftest.err >&5
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } &&
3719          { ac_try='test -z "$ac_c_werror_flag"
3720                          || test ! -s conftest.err'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; } &&
3726          { ac_try='test -s conftest.$ac_objext'
3727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728   (eval $ac_try) 2>&5
3729   ac_status=$?
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); }; }; then
3732   eval "$as_ac_Header=yes"
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 eval "$as_ac_Header=no"
3738 fi
3739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3744   cat >>confdefs.h <<_ACEOF
3745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3746 _ACEOF
3747
3748 fi
3749
3750 done
3751
3752
3753
3754 for ac_header in dlfcn.h
3755 do
3756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758   echo "$as_me:$LINENO: checking for $ac_header" >&5
3759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 fi
3763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3765 else
3766   # Is the header compilable?
3767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 $ac_includes_default
3776 #include <$ac_header>
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780   (eval $ac_compile) 2>conftest.er1
3781   ac_status=$?
3782   grep -v '^ *+' conftest.er1 >conftest.err
3783   rm -f conftest.er1
3784   cat conftest.err >&5
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } &&
3787          { ac_try='test -z "$ac_c_werror_flag"
3788                          || test ! -s conftest.err'
3789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790   (eval $ac_try) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }; } &&
3794          { ac_try='test -s conftest.$ac_objext'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; }; then
3800   ac_header_compiler=yes
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 ac_header_compiler=no
3806 fi
3807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3809 echo "${ECHO_T}$ac_header_compiler" >&6
3810
3811 # Is the header present?
3812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <$ac_header>
3821 _ACEOF
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } >/dev/null; then
3830   if test -s conftest.err; then
3831     ac_cpp_err=$ac_c_preproc_warn_flag
3832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3833   else
3834     ac_cpp_err=
3835   fi
3836 else
3837   ac_cpp_err=yes
3838 fi
3839 if test -z "$ac_cpp_err"; then
3840   ac_header_preproc=yes
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845   ac_header_preproc=no
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3849 echo "${ECHO_T}$ac_header_preproc" >&6
3850
3851 # So?  What about this header?
3852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3853   yes:no: )
3854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3858     ac_header_preproc=yes
3859     ;;
3860   no:yes:* )
3861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3873     (
3874       cat <<\_ASBOX
3875 ## ---------------------------------- ##
3876 ## Report this to rspencer@x10sys.com ##
3877 ## ---------------------------------- ##
3878 _ASBOX
3879     ) |
3880       sed "s/^/$as_me: WARNING:     /" >&2
3881     ;;
3882 esac
3883 echo "$as_me:$LINENO: checking for $ac_header" >&5
3884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   eval "$as_ac_Header=\$ac_header_preproc"
3889 fi
3890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3892
3893 fi
3894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3895   cat >>confdefs.h <<_ACEOF
3896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 _ACEOF
3898
3899 fi
3900
3901 done
3902
3903 ac_ext=cc
3904 ac_cpp='$CXXCPP $CPPFLAGS'
3905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3908 if test -n "$ac_tool_prefix"; then
3909   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3910   do
3911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_CXX+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if test -n "$CXX"; then
3919   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935 fi
3936 fi
3937 CXX=$ac_cv_prog_CXX
3938 if test -n "$CXX"; then
3939   echo "$as_me:$LINENO: result: $CXX" >&5
3940 echo "${ECHO_T}$CXX" >&6
3941 else
3942   echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 fi
3945
3946     test -n "$CXX" && break
3947   done
3948 fi
3949 if test -z "$CXX"; then
3950   ac_ct_CXX=$CXX
3951   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3952 do
3953   # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test -n "$ac_ct_CXX"; then
3961   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_ac_ct_CXX="$ac_prog"
3971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975 done
3976
3977 fi
3978 fi
3979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3980 if test -n "$ac_ct_CXX"; then
3981   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3982 echo "${ECHO_T}$ac_ct_CXX" >&6
3983 else
3984   echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3986 fi
3987
3988   test -n "$ac_ct_CXX" && break
3989 done
3990 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3991
3992   CXX=$ac_ct_CXX
3993 fi
3994
3995
3996 # Provide some information about the compiler.
3997 echo "$as_me:$LINENO:" \
3998      "checking for C++ compiler version" >&5
3999 ac_compiler=`set X $ac_compile; echo $2`
4000 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4001   (eval $ac_compiler --version </dev/null >&5) 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); }
4005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4006   (eval $ac_compiler -v </dev/null >&5) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }
4010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4011   (eval $ac_compiler -V </dev/null >&5) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }
4015
4016 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027
4028 int
4029 main ()
4030 {
4031 #ifndef __GNUC__
4032        choke me
4033 #endif
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_cxx_werror_flag"
4049                          || test ! -s conftest.err'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   ac_compiler_gnu=yes
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 ac_compiler_gnu=no
4067 fi
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4070
4071 fi
4072 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4073 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4074 GXX=`test $ac_compiler_gnu = yes && echo yes`
4075 ac_test_CXXFLAGS=${CXXFLAGS+set}
4076 ac_save_CXXFLAGS=$CXXFLAGS
4077 CXXFLAGS="-g"
4078 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4079 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4080 if test "${ac_cv_prog_cxx_g+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100   (eval $ac_compile) 2>conftest.er1
4101   ac_status=$?
4102   grep -v '^ *+' conftest.er1 >conftest.err
4103   rm -f conftest.er1
4104   cat conftest.err >&5
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); } &&
4107          { ac_try='test -z "$ac_cxx_werror_flag"
4108                          || test ! -s conftest.err'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; } &&
4114          { ac_try='test -s conftest.$ac_objext'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; }; then
4120   ac_cv_prog_cxx_g=yes
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 ac_cv_prog_cxx_g=no
4126 fi
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4130 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4131 if test "$ac_test_CXXFLAGS" = set; then
4132   CXXFLAGS=$ac_save_CXXFLAGS
4133 elif test $ac_cv_prog_cxx_g = yes; then
4134   if test "$GXX" = yes; then
4135     CXXFLAGS="-g -O2"
4136   else
4137     CXXFLAGS="-g"
4138   fi
4139 else
4140   if test "$GXX" = yes; then
4141     CXXFLAGS="-O2"
4142   else
4143     CXXFLAGS=
4144   fi
4145 fi
4146 for ac_declaration in \
4147    '' \
4148    'extern "C" void std::exit (int) throw (); using std::exit;' \
4149    'extern "C" void std::exit (int); using std::exit;' \
4150    'extern "C" void exit (int) throw ();' \
4151    'extern "C" void exit (int);' \
4152    'void exit (int);'
4153 do
4154   cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 $ac_declaration
4161 #include <stdlib.h>
4162 int
4163 main ()
4164 {
4165 exit (42);
4166   ;
4167   return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172   (eval $ac_compile) 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } &&
4179          { ac_try='test -z "$ac_cxx_werror_flag"
4180                          || test ! -s conftest.err'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; } &&
4186          { ac_try='test -s conftest.$ac_objext'
4187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188   (eval $ac_try) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192   :
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 continue
4198 fi
4199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 $ac_declaration
4207 int
4208 main ()
4209 {
4210 exit (42);
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217   (eval $ac_compile) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_cxx_werror_flag"
4225                          || test ! -s conftest.err'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   break
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 fi
4243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 done
4245 rm -f conftest*
4246 if test -n "$ac_declaration"; then
4247   echo '#ifdef __cplusplus' >>confdefs.h
4248   echo $ac_declaration      >>confdefs.h
4249   echo '#endif'             >>confdefs.h
4250 fi
4251
4252 ac_ext=cc
4253 ac_cpp='$CXXCPP $CPPFLAGS'
4254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4257
4258 ac_ext=cc
4259 ac_cpp='$CXXCPP $CPPFLAGS'
4260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4264 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4265 if test -z "$CXXCPP"; then
4266   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269       # Double quotes because CXXCPP needs to be expanded
4270     for CXXCPP in "$CXX -E" "/lib/cpp"
4271     do
4272       ac_preproc_ok=false
4273 for ac_cxx_preproc_warn_flag in '' yes
4274 do
4275   # Use a header file that comes with gcc, so configuring glibc
4276   # with a fresh cross-compiler works.
4277   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278   # <limits.h> exists even on freestanding compilers.
4279   # On the NeXT, cc -E runs the code through the compiler's parser,
4280   # not just through cpp. "Syntax error" is here to catch this case.
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 #ifdef __STDC__
4288 # include <limits.h>
4289 #else
4290 # include <assert.h>
4291 #endif
4292                      Syntax error
4293 _ACEOF
4294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4296   ac_status=$?
4297   grep -v '^ *+' conftest.er1 >conftest.err
4298   rm -f conftest.er1
4299   cat conftest.err >&5
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); } >/dev/null; then
4302   if test -s conftest.err; then
4303     ac_cpp_err=$ac_cxx_preproc_warn_flag
4304     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4305   else
4306     ac_cpp_err=
4307   fi
4308 else
4309   ac_cpp_err=yes
4310 fi
4311 if test -z "$ac_cpp_err"; then
4312   :
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317   # Broken: fails on valid input.
4318 continue
4319 fi
4320 rm -f conftest.err conftest.$ac_ext
4321
4322   # OK, works on sane cases.  Now check whether non-existent headers
4323   # can be detected and how.
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 #include <ac_nonexistent.h>
4331 _ACEOF
4332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } >/dev/null; then
4340   if test -s conftest.err; then
4341     ac_cpp_err=$ac_cxx_preproc_warn_flag
4342     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4343   else
4344     ac_cpp_err=
4345   fi
4346 else
4347   ac_cpp_err=yes
4348 fi
4349 if test -z "$ac_cpp_err"; then
4350   # Broken: success on invalid input.
4351 continue
4352 else
4353   echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356   # Passes both tests.
4357 ac_preproc_ok=:
4358 break
4359 fi
4360 rm -f conftest.err conftest.$ac_ext
4361
4362 done
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok; then
4366   break
4367 fi
4368
4369     done
4370     ac_cv_prog_CXXCPP=$CXXCPP
4371
4372 fi
4373   CXXCPP=$ac_cv_prog_CXXCPP
4374 else
4375   ac_cv_prog_CXXCPP=$CXXCPP
4376 fi
4377 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4378 echo "${ECHO_T}$CXXCPP" >&6
4379 ac_preproc_ok=false
4380 for ac_cxx_preproc_warn_flag in '' yes
4381 do
4382   # Use a header file that comes with gcc, so configuring glibc
4383   # with a fresh cross-compiler works.
4384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385   # <limits.h> exists even on freestanding compilers.
4386   # On the NeXT, cc -E runs the code through the compiler's parser,
4387   # not just through cpp. "Syntax error" is here to catch this case.
4388   cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394 #ifdef __STDC__
4395 # include <limits.h>
4396 #else
4397 # include <assert.h>
4398 #endif
4399                      Syntax error
4400 _ACEOF
4401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } >/dev/null; then
4409   if test -s conftest.err; then
4410     ac_cpp_err=$ac_cxx_preproc_warn_flag
4411     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4412   else
4413     ac_cpp_err=
4414   fi
4415 else
4416   ac_cpp_err=yes
4417 fi
4418 if test -z "$ac_cpp_err"; then
4419   :
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424   # Broken: fails on valid input.
4425 continue
4426 fi
4427 rm -f conftest.err conftest.$ac_ext
4428
4429   # OK, works on sane cases.  Now check whether non-existent headers
4430   # can be detected and how.
4431   cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 #include <ac_nonexistent.h>
4438 _ACEOF
4439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4441   ac_status=$?
4442   grep -v '^ *+' conftest.er1 >conftest.err
4443   rm -f conftest.er1
4444   cat conftest.err >&5
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } >/dev/null; then
4447   if test -s conftest.err; then
4448     ac_cpp_err=$ac_cxx_preproc_warn_flag
4449     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4450   else
4451     ac_cpp_err=
4452   fi
4453 else
4454   ac_cpp_err=yes
4455 fi
4456 if test -z "$ac_cpp_err"; then
4457   # Broken: success on invalid input.
4458 continue
4459 else
4460   echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463   # Passes both tests.
4464 ac_preproc_ok=:
4465 break
4466 fi
4467 rm -f conftest.err conftest.$ac_ext
4468
4469 done
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then
4473   :
4474 else
4475   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4476 See \`config.log' for more details." >&5
4477 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4478 See \`config.log' for more details." >&2;}
4479    { (exit 1); exit 1; }; }
4480 fi
4481
4482 ac_ext=cc
4483 ac_cpp='$CXXCPP $CPPFLAGS'
4484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4487
4488
4489 ac_ext=f
4490 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4491 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4493 if test -n "$ac_tool_prefix"; then
4494   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4495   do
4496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_F77+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$F77"; then
4504   ac_cv_prog_F77="$F77" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 F77=$ac_cv_prog_F77
4523 if test -n "$F77"; then
4524   echo "$as_me:$LINENO: result: $F77" >&5
4525 echo "${ECHO_T}$F77" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531     test -n "$F77" && break
4532   done
4533 fi
4534 if test -z "$F77"; then
4535   ac_ct_F77=$F77
4536   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4537 do
4538   # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   if test -n "$ac_ct_F77"; then
4546   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   for ac_exec_ext in '' $ac_executable_extensions; do
4554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555     ac_cv_prog_ac_ct_F77="$ac_prog"
4556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560 done
4561
4562 fi
4563 fi
4564 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4565 if test -n "$ac_ct_F77"; then
4566   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4567 echo "${ECHO_T}$ac_ct_F77" >&6
4568 else
4569   echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4571 fi
4572
4573   test -n "$ac_ct_F77" && break
4574 done
4575
4576   F77=$ac_ct_F77
4577 fi
4578
4579
4580 # Provide some information about the compiler.
4581 echo "$as_me:4581:" \
4582      "checking for Fortran 77 compiler version" >&5
4583 ac_compiler=`set X $ac_compile; echo $2`
4584 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4585   (eval $ac_compiler --version </dev/null >&5) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }
4589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4590   (eval $ac_compiler -v </dev/null >&5) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }
4594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4595   (eval $ac_compiler -V </dev/null >&5) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }
4599 rm -f a.out
4600
4601 # If we don't use `.F' as extension, the preprocessor is not run on the
4602 # input file.  (Note that this only needs to work for GNU compilers.)
4603 ac_save_ext=$ac_ext
4604 ac_ext=F
4605 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4606 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4607 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   cat >conftest.$ac_ext <<_ACEOF
4611       program main
4612 #ifndef __GNUC__
4613        choke me
4614 #endif
4615
4616       end
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620   (eval $ac_compile) 2>conftest.er1
4621   ac_status=$?
4622   grep -v '^ *+' conftest.er1 >conftest.err
4623   rm -f conftest.er1
4624   cat conftest.err >&5
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); } &&
4627          { ac_try='test -z "$ac_f77_werror_flag"
4628                          || test ! -s conftest.err'
4629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630   (eval $ac_try) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; } &&
4634          { ac_try='test -s conftest.$ac_objext'
4635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636   (eval $ac_try) 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; }; then
4640   ac_compiler_gnu=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 ac_compiler_gnu=no
4646 fi
4647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4649
4650 fi
4651 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4652 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4653 ac_ext=$ac_save_ext
4654 ac_test_FFLAGS=${FFLAGS+set}
4655 ac_save_FFLAGS=$FFLAGS
4656 FFLAGS=
4657 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4658 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4659 if test "${ac_cv_prog_f77_g+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   FFLAGS=-g
4663 cat >conftest.$ac_ext <<_ACEOF
4664       program main
4665
4666       end
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670   (eval $ac_compile) 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } &&
4677          { ac_try='test -z "$ac_f77_werror_flag"
4678                          || test ! -s conftest.err'
4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680   (eval $ac_try) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; } &&
4684          { ac_try='test -s conftest.$ac_objext'
4685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686   (eval $ac_try) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; }; then
4690   ac_cv_prog_f77_g=yes
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_cv_prog_f77_g=no
4696 fi
4697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698
4699 fi
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4701 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4702 if test "$ac_test_FFLAGS" = set; then
4703   FFLAGS=$ac_save_FFLAGS
4704 elif test $ac_cv_prog_f77_g = yes; then
4705   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4706     FFLAGS="-g -O2"
4707   else
4708     FFLAGS="-g"
4709   fi
4710 else
4711   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4712     FFLAGS="-O2"
4713   else
4714     FFLAGS=
4715   fi
4716 fi
4717
4718 G77=`test $ac_compiler_gnu = yes && echo yes`
4719 ac_ext=c
4720 ac_cpp='$CPP $CPPFLAGS'
4721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724
4725
4726
4727 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4728
4729 # find the maximum length of command line arguments
4730 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4731 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4732 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735     i=0
4736   testring="ABCD"
4737
4738   case $build_os in
4739   msdosdjgpp*)
4740     # On DJGPP, this test can blow up pretty badly due to problems in libc
4741     # (any single argument exceeding 2000 bytes causes a buffer overrun
4742     # during glob expansion).  Even if it were fixed, the result of this
4743     # check would be larger than it should be.
4744     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4745     ;;
4746
4747   gnu*)
4748     # Under GNU Hurd, this test is not required because there is
4749     # no limit to the length of command line arguments.
4750     # Libtool will interpret -1 as no limit whatsoever
4751     lt_cv_sys_max_cmd_len=-1;
4752     ;;
4753
4754   cygwin* | mingw*)
4755     # On Win9x/ME, this test blows up -- it succeeds, but takes
4756     # about 5 minutes as the teststring grows exponentially.
4757     # Worse, since 9x/ME are not pre-emptively multitasking,
4758     # you end up with a "frozen" computer, even though with patience
4759     # the test eventually succeeds (with a max line length of 256k).
4760     # Instead, let's just punt: use the minimum linelength reported by
4761     # all of the supported platforms: 8192 (on NT/2K/XP).
4762     lt_cv_sys_max_cmd_len=8192;
4763     ;;
4764
4765  *)
4766     # If test is not a shell built-in, we'll probably end up computing a
4767     # maximum length that is only half of the actual maximum length, but
4768     # we can't tell.
4769     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4770                = "XX$testring") >/dev/null 2>&1 &&
4771             new_result=`expr "X$testring" : ".*" 2>&1` &&
4772             lt_cv_sys_max_cmd_len=$new_result &&
4773             test $i != 17 # 1/2 MB should be enough
4774     do
4775       i=`expr $i + 1`
4776       testring=$testring$testring
4777     done
4778     testring=
4779     # Add a significant safety factor because C++ compilers can tack on massive
4780     # amounts of additional arguments before passing them to the linker.
4781     # It appears as though 1/2 is a usable value.
4782     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4783     ;;
4784   esac
4785
4786 fi
4787
4788 if test -n $lt_cv_sys_max_cmd_len ; then
4789   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4790 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4791 else
4792   echo "$as_me:$LINENO: result: none" >&5
4793 echo "${ECHO_T}none" >&6
4794 fi
4795
4796
4797
4798
4799 # Check for command to grab the raw symbol name followed by C symbol from nm.
4800 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4801 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805
4806 # These are sane defaults that work on at least a few old systems.
4807 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4808
4809 # Character class describing NM global symbol codes.
4810 symcode='[BCDEGRST]'
4811
4812 # Regexp to match symbols that can be accessed directly from C.
4813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4814
4815 # Transform the above into a raw symbol and a C symbol.
4816 symxfrm='\1 \2\3 \3'
4817
4818 # Transform an extracted symbol line into a proper C declaration
4819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4820
4821 # Transform an extracted symbol line into symbol name and symbol address
4822 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'"
4823
4824 # Define system-specific variables.
4825 case $host_os in
4826 aix*)
4827   symcode='[BCDT]'
4828   ;;
4829 cygwin* | mingw* | pw32*)
4830   symcode='[ABCDGISTW]'
4831   ;;
4832 hpux*) # Its linker distinguishes data from code symbols
4833   if test "$host_cpu" = ia64; then
4834     symcode='[ABCDEGRST]'
4835   fi
4836   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837   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'"
4838   ;;
4839 irix* | nonstopux*)
4840   symcode='[BCDEGRST]'
4841   ;;
4842 osf*)
4843   symcode='[BCDEGQRST]'
4844   ;;
4845 solaris* | sysv5*)
4846   symcode='[BDT]'
4847   ;;
4848 sysv4)
4849   symcode='[DFNSTU]'
4850   ;;
4851 esac
4852
4853 # Handle CRLF in mingw tool chain
4854 opt_cr=
4855 case $build_os in
4856 mingw*)
4857   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4858   ;;
4859 esac
4860
4861 # If we're using GNU nm, then use its standard symbol codes.
4862 case `$NM -V 2>&1` in
4863 *GNU* | *'with BFD'*)
4864   symcode='[ABCDGISTW]' ;;
4865 esac
4866
4867 # Try without a prefix undercore, then with it.
4868 for ac_symprfx in "" "_"; do
4869
4870   # Write the raw and C identifiers.
4871   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4872
4873   # Check to see that the pipe works correctly.
4874   pipe_works=no
4875
4876   rm -f conftest*
4877   cat > conftest.$ac_ext <<EOF
4878 #ifdef __cplusplus
4879 extern "C" {
4880 #endif
4881 char nm_test_var;
4882 void nm_test_func(){}
4883 #ifdef __cplusplus
4884 }
4885 #endif
4886 int main(){nm_test_var='a';nm_test_func();return(0);}
4887 EOF
4888
4889   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890   (eval $ac_compile) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; then
4894     # Now try to grab the symbols.
4895     nlist=conftest.nm
4896     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4897   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); } && test -s "$nlist"; then
4901       # Try sorting and uniquifying the output.
4902       if sort "$nlist" | uniq > "$nlist"T; then
4903         mv -f "$nlist"T "$nlist"
4904       else
4905         rm -f "$nlist"T
4906       fi
4907
4908       # Make sure that we snagged all the symbols we need.
4909       if grep ' nm_test_var$' "$nlist" >/dev/null; then
4910         if grep ' nm_test_func$' "$nlist" >/dev/null; then
4911           cat <<EOF > conftest.$ac_ext
4912 #ifdef __cplusplus
4913 extern "C" {
4914 #endif
4915
4916 EOF
4917           # Now generate the symbol file.
4918           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4919
4920           cat <<EOF >> conftest.$ac_ext
4921 #if defined (__STDC__) && __STDC__
4922 # define lt_ptr_t void *
4923 #else
4924 # define lt_ptr_t char *
4925 # define const
4926 #endif
4927
4928 /* The mapping between symbol names and symbols. */
4929 const struct {
4930   const char *name;
4931   lt_ptr_t address;
4932 }
4933 lt_preloaded_symbols[] =
4934 {
4935 EOF
4936           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4937           cat <<\EOF >> conftest.$ac_ext
4938   {0, (lt_ptr_t) 0}
4939 };
4940
4941 #ifdef __cplusplus
4942 }
4943 #endif
4944 EOF
4945           # Now try linking the two files.
4946           mv conftest.$ac_objext conftstm.$ac_objext
4947           lt_save_LIBS="$LIBS"
4948           lt_save_CFLAGS="$CFLAGS"
4949           LIBS="conftstm.$ac_objext"
4950           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4951           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952   (eval $ac_link) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4956             pipe_works=yes
4957           fi
4958           LIBS="$lt_save_LIBS"
4959           CFLAGS="$lt_save_CFLAGS"
4960         else
4961           echo "cannot find nm_test_func in $nlist" >&5
4962         fi
4963       else
4964         echo "cannot find nm_test_var in $nlist" >&5
4965       fi
4966     else
4967       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4968     fi
4969   else
4970     echo "$progname: failed program was:" >&5
4971     cat conftest.$ac_ext >&5
4972   fi
4973   rm -f conftest* conftst*
4974
4975   # Do not use the global_symbol_pipe unless it works.
4976   if test "$pipe_works" = yes; then
4977     break
4978   else
4979     lt_cv_sys_global_symbol_pipe=
4980   fi
4981 done
4982
4983 fi
4984
4985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4986   lt_cv_sys_global_symbol_to_cdecl=
4987 fi
4988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4989   echo "$as_me:$LINENO: result: failed" >&5
4990 echo "${ECHO_T}failed" >&6
4991 else
4992   echo "$as_me:$LINENO: result: ok" >&5
4993 echo "${ECHO_T}ok" >&6
4994 fi
4995
4996 echo "$as_me:$LINENO: checking for objdir" >&5
4997 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4998 if test "${lt_cv_objdir+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   rm -f .libs 2>/dev/null
5002 mkdir .libs 2>/dev/null
5003 if test -d .libs; then
5004   lt_cv_objdir=.libs
5005 else
5006   # MS-DOS does not allow filenames that begin with a dot.
5007   lt_cv_objdir=_libs
5008 fi
5009 rmdir .libs 2>/dev/null
5010 fi
5011 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5012 echo "${ECHO_T}$lt_cv_objdir" >&6
5013 objdir=$lt_cv_objdir
5014
5015
5016
5017
5018
5019 case $host_os in
5020 aix3*)
5021   # AIX sometimes has problems with the GCC collect2 program.  For some
5022   # reason, if we set the COLLECT_NAMES environment variable, the problems
5023   # vanish in a puff of smoke.
5024   if test "X${COLLECT_NAMES+set}" != Xset; then
5025     COLLECT_NAMES=
5026     export COLLECT_NAMES
5027   fi
5028   ;;
5029 esac
5030
5031 # Sed substitution that helps us do robust quoting.  It backslashifies
5032 # metacharacters that are still active within double-quoted strings.
5033 Xsed='sed -e s/^X//'
5034 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5035
5036 # Same as above, but do not quote variable references.
5037 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5038
5039 # Sed substitution to delay expansion of an escaped shell variable in a
5040 # double_quote_subst'ed string.
5041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5042
5043 # Sed substitution to avoid accidental globbing in evaled expressions
5044 no_glob_subst='s/\*/\\\*/g'
5045
5046 # Constants:
5047 rm="rm -f"
5048
5049 # Global variables:
5050 default_ofile=mklib
5051 can_build_shared=yes
5052
5053 # All known linkers require a `.a' archive for static linking (except M$VC,
5054 # which needs '.lib').
5055 libext=a
5056 ltmain="$ac_aux_dir/ltmain.sh"
5057 ofile="$default_ofile"
5058 with_gnu_ld="$lt_cv_prog_gnu_ld"
5059
5060 if test -n "$ac_tool_prefix"; then
5061   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}ar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_AR+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   if test -n "$AR"; then
5069   ac_cv_prog_AR="$AR" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_prog_AR="${ac_tool_prefix}ar"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085 fi
5086 fi
5087 AR=$ac_cv_prog_AR
5088 if test -n "$AR"; then
5089   echo "$as_me:$LINENO: result: $AR" >&5
5090 echo "${ECHO_T}$AR" >&6
5091 else
5092   echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094 fi
5095
5096 fi
5097 if test -z "$ac_cv_prog_AR"; then
5098   ac_ct_AR=$AR
5099   # Extract the first word of "ar", so it can be a program name with args.
5100 set dummy ar; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   if test -n "$ac_ct_AR"; then
5107   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114   for ac_exec_ext in '' $ac_executable_extensions; do
5115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116     ac_cv_prog_ac_ct_AR="ar"
5117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121 done
5122
5123   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5124 fi
5125 fi
5126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5127 if test -n "$ac_ct_AR"; then
5128   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5129 echo "${ECHO_T}$ac_ct_AR" >&6
5130 else
5131   echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5133 fi
5134
5135   AR=$ac_ct_AR
5136 else
5137   AR="$ac_cv_prog_AR"
5138 fi
5139
5140 if test -n "$ac_tool_prefix"; then
5141   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_prog_RANLIB+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if test -n "$RANLIB"; then
5149   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164
5165 fi
5166 fi
5167 RANLIB=$ac_cv_prog_RANLIB
5168 if test -n "$RANLIB"; then
5169   echo "$as_me:$LINENO: result: $RANLIB" >&5
5170 echo "${ECHO_T}$RANLIB" >&6
5171 else
5172   echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5174 fi
5175
5176 fi
5177 if test -z "$ac_cv_prog_RANLIB"; then
5178   ac_ct_RANLIB=$RANLIB
5179   # Extract the first word of "ranlib", so it can be a program name with args.
5180 set dummy ranlib; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   if test -n "$ac_ct_RANLIB"; then
5187   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194   for ac_exec_ext in '' $ac_executable_extensions; do
5195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196     ac_cv_prog_ac_ct_RANLIB="ranlib"
5197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201 done
5202
5203   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5204 fi
5205 fi
5206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207 if test -n "$ac_ct_RANLIB"; then
5208   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5210 else
5211   echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5213 fi
5214
5215   RANLIB=$ac_ct_RANLIB
5216 else
5217   RANLIB="$ac_cv_prog_RANLIB"
5218 fi
5219
5220 if test -n "$ac_tool_prefix"; then
5221   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}strip; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_STRIP+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   if test -n "$STRIP"; then
5229   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5244
5245 fi
5246 fi
5247 STRIP=$ac_cv_prog_STRIP
5248 if test -n "$STRIP"; then
5249   echo "$as_me:$LINENO: result: $STRIP" >&5
5250 echo "${ECHO_T}$STRIP" >&6
5251 else
5252   echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5254 fi
5255
5256 fi
5257 if test -z "$ac_cv_prog_STRIP"; then
5258   ac_ct_STRIP=$STRIP
5259   # Extract the first word of "strip", so it can be a program name with args.
5260 set dummy strip; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   if test -n "$ac_ct_STRIP"; then
5267   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274   for ac_exec_ext in '' $ac_executable_extensions; do
5275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276     ac_cv_prog_ac_ct_STRIP="strip"
5277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281 done
5282
5283   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5284 fi
5285 fi
5286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5287 if test -n "$ac_ct_STRIP"; then
5288   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5289 echo "${ECHO_T}$ac_ct_STRIP" >&6
5290 else
5291   echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293 fi
5294
5295   STRIP=$ac_ct_STRIP
5296 else
5297   STRIP="$ac_cv_prog_STRIP"
5298 fi
5299
5300
5301 old_CC="$CC"
5302 old_CFLAGS="$CFLAGS"
5303
5304 # Set sane defaults for various variables
5305 test -z "$AR" && AR=ar
5306 test -z "$AR_FLAGS" && AR_FLAGS=cru
5307 test -z "$AS" && AS=as
5308 test -z "$CC" && CC=cc
5309 test -z "$LTCC" && LTCC=$CC
5310 test -z "$DLLTOOL" && DLLTOOL=dlltool
5311 test -z "$LD" && LD=ld
5312 test -z "$LN_S" && LN_S="ln -s"
5313 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5314 test -z "$NM" && NM=nm
5315 test -z "$SED" && SED=sed
5316 test -z "$OBJDUMP" && OBJDUMP=objdump
5317 test -z "$RANLIB" && RANLIB=:
5318 test -z "$STRIP" && STRIP=:
5319 test -z "$ac_objext" && ac_objext=o
5320
5321 # Determine commands to create old-style static archives.
5322 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5323 old_postinstall_cmds='chmod 644 $oldlib'
5324 old_postuninstall_cmds=
5325
5326 if test -n "$RANLIB"; then
5327   case $host_os in
5328   openbsd*)
5329     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5330     ;;
5331   *)
5332     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5333     ;;
5334   esac
5335   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5336 fi
5337
5338 # Only perform the check for file, if the check method requires it
5339 case $deplibs_check_method in
5340 file_magic*)
5341   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5342     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5343 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   case $MAGIC_CMD in
5348 [\\/*] |  ?:[\\/]*)
5349   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5350   ;;
5351 *)
5352   lt_save_MAGIC_CMD="$MAGIC_CMD"
5353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5354   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5355   for ac_dir in $ac_dummy; do
5356     IFS="$lt_save_ifs"
5357     test -z "$ac_dir" && ac_dir=.
5358     if test -f $ac_dir/${ac_tool_prefix}file; then
5359       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5360       if test -n "$file_magic_test_file"; then
5361         case $deplibs_check_method in
5362         "file_magic "*)
5363           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5364           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5365           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5366             $EGREP "$file_magic_regex" > /dev/null; then
5367             :
5368           else
5369             cat <<EOF 1>&2
5370
5371 *** Warning: the command libtool uses to detect shared libraries,
5372 *** $file_magic_cmd, produces output that libtool cannot recognize.
5373 *** The result is that libtool may fail to recognize shared libraries
5374 *** as such.  This will affect the creation of libtool libraries that
5375 *** depend on shared libraries, but programs linked with such libtool
5376 *** libraries will work regardless of this problem.  Nevertheless, you
5377 *** may want to report the problem to your system manager and/or to
5378 *** bug-libtool@gnu.org
5379
5380 EOF
5381           fi ;;
5382         esac
5383       fi
5384       break
5385     fi
5386   done
5387   IFS="$lt_save_ifs"
5388   MAGIC_CMD="$lt_save_MAGIC_CMD"
5389   ;;
5390 esac
5391 fi
5392
5393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5394 if test -n "$MAGIC_CMD"; then
5395   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5396 echo "${ECHO_T}$MAGIC_CMD" >&6
5397 else
5398   echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401
5402 if test -z "$lt_cv_path_MAGIC_CMD"; then
5403   if test -n "$ac_tool_prefix"; then
5404     echo "$as_me:$LINENO: checking for file" >&5
5405 echo $ECHO_N "checking for file... $ECHO_C" >&6
5406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   case $MAGIC_CMD in
5410 [\\/*] |  ?:[\\/]*)
5411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5412   ;;
5413 *)
5414   lt_save_MAGIC_CMD="$MAGIC_CMD"
5415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5417   for ac_dir in $ac_dummy; do
5418     IFS="$lt_save_ifs"
5419     test -z "$ac_dir" && ac_dir=.
5420     if test -f $ac_dir/file; then
5421       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5422       if test -n "$file_magic_test_file"; then
5423         case $deplibs_check_method in
5424         "file_magic "*)
5425           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5428             $EGREP "$file_magic_regex" > /dev/null; then
5429             :
5430           else
5431             cat <<EOF 1>&2
5432
5433 *** Warning: the command libtool uses to detect shared libraries,
5434 *** $file_magic_cmd, produces output that libtool cannot recognize.
5435 *** The result is that libtool may fail to recognize shared libraries
5436 *** as such.  This will affect the creation of libtool libraries that
5437 *** depend on shared libraries, but programs linked with such libtool
5438 *** libraries will work regardless of this problem.  Nevertheless, you
5439 *** may want to report the problem to your system manager and/or to
5440 *** bug-libtool@gnu.org
5441
5442 EOF
5443           fi ;;
5444         esac
5445       fi
5446       break
5447     fi
5448   done
5449   IFS="$lt_save_ifs"
5450   MAGIC_CMD="$lt_save_MAGIC_CMD"
5451   ;;
5452 esac
5453 fi
5454
5455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5456 if test -n "$MAGIC_CMD"; then
5457   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5458 echo "${ECHO_T}$MAGIC_CMD" >&6
5459 else
5460   echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5462 fi
5463
5464   else
5465     MAGIC_CMD=:
5466   fi
5467 fi
5468
5469   fi
5470   ;;
5471 esac
5472
5473 enable_dlopen=no
5474 enable_win32_dll=no
5475
5476 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5477 if test "${enable_libtool_lock+set}" = set; then
5478   enableval="$enable_libtool_lock"
5479
5480 fi;
5481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5482
5483
5484 # Check whether --with-pic or --without-pic was given.
5485 if test "${with_pic+set}" = set; then
5486   withval="$with_pic"
5487   pic_mode="$withval"
5488 else
5489   pic_mode=default
5490 fi;
5491 test -z "$pic_mode" && pic_mode=default
5492
5493 # Use C for the default configuration in the libtool script
5494 tagname=
5495 lt_save_CC="$CC"
5496 ac_ext=c
5497 ac_cpp='$CPP $CPPFLAGS'
5498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501
5502
5503 # Source file extension for C test sources.
5504 ac_ext=c
5505
5506 # Object file extension for compiled C test sources.
5507 objext=o
5508 objext=$objext
5509
5510 # Code to be used in simple compile tests
5511 lt_simple_compile_test_code="int some_variable = 0;\n"
5512
5513 # Code to be used in simple link tests
5514 lt_simple_link_test_code='int main(){return(0);}\n'
5515
5516
5517 # If no C compiler was specified, use CC.
5518 LTCC=${LTCC-"$CC"}
5519
5520 # Allow CC to be a program name with arguments.
5521 compiler=$CC
5522
5523
5524 #
5525 # Check for any special shared library compilation flags.
5526 #
5527 lt_prog_cc_shlib=
5528 if test "$GCC" = no; then
5529   case $host_os in
5530   sco3.2v5*)
5531     lt_prog_cc_shlib='-belf'
5532     ;;
5533   esac
5534 fi
5535 if test -n "$lt_prog_cc_shlib"; then
5536   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5537 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5538   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5539   else
5540     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5541 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5542     lt_cv_prog_cc_can_build_shared=no
5543   fi
5544 fi
5545
5546
5547 #
5548 # Check to make sure the static flag actually works.
5549 #
5550 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5551 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5552 if test "${lt_prog_compiler_static_works+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   lt_prog_compiler_static_works=no
5556    save_LDFLAGS="$LDFLAGS"
5557    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5558    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5559    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5560      # The compiler can only warn and ignore the option if not recognized
5561      # So say no if there are warnings
5562      if test -s conftest.err; then
5563        # Append any errors to the config.log.
5564        cat conftest.err 1>&5
5565      else
5566        lt_prog_compiler_static_works=yes
5567      fi
5568    fi
5569    $rm conftest*
5570    LDFLAGS="$save_LDFLAGS"
5571
5572 fi
5573 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5574 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5575
5576 if test x"$lt_prog_compiler_static_works" = xyes; then
5577     :
5578 else
5579     lt_prog_compiler_static=
5580 fi
5581
5582
5583
5584 ## CAVEAT EMPTOR:
5585 ## There is no encapsulation within the following macros, do not change
5586 ## the running order or otherwise move them around unless you know exactly
5587 ## what you are doing...
5588
5589 lt_prog_compiler_no_builtin_flag=
5590
5591 if test "$GCC" = yes; then
5592   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5593
5594   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5595 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5596 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5597   echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599   lt_cv_prog_compiler_rtti_exceptions=no
5600   ac_outfile=conftest.$ac_objext
5601    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5602    lt_compiler_flag="-fno-rtti -fno-exceptions"
5603    # Insert the option either (1) after the last *FLAGS variable, or
5604    # (2) before a word containing "conftest.", or (3) at the end.
5605    # Note that $ac_compile itself does not contain backslashes and begins
5606    # with a dollar sign (not a hyphen), so the echo should work correctly.
5607    # The option is referenced via a variable to avoid confusing sed.
5608    lt_compile=`echo "$ac_compile" | $SED \
5609    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5610    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5611    -e 's:$: $lt_compiler_flag:'`
5612    (eval echo "\"\$as_me:5612: $lt_compile\"" >&5)
5613    (eval "$lt_compile" 2>conftest.err)
5614    ac_status=$?
5615    cat conftest.err >&5
5616    echo "$as_me:5616: \$? = $ac_status" >&5
5617    if (exit $ac_status) && test -s "$ac_outfile"; then
5618      # The compiler can only warn and ignore the option if not recognized
5619      # So say no if there are warnings
5620      if test ! -s conftest.err; then
5621        lt_cv_prog_compiler_rtti_exceptions=yes
5622      fi
5623    fi
5624    $rm conftest*
5625
5626 fi
5627 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5628 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5629
5630 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5631     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5632 else
5633     :
5634 fi
5635
5636 fi
5637
5638 lt_prog_compiler_wl=
5639 lt_prog_compiler_pic=
5640 lt_prog_compiler_static=
5641
5642 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5643 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5644
5645   if test "$GCC" = yes; then
5646     lt_prog_compiler_wl='-Wl,'
5647     lt_prog_compiler_static='-static'
5648
5649     case $host_os in
5650       aix*)
5651       # All AIX code is PIC.
5652       if test "$host_cpu" = ia64; then
5653         # AIX 5 now supports IA64 processor
5654         lt_prog_compiler_static='-Bstatic'
5655       fi
5656       ;;
5657
5658     amigaos*)
5659       # FIXME: we need at least 68020 code to build shared libraries, but
5660       # adding the `-m68020' flag to GCC prevents building anything better,
5661       # like `-m68040'.
5662       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5663       ;;
5664
5665     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5666       # PIC is the default for these OSes.
5667       ;;
5668
5669     mingw* | pw32* | os2*)
5670       # This hack is so that the source file can tell whether it is being
5671       # built for inclusion in a dll (and should export symbols for example).
5672       lt_prog_compiler_pic='-DDLL_EXPORT'
5673       ;;
5674
5675     darwin* | rhapsody*)
5676       # PIC is the default on this platform
5677       # Common symbols not allowed in MH_DYLIB files
5678       lt_prog_compiler_pic='-fno-common'
5679       ;;
5680
5681     msdosdjgpp*)
5682       # Just because we use GCC doesn't mean we suddenly get shared libraries
5683       # on systems that don't support them.
5684       lt_prog_compiler_can_build_shared=no
5685       enable_shared=no
5686       ;;
5687
5688     sysv4*MP*)
5689       if test -d /usr/nec; then
5690         lt_prog_compiler_pic=-Kconform_pic
5691       fi
5692       ;;
5693
5694     hpux*)
5695       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5696       # not for PA HP-UX.
5697       case "$host_cpu" in
5698       hppa*64*|ia64*)
5699         # +Z the default
5700         ;;
5701       *)
5702         lt_prog_compiler_pic='-fPIC'
5703         ;;
5704       esac
5705       ;;
5706
5707     *)
5708       lt_prog_compiler_pic='-fPIC'
5709       ;;
5710     esac
5711   else
5712     # PORTME Check for flag to pass linker flags through the system compiler.
5713     case $host_os in
5714     aix*)
5715       lt_prog_compiler_wl='-Wl,'
5716       if test "$host_cpu" = ia64; then
5717         # AIX 5 now supports IA64 processor
5718         lt_prog_compiler_static='-Bstatic'
5719       else
5720         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5721       fi
5722       ;;
5723
5724     mingw* | pw32* | os2*)
5725       # This hack is so that the source file can tell whether it is being
5726       # built for inclusion in a dll (and should export symbols for example).
5727       lt_prog_compiler_pic='-DDLL_EXPORT'
5728       ;;
5729
5730     hpux9* | hpux10* | hpux11*)
5731       lt_prog_compiler_wl='-Wl,'
5732       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5733       # not for PA HP-UX.
5734       case "$host_cpu" in
5735       hppa*64*|ia64*)
5736         # +Z the default
5737         ;;
5738       *)
5739         lt_prog_compiler_pic='+Z'
5740         ;;
5741       esac
5742       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5743       lt_prog_compiler_static='${wl}-a ${wl}archive'
5744       ;;
5745
5746     irix5* | irix6* | nonstopux*)
5747       lt_prog_compiler_wl='-Wl,'
5748       # PIC (with -KPIC) is the default.
5749       lt_prog_compiler_static='-non_shared'
5750       ;;
5751
5752     newsos6)
5753       lt_prog_compiler_pic='-KPIC'
5754       lt_prog_compiler_static='-Bstatic'
5755       ;;
5756
5757     linux*)
5758       case $CC in
5759       icc|ecc)
5760         lt_prog_compiler_wl='-Wl,'
5761         lt_prog_compiler_pic='-KPIC'
5762         lt_prog_compiler_static='-static'
5763         ;;
5764       ccc)
5765         lt_prog_compiler_wl='-Wl,'
5766         # All Alpha code is PIC.
5767         lt_prog_compiler_static='-non_shared'
5768         ;;
5769       esac
5770       ;;
5771
5772     osf3* | osf4* | osf5*)
5773       lt_prog_compiler_wl='-Wl,'
5774       # All OSF/1 code is PIC.
5775       lt_prog_compiler_static='-non_shared'
5776       ;;
5777
5778     sco3.2v5*)
5779       lt_prog_compiler_pic='-Kpic'
5780       lt_prog_compiler_static='-dn'
5781       ;;
5782
5783     solaris*)
5784       lt_prog_compiler_wl='-Wl,'
5785       lt_prog_compiler_pic='-KPIC'
5786       lt_prog_compiler_static='-Bstatic'
5787       ;;
5788
5789     sunos4*)
5790       lt_prog_compiler_wl='-Qoption ld '
5791       lt_prog_compiler_pic='-PIC'
5792       lt_prog_compiler_static='-Bstatic'
5793       ;;
5794
5795     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5796       lt_prog_compiler_wl='-Wl,'
5797       lt_prog_compiler_pic='-KPIC'
5798       lt_prog_compiler_static='-Bstatic'
5799       ;;
5800
5801     sysv4*MP*)
5802       if test -d /usr/nec ;then
5803         lt_prog_compiler_pic='-Kconform_pic'
5804         lt_prog_compiler_static='-Bstatic'
5805       fi
5806       ;;
5807
5808     uts4*)
5809       lt_prog_compiler_pic='-pic'
5810       lt_prog_compiler_static='-Bstatic'
5811       ;;
5812
5813     *)
5814       lt_prog_compiler_can_build_shared=no
5815       ;;
5816     esac
5817   fi
5818
5819 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5820 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5821
5822 #
5823 # Check to make sure the PIC flag actually works.
5824 #
5825 if test -n "$lt_prog_compiler_pic"; then
5826   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5827 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5828 if test "${lt_prog_compiler_pic_works+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   lt_prog_compiler_pic_works=no
5832   ac_outfile=conftest.$ac_objext
5833    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5834    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5835    # Insert the option either (1) after the last *FLAGS variable, or
5836    # (2) before a word containing "conftest.", or (3) at the end.
5837    # Note that $ac_compile itself does not contain backslashes and begins
5838    # with a dollar sign (not a hyphen), so the echo should work correctly.
5839    # The option is referenced via a variable to avoid confusing sed.
5840    lt_compile=`echo "$ac_compile" | $SED \
5841    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5843    -e 's:$: $lt_compiler_flag:'`
5844    (eval echo "\"\$as_me:5844: $lt_compile\"" >&5)
5845    (eval "$lt_compile" 2>conftest.err)
5846    ac_status=$?
5847    cat conftest.err >&5
5848    echo "$as_me:5848: \$? = $ac_status" >&5
5849    if (exit $ac_status) && test -s "$ac_outfile"; then
5850      # The compiler can only warn and ignore the option if not recognized
5851      # So say no if there are warnings
5852      if test ! -s conftest.err; then
5853        lt_prog_compiler_pic_works=yes
5854      fi
5855    fi
5856    $rm conftest*
5857
5858 fi
5859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5860 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5861
5862 if test x"$lt_prog_compiler_pic_works" = xyes; then
5863     case $lt_prog_compiler_pic in
5864      "" | " "*) ;;
5865      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5866      esac
5867 else
5868     lt_prog_compiler_pic=
5869      lt_prog_compiler_can_build_shared=no
5870 fi
5871
5872 fi
5873 case "$host_os" in
5874   # For platforms which do not support PIC, -DPIC is meaningless:
5875   *djgpp*)
5876     lt_prog_compiler_pic=
5877     ;;
5878   *)
5879     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5880     ;;
5881 esac
5882
5883 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5884 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5885 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   lt_cv_prog_compiler_c_o=no
5889    $rm -r conftest 2>/dev/null
5890    mkdir conftest
5891    cd conftest
5892    mkdir out
5893    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5894
5895    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5896    # that will create temporary files in the current directory regardless of
5897    # the output directory.  Thus, making CWD read-only will cause this test
5898    # to fail, enabling locking or at least warning the user not to do parallel
5899    # builds.
5900    chmod -w .
5901
5902    lt_compiler_flag="-o out/conftest2.$ac_objext"
5903    # Insert the option either (1) after the last *FLAGS variable, or
5904    # (2) before a word containing "conftest.", or (3) at the end.
5905    # Note that $ac_compile itself does not contain backslashes and begins
5906    # with a dollar sign (not a hyphen), so the echo should work correctly.
5907    lt_compile=`echo "$ac_compile" | $SED \
5908    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5909    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5910    -e 's:$: $lt_compiler_flag:'`
5911    (eval echo "\"\$as_me:5911: $lt_compile\"" >&5)
5912    (eval "$lt_compile" 2>out/conftest.err)
5913    ac_status=$?
5914    cat out/conftest.err >&5
5915    echo "$as_me:5915: \$? = $ac_status" >&5
5916    if (exit $ac_status) && test -s out/conftest2.$ac_objext
5917    then
5918      # The compiler can only warn and ignore the option if not recognized
5919      # So say no if there are warnings
5920      if test ! -s out/conftest.err; then
5921        lt_cv_prog_compiler_c_o=yes
5922      fi
5923    fi
5924    chmod u+w .
5925    $rm conftest* out/*
5926    rmdir out
5927    cd ..
5928    rmdir conftest
5929    $rm conftest*
5930
5931 fi
5932 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5933 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5934
5935
5936 hard_links="nottested"
5937 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5938   # do not overwrite the value of need_locks provided by the user
5939   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5940 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5941   hard_links=yes
5942   $rm conftest*
5943   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5944   touch conftest.a
5945   ln conftest.a conftest.b 2>&5 || hard_links=no
5946   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5947   echo "$as_me:$LINENO: result: $hard_links" >&5
5948 echo "${ECHO_T}$hard_links" >&6
5949   if test "$hard_links" = no; then
5950     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5951 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5952     need_locks=warn
5953   fi
5954 else
5955   need_locks=no
5956 fi
5957
5958 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5959 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5960
5961   runpath_var=
5962   allow_undefined_flag=
5963   enable_shared_with_static_runtimes=no
5964   archive_cmds=
5965   archive_expsym_cmds=
5966   old_archive_From_new_cmds=
5967   old_archive_from_expsyms_cmds=
5968   export_dynamic_flag_spec=
5969   whole_archive_flag_spec=
5970   thread_safe_flag_spec=
5971   hardcode_libdir_flag_spec=
5972   hardcode_libdir_flag_spec_ld=
5973   hardcode_libdir_separator=
5974   hardcode_direct=no
5975   hardcode_minus_L=no
5976   hardcode_shlibpath_var=unsupported
5977   link_all_deplibs=unknown
5978   hardcode_automatic=no
5979   module_cmds=
5980   module_expsym_cmds=
5981   always_export_symbols=no
5982   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5983   # include_expsyms should be a list of space-separated symbols to be *always*
5984   # included in the symbol list
5985   include_expsyms=
5986   # exclude_expsyms can be an extended regexp of symbols to exclude
5987   # it will be wrapped by ` (' and `)$', so one must not match beginning or
5988   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5989   # as well as any symbol that contains `d'.
5990   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5991   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5992   # platforms (ab)use it in PIC code, but their linkers get confused if
5993   # the symbol is explicitly referenced.  Since portable code cannot
5994   # rely on this symbol name, it's probably fine to never include it in
5995   # preloaded symbol tables.
5996   extract_expsyms_cmds=
5997
5998   case $host_os in
5999   cygwin* | mingw* | pw32*)
6000     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6001     # When not using gcc, we currently assume that we are using
6002     # Microsoft Visual C++.
6003     if test "$GCC" != yes; then
6004       with_gnu_ld=no
6005     fi
6006     ;;
6007   openbsd*)
6008     with_gnu_ld=no
6009     ;;
6010   esac
6011
6012   ld_shlibs=yes
6013   if test "$with_gnu_ld" = yes; then
6014     # If archive_cmds runs LD, not CC, wlarc should be empty
6015     wlarc='${wl}'
6016
6017     # See if GNU ld supports shared libraries.
6018     case $host_os in
6019     aix3* | aix4* | aix5*)
6020       # On AIX/PPC, the GNU linker is very broken
6021       if test "$host_cpu" != ia64; then
6022         ld_shlibs=no
6023         cat <<EOF 1>&2
6024
6025 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6026 *** to be unable to reliably create shared libraries on AIX.
6027 *** Therefore, libtool is disabling shared libraries support.  If you
6028 *** really care for shared libraries, you may want to modify your PATH
6029 *** so that a non-GNU linker is found, and then restart.
6030
6031 EOF
6032       fi
6033       ;;
6034
6035     amigaos*)
6036       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)'
6037       hardcode_libdir_flag_spec='-L$libdir'
6038       hardcode_minus_L=yes
6039
6040       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6041       # that the semantics of dynamic libraries on AmigaOS, at least up
6042       # to version 4, is to share data among multiple programs linked
6043       # with the same dynamic library.  Since this doesn't match the
6044       # behavior of shared libraries on other platforms, we can't use
6045       # them.
6046       ld_shlibs=no
6047       ;;
6048
6049     beos*)
6050       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6051         allow_undefined_flag=unsupported
6052         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6053         # support --undefined.  This deserves some investigation.  FIXME
6054         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6055       else
6056         ld_shlibs=no
6057       fi
6058       ;;
6059
6060     cygwin* | mingw* | pw32*)
6061       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6062       # as there is no search path for DLLs.
6063       hardcode_libdir_flag_spec='-L$libdir'
6064       allow_undefined_flag=unsupported
6065       always_export_symbols=no
6066       enable_shared_with_static_runtimes=yes
6067       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6068
6069       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6070         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6071         # If the export-symbols file already is a .def file (1st line
6072         # is EXPORTS), use it as is; otherwise, prepend...
6073         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6074           cp $export_symbols $output_objdir/$soname.def;
6075         else
6076           echo EXPORTS > $output_objdir/$soname.def;
6077           cat $export_symbols >> $output_objdir/$soname.def;
6078         fi~
6079         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6080       else
6081         ld_shlibs=no
6082       fi
6083       ;;
6084
6085     netbsd*)
6086       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6088         wlarc=
6089       else
6090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6091         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6092       fi
6093       ;;
6094
6095     solaris* | sysv5*)
6096       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6097         ld_shlibs=no
6098         cat <<EOF 1>&2
6099
6100 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6101 *** create shared libraries on Solaris systems.  Therefore, libtool
6102 *** is disabling shared libraries support.  We urge you to upgrade GNU
6103 *** binutils to release 2.9.1 or newer.  Another option is to modify
6104 *** your PATH or compiler configuration so that the native linker is
6105 *** used, and then restart.
6106
6107 EOF
6108       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6109         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6110         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6111       else
6112         ld_shlibs=no
6113       fi
6114       ;;
6115
6116     sunos4*)
6117       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6118       wlarc=
6119       hardcode_direct=yes
6120       hardcode_shlibpath_var=no
6121       ;;
6122
6123     *)
6124       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6127       else
6128         ld_shlibs=no
6129       fi
6130       ;;
6131     esac
6132
6133     if test "$ld_shlibs" = yes; then
6134       runpath_var=LD_RUN_PATH
6135       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6136       export_dynamic_flag_spec='${wl}--export-dynamic'
6137       # ancient GNU ld didn't support --whole-archive et. al.
6138       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6139         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6140       else
6141         whole_archive_flag_spec=
6142       fi
6143     fi
6144   else
6145     # PORTME fill in a description of your system's linker (not GNU ld)
6146     case $host_os in
6147     aix3*)
6148       allow_undefined_flag=unsupported
6149       always_export_symbols=yes
6150       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'
6151       # Note: this linker hardcodes the directories in LIBPATH if there
6152       # are no directories specified by -L.
6153       hardcode_minus_L=yes
6154       if test "$GCC" = yes && test -z "$link_static_flag"; then
6155         # Neither direct hardcoding nor static linking is supported with a
6156         # broken collect2.
6157         hardcode_direct=unsupported
6158       fi
6159       ;;
6160
6161     aix4* | aix5*)
6162       if test "$host_cpu" = ia64; then
6163         # On IA64, the linker does run time linking by default, so we don't
6164         # have to do anything special.
6165         aix_use_runtimelinking=no
6166         exp_sym_flag='-Bexport'
6167         no_entry_flag=""
6168       else
6169         # If we're using GNU nm, then we don't want the "-C" option.
6170         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6171         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6172           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'
6173         else
6174           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'
6175         fi
6176         aix_use_runtimelinking=no
6177
6178         # Test if we are trying to use run time linking or normal
6179         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6180         # need to do runtime linking.
6181         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6182           for ld_flag in $LDFLAGS; do
6183           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6184             aix_use_runtimelinking=yes
6185             break
6186           fi
6187           done
6188         esac
6189
6190         exp_sym_flag='-bexport'
6191         no_entry_flag='-bnoentry'
6192       fi
6193
6194       # When large executables or shared objects are built, AIX ld can
6195       # have problems creating the table of contents.  If linking a library
6196       # or program results in "error TOC overflow" add -mminimal-toc to
6197       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6198       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6199
6200       archive_cmds=''
6201       hardcode_direct=yes
6202       hardcode_libdir_separator=':'
6203       link_all_deplibs=yes
6204
6205       if test "$GCC" = yes; then
6206         case $host_os in aix4.012|aix4.012.*)
6207         # We only want to do this on AIX 4.2 and lower, the check
6208         # below for broken collect2 doesn't work under 4.3+
6209           collect2name=`${CC} -print-prog-name=collect2`
6210           if test -f "$collect2name" && \
6211            strings "$collect2name" | grep resolve_lib_name >/dev/null
6212           then
6213           # We have reworked collect2
6214           hardcode_direct=yes
6215           else
6216           # We have old collect2
6217           hardcode_direct=unsupported
6218           # It fails to find uninstalled libraries when the uninstalled
6219           # path is not listed in the libpath.  Setting hardcode_minus_L
6220           # to unsupported forces relinking
6221           hardcode_minus_L=yes
6222           hardcode_libdir_flag_spec='-L$libdir'
6223           hardcode_libdir_separator=
6224           fi
6225         esac
6226         shared_flag='-shared'
6227       else
6228         # not using gcc
6229         if test "$host_cpu" = ia64; then
6230         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6231         # chokes on -Wl,-G. The following line is correct:
6232           shared_flag='-G'
6233         else
6234         if test "$aix_use_runtimelinking" = yes; then
6235             shared_flag='${wl}-G'
6236           else
6237             shared_flag='${wl}-bM:SRE'
6238         fi
6239         fi
6240       fi
6241
6242       # It seems that -bexpall does not export symbols beginning with
6243       # underscore (_), so it is better to generate a list of symbols to export.
6244       always_export_symbols=yes
6245       if test "$aix_use_runtimelinking" = yes; then
6246         # Warning - without using the other runtime loading flags (-brtl),
6247         # -berok will link without error, but may produce a broken library.
6248         allow_undefined_flag='-berok'
6249        # Determine the default libpath from the value encoded in an empty executable.
6250        cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256
6257 int
6258 main ()
6259 {
6260
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -z "$ac_c_werror_flag"
6275                          || test ! -s conftest.err'
6276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277   (eval $ac_try) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; } &&
6281          { ac_try='test -s conftest$ac_exeext'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287
6288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6289 }'`
6290 # Check for a 64-bit object if we didn't find anything.
6291 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; }
6292 }'`; fi
6293 else
6294   echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6296
6297 fi
6298 rm -f conftest.err conftest.$ac_objext \
6299       conftest$ac_exeext conftest.$ac_ext
6300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6301
6302        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6303         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"
6304        else
6305         if test "$host_cpu" = ia64; then
6306           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6307           allow_undefined_flag="-z nodefs"
6308           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"
6309         else
6310          # Determine the default libpath from the value encoded in an empty executable.
6311          cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317
6318 int
6319 main ()
6320 {
6321
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328   (eval $ac_link) 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } &&
6335          { ac_try='test -z "$ac_c_werror_flag"
6336                          || test ! -s conftest.err'
6337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338   (eval $ac_try) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }; } &&
6342          { ac_try='test -s conftest$ac_exeext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348
6349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6350 }'`
6351 # Check for a 64-bit object if we didn't find anything.
6352 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; }
6353 }'`; fi
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 fi
6359 rm -f conftest.err conftest.$ac_objext \
6360       conftest$ac_exeext conftest.$ac_ext
6361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6362
6363          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6364           # Warning - without using the other run time loading flags,
6365           # -berok will link without error, but may produce a broken library.
6366           no_undefined_flag=' ${wl}-bernotok'
6367           allow_undefined_flag=' ${wl}-berok'
6368           # -bexpall does not export symbols beginning with underscore (_)
6369           always_export_symbols=yes
6370           # Exported symbols can be pulled into shared objects from archives
6371           whole_archive_flag_spec=' '
6372           archive_cmds_need_lc=yes
6373           # This is similar to how AIX traditionally builds it's shared libraries.
6374           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'
6375         fi
6376       fi
6377       ;;
6378
6379     amigaos*)
6380       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)'
6381       hardcode_libdir_flag_spec='-L$libdir'
6382       hardcode_minus_L=yes
6383       # see comment about different semantics on the GNU ld section
6384       ld_shlibs=no
6385       ;;
6386
6387     bsdi4*)
6388       export_dynamic_flag_spec=-rdynamic
6389       ;;
6390
6391     cygwin* | mingw* | pw32*)
6392       # When not using gcc, we currently assume that we are using
6393       # Microsoft Visual C++.
6394       # hardcode_libdir_flag_spec is actually meaningless, as there is
6395       # no search path for DLLs.
6396       hardcode_libdir_flag_spec=' '
6397       allow_undefined_flag=unsupported
6398       # Tell ltmain to make .lib files, not .a files.
6399       libext=lib
6400       # Tell ltmain to make .dll files, not .so files.
6401       shrext=".dll"
6402       # FIXME: Setting linknames here is a bad hack.
6403       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6404       # The linker will automatically build a .lib file if we build a DLL.
6405       old_archive_From_new_cmds='true'
6406       # FIXME: Should let the user specify the lib program.
6407       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6408       fix_srcfile_path='`cygpath -w "$srcfile"`'
6409       enable_shared_with_static_runtimes=yes
6410       ;;
6411
6412     darwin* | rhapsody*)
6413     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6414       archive_cmds_need_lc=no
6415       case "$host_os" in
6416       rhapsody* | darwin1.[012])
6417         allow_undefined_flag='-undefined suppress'
6418         ;;
6419       *) # Darwin 1.3 on
6420         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6421         ;;
6422       esac
6423       # FIXME: Relying on posixy $() will cause problems for
6424       #        cross-compilation, but unfortunately the echo tests do not
6425       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6426       #        `"' quotes if we put them in here... so don't!
6427         lt_int_apple_cc_single_mod=no
6428         output_verbose_link_cmd='echo'
6429         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6430           lt_int_apple_cc_single_mod=yes
6431         fi
6432         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6433           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6434         else
6435         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'
6436       fi
6437       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6438       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6439         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6440           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}'
6441         else
6442           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}'
6443         fi
6444           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}'
6445       hardcode_direct=no
6446       hardcode_automatic=yes
6447       hardcode_shlibpath_var=unsupported
6448       whole_archive_flag_spec='-all_load $convenience'
6449       link_all_deplibs=yes
6450     fi
6451       ;;
6452
6453     dgux*)
6454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6455       hardcode_libdir_flag_spec='-L$libdir'
6456       hardcode_shlibpath_var=no
6457       ;;
6458
6459     freebsd1*)
6460       ld_shlibs=no
6461       ;;
6462
6463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6464     # support.  Future versions do this automatically, but an explicit c++rt0.o
6465     # does not break anything, and helps significantly (at the cost of a little
6466     # extra space).
6467     freebsd2.2*)
6468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6469       hardcode_libdir_flag_spec='-R$libdir'
6470       hardcode_direct=yes
6471       hardcode_shlibpath_var=no
6472       ;;
6473
6474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6475     freebsd2*)
6476       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6477       hardcode_direct=yes
6478       hardcode_minus_L=yes
6479       hardcode_shlibpath_var=no
6480       ;;
6481
6482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6483     freebsd*)
6484       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6485       hardcode_libdir_flag_spec='-R$libdir'
6486       hardcode_direct=yes
6487       hardcode_shlibpath_var=no
6488       ;;
6489
6490     hpux9*)
6491       if test "$GCC" = yes; then
6492         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'
6493       else
6494         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'
6495       fi
6496       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6497       hardcode_libdir_separator=:
6498       hardcode_direct=yes
6499
6500       # hardcode_minus_L: Not really in the search PATH,
6501       # but as the default location of the library.
6502       hardcode_minus_L=yes
6503       export_dynamic_flag_spec='${wl}-E'
6504       ;;
6505
6506     hpux10* | hpux11*)
6507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6508         case "$host_cpu" in
6509         hppa*64*|ia64*)
6510           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6511           ;;
6512         *)
6513           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6514           ;;
6515         esac
6516       else
6517         case "$host_cpu" in
6518         hppa*64*|ia64*)
6519           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6520           ;;
6521         *)
6522           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6523           ;;
6524         esac
6525       fi
6526       if test "$with_gnu_ld" = no; then
6527         case "$host_cpu" in
6528         hppa*64*)
6529           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6530           hardcode_libdir_flag_spec_ld='+b $libdir'
6531           hardcode_libdir_separator=:
6532           hardcode_direct=no
6533           hardcode_shlibpath_var=no
6534           ;;
6535         ia64*)
6536           hardcode_libdir_flag_spec='-L$libdir'
6537           hardcode_direct=no
6538           hardcode_shlibpath_var=no
6539
6540           # hardcode_minus_L: Not really in the search PATH,
6541           # but as the default location of the library.
6542           hardcode_minus_L=yes
6543           ;;
6544         *)
6545           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6546           hardcode_libdir_separator=:
6547           hardcode_direct=yes
6548           export_dynamic_flag_spec='${wl}-E'
6549
6550           # hardcode_minus_L: Not really in the search PATH,
6551           # but as the default location of the library.
6552           hardcode_minus_L=yes
6553           ;;
6554         esac
6555       fi
6556       ;;
6557
6558     irix5* | irix6* | nonstopux*)
6559       if test "$GCC" = yes; then
6560         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'
6561       else
6562         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'
6563         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6564       fi
6565       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6566       hardcode_libdir_separator=:
6567       link_all_deplibs=yes
6568       ;;
6569
6570     netbsd*)
6571       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6572         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6573       else
6574         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6575       fi
6576       hardcode_libdir_flag_spec='-R$libdir'
6577       hardcode_direct=yes
6578       hardcode_shlibpath_var=no
6579       ;;
6580
6581     newsos6)
6582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6583       hardcode_direct=yes
6584       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6585       hardcode_libdir_separator=:
6586       hardcode_shlibpath_var=no
6587       ;;
6588
6589     openbsd*)
6590       hardcode_direct=yes
6591       hardcode_shlibpath_var=no
6592       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6595         export_dynamic_flag_spec='${wl}-E'
6596       else
6597        case $host_os in
6598          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6599            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6600            hardcode_libdir_flag_spec='-R$libdir'
6601            ;;
6602          *)
6603            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6604            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6605            ;;
6606        esac
6607       fi
6608       ;;
6609
6610     os2*)
6611       hardcode_libdir_flag_spec='-L$libdir'
6612       hardcode_minus_L=yes
6613       allow_undefined_flag=unsupported
6614       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'
6615       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6616       ;;
6617
6618     osf3*)
6619       if test "$GCC" = yes; then
6620         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6621         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'
6622       else
6623         allow_undefined_flag=' -expect_unresolved \*'
6624         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'
6625       fi
6626       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6627       hardcode_libdir_separator=:
6628       ;;
6629
6630     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6631       if test "$GCC" = yes; then
6632         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6633         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'
6634         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6635       else
6636         allow_undefined_flag=' -expect_unresolved \*'
6637         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'
6638         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6639         $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'
6640
6641         # Both c and cxx compiler support -rpath directly
6642         hardcode_libdir_flag_spec='-rpath $libdir'
6643       fi
6644       hardcode_libdir_separator=:
6645       ;;
6646
6647     sco3.2v5*)
6648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6649       hardcode_shlibpath_var=no
6650       export_dynamic_flag_spec='${wl}-Bexport'
6651       runpath_var=LD_RUN_PATH
6652       hardcode_runpath_var=yes
6653       ;;
6654
6655     solaris*)
6656       no_undefined_flag=' -z text'
6657       if test "$GCC" = yes; then
6658         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6659         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6660           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6661       else
6662         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6663         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6664         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6665       fi
6666       hardcode_libdir_flag_spec='-R$libdir'
6667       hardcode_shlibpath_var=no
6668       case $host_os in
6669       solaris2.[0-5] | solaris2.[0-5].*) ;;
6670       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6671         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6672       esac
6673       link_all_deplibs=yes
6674       ;;
6675
6676     sunos4*)
6677       if test "x$host_vendor" = xsequent; then
6678         # Use $CC to link under sequent, because it throws in some extra .o
6679         # files that make .init and .fini sections work.
6680         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6681       else
6682         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6683       fi
6684       hardcode_libdir_flag_spec='-L$libdir'
6685       hardcode_direct=yes
6686       hardcode_minus_L=yes
6687       hardcode_shlibpath_var=no
6688       ;;
6689
6690     sysv4)
6691       case $host_vendor in
6692         sni)
6693           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694           hardcode_direct=yes # is this really true???
6695         ;;
6696         siemens)
6697           ## LD is ld it makes a PLAMLIB
6698           ## CC just makes a GrossModule.
6699           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6700           reload_cmds='$CC -r -o $output$reload_objs'
6701           hardcode_direct=no
6702         ;;
6703         motorola)
6704           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6705           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6706         ;;
6707       esac
6708       runpath_var='LD_RUN_PATH'
6709       hardcode_shlibpath_var=no
6710       ;;
6711
6712     sysv4.3*)
6713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714       hardcode_shlibpath_var=no
6715       export_dynamic_flag_spec='-Bexport'
6716       ;;
6717
6718     sysv4*MP*)
6719       if test -d /usr/nec; then
6720         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721         hardcode_shlibpath_var=no
6722         runpath_var=LD_RUN_PATH
6723         hardcode_runpath_var=yes
6724         ld_shlibs=yes
6725       fi
6726       ;;
6727
6728     sysv4.2uw2*)
6729       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6730       hardcode_direct=yes
6731       hardcode_minus_L=no
6732       hardcode_shlibpath_var=no
6733       hardcode_runpath_var=yes
6734       runpath_var=LD_RUN_PATH
6735       ;;
6736
6737    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6738       no_undefined_flag='${wl}-z ${wl}text'
6739       if test "$GCC" = yes; then
6740         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6741       else
6742         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6743       fi
6744       runpath_var='LD_RUN_PATH'
6745       hardcode_shlibpath_var=no
6746       ;;
6747
6748     sysv5*)
6749       no_undefined_flag=' -z text'
6750       # $CC -shared without GNU ld will not create a library from C++
6751       # object files and a static libstdc++, better avoid it by now
6752       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6753       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6754                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6755       hardcode_libdir_flag_spec=
6756       hardcode_shlibpath_var=no
6757       runpath_var='LD_RUN_PATH'
6758       ;;
6759
6760     uts4*)
6761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6762       hardcode_libdir_flag_spec='-L$libdir'
6763       hardcode_shlibpath_var=no
6764       ;;
6765
6766     *)
6767       ld_shlibs=no
6768       ;;
6769     esac
6770   fi
6771
6772 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6773 echo "${ECHO_T}$ld_shlibs" >&6
6774 test "$ld_shlibs" = no && can_build_shared=no
6775
6776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6777 if test "$GCC" = yes; then
6778   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6779 fi
6780
6781 #
6782 # Do we need to explicitly link libc?
6783 #
6784 case "x$archive_cmds_need_lc" in
6785 x|xyes)
6786   # Assume -lc should be added
6787   archive_cmds_need_lc=yes
6788
6789   if test "$enable_shared" = yes && test "$GCC" = yes; then
6790     case $archive_cmds in
6791     *'~'*)
6792       # FIXME: we may have to deal with multi-command sequences.
6793       ;;
6794     '$CC '*)
6795       # Test whether the compiler implicitly links with -lc since on some
6796       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6797       # to ld, don't add -lc before -lgcc.
6798       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6799 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6800       $rm conftest*
6801       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6802
6803       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804   (eval $ac_compile) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } 2>conftest.err; then
6808         soname=conftest
6809         lib=conftest
6810         libobjs=conftest.$ac_objext
6811         deplibs=
6812         wl=$lt_prog_compiler_wl
6813         compiler_flags=-v
6814         linker_flags=-v
6815         verstring=
6816         output_objdir=.
6817         libname=conftest
6818         lt_save_allow_undefined_flag=$allow_undefined_flag
6819         allow_undefined_flag=
6820         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6821   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); }
6825         then
6826           archive_cmds_need_lc=no
6827         else
6828           archive_cmds_need_lc=yes
6829         fi
6830         allow_undefined_flag=$lt_save_allow_undefined_flag
6831       else
6832         cat conftest.err 1>&5
6833       fi
6834       $rm conftest*
6835       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6836 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6837       ;;
6838     esac
6839   fi
6840   ;;
6841 esac
6842
6843 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6844 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6845 hardcode_action=
6846 if test -n "$hardcode_libdir_flag_spec" || \
6847    test -n "$runpath_var " || \
6848    test "X$hardcode_automatic"="Xyes" ; then
6849
6850   # We can hardcode non-existant directories.
6851   if test "$hardcode_direct" != no &&
6852      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6853      # have to relink, otherwise we might link with an installed library
6854      # when we should be linking with a yet-to-be-installed one
6855      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6856      test "$hardcode_minus_L" != no; then
6857     # Linking always hardcodes the temporary library directory.
6858     hardcode_action=relink
6859   else
6860     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6861     hardcode_action=immediate
6862   fi
6863 else
6864   # We cannot hardcode anything, or else we can only hardcode existing
6865   # directories.
6866   hardcode_action=unsupported
6867 fi
6868 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6869 echo "${ECHO_T}$hardcode_action" >&6
6870
6871 if test "$hardcode_action" = relink; then
6872   # Fast installation is not supported
6873   enable_fast_install=no
6874 elif test "$shlibpath_overrides_runpath" = yes ||
6875      test "$enable_shared" = no; then
6876   # Fast installation is not necessary
6877   enable_fast_install=needless
6878 fi
6879
6880 striplib=
6881 old_striplib=
6882 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6883 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6884 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6885   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6886   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6887   echo "$as_me:$LINENO: result: yes" >&5
6888 echo "${ECHO_T}yes" >&6
6889 else
6890 # FIXME - insert some real tests, host_os isn't really good enough
6891   case $host_os in
6892    darwin*)
6893        if test -n "$STRIP" ; then
6894          striplib="$STRIP -x"
6895          echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6
6897        else
6898   echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6900 fi
6901        ;;
6902    *)
6903   echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6
6905     ;;
6906   esac
6907 fi
6908
6909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6911 library_names_spec=
6912 libname_spec='lib$name'
6913 soname_spec=
6914 shrext=".so"
6915 postinstall_cmds=
6916 postuninstall_cmds=
6917 finish_cmds=
6918 finish_eval=
6919 shlibpath_var=
6920 shlibpath_overrides_runpath=unknown
6921 version_type=none
6922 dynamic_linker="$host_os ld.so"
6923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6924 if test "$GCC" = yes; then
6925   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6926   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6927     # if the path contains ";" then we assume it to be the separator
6928     # otherwise default to the standard path separator (i.e. ":") - it is
6929     # assumed that no part of a normal pathname contains ";" but that should
6930     # okay in the real world where ";" in dirpaths is itself problematic.
6931     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6932   else
6933     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6934   fi
6935 else
6936   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6937 fi
6938 need_lib_prefix=unknown
6939 hardcode_into_libs=no
6940
6941 # when you set need_version to no, make sure it does not cause -set_version
6942 # flags to be left without arguments
6943 need_version=unknown
6944
6945 case $host_os in
6946 aix3*)
6947   version_type=linux
6948   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6949   shlibpath_var=LIBPATH
6950
6951   # AIX 3 has no versioning support, so we append a major version to the name.
6952   soname_spec='${libname}${release}${shared_ext}$major'
6953   ;;
6954
6955 aix4* | aix5*)
6956   version_type=linux
6957   need_lib_prefix=no
6958   need_version=no
6959   hardcode_into_libs=yes
6960   if test "$host_cpu" = ia64; then
6961     # AIX 5 supports IA64
6962     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6963     shlibpath_var=LD_LIBRARY_PATH
6964   else
6965     # With GCC up to 2.95.x, collect2 would create an import file
6966     # for dependence libraries.  The import file would start with
6967     # the line `#! .'.  This would cause the generated library to
6968     # depend on `.', always an invalid library.  This was fixed in
6969     # development snapshots of GCC prior to 3.0.
6970     case $host_os in
6971       aix4 | aix4.[01] | aix4.[01].*)
6972       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6973            echo ' yes '
6974            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6975         :
6976       else
6977         can_build_shared=no
6978       fi
6979       ;;
6980     esac
6981     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6982     # soname into executable. Probably we can add versioning support to
6983     # collect2, so additional links can be useful in future.
6984     if test "$aix_use_runtimelinking" = yes; then
6985       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6986       # instead of lib<name>.a to let people know that these are not
6987       # typical AIX shared libraries.
6988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989     else
6990       # We preserve .a as extension for shared libraries through AIX4.2
6991       # and later when we are not doing run time linking.
6992       library_names_spec='${libname}${release}.a $libname.a'
6993       soname_spec='${libname}${release}${shared_ext}$major'
6994     fi
6995     shlibpath_var=LIBPATH
6996   fi
6997   ;;
6998
6999 amigaos*)
7000   library_names_spec='$libname.ixlibrary $libname.a'
7001   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7002   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'
7003   ;;
7004
7005 beos*)
7006   library_names_spec='${libname}${shared_ext}'
7007   dynamic_linker="$host_os ld.so"
7008   shlibpath_var=LIBRARY_PATH
7009   ;;
7010
7011 bsdi4*)
7012   version_type=linux
7013   need_version=no
7014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7015   soname_spec='${libname}${release}${shared_ext}$major'
7016   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7017   shlibpath_var=LD_LIBRARY_PATH
7018   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7019   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7020   # the default ld.so.conf also contains /usr/contrib/lib and
7021   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7022   # libtool to hard-code these into programs
7023   ;;
7024
7025 cygwin* | mingw* | pw32*)
7026   version_type=windows
7027   shrext=".dll"
7028   need_version=no
7029   need_lib_prefix=no
7030
7031   case $GCC,$host_os in
7032   yes,cygwin* | yes,mingw* | yes,pw32*)
7033     library_names_spec='$libname.dll.a'
7034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7035     postinstall_cmds='base_file=`basename \${file}`~
7036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7037       dldir=$destdir/`dirname \$dlpath`~
7038       test -d \$dldir || mkdir -p \$dldir~
7039       $install_prog $dir/$dlname \$dldir/$dlname'
7040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7041       dlpath=$dir/\$dldll~
7042        $rm \$dlpath'
7043     shlibpath_overrides_runpath=yes
7044
7045     case $host_os in
7046     cygwin*)
7047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7049       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7050       ;;
7051     mingw*)
7052       # MinGW DLLs use traditional 'lib' prefix
7053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7054       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7055       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7056         # It is most probably a Windows format PATH printed by
7057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7058         # path with ; separators, and with drive letters. We can handle the
7059         # drive letters (cygwin fileutils understands them), so leave them,
7060         # especially as we might pass files found there to a mingw objdump,
7061         # which wouldn't understand a cygwinified path. Ahh.
7062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7063       else
7064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7065       fi
7066       ;;
7067     pw32*)
7068       # pw32 DLLs use 'pw' prefix rather than 'lib'
7069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7070       ;;
7071     esac
7072     ;;
7073
7074   *)
7075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7076     ;;
7077   esac
7078   dynamic_linker='Win32 ld.exe'
7079   # FIXME: first we should search . and the directory the executable is in
7080   shlibpath_var=PATH
7081   ;;
7082
7083 darwin* | rhapsody*)
7084   dynamic_linker="$host_os dyld"
7085   version_type=darwin
7086   need_lib_prefix=no
7087   need_version=no
7088   # FIXME: Relying on posixy $() will cause problems for
7089   #        cross-compilation, but unfortunately the echo tests do not
7090   #        yet detect zsh echo's removal of \ escapes.
7091   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7092   soname_spec='${libname}${release}${major}$shared_ext'
7093   shlibpath_overrides_runpath=yes
7094   shlibpath_var=DYLD_LIBRARY_PATH
7095   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7096   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7097   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7098   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"`
7099   fi
7100   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7101   ;;
7102
7103 dgux*)
7104   version_type=linux
7105   need_lib_prefix=no
7106   need_version=no
7107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7108   soname_spec='${libname}${release}${shared_ext}$major'
7109   shlibpath_var=LD_LIBRARY_PATH
7110   ;;
7111
7112 freebsd1*)
7113   dynamic_linker=no
7114   ;;
7115
7116 freebsd*)
7117   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7118   version_type=freebsd-$objformat
7119   case $version_type in
7120     freebsd-elf*)
7121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7122       need_version=no
7123       need_lib_prefix=no
7124       ;;
7125     freebsd-*)
7126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7127       need_version=yes
7128       ;;
7129   esac
7130   shlibpath_var=LD_LIBRARY_PATH
7131   case $host_os in
7132   freebsd2*)
7133     shlibpath_overrides_runpath=yes
7134     ;;
7135   freebsd3.01* | freebsdelf3.01*)
7136     shlibpath_overrides_runpath=yes
7137     hardcode_into_libs=yes
7138     ;;
7139   *) # from 3.2 on
7140     shlibpath_overrides_runpath=no
7141     hardcode_into_libs=yes
7142     ;;
7143   esac
7144   ;;
7145
7146 gnu*)
7147   version_type=linux
7148   need_lib_prefix=no
7149   need_version=no
7150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7151   soname_spec='${libname}${release}${shared_ext}$major'
7152   shlibpath_var=LD_LIBRARY_PATH
7153   hardcode_into_libs=yes
7154   ;;
7155
7156 hpux9* | hpux10* | hpux11*)
7157   # Give a soname corresponding to the major version so that dld.sl refuses to
7158   # link against other versions.
7159   version_type=sunos
7160   need_lib_prefix=no
7161   need_version=no
7162   case "$host_cpu" in
7163   ia64*)
7164     shrext='.so'
7165     hardcode_into_libs=yes
7166     dynamic_linker="$host_os dld.so"
7167     shlibpath_var=LD_LIBRARY_PATH
7168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170     soname_spec='${libname}${release}${shared_ext}$major'
7171     if test "X$HPUX_IA64_MODE" = X32; then
7172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7173     else
7174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7175     fi
7176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7177     ;;
7178    hppa*64*)
7179      shrext='.sl'
7180      hardcode_into_libs=yes
7181      dynamic_linker="$host_os dld.sl"
7182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185      soname_spec='${libname}${release}${shared_ext}$major'
7186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7188      ;;
7189    *)
7190     shrext='.sl'
7191     dynamic_linker="$host_os dld.sl"
7192     shlibpath_var=SHLIB_PATH
7193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195     soname_spec='${libname}${release}${shared_ext}$major'
7196     ;;
7197   esac
7198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7199   postinstall_cmds='chmod 555 $lib'
7200   ;;
7201
7202 irix5* | irix6* | nonstopux*)
7203   case $host_os in
7204     nonstopux*) version_type=nonstopux ;;
7205     *)
7206         if test "$lt_cv_prog_gnu_ld" = yes; then
7207                 version_type=linux
7208         else
7209                 version_type=irix
7210         fi ;;
7211   esac
7212   need_lib_prefix=no
7213   need_version=no
7214   soname_spec='${libname}${release}${shared_ext}$major'
7215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7216   case $host_os in
7217   irix5* | nonstopux*)
7218     libsuff= shlibsuff=
7219     ;;
7220   *)
7221     case $LD in # libtool.m4 will add one of these switches to LD
7222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7223       libsuff= shlibsuff= libmagic=32-bit;;
7224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7225       libsuff=32 shlibsuff=N32 libmagic=N32;;
7226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7228     *) libsuff= shlibsuff= libmagic=never-match;;
7229     esac
7230     ;;
7231   esac
7232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7233   shlibpath_overrides_runpath=no
7234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7236   hardcode_into_libs=yes
7237   ;;
7238
7239 # No shared lib support for Linux oldld, aout, or coff.
7240 linux*oldld* | linux*aout* | linux*coff*)
7241   dynamic_linker=no
7242   ;;
7243
7244 # This must be Linux ELF.
7245 linux*)
7246   version_type=linux
7247   need_lib_prefix=no
7248   need_version=no
7249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250   soname_spec='${libname}${release}${shared_ext}$major'
7251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7252   shlibpath_var=LD_LIBRARY_PATH
7253   shlibpath_overrides_runpath=no
7254   # This implies no fast_install, which is unacceptable.
7255   # Some rework will be needed to allow for fast_install
7256   # before this can be enabled.
7257   hardcode_into_libs=yes
7258
7259   # We used to test for /lib/ld.so.1 and disable shared libraries on
7260   # powerpc, because MkLinux only supported shared libraries with the
7261   # GNU dynamic linker.  Since this was broken with cross compilers,
7262   # most powerpc-linux boxes support dynamic linking these days and
7263   # people can always --disable-shared, the test was removed, and we
7264   # assume the GNU/Linux dynamic linker is in use.
7265   dynamic_linker='GNU/Linux ld.so'
7266   ;;
7267
7268 netbsd*)
7269   version_type=sunos
7270   need_lib_prefix=no
7271   need_version=no
7272   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7274     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7275     dynamic_linker='NetBSD (a.out) ld.so'
7276   else
7277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7278     soname_spec='${libname}${release}${shared_ext}$major'
7279     dynamic_linker='NetBSD ld.elf_so'
7280   fi
7281   shlibpath_var=LD_LIBRARY_PATH
7282   shlibpath_overrides_runpath=yes
7283   hardcode_into_libs=yes
7284   ;;
7285
7286 newsos6)
7287   version_type=linux
7288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289   shlibpath_var=LD_LIBRARY_PATH
7290   shlibpath_overrides_runpath=yes
7291   ;;
7292
7293 nto-qnx)
7294   version_type=linux
7295   need_lib_prefix=no
7296   need_version=no
7297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7298   soname_spec='${libname}${release}${shared_ext}$major'
7299   shlibpath_var=LD_LIBRARY_PATH
7300   shlibpath_overrides_runpath=yes
7301   ;;
7302
7303 openbsd*)
7304   version_type=sunos
7305   need_lib_prefix=no
7306   need_version=no
7307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7309   shlibpath_var=LD_LIBRARY_PATH
7310   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7311     case $host_os in
7312       openbsd2.[89] | openbsd2.[89].*)
7313         shlibpath_overrides_runpath=no
7314         ;;
7315       *)
7316         shlibpath_overrides_runpath=yes
7317         ;;
7318       esac
7319   else
7320     shlibpath_overrides_runpath=yes
7321   fi
7322   ;;
7323
7324 os2*)
7325   libname_spec='$name'
7326   shrext=".dll"
7327   need_lib_prefix=no
7328   library_names_spec='$libname${shared_ext} $libname.a'
7329   dynamic_linker='OS/2 ld.exe'
7330   shlibpath_var=LIBPATH
7331   ;;
7332
7333 osf3* | osf4* | osf5*)
7334   version_type=osf
7335   need_lib_prefix=no
7336   need_version=no
7337   soname_spec='${libname}${release}${shared_ext}$major'
7338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7339   shlibpath_var=LD_LIBRARY_PATH
7340   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7341   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7342   ;;
7343
7344 sco3.2v5*)
7345   version_type=osf
7346   soname_spec='${libname}${release}${shared_ext}$major'
7347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348   shlibpath_var=LD_LIBRARY_PATH
7349   ;;
7350
7351 solaris*)
7352   version_type=linux
7353   need_lib_prefix=no
7354   need_version=no
7355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7356   soname_spec='${libname}${release}${shared_ext}$major'
7357   shlibpath_var=LD_LIBRARY_PATH
7358   shlibpath_overrides_runpath=yes
7359   hardcode_into_libs=yes
7360   # ldd complains unless libraries are executable
7361   postinstall_cmds='chmod +x $lib'
7362   ;;
7363
7364 sunos4*)
7365   version_type=sunos
7366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7367   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7368   shlibpath_var=LD_LIBRARY_PATH
7369   shlibpath_overrides_runpath=yes
7370   if test "$with_gnu_ld" = yes; then
7371     need_lib_prefix=no
7372   fi
7373   need_version=yes
7374   ;;
7375
7376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7377   version_type=linux
7378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379   soname_spec='${libname}${release}${shared_ext}$major'
7380   shlibpath_var=LD_LIBRARY_PATH
7381   case $host_vendor in
7382     sni)
7383       shlibpath_overrides_runpath=no
7384       need_lib_prefix=no
7385       export_dynamic_flag_spec='${wl}-Blargedynsym'
7386       runpath_var=LD_RUN_PATH
7387       ;;
7388     siemens)
7389       need_lib_prefix=no
7390       ;;
7391     motorola)
7392       need_lib_prefix=no
7393       need_version=no
7394       shlibpath_overrides_runpath=no
7395       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7396       ;;
7397   esac
7398   ;;
7399
7400 sysv4*MP*)
7401   if test -d /usr/nec ;then
7402     version_type=linux
7403     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7404     soname_spec='$libname${shared_ext}.$major'
7405     shlibpath_var=LD_LIBRARY_PATH
7406   fi
7407   ;;
7408
7409 uts4*)
7410   version_type=linux
7411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7412   soname_spec='${libname}${release}${shared_ext}$major'
7413   shlibpath_var=LD_LIBRARY_PATH
7414   ;;
7415
7416 *)
7417   dynamic_linker=no
7418   ;;
7419 esac
7420 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7421 echo "${ECHO_T}$dynamic_linker" >&6
7422 test "$dynamic_linker" = no && can_build_shared=no
7423
7424 if test "x$enable_dlopen" != xyes; then
7425   enable_dlopen=unknown
7426   enable_dlopen_self=unknown
7427   enable_dlopen_self_static=unknown
7428 else
7429   lt_cv_dlopen=no
7430   lt_cv_dlopen_libs=
7431
7432   case $host_os in
7433   beos*)
7434     lt_cv_dlopen="load_add_on"
7435     lt_cv_dlopen_libs=
7436     lt_cv_dlopen_self=yes
7437     ;;
7438
7439   mingw* | pw32*)
7440     lt_cv_dlopen="LoadLibrary"
7441     lt_cv_dlopen_libs=
7442    ;;
7443
7444   cygwin*)
7445     lt_cv_dlopen="dlopen"
7446     lt_cv_dlopen_libs=
7447    ;;
7448
7449   darwin*)
7450   # if libdl is installed we need to link against it
7451     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   ac_check_lib_save_LIBS=$LIBS
7457 LIBS="-ldl  $LIBS"
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464
7465 /* Override any gcc2 internal prototype to avoid an error.  */
7466 #ifdef __cplusplus
7467 extern "C"
7468 #endif
7469 /* We use char because int might match the return type of a gcc2
7470    builtin and then its argument prototype would still apply.  */
7471 char dlopen ();
7472 int
7473 main ()
7474 {
7475 dlopen ();
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482   (eval $ac_link) 2>conftest.er1
7483   ac_status=$?
7484   grep -v '^ *+' conftest.er1 >conftest.err
7485   rm -f conftest.er1
7486   cat conftest.err >&5
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); } &&
7489          { ac_try='test -z "$ac_c_werror_flag"
7490                          || test ! -s conftest.err'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; } &&
7496          { ac_try='test -s conftest$ac_exeext'
7497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   ac_cv_lib_dl_dlopen=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 ac_cv_lib_dl_dlopen=no
7508 fi
7509 rm -f conftest.err conftest.$ac_objext \
7510       conftest$ac_exeext conftest.$ac_ext
7511 LIBS=$ac_check_lib_save_LIBS
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7515 if test $ac_cv_lib_dl_dlopen = yes; then
7516   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7517 else
7518
7519     lt_cv_dlopen="dyld"
7520     lt_cv_dlopen_libs=
7521     lt_cv_dlopen_self=yes
7522
7523 fi
7524
7525    ;;
7526
7527   *)
7528     echo "$as_me:$LINENO: checking for shl_load" >&5
7529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7530 if test "${ac_cv_func_shl_load+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7541 #define shl_load innocuous_shl_load
7542
7543 /* System header to define __stub macros and hopefully few prototypes,
7544     which can conflict with char shl_load (); below.
7545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546     <limits.h> exists even on freestanding compilers.  */
7547
7548 #ifdef __STDC__
7549 # include <limits.h>
7550 #else
7551 # include <assert.h>
7552 #endif
7553
7554 #undef shl_load
7555
7556 /* Override any gcc2 internal prototype to avoid an error.  */
7557 #ifdef __cplusplus
7558 extern "C"
7559 {
7560 #endif
7561 /* We use char because int might match the return type of a gcc2
7562    builtin and then its argument prototype would still apply.  */
7563 char shl_load ();
7564 /* The GNU C library defines this for functions which it implements
7565     to always fail with ENOSYS.  Some functions are actually named
7566     something starting with __ and the normal name is an alias.  */
7567 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7568 choke me
7569 #else
7570 char (*f) () = shl_load;
7571 #endif
7572 #ifdef __cplusplus
7573 }
7574 #endif
7575
7576 int
7577 main ()
7578 {
7579 return f != shl_load;
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586   (eval $ac_link) 2>conftest.er1
7587   ac_status=$?
7588   grep -v '^ *+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -z "$ac_c_werror_flag"
7594                          || test ! -s conftest.err'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_cv_func_shl_load=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_func_shl_load=no
7612 fi
7613 rm -f conftest.err conftest.$ac_objext \
7614       conftest$ac_exeext conftest.$ac_ext
7615 fi
7616 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7618 if test $ac_cv_func_shl_load = yes; then
7619   lt_cv_dlopen="shl_load"
7620 else
7621   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7624   echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626   ac_check_lib_save_LIBS=$LIBS
7627 LIBS="-ldld  $LIBS"
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h.  */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h.  */
7634
7635 /* Override any gcc2 internal prototype to avoid an error.  */
7636 #ifdef __cplusplus
7637 extern "C"
7638 #endif
7639 /* We use char because int might match the return type of a gcc2
7640    builtin and then its argument prototype would still apply.  */
7641 char shl_load ();
7642 int
7643 main ()
7644 {
7645 shl_load ();
7646   ;
7647   return 0;
7648 }
7649 _ACEOF
7650 rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7652   (eval $ac_link) 2>conftest.er1
7653   ac_status=$?
7654   grep -v '^ *+' conftest.er1 >conftest.err
7655   rm -f conftest.er1
7656   cat conftest.err >&5
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } &&
7659          { ac_try='test -z "$ac_c_werror_flag"
7660                          || test ! -s conftest.err'
7661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662   (eval $ac_try) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; } &&
7666          { ac_try='test -s conftest$ac_exeext'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; }; then
7672   ac_cv_lib_dld_shl_load=yes
7673 else
7674   echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_cv_lib_dld_shl_load=no
7678 fi
7679 rm -f conftest.err conftest.$ac_objext \
7680       conftest$ac_exeext conftest.$ac_ext
7681 LIBS=$ac_check_lib_save_LIBS
7682 fi
7683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7685 if test $ac_cv_lib_dld_shl_load = yes; then
7686   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7687 else
7688   echo "$as_me:$LINENO: checking for dlopen" >&5
7689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7690 if test "${ac_cv_func_dlopen+set}" = set; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7701 #define dlopen innocuous_dlopen
7702
7703 /* System header to define __stub macros and hopefully few prototypes,
7704     which can conflict with char dlopen (); below.
7705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706     <limits.h> exists even on freestanding compilers.  */
7707
7708 #ifdef __STDC__
7709 # include <limits.h>
7710 #else
7711 # include <assert.h>
7712 #endif
7713
7714 #undef dlopen
7715
7716 /* Override any gcc2 internal prototype to avoid an error.  */
7717 #ifdef __cplusplus
7718 extern "C"
7719 {
7720 #endif
7721 /* We use char because int might match the return type of a gcc2
7722    builtin and then its argument prototype would still apply.  */
7723 char dlopen ();
7724 /* The GNU C library defines this for functions which it implements
7725     to always fail with ENOSYS.  Some functions are actually named
7726     something starting with __ and the normal name is an alias.  */
7727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7728 choke me
7729 #else
7730 char (*f) () = dlopen;
7731 #endif
7732 #ifdef __cplusplus
7733 }
7734 #endif
7735
7736 int
7737 main ()
7738 {
7739 return f != dlopen;
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746   (eval $ac_link) 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -z "$ac_c_werror_flag"
7754                          || test ! -s conftest.err'
7755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756   (eval $ac_try) 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; } &&
7760          { ac_try='test -s conftest$ac_exeext'
7761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762   (eval $ac_try) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); }; }; then
7766   ac_cv_func_dlopen=yes
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 ac_cv_func_dlopen=no
7772 fi
7773 rm -f conftest.err conftest.$ac_objext \
7774       conftest$ac_exeext conftest.$ac_ext
7775 fi
7776 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7778 if test $ac_cv_func_dlopen = yes; then
7779   lt_cv_dlopen="dlopen"
7780 else
7781   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-ldl  $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794
7795 /* Override any gcc2 internal prototype to avoid an error.  */
7796 #ifdef __cplusplus
7797 extern "C"
7798 #endif
7799 /* We use char because int might match the return type of a gcc2
7800    builtin and then its argument prototype would still apply.  */
7801 char dlopen ();
7802 int
7803 main ()
7804 {
7805 dlopen ();
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812   (eval $ac_link) 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -z "$ac_c_werror_flag"
7820                          || test ! -s conftest.err'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; } &&
7826          { ac_try='test -s conftest$ac_exeext'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_cv_lib_dl_dlopen=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_cv_lib_dl_dlopen=no
7838 fi
7839 rm -f conftest.err conftest.$ac_objext \
7840       conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7842 fi
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7845 if test $ac_cv_lib_dl_dlopen = yes; then
7846   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7847 else
7848   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   ac_check_lib_save_LIBS=$LIBS
7854 LIBS="-lsvld  $LIBS"
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861
7862 /* Override any gcc2 internal prototype to avoid an error.  */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 /* We use char because int might match the return type of a gcc2
7867    builtin and then its argument prototype would still apply.  */
7868 char dlopen ();
7869 int
7870 main ()
7871 {
7872 dlopen ();
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879   (eval $ac_link) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -z "$ac_c_werror_flag"
7887                          || test ! -s conftest.err'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; } &&
7893          { ac_try='test -s conftest$ac_exeext'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; }; then
7899   ac_cv_lib_svld_dlopen=yes
7900 else
7901   echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 ac_cv_lib_svld_dlopen=no
7905 fi
7906 rm -f conftest.err conftest.$ac_objext \
7907       conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7909 fi
7910 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7912 if test $ac_cv_lib_svld_dlopen = yes; then
7913   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7914 else
7915   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   ac_check_lib_save_LIBS=$LIBS
7921 LIBS="-ldld  $LIBS"
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928
7929 /* Override any gcc2 internal prototype to avoid an error.  */
7930 #ifdef __cplusplus
7931 extern "C"
7932 #endif
7933 /* We use char because int might match the return type of a gcc2
7934    builtin and then its argument prototype would still apply.  */
7935 char dld_link ();
7936 int
7937 main ()
7938 {
7939 dld_link ();
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946   (eval $ac_link) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest$ac_exeext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   ac_cv_lib_dld_dld_link=yes
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ac_cv_lib_dld_dld_link=no
7972 fi
7973 rm -f conftest.err conftest.$ac_objext \
7974       conftest$ac_exeext conftest.$ac_ext
7975 LIBS=$ac_check_lib_save_LIBS
7976 fi
7977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979 if test $ac_cv_lib_dld_dld_link = yes; then
7980   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7981 fi
7982
7983
7984 fi
7985
7986
7987 fi
7988
7989
7990 fi
7991
7992
7993 fi
7994
7995
7996 fi
7997
7998     ;;
7999   esac
8000
8001   if test "x$lt_cv_dlopen" != xno; then
8002     enable_dlopen=yes
8003   else
8004     enable_dlopen=no
8005   fi
8006
8007   case $lt_cv_dlopen in
8008   dlopen)
8009     save_CPPFLAGS="$CPPFLAGS"
8010     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8011
8012     save_LDFLAGS="$LDFLAGS"
8013     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8014
8015     save_LIBS="$LIBS"
8016     LIBS="$lt_cv_dlopen_libs $LIBS"
8017
8018     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8020 if test "${lt_cv_dlopen_self+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023           if test "$cross_compiling" = yes; then :
8024   lt_cv_dlopen_self=cross
8025 else
8026   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8027   lt_status=$lt_dlunknown
8028   cat > conftest.$ac_ext <<EOF
8029 #line 8029 "configure"
8030 #include "confdefs.h"
8031
8032 #if HAVE_DLFCN_H
8033 #include <dlfcn.h>
8034 #endif
8035
8036 #include <stdio.h>
8037
8038 #ifdef RTLD_GLOBAL
8039 #  define LT_DLGLOBAL           RTLD_GLOBAL
8040 #else
8041 #  ifdef DL_GLOBAL
8042 #    define LT_DLGLOBAL         DL_GLOBAL
8043 #  else
8044 #    define LT_DLGLOBAL         0
8045 #  endif
8046 #endif
8047
8048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8049    find out it does not work in some platform. */
8050 #ifndef LT_DLLAZY_OR_NOW
8051 #  ifdef RTLD_LAZY
8052 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8053 #  else
8054 #    ifdef DL_LAZY
8055 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8056 #    else
8057 #      ifdef RTLD_NOW
8058 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8059 #      else
8060 #        ifdef DL_NOW
8061 #          define LT_DLLAZY_OR_NOW      DL_NOW
8062 #        else
8063 #          define LT_DLLAZY_OR_NOW      0
8064 #        endif
8065 #      endif
8066 #    endif
8067 #  endif
8068 #endif
8069
8070 #ifdef __cplusplus
8071 extern "C" void exit (int);
8072 #endif
8073
8074 void fnord() { int i=42;}
8075 int main ()
8076 {
8077   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8078   int status = $lt_dlunknown;
8079
8080   if (self)
8081     {
8082       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8083       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8084       /* dlclose (self); */
8085     }
8086
8087     exit (status);
8088 }
8089 EOF
8090   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091   (eval $ac_link) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8095     (./conftest; exit; ) 2>/dev/null
8096     lt_status=$?
8097     case x$lt_status in
8098       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8099       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8100       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8101     esac
8102   else :
8103     # compilation failed
8104     lt_cv_dlopen_self=no
8105   fi
8106 fi
8107 rm -fr conftest*
8108
8109
8110 fi
8111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8113
8114     if test "x$lt_cv_dlopen_self" = xyes; then
8115       LDFLAGS="$LDFLAGS $link_static_flag"
8116       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8118 if test "${lt_cv_dlopen_self_static+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121           if test "$cross_compiling" = yes; then :
8122   lt_cv_dlopen_self_static=cross
8123 else
8124   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8125   lt_status=$lt_dlunknown
8126   cat > conftest.$ac_ext <<EOF
8127 #line 8127 "configure"
8128 #include "confdefs.h"
8129
8130 #if HAVE_DLFCN_H
8131 #include <dlfcn.h>
8132 #endif
8133
8134 #include <stdio.h>
8135
8136 #ifdef RTLD_GLOBAL
8137 #  define LT_DLGLOBAL           RTLD_GLOBAL
8138 #else
8139 #  ifdef DL_GLOBAL
8140 #    define LT_DLGLOBAL         DL_GLOBAL
8141 #  else
8142 #    define LT_DLGLOBAL         0
8143 #  endif
8144 #endif
8145
8146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8147    find out it does not work in some platform. */
8148 #ifndef LT_DLLAZY_OR_NOW
8149 #  ifdef RTLD_LAZY
8150 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8151 #  else
8152 #    ifdef DL_LAZY
8153 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8154 #    else
8155 #      ifdef RTLD_NOW
8156 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8157 #      else
8158 #        ifdef DL_NOW
8159 #          define LT_DLLAZY_OR_NOW      DL_NOW
8160 #        else
8161 #          define LT_DLLAZY_OR_NOW      0
8162 #        endif
8163 #      endif
8164 #    endif
8165 #  endif
8166 #endif
8167
8168 #ifdef __cplusplus
8169 extern "C" void exit (int);
8170 #endif
8171
8172 void fnord() { int i=42;}
8173 int main ()
8174 {
8175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8176   int status = $lt_dlunknown;
8177
8178   if (self)
8179     {
8180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8181       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8182       /* dlclose (self); */
8183     }
8184
8185     exit (status);
8186 }
8187 EOF
8188   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189   (eval $ac_link) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8193     (./conftest; exit; ) 2>/dev/null
8194     lt_status=$?
8195     case x$lt_status in
8196       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8197       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8198       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8199     esac
8200   else :
8201     # compilation failed
8202     lt_cv_dlopen_self_static=no
8203   fi
8204 fi
8205 rm -fr conftest*
8206
8207
8208 fi
8209 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8211     fi
8212
8213     CPPFLAGS="$save_CPPFLAGS"
8214     LDFLAGS="$save_LDFLAGS"
8215     LIBS="$save_LIBS"
8216     ;;
8217   esac
8218
8219   case $lt_cv_dlopen_self in
8220   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8221   *) enable_dlopen_self=unknown ;;
8222   esac
8223
8224   case $lt_cv_dlopen_self_static in
8225   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8226   *) enable_dlopen_self_static=unknown ;;
8227   esac
8228 fi
8229
8230
8231 # Report which librarie types wil actually be built
8232 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8233 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8234 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8235 echo "${ECHO_T}$can_build_shared" >&6
8236
8237 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8238 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8239 test "$can_build_shared" = "no" && enable_shared=no
8240
8241 # On AIX, shared libraries and static libraries use the same namespace, and
8242 # are all built from PIC.
8243 case "$host_os" in
8244 aix3*)
8245   test "$enable_shared" = yes && enable_static=no
8246   if test -n "$RANLIB"; then
8247     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8248     postinstall_cmds='$RANLIB $lib'
8249   fi
8250   ;;
8251
8252 aix4*)
8253   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8254     test "$enable_shared" = yes && enable_static=no
8255   fi
8256   ;;
8257   darwin* | rhapsody*)
8258   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8259     archive_cmds_need_lc=no
8260     case "$host_os" in
8261     rhapsody* | darwin1.[012])
8262       allow_undefined_flag='-undefined suppress'
8263       ;;
8264     *) # Darwin 1.3 on
8265       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8266       ;;
8267     esac
8268     # FIXME: Relying on posixy $() will cause problems for
8269     #        cross-compilation, but unfortunately the echo tests do not
8270     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8271     #          `"' quotes if we put them in here... so don't!
8272                 output_verbose_link_cmd='echo'
8273     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8274     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8275     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8276                   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}'
8277                   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}'
8278     hardcode_direct=no
8279     hardcode_automatic=yes
8280     hardcode_shlibpath_var=unsupported
8281     whole_archive_flag_spec='-all_load $convenience'
8282     link_all_deplibs=yes
8283     fi
8284     ;;
8285 esac
8286 echo "$as_me:$LINENO: result: $enable_shared" >&5
8287 echo "${ECHO_T}$enable_shared" >&6
8288
8289 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8290 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8291 # Make sure either enable_shared or enable_static is yes.
8292 test "$enable_shared" = yes || enable_static=yes
8293 echo "$as_me:$LINENO: result: $enable_static" >&5
8294 echo "${ECHO_T}$enable_static" >&6
8295
8296 # The else clause should only fire when bootstrapping the
8297 # libtool distribution, otherwise you forgot to ship ltmain.sh
8298 # with your package, and you will get complaints that there are
8299 # no rules to generate ltmain.sh.
8300 if test -f "$ltmain"; then
8301   # See if we are running on zsh, and set the options which allow our commands through
8302   # without removal of \ escapes.
8303   if test -n "${ZSH_VERSION+set}" ; then
8304     setopt NO_GLOB_SUBST
8305   fi
8306   # Now quote all the things that may contain metacharacters while being
8307   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8308   # variables and quote the copies for generation of the libtool script.
8309   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8310     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8311     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8312     deplibs_check_method reload_flag reload_cmds need_locks \
8313     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8314     lt_cv_sys_global_symbol_to_c_name_address \
8315     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8316     old_postinstall_cmds old_postuninstall_cmds \
8317     compiler \
8318     CC \
8319     LD \
8320     lt_prog_compiler_wl \
8321     lt_prog_compiler_pic \
8322     lt_prog_compiler_static \
8323     lt_prog_compiler_no_builtin_flag \
8324     export_dynamic_flag_spec \
8325     thread_safe_flag_spec \
8326     whole_archive_flag_spec \
8327     enable_shared_with_static_runtimes \
8328     old_archive_cmds \
8329     old_archive_from_new_cmds \
8330     predep_objects \
8331     postdep_objects \
8332     predeps \
8333     postdeps \
8334     compiler_lib_search_path \
8335     archive_cmds \
8336     archive_expsym_cmds \
8337     postinstall_cmds \
8338     postuninstall_cmds \
8339     old_archive_from_expsyms_cmds \
8340     allow_undefined_flag \
8341     no_undefined_flag \
8342     export_symbols_cmds \
8343     hardcode_libdir_flag_spec \
8344     hardcode_libdir_flag_spec_ld \
8345     hardcode_libdir_separator \
8346     hardcode_automatic \
8347     module_cmds \
8348     module_expsym_cmds \
8349     lt_cv_prog_compiler_c_o \
8350     exclude_expsyms \
8351     include_expsyms; do
8352
8353     case $var in
8354     old_archive_cmds | \
8355     old_archive_from_new_cmds | \
8356     archive_cmds | \
8357     archive_expsym_cmds | \
8358     module_cmds | \
8359     module_expsym_cmds | \
8360     old_archive_from_expsyms_cmds | \
8361     export_symbols_cmds | \
8362     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8363     postinstall_cmds | postuninstall_cmds | \
8364     old_postinstall_cmds | old_postuninstall_cmds | \
8365     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8366       # Double-quote double-evaled strings.
8367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8368       ;;
8369     *)
8370       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8371       ;;
8372     esac
8373   done
8374
8375   case $lt_echo in
8376   *'\$0 --fallback-echo"')
8377     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8378     ;;
8379   esac
8380
8381 cfgfile="${ofile}T"
8382   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8383   $rm -f "$cfgfile"
8384   { echo "$as_me:$LINENO: creating $ofile" >&5
8385 echo "$as_me: creating $ofile" >&6;}
8386
8387   cat <<__EOF__ >> "$cfgfile"
8388 #! $SHELL
8389
8390 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8391 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8392 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8393 #
8394 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8395 # Free Software Foundation, Inc.
8396 #
8397 # This file is part of GNU Libtool:
8398 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8399 #
8400 # This program is free software; you can redistribute it and/or modify
8401 # it under the terms of the GNU General Public License as published by
8402 # the Free Software Foundation; either version 2 of the License, or
8403 # (at your option) any later version.
8404 #
8405 # This program is distributed in the hope that it will be useful, but
8406 # WITHOUT ANY WARRANTY; without even the implied warranty of
8407 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8408 # General Public License for more details.
8409 #
8410 # You should have received a copy of the GNU General Public License
8411 # along with this program; if not, write to the Free Software
8412 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8413 #
8414 # As a special exception to the GNU General Public License, if you
8415 # distribute this file as part of a program that contains a
8416 # configuration script generated by Autoconf, you may include it under
8417 # the same distribution terms that you use for the rest of that program.
8418
8419 # A sed program that does not truncate output.
8420 SED=$lt_SED
8421
8422 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8423 Xsed="$SED -e s/^X//"
8424
8425 # The HP-UX ksh and POSIX shell print the target directory to stdout
8426 # if CDPATH is set.
8427 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8428
8429 # The names of the tagged configurations supported by this script.
8430 available_tags=
8431
8432 # ### BEGIN LIBTOOL CONFIG
8433
8434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8435
8436 # Shell to use when invoking shell scripts.
8437 SHELL=$lt_SHELL
8438
8439 # Whether or not to build shared libraries.
8440 build_libtool_libs=$enable_shared
8441
8442 # Whether or not to build static libraries.
8443 build_old_libs=$enable_static
8444
8445 # Whether or not to add -lc for building shared libraries.
8446 build_libtool_need_lc=$archive_cmds_need_lc
8447
8448 # Whether or not to disallow shared libs when runtime libs are static
8449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8450
8451 # Whether or not to optimize for fast installation.
8452 fast_install=$enable_fast_install
8453
8454 # The host system.
8455 host_alias=$host_alias
8456 host=$host
8457
8458 # An echo program that does not interpret backslashes.
8459 echo=$lt_echo
8460
8461 # The archiver.
8462 AR=$lt_AR
8463 AR_FLAGS=$lt_AR_FLAGS
8464
8465 # A C compiler.
8466 LTCC=$lt_LTCC
8467
8468 # A language-specific compiler.
8469 CC=$lt_compiler
8470
8471 # Is the compiler the GNU C compiler?
8472 with_gcc=$GCC
8473
8474 # An ERE matcher.
8475 EGREP=$lt_EGREP
8476
8477 # The linker used to build libraries.
8478 LD=$lt_LD
8479
8480 # Whether we need hard or soft links.
8481 LN_S=$lt_LN_S
8482
8483 # A BSD-compatible nm program.
8484 NM=$lt_NM
8485
8486 # A symbol stripping program
8487 STRIP=$STRIP
8488
8489 # Used to examine libraries when file_magic_cmd begins "file"
8490 MAGIC_CMD=$MAGIC_CMD
8491
8492 # Used on cygwin: DLL creation program.
8493 DLLTOOL="$DLLTOOL"
8494
8495 # Used on cygwin: object dumper.
8496 OBJDUMP="$OBJDUMP"
8497
8498 # Used on cygwin: assembler.
8499 AS="$AS"
8500
8501 # The name of the directory that contains temporary libtool files.
8502 objdir=$objdir
8503
8504 # How to create reloadable object files.
8505 reload_flag=$lt_reload_flag
8506 reload_cmds=$lt_reload_cmds
8507
8508 # How to pass a linker flag through the compiler.
8509 wl=$lt_lt_prog_compiler_wl
8510
8511 # Object file suffix (normally "o").
8512 objext="$ac_objext"
8513
8514 # Old archive suffix (normally "a").
8515 libext="$libext"
8516
8517 # Shared library suffix (normally ".so").
8518 shrext='$shrext'
8519
8520 # Executable file suffix (normally "").
8521 exeext="$exeext"
8522
8523 # Additional compiler flags for building library objects.
8524 pic_flag=$lt_lt_prog_compiler_pic
8525 pic_mode=$pic_mode
8526
8527 # What is the maximum length of a command?
8528 max_cmd_len=$lt_cv_sys_max_cmd_len
8529
8530 # Does compiler simultaneously support -c and -o options?
8531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8532
8533 # Must we lock files when doing compilation ?
8534 need_locks=$lt_need_locks
8535
8536 # Do we need the lib prefix for modules?
8537 need_lib_prefix=$need_lib_prefix
8538
8539 # Do we need a version for libraries?
8540 need_version=$need_version
8541
8542 # Whether dlopen is supported.
8543 dlopen_support=$enable_dlopen
8544
8545 # Whether dlopen of programs is supported.
8546 dlopen_self=$enable_dlopen_self
8547
8548 # Whether dlopen of statically linked programs is supported.
8549 dlopen_self_static=$enable_dlopen_self_static
8550
8551 # Compiler flag to prevent dynamic linking.
8552 link_static_flag=$lt_lt_prog_compiler_static
8553
8554 # Compiler flag to turn off builtin functions.
8555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8556
8557 # Compiler flag to allow reflexive dlopens.
8558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8559
8560 # Compiler flag to generate shared objects directly from archives.
8561 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8562
8563 # Compiler flag to generate thread-safe objects.
8564 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8565
8566 # Library versioning type.
8567 version_type=$version_type
8568
8569 # Format of library name prefix.
8570 libname_spec=$lt_libname_spec
8571
8572 # List of archive names.  First name is the real one, the rest are links.
8573 # The last name is the one that the linker finds with -lNAME.
8574 library_names_spec=$lt_library_names_spec
8575
8576 # The coded name of the library, if different from the real name.
8577 soname_spec=$lt_soname_spec
8578
8579 # Commands used to build and install an old-style archive.
8580 RANLIB=$lt_RANLIB
8581 old_archive_cmds=$lt_old_archive_cmds
8582 old_postinstall_cmds=$lt_old_postinstall_cmds
8583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8584
8585 # Create an old-style archive from a shared archive.
8586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8587
8588 # Create a temporary old-style archive to link instead of a shared archive.
8589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8590
8591 # Commands used to build and install a shared archive.
8592 archive_cmds=$lt_archive_cmds
8593 archive_expsym_cmds=$lt_archive_expsym_cmds
8594 postinstall_cmds=$lt_postinstall_cmds
8595 postuninstall_cmds=$lt_postuninstall_cmds
8596
8597 # Commands used to build a loadable module (assumed same as above if empty)
8598 module_cmds=$lt_module_cmds
8599 module_expsym_cmds=$lt_module_expsym_cmds
8600
8601 # Commands to strip libraries.
8602 old_striplib=$lt_old_striplib
8603 striplib=$lt_striplib
8604
8605 # Dependencies to place before the objects being linked to create a
8606 # shared library.
8607 predep_objects=$lt_predep_objects
8608
8609 # Dependencies to place after the objects being linked to create a
8610 # shared library.
8611 postdep_objects=$lt_postdep_objects
8612
8613 # Dependencies to place before the objects being linked to create a
8614 # shared library.
8615 predeps=$lt_predeps
8616
8617 # Dependencies to place after the objects being linked to create a
8618 # shared library.
8619 postdeps=$lt_postdeps
8620
8621 # The library search path used internally by the compiler when linking
8622 # a shared library.
8623 compiler_lib_search_path=$lt_compiler_lib_search_path
8624
8625 # Method to check whether dependent libraries are shared objects.
8626 deplibs_check_method=$lt_deplibs_check_method
8627
8628 # Command to use when deplibs_check_method == file_magic.
8629 file_magic_cmd=$lt_file_magic_cmd
8630
8631 # Flag that allows shared libraries with undefined symbols to be built.
8632 allow_undefined_flag=$lt_allow_undefined_flag
8633
8634 # Flag that forces no undefined symbols.
8635 no_undefined_flag=$lt_no_undefined_flag
8636
8637 # Commands used to finish a libtool library installation in a directory.
8638 finish_cmds=$lt_finish_cmds
8639
8640 # Same as above, but a single script fragment to be evaled but not shown.
8641 finish_eval=$lt_finish_eval
8642
8643 # Take the output of nm and produce a listing of raw symbols and C names.
8644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8645
8646 # Transform the output of nm in a proper C declaration
8647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8648
8649 # Transform the output of nm in a C name address pair
8650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8651
8652 # This is the shared library runtime path variable.
8653 runpath_var=$runpath_var
8654
8655 # This is the shared library path variable.
8656 shlibpath_var=$shlibpath_var
8657
8658 # Is shlibpath searched before the hard-coded library search path?
8659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8660
8661 # How to hardcode a shared library path into an executable.
8662 hardcode_action=$hardcode_action
8663
8664 # Whether we should hardcode library paths into libraries.
8665 hardcode_into_libs=$hardcode_into_libs
8666
8667 # Flag to hardcode \$libdir into a binary during linking.
8668 # This must work even if \$libdir does not exist.
8669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8670
8671 # If ld is used when linking, flag to hardcode \$libdir into
8672 # a binary during linking. This must work even if \$libdir does
8673 # not exist.
8674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8675
8676 # Whether we need a single -rpath flag with a separated argument.
8677 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8678
8679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8680 # resulting binary.
8681 hardcode_direct=$hardcode_direct
8682
8683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8684 # resulting binary.
8685 hardcode_minus_L=$hardcode_minus_L
8686
8687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8688 # the resulting binary.
8689 hardcode_shlibpath_var=$hardcode_shlibpath_var
8690
8691 # Set to yes if building a shared library automatically hardcodes DIR into the library
8692 # and all subsequent libraries and executables linked against it.
8693 hardcode_automatic=$hardcode_automatic
8694
8695 # Variables whose values should be saved in libtool wrapper scripts and
8696 # restored at relink time.
8697 variables_saved_for_relink="$variables_saved_for_relink"
8698
8699 # Whether libtool must link a program against all its dependency libraries.
8700 link_all_deplibs=$link_all_deplibs
8701
8702 # Compile-time system search path for libraries
8703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8704
8705 # Run-time system search path for libraries
8706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8707
8708 # Fix the shell variable \$srcfile for the compiler.
8709 fix_srcfile_path="$fix_srcfile_path"
8710
8711 # Set to yes if exported symbols are required.
8712 always_export_symbols=$always_export_symbols
8713
8714 # The commands to list exported symbols.
8715 export_symbols_cmds=$lt_export_symbols_cmds
8716
8717 # The commands to extract the exported symbol list from a shared archive.
8718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8719
8720 # Symbols that should not be listed in the preloaded symbols.
8721 exclude_expsyms=$lt_exclude_expsyms
8722
8723 # Symbols that must always be exported.
8724 include_expsyms=$lt_include_expsyms
8725
8726 # ### END LIBTOOL CONFIG
8727
8728 __EOF__
8729
8730
8731   case $host_os in
8732   aix3*)
8733     cat <<\EOF >> "$cfgfile"
8734
8735 # AIX sometimes has problems with the GCC collect2 program.  For some
8736 # reason, if we set the COLLECT_NAMES environment variable, the problems
8737 # vanish in a puff of smoke.
8738 if test "X${COLLECT_NAMES+set}" != Xset; then
8739   COLLECT_NAMES=
8740   export COLLECT_NAMES
8741 fi
8742 EOF
8743     ;;
8744   esac
8745
8746   # We use sed instead of cat because bash on DJGPP gets confused if
8747   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8748   # text mode, it properly converts lines to CR/LF.  This bash problem
8749   # is reportedly fixed, but why not run on old versions too?
8750   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8751
8752   mv -f "$cfgfile" "$ofile" || \
8753     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8754   chmod +x "$ofile"
8755
8756 else
8757   # If there is no Makefile yet, we rely on a make rule to execute
8758   # `config.status --recheck' to rerun these tests and create the
8759   # libtool script then.
8760   test -f Makefile && make "$ltmain"
8761 fi
8762
8763
8764 ac_ext=c
8765 ac_cpp='$CPP $CPPFLAGS'
8766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769
8770 CC="$lt_save_CC"
8771
8772
8773 # Check whether --with-tags or --without-tags was given.
8774 if test "${with_tags+set}" = set; then
8775   withval="$with_tags"
8776   tagnames="$withval"
8777 fi;
8778
8779 if test -f "$ltmain" && test -n "$tagnames"; then
8780   if test ! -f "${ofile}"; then
8781     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8782 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8783   fi
8784
8785   if test -z "$LTCC"; then
8786     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8787     if test -z "$LTCC"; then
8788       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8789 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8790     else
8791       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8792 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8793     fi
8794   fi
8795
8796   # Extract list of available tagged configurations in $ofile.
8797   # Note that this assumes the entire list is on one line.
8798   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8799
8800   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8801   for tagname in $tagnames; do
8802     IFS="$lt_save_ifs"
8803     # Check whether tagname contains only valid characters
8804     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8805     "") ;;
8806     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8807 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8808    { (exit 1); exit 1; }; }
8809         ;;
8810     esac
8811
8812     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8813     then
8814       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8815 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8816    { (exit 1); exit 1; }; }
8817     fi
8818
8819     # Update the list of available tags.
8820     if test -n "$tagname"; then
8821       echo appending configuration tag \"$tagname\" to $ofile
8822
8823       case $tagname in
8824       CXX)
8825         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8826           ac_ext=cc
8827 ac_cpp='$CXXCPP $CPPFLAGS'
8828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8831
8832
8833
8834
8835 archive_cmds_need_lc_CXX=no
8836 allow_undefined_flag_CXX=
8837 always_export_symbols_CXX=no
8838 archive_expsym_cmds_CXX=
8839 export_dynamic_flag_spec_CXX=
8840 hardcode_direct_CXX=no
8841 hardcode_libdir_flag_spec_CXX=
8842 hardcode_libdir_flag_spec_ld_CXX=
8843 hardcode_libdir_separator_CXX=
8844 hardcode_minus_L_CXX=no
8845 hardcode_automatic_CXX=no
8846 module_cmds_CXX=
8847 module_expsym_cmds_CXX=
8848 link_all_deplibs_CXX=unknown
8849 old_archive_cmds_CXX=$old_archive_cmds
8850 no_undefined_flag_CXX=
8851 whole_archive_flag_spec_CXX=
8852 enable_shared_with_static_runtimes_CXX=no
8853
8854 # Dependencies to place before and after the object being linked:
8855 predep_objects_CXX=
8856 postdep_objects_CXX=
8857 predeps_CXX=
8858 postdeps_CXX=
8859 compiler_lib_search_path_CXX=
8860
8861 # Source file extension for C++ test sources.
8862 ac_ext=cc
8863
8864 # Object file extension for compiled C++ test sources.
8865 objext=o
8866 objext_CXX=$objext
8867
8868 # Code to be used in simple compile tests
8869 lt_simple_compile_test_code="int some_variable = 0;\n"
8870
8871 # Code to be used in simple link tests
8872 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8873
8874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8875
8876 # If no C compiler was specified, use CC.
8877 LTCC=${LTCC-"$CC"}
8878
8879 # Allow CC to be a program name with arguments.
8880 compiler=$CC
8881
8882
8883 # Allow CC to be a program name with arguments.
8884 lt_save_CC=$CC
8885 lt_save_LD=$LD
8886 lt_save_GCC=$GCC
8887 GCC=$GXX
8888 lt_save_with_gnu_ld=$with_gnu_ld
8889 lt_save_path_LD=$lt_cv_path_LD
8890 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8891   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8892 else
8893   unset lt_cv_prog_gnu_ld
8894 fi
8895 if test -n "${lt_cv_path_LDCXX+set}"; then
8896   lt_cv_path_LD=$lt_cv_path_LDCXX
8897 else
8898   unset lt_cv_path_LD
8899 fi
8900 test -z "${LDCXX+set}" || LD=$LDCXX
8901 CC=${CXX-"c++"}
8902 compiler=$CC
8903 compiler_CXX=$CC
8904 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8905
8906 # We don't want -fno-exception wen compiling C++ code, so set the
8907 # no_builtin_flag separately
8908 if test "$GXX" = yes; then
8909   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8910 else
8911   lt_prog_compiler_no_builtin_flag_CXX=
8912 fi
8913
8914 if test "$GXX" = yes; then
8915   # Set up default GNU C++ configuration
8916
8917
8918 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8919 if test "${with_gnu_ld+set}" = set; then
8920   withval="$with_gnu_ld"
8921   test "$withval" = no || with_gnu_ld=yes
8922 else
8923   with_gnu_ld=no
8924 fi;
8925 ac_prog=ld
8926 if test "$GCC" = yes; then
8927   # Check if gcc -print-prog-name=ld gives a path.
8928   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8929 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8930   case $host in
8931   *-*-mingw*)
8932     # gcc leaves a trailing carriage return which upsets mingw
8933     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8934   *)
8935     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8936   esac
8937   case $ac_prog in
8938     # Accept absolute paths.
8939     [\\/]* | ?:[\\/]*)
8940       re_direlt='/[^/][^/]*/\.\./'
8941       # Canonicalize the path of ld
8942       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8943       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8944         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8945       done
8946       test -z "$LD" && LD="$ac_prog"
8947       ;;
8948   "")
8949     # If it fails, then pretend we aren't using GCC.
8950     ac_prog=ld
8951     ;;
8952   *)
8953     # If it is relative, then search for the first ld in PATH.
8954     with_gnu_ld=unknown
8955     ;;
8956   esac
8957 elif test "$with_gnu_ld" = yes; then
8958   echo "$as_me:$LINENO: checking for GNU ld" >&5
8959 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8960 else
8961   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8962 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8963 fi
8964 if test "${lt_cv_path_LD+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   if test -z "$LD"; then
8968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8969   for ac_dir in $PATH; do
8970     IFS="$lt_save_ifs"
8971     test -z "$ac_dir" && ac_dir=.
8972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8973       lt_cv_path_LD="$ac_dir/$ac_prog"
8974       # Check to see if the program is GNU ld.  I'd rather use --version,
8975       # but apparently some GNU ld's only accept -v.
8976       # Break only if it was the GNU/non-GNU ld that we prefer.
8977       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8978       *GNU* | *'with BFD'*)
8979         test "$with_gnu_ld" != no && break
8980         ;;
8981       *)
8982         test "$with_gnu_ld" != yes && break
8983         ;;
8984       esac
8985     fi
8986   done
8987   IFS="$lt_save_ifs"
8988 else
8989   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8990 fi
8991 fi
8992
8993 LD="$lt_cv_path_LD"
8994 if test -n "$LD"; then
8995   echo "$as_me:$LINENO: result: $LD" >&5
8996 echo "${ECHO_T}$LD" >&6
8997 else
8998   echo "$as_me:$LINENO: result: no" >&5
8999 echo "${ECHO_T}no" >&6
9000 fi
9001 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9002 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9003    { (exit 1); exit 1; }; }
9004 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9005 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9006 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9010 case `"$LD" -v 2>&1 </dev/null` in
9011 *GNU* | *'with BFD'*)
9012   lt_cv_prog_gnu_ld=yes
9013   ;;
9014 *)
9015   lt_cv_prog_gnu_ld=no
9016   ;;
9017 esac
9018 fi
9019 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9021 with_gnu_ld=$lt_cv_prog_gnu_ld
9022
9023
9024
9025   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9026   # archiving commands below assume that GNU ld is being used.
9027   if test "$with_gnu_ld" = yes; then
9028     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029     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'
9030
9031     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9032     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9033
9034     # If archive_cmds runs LD, not CC, wlarc should be empty
9035     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9036     #     investigate it a little bit more. (MM)
9037     wlarc='${wl}'
9038
9039     # ancient GNU ld didn't support --whole-archive et. al.
9040     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9041         grep 'no-whole-archive' > /dev/null; then
9042       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9043     else
9044       whole_archive_flag_spec_CXX=
9045     fi
9046   else
9047     with_gnu_ld=no
9048     wlarc=
9049
9050     # A generic and very simple default shared library creation
9051     # command for GNU C++ for the case where it uses the native
9052     # linker, instead of GNU ld.  If possible, this setting should
9053     # overridden to take advantage of the native linker features on
9054     # the platform it is being used on.
9055     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9056   fi
9057
9058   # Commands to make compiler produce verbose output that lists
9059   # what "hidden" libraries, object files and flags are used when
9060   # linking a shared library.
9061   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9062
9063 else
9064   GXX=no
9065   with_gnu_ld=no
9066   wlarc=
9067 fi
9068
9069 # PORTME: fill in a description of your system's C++ link characteristics
9070 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9072 ld_shlibs_CXX=yes
9073 case $host_os in
9074   aix3*)
9075     # FIXME: insert proper C++ library support
9076     ld_shlibs_CXX=no
9077     ;;
9078   aix4* | aix5*)
9079     if test "$host_cpu" = ia64; then
9080       # On IA64, the linker does run time linking by default, so we don't
9081       # have to do anything special.
9082       aix_use_runtimelinking=no
9083       exp_sym_flag='-Bexport'
9084       no_entry_flag=""
9085     else
9086       aix_use_runtimelinking=no
9087
9088       # Test if we are trying to use run time linking or normal
9089       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9090       # need to do runtime linking.
9091       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9092         for ld_flag in $LDFLAGS; do
9093           case $ld_flag in
9094           *-brtl*)
9095             aix_use_runtimelinking=yes
9096             break
9097             ;;
9098           esac
9099         done
9100       esac
9101
9102       exp_sym_flag='-bexport'
9103       no_entry_flag='-bnoentry'
9104     fi
9105
9106     # When large executables or shared objects are built, AIX ld can
9107     # have problems creating the table of contents.  If linking a library
9108     # or program results in "error TOC overflow" add -mminimal-toc to
9109     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9110     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9111
9112     archive_cmds_CXX=''
9113     hardcode_direct_CXX=yes
9114     hardcode_libdir_separator_CXX=':'
9115     link_all_deplibs_CXX=yes
9116
9117     if test "$GXX" = yes; then
9118       case $host_os in aix4.012|aix4.012.*)
9119       # We only want to do this on AIX 4.2 and lower, the check
9120       # below for broken collect2 doesn't work under 4.3+
9121         collect2name=`${CC} -print-prog-name=collect2`
9122         if test -f "$collect2name" && \
9123            strings "$collect2name" | grep resolve_lib_name >/dev/null
9124         then
9125           # We have reworked collect2
9126           hardcode_direct_CXX=yes
9127         else
9128           # We have old collect2
9129           hardcode_direct_CXX=unsupported
9130           # It fails to find uninstalled libraries when the uninstalled
9131           # path is not listed in the libpath.  Setting hardcode_minus_L
9132           # to unsupported forces relinking
9133           hardcode_minus_L_CXX=yes
9134           hardcode_libdir_flag_spec_CXX='-L$libdir'
9135           hardcode_libdir_separator_CXX=
9136         fi
9137       esac
9138       shared_flag='-shared'
9139     else
9140       # not using gcc
9141       if test "$host_cpu" = ia64; then
9142         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143         # chokes on -Wl,-G. The following line is correct:
9144         shared_flag='-G'
9145       else
9146         if test "$aix_use_runtimelinking" = yes; then
9147           shared_flag='${wl}-G'
9148         else
9149           shared_flag='${wl}-bM:SRE'
9150         fi
9151       fi
9152     fi
9153
9154     # It seems that -bexpall does not export symbols beginning with
9155     # underscore (_), so it is better to generate a list of symbols to export.
9156     always_export_symbols_CXX=yes
9157     if test "$aix_use_runtimelinking" = yes; then
9158       # Warning - without using the other runtime loading flags (-brtl),
9159       # -berok will link without error, but may produce a broken library.
9160       allow_undefined_flag_CXX='-berok'
9161       # Determine the default libpath from the value encoded in an empty executable.
9162       cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168
9169 int
9170 main ()
9171 {
9172
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179   (eval $ac_link) 2>conftest.er1
9180   ac_status=$?
9181   grep -v '^ *+' conftest.er1 >conftest.err
9182   rm -f conftest.er1
9183   cat conftest.err >&5
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); } &&
9186          { ac_try='test -z "$ac_cxx_werror_flag"
9187                          || test ! -s conftest.err'
9188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189   (eval $ac_try) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); }; } &&
9193          { ac_try='test -s conftest$ac_exeext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199
9200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9201 }'`
9202 # Check for a 64-bit object if we didn't find anything.
9203 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; }
9204 }'`; fi
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 fi
9210 rm -f conftest.err conftest.$ac_objext \
9211       conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9213
9214       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9215
9216       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"
9217      else
9218       if test "$host_cpu" = ia64; then
9219         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9220         allow_undefined_flag_CXX="-z nodefs"
9221         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"
9222       else
9223         # Determine the default libpath from the value encoded in an empty executable.
9224         cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230
9231 int
9232 main ()
9233 {
9234
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -z "$ac_cxx_werror_flag"
9249                          || test ! -s conftest.err'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; } &&
9255          { ac_try='test -s conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261
9262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9263 }'`
9264 # Check for a 64-bit object if we didn't find anything.
9265 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; }
9266 }'`; fi
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 fi
9272 rm -f conftest.err conftest.$ac_objext \
9273       conftest$ac_exeext conftest.$ac_ext
9274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9275
9276         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9277         # Warning - without using the other run time loading flags,
9278         # -berok will link without error, but may produce a broken library.
9279         no_undefined_flag_CXX=' ${wl}-bernotok'
9280         allow_undefined_flag_CXX=' ${wl}-berok'
9281         # -bexpall does not export symbols beginning with underscore (_)
9282         always_export_symbols_CXX=yes
9283         # Exported symbols can be pulled into shared objects from archives
9284         whole_archive_flag_spec_CXX=' '
9285         archive_cmds_need_lc_CXX=yes
9286         # This is similar to how AIX traditionally builds it's shared libraries.
9287         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'
9288       fi
9289     fi
9290     ;;
9291   chorus*)
9292     case $cc_basename in
9293       *)
9294         # FIXME: insert proper C++ library support
9295         ld_shlibs_CXX=no
9296         ;;
9297     esac
9298     ;;
9299
9300   cygwin* | mingw* | pw32*)
9301     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9302     # as there is no search path for DLLs.
9303     hardcode_libdir_flag_spec_CXX='-L$libdir'
9304     allow_undefined_flag_CXX=unsupported
9305     always_export_symbols_CXX=no
9306     enable_shared_with_static_runtimes_CXX=yes
9307
9308     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9309       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'
9310       # If the export-symbols file already is a .def file (1st line
9311       # is EXPORTS), use it as is; otherwise, prepend...
9312       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313         cp $export_symbols $output_objdir/$soname.def;
9314       else
9315         echo EXPORTS > $output_objdir/$soname.def;
9316         cat $export_symbols >> $output_objdir/$soname.def;
9317       fi~
9318       $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'
9319     else
9320       ld_shlibs_CXX=no
9321     fi
9322   ;;
9323
9324   darwin* | rhapsody*)
9325    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9326     archive_cmds_need_lc_CXX=no
9327     case "$host_os" in
9328     rhapsody* | darwin1.[012])
9329       allow_undefined_flag_CXX='-undefined suppress'
9330       ;;
9331     *) # Darwin 1.3 on
9332       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9333       ;;
9334     esac
9335         lt_int_apple_cc_single_mod=no
9336         output_verbose_link_cmd='echo'
9337         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9338           lt_int_apple_cc_single_mod=yes
9339         fi
9340         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9341           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9342         else
9343         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'
9344       fi
9345       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9346
9347     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9348       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9349         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}'
9350       else
9351         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}'
9352       fi
9353         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}'
9354     hardcode_direct_CXX=no
9355     hardcode_automatic_CXX=yes
9356     hardcode_shlibpath_var_CXX=unsupported
9357     whole_archive_flag_spec_CXX='-all_load $convenience'
9358     link_all_deplibs_CXX=yes
9359    fi
9360     ;;
9361
9362   dgux*)
9363     case $cc_basename in
9364       ec++)
9365         # FIXME: insert proper C++ library support
9366         ld_shlibs_CXX=no
9367         ;;
9368       ghcx)
9369         # Green Hills C++ Compiler
9370         # FIXME: insert proper C++ library support
9371         ld_shlibs_CXX=no
9372         ;;
9373       *)
9374         # FIXME: insert proper C++ library support
9375         ld_shlibs_CXX=no
9376         ;;
9377     esac
9378     ;;
9379   freebsd12*)
9380     # C++ shared libraries reported to be fairly broken before switch to ELF
9381     ld_shlibs_CXX=no
9382     ;;
9383   freebsd-elf*)
9384     archive_cmds_need_lc_CXX=no
9385     ;;
9386   freebsd*)
9387     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9388     # conventions
9389     ld_shlibs_CXX=yes
9390     ;;
9391   gnu*)
9392     ;;
9393   hpux9*)
9394     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9395     hardcode_libdir_separator_CXX=:
9396     export_dynamic_flag_spec_CXX='${wl}-E'
9397     hardcode_direct_CXX=yes
9398     hardcode_minus_L_CXX=yes # Not in the search PATH,
9399                                 # but as the default
9400                                 # location of the library.
9401
9402     case $cc_basename in
9403     CC)
9404       # FIXME: insert proper C++ library support
9405       ld_shlibs_CXX=no
9406       ;;
9407     aCC)
9408       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'
9409       # Commands to make compiler produce verbose output that lists
9410       # what "hidden" libraries, object files and flags are used when
9411       # linking a shared library.
9412       #
9413       # There doesn't appear to be a way to prevent this compiler from
9414       # explicitly linking system object files so we need to strip them
9415       # from the output so that they don't get included in the library
9416       # dependencies.
9417       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'
9418       ;;
9419     *)
9420       if test "$GXX" = yes; then
9421         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'
9422       else
9423         # FIXME: insert proper C++ library support
9424         ld_shlibs_CXX=no
9425       fi
9426       ;;
9427     esac
9428     ;;
9429   hpux10*|hpux11*)
9430     if test $with_gnu_ld = no; then
9431       case "$host_cpu" in
9432       hppa*64*)
9433         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9434         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9435         hardcode_libdir_separator_CXX=:
9436         ;;
9437       ia64*)
9438         hardcode_libdir_flag_spec_CXX='-L$libdir'
9439         ;;
9440       *)
9441         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9442         hardcode_libdir_separator_CXX=:
9443         export_dynamic_flag_spec_CXX='${wl}-E'
9444         ;;
9445       esac
9446     fi
9447     case "$host_cpu" in
9448     hppa*64*)
9449       hardcode_direct_CXX=no
9450       hardcode_shlibpath_var_CXX=no
9451       ;;
9452     ia64*)
9453       hardcode_direct_CXX=no
9454       hardcode_shlibpath_var_CXX=no
9455       hardcode_minus_L_CXX=yes # Not in the search PATH,
9456                                               # but as the default
9457                                               # location of the library.
9458       ;;
9459     *)
9460       hardcode_direct_CXX=yes
9461       hardcode_minus_L_CXX=yes # Not in the search PATH,
9462                                               # but as the default
9463                                               # location of the library.
9464       ;;
9465     esac
9466
9467     case $cc_basename in
9468       CC)
9469         # FIXME: insert proper C++ library support
9470         ld_shlibs_CXX=no
9471         ;;
9472       aCC)
9473         case "$host_cpu" in
9474         hppa*64*|ia64*)
9475           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9476           ;;
9477         *)
9478           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9479           ;;
9480         esac
9481         # Commands to make compiler produce verbose output that lists
9482         # what "hidden" libraries, object files and flags are used when
9483         # linking a shared library.
9484         #
9485         # There doesn't appear to be a way to prevent this compiler from
9486         # explicitly linking system object files so we need to strip them
9487         # from the output so that they don't get included in the library
9488         # dependencies.
9489         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'
9490         ;;
9491       *)
9492         if test "$GXX" = yes; then
9493           if test $with_gnu_ld = no; then
9494             case "$host_cpu" in
9495             ia64*|hppa*64*)
9496               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9497               ;;
9498             *)
9499               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'
9500               ;;
9501             esac
9502           fi
9503         else
9504           # FIXME: insert proper C++ library support
9505           ld_shlibs_CXX=no
9506         fi
9507         ;;
9508     esac
9509     ;;
9510   irix5* | irix6*)
9511     case $cc_basename in
9512       CC)
9513         # SGI C++
9514         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'
9515
9516         # Archives containing C++ object files must be created using
9517         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9518         # necessary to make sure instantiated templates are included
9519         # in the archive.
9520         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9521         ;;
9522       *)
9523         if test "$GXX" = yes; then
9524           if test "$with_gnu_ld" = no; then
9525             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'
9526           else
9527             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'
9528           fi
9529         fi
9530         link_all_deplibs_CXX=yes
9531         ;;
9532     esac
9533     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9534     hardcode_libdir_separator_CXX=:
9535     ;;
9536   linux*)
9537     case $cc_basename in
9538       KCC)
9539         # Kuck and Associates, Inc. (KAI) C++ Compiler
9540
9541         # KCC will only create a shared library if the output file
9542         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9543         # to its proper name (with version) after linking.
9544         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'
9545         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'
9546         # Commands to make compiler produce verbose output that lists
9547         # what "hidden" libraries, object files and flags are used when
9548         # linking a shared library.
9549         #
9550         # There doesn't appear to be a way to prevent this compiler from
9551         # explicitly linking system object files so we need to strip them
9552         # from the output so that they don't get included in the library
9553         # dependencies.
9554         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'
9555
9556         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9557         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9558
9559         # Archives containing C++ object files must be created using
9560         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9561         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9562         ;;
9563       icpc)
9564         # Intel C++
9565         with_gnu_ld=yes
9566         archive_cmds_need_lc_CXX=no
9567         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568         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'
9569         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9570         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9571         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9572         ;;
9573       cxx)
9574         # Compaq C++
9575         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576         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'
9577
9578         runpath_var=LD_RUN_PATH
9579         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9580         hardcode_libdir_separator_CXX=:
9581
9582         # Commands to make compiler produce verbose output that lists
9583         # what "hidden" libraries, object files and flags are used when
9584         # linking a shared library.
9585         #
9586         # There doesn't appear to be a way to prevent this compiler from
9587         # explicitly linking system object files so we need to strip them
9588         # from the output so that they don't get included in the library
9589         # dependencies.
9590         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'
9591         ;;
9592     esac
9593     ;;
9594   lynxos*)
9595     # FIXME: insert proper C++ library support
9596     ld_shlibs_CXX=no
9597     ;;
9598   m88k*)
9599     # FIXME: insert proper C++ library support
9600     ld_shlibs_CXX=no
9601     ;;
9602   mvs*)
9603     case $cc_basename in
9604       cxx)
9605         # FIXME: insert proper C++ library support
9606         ld_shlibs_CXX=no
9607         ;;
9608       *)
9609         # FIXME: insert proper C++ library support
9610         ld_shlibs_CXX=no
9611         ;;
9612     esac
9613     ;;
9614   netbsd*)
9615     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9616       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9617       wlarc=
9618       hardcode_libdir_flag_spec_CXX='-R$libdir'
9619       hardcode_direct_CXX=yes
9620       hardcode_shlibpath_var_CXX=no
9621     fi
9622     # Workaround some broken pre-1.5 toolchains
9623     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9624     ;;
9625   osf3*)
9626     case $cc_basename in
9627       KCC)
9628         # Kuck and Associates, Inc. (KAI) C++ Compiler
9629
9630         # KCC will only create a shared library if the output file
9631         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9632         # to its proper name (with version) after linking.
9633         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'
9634
9635         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9636         hardcode_libdir_separator_CXX=:
9637
9638         # Archives containing C++ object files must be created using
9639         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9640         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9641
9642         ;;
9643       RCC)
9644         # Rational C++ 2.4.1
9645         # FIXME: insert proper C++ library support
9646         ld_shlibs_CXX=no
9647         ;;
9648       cxx)
9649         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9650         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'
9651
9652         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9653         hardcode_libdir_separator_CXX=:
9654
9655         # Commands to make compiler produce verbose output that lists
9656         # what "hidden" libraries, object files and flags are used when
9657         # linking a shared library.
9658         #
9659         # There doesn't appear to be a way to prevent this compiler from
9660         # explicitly linking system object files so we need to strip them
9661         # from the output so that they don't get included in the library
9662         # dependencies.
9663         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'
9664         ;;
9665       *)
9666         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9667           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9668           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'
9669
9670           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9671           hardcode_libdir_separator_CXX=:
9672
9673           # Commands to make compiler produce verbose output that lists
9674           # what "hidden" libraries, object files and flags are used when
9675           # linking a shared library.
9676           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9677
9678         else
9679           # FIXME: insert proper C++ library support
9680           ld_shlibs_CXX=no
9681         fi
9682         ;;
9683     esac
9684     ;;
9685   osf4* | osf5*)
9686     case $cc_basename in
9687       KCC)
9688         # Kuck and Associates, Inc. (KAI) C++ Compiler
9689
9690         # KCC will only create a shared library if the output file
9691         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9692         # to its proper name (with version) after linking.
9693         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'
9694
9695         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9696         hardcode_libdir_separator_CXX=:
9697
9698         # Archives containing C++ object files must be created using
9699         # the KAI C++ compiler.
9700         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9701         ;;
9702       RCC)
9703         # Rational C++ 2.4.1
9704         # FIXME: insert proper C++ library support
9705         ld_shlibs_CXX=no
9706         ;;
9707       cxx)
9708         allow_undefined_flag_CXX=' -expect_unresolved \*'
9709         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'
9710         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9711           echo "-hidden">> $lib.exp~
9712           $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~
9713           $rm $lib.exp'
9714
9715         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9716         hardcode_libdir_separator_CXX=:
9717
9718         # Commands to make compiler produce verbose output that lists
9719         # what "hidden" libraries, object files and flags are used when
9720         # linking a shared library.
9721         #
9722         # There doesn't appear to be a way to prevent this compiler from
9723         # explicitly linking system object files so we need to strip them
9724         # from the output so that they don't get included in the library
9725         # dependencies.
9726         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'
9727         ;;
9728       *)
9729         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9730           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9731          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'
9732
9733           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9734           hardcode_libdir_separator_CXX=:
9735
9736           # Commands to make compiler produce verbose output that lists
9737           # what "hidden" libraries, object files and flags are used when
9738           # linking a shared library.
9739           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9740
9741         else
9742           # FIXME: insert proper C++ library support
9743           ld_shlibs_CXX=no
9744         fi
9745         ;;
9746     esac
9747     ;;
9748   psos*)
9749     # FIXME: insert proper C++ library support
9750     ld_shlibs_CXX=no
9751     ;;
9752   sco*)
9753     archive_cmds_need_lc_CXX=no
9754     case $cc_basename in
9755       CC)
9756         # FIXME: insert proper C++ library support
9757         ld_shlibs_CXX=no
9758         ;;
9759       *)
9760         # FIXME: insert proper C++ library support
9761         ld_shlibs_CXX=no
9762         ;;
9763     esac
9764     ;;
9765   sunos4*)
9766     case $cc_basename in
9767       CC)
9768         # Sun C++ 4.x
9769         # FIXME: insert proper C++ library support
9770         ld_shlibs_CXX=no
9771         ;;
9772       lcc)
9773         # Lucid
9774         # FIXME: insert proper C++ library support
9775         ld_shlibs_CXX=no
9776         ;;
9777       *)
9778         # FIXME: insert proper C++ library support
9779         ld_shlibs_CXX=no
9780         ;;
9781     esac
9782     ;;
9783   solaris*)
9784     case $cc_basename in
9785       CC)
9786         # Sun C++ 4.2, 5.x and Centerline C++
9787         no_undefined_flag_CXX=' -zdefs'
9788         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9789         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9790         $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'
9791
9792         hardcode_libdir_flag_spec_CXX='-R$libdir'
9793         hardcode_shlibpath_var_CXX=no
9794         case $host_os in
9795           solaris2.0-5 | solaris2.0-5.*) ;;
9796           *)
9797             # The C++ compiler is used as linker so we must use $wl
9798             # flag to pass the commands to the underlying system
9799             # linker.
9800             # Supported since Solaris 2.6 (maybe 2.5.1?)
9801             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9802             ;;
9803         esac
9804         link_all_deplibs_CXX=yes
9805
9806         # Commands to make compiler produce verbose output that lists
9807         # what "hidden" libraries, object files and flags are used when
9808         # linking a shared library.
9809         #
9810         # There doesn't appear to be a way to prevent this compiler from
9811         # explicitly linking system object files so we need to strip them
9812         # from the output so that they don't get included in the library
9813         # dependencies.
9814         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'
9815
9816         # Archives containing C++ object files must be created using
9817         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9818         # necessary to make sure instantiated templates are included
9819         # in the archive.
9820         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9821         ;;
9822       gcx)
9823         # Green Hills C++ Compiler
9824         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9825
9826         # The C++ compiler must be used to create the archive.
9827         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9828         ;;
9829       *)
9830         # GNU C++ compiler with Solaris linker
9831         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9832           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9833           if $CC --version | grep -v '^2\.7' > /dev/null; then
9834             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9835             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9836                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9837
9838             # Commands to make compiler produce verbose output that lists
9839             # what "hidden" libraries, object files and flags are used when
9840             # linking a shared library.
9841             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9842           else
9843             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9844             # platform.
9845             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9846             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9847                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9848
9849             # Commands to make compiler produce verbose output that lists
9850             # what "hidden" libraries, object files and flags are used when
9851             # linking a shared library.
9852             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9853           fi
9854
9855           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9856         fi
9857         ;;
9858     esac
9859     ;;
9860   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9861     archive_cmds_need_lc_CXX=no
9862     ;;
9863   tandem*)
9864     case $cc_basename in
9865       NCC)
9866         # NonStop-UX NCC 3.20
9867         # FIXME: insert proper C++ library support
9868         ld_shlibs_CXX=no
9869         ;;
9870       *)
9871         # FIXME: insert proper C++ library support
9872         ld_shlibs_CXX=no
9873         ;;
9874     esac
9875     ;;
9876   vxworks*)
9877     # FIXME: insert proper C++ library support
9878     ld_shlibs_CXX=no
9879     ;;
9880   *)
9881     # FIXME: insert proper C++ library support
9882     ld_shlibs_CXX=no
9883     ;;
9884 esac
9885 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9886 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9887 test "$ld_shlibs_CXX" = no && can_build_shared=no
9888
9889 GCC_CXX="$GXX"
9890 LD_CXX="$LD"
9891
9892 ## CAVEAT EMPTOR:
9893 ## There is no encapsulation within the following macros, do not change
9894 ## the running order or otherwise move them around unless you know exactly
9895 ## what you are doing...
9896
9897 cat > conftest.$ac_ext <<EOF
9898 class Foo
9899 {
9900 public:
9901   Foo (void) { a = 0; }
9902 private:
9903   int a;
9904 };
9905 EOF
9906
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; then
9912   # Parse the compiler output and extract the necessary
9913   # objects, libraries and library flags.
9914
9915   # Sentinel used to keep track of whether or not we are before
9916   # the conftest object file.
9917   pre_test_object_deps_done=no
9918
9919   # The `*' in the case matches for architectures that use `case' in
9920   # $output_verbose_cmd can trigger glob expansion during the loop
9921   # eval without this substitution.
9922   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9923
9924   for p in `eval $output_verbose_link_cmd`; do
9925     case $p in
9926
9927     -L* | -R* | -l*)
9928        # Some compilers place space between "-{L,R}" and the path.
9929        # Remove the space.
9930        if test $p = "-L" \
9931           || test $p = "-R"; then
9932          prev=$p
9933          continue
9934        else
9935          prev=
9936        fi
9937
9938        if test "$pre_test_object_deps_done" = no; then
9939          case $p in
9940          -L* | -R*)
9941            # Internal compiler library paths should come after those
9942            # provided the user.  The postdeps already come after the
9943            # user supplied libs so there is no need to process them.
9944            if test -z "$compiler_lib_search_path_CXX"; then
9945              compiler_lib_search_path_CXX="${prev}${p}"
9946            else
9947              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9948            fi
9949            ;;
9950          # The "-l" case would never come before the object being
9951          # linked, so don't bother handling this case.
9952          esac
9953        else
9954          if test -z "$postdeps_CXX"; then
9955            postdeps_CXX="${prev}${p}"
9956          else
9957            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9958          fi
9959        fi
9960        ;;
9961
9962     *.$objext)
9963        # This assumes that the test object file only shows up
9964        # once in the compiler output.
9965        if test "$p" = "conftest.$objext"; then
9966          pre_test_object_deps_done=yes
9967          continue
9968        fi
9969
9970        if test "$pre_test_object_deps_done" = no; then
9971          if test -z "$predep_objects_CXX"; then
9972            predep_objects_CXX="$p"
9973          else
9974            predep_objects_CXX="$predep_objects_CXX $p"
9975          fi
9976        else
9977          if test -z "$postdep_objects_CXX"; then
9978            postdep_objects_CXX="$p"
9979          else
9980            postdep_objects_CXX="$postdep_objects_CXX $p"
9981          fi
9982        fi
9983        ;;
9984
9985     *) ;; # Ignore the rest.
9986
9987     esac
9988   done
9989
9990   # Clean up.
9991   rm -f a.out a.exe
9992 else
9993   echo "libtool.m4: error: problem compiling CXX test program"
9994 fi
9995
9996 $rm -f confest.$objext
9997
9998 case " $postdeps_CXX " in
9999 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10000 esac
10001
10002 lt_prog_compiler_wl_CXX=
10003 lt_prog_compiler_pic_CXX=
10004 lt_prog_compiler_static_CXX=
10005
10006 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10008
10009   # C++ specific cases for pic, static, wl, etc.
10010   if test "$GXX" = yes; then
10011     lt_prog_compiler_wl_CXX='-Wl,'
10012     lt_prog_compiler_static_CXX='-static'
10013
10014     case $host_os in
10015     aix*)
10016       # All AIX code is PIC.
10017       if test "$host_cpu" = ia64; then
10018         # AIX 5 now supports IA64 processor
10019         lt_prog_compiler_static_CXX='-Bstatic'
10020       fi
10021       ;;
10022     amigaos*)
10023       # FIXME: we need at least 68020 code to build shared libraries, but
10024       # adding the `-m68020' flag to GCC prevents building anything better,
10025       # like `-m68040'.
10026       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10027       ;;
10028     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10029       # PIC is the default for these OSes.
10030       ;;
10031     mingw* | os2* | pw32*)
10032       # This hack is so that the source file can tell whether it is being
10033       # built for inclusion in a dll (and should export symbols for example).
10034       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10035       ;;
10036     darwin* | rhapsody*)
10037       # PIC is the default on this platform
10038       # Common symbols not allowed in MH_DYLIB files
10039       lt_prog_compiler_pic_CXX='-fno-common'
10040       ;;
10041     *djgpp*)
10042       # DJGPP does not support shared libraries at all
10043       lt_prog_compiler_pic_CXX=
10044       ;;
10045     sysv4*MP*)
10046       if test -d /usr/nec; then
10047         lt_prog_compiler_pic_CXX=-Kconform_pic
10048       fi
10049       ;;
10050     hpux*)
10051       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10052       # not for PA HP-UX.
10053       case "$host_cpu" in
10054       hppa*64*|ia64*)
10055         ;;
10056       *)
10057         lt_prog_compiler_pic_CXX='-fPIC'
10058         ;;
10059       esac
10060       ;;
10061     *)
10062       lt_prog_compiler_pic_CXX='-fPIC'
10063       ;;
10064     esac
10065   else
10066     case $host_os in
10067       aix4* | aix5*)
10068         # All AIX code is PIC.
10069         if test "$host_cpu" = ia64; then
10070           # AIX 5 now supports IA64 processor
10071           lt_prog_compiler_static_CXX='-Bstatic'
10072         else
10073           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10074         fi
10075         ;;
10076       chorus*)
10077         case $cc_basename in
10078         cxch68)
10079           # Green Hills C++ Compiler
10080           # _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"
10081           ;;
10082         esac
10083         ;;
10084       dgux*)
10085         case $cc_basename in
10086           ec++)
10087             lt_prog_compiler_pic_CXX='-KPIC'
10088             ;;
10089           ghcx)
10090             # Green Hills C++ Compiler
10091             lt_prog_compiler_pic_CXX='-pic'
10092             ;;
10093           *)
10094             ;;
10095         esac
10096         ;;
10097       freebsd*)
10098         # FreeBSD uses GNU C++
10099         ;;
10100       hpux9* | hpux10* | hpux11*)
10101         case $cc_basename in
10102           CC)
10103             lt_prog_compiler_wl_CXX='-Wl,'
10104             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10105             if test "$host_cpu" != ia64; then
10106               lt_prog_compiler_pic_CXX='+Z'
10107             fi
10108             ;;
10109           aCC)
10110             lt_prog_compiler_wl_CXX='-Wl,'
10111             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10112             case "$host_cpu" in
10113             hppa*64*|ia64*)
10114               # +Z the default
10115               ;;
10116             *)
10117               lt_prog_compiler_pic_CXX='+Z'
10118               ;;
10119             esac
10120             ;;
10121           *)
10122             ;;
10123         esac
10124         ;;
10125       irix5* | irix6* | nonstopux*)
10126         case $cc_basename in
10127           CC)
10128             lt_prog_compiler_wl_CXX='-Wl,'
10129             lt_prog_compiler_static_CXX='-non_shared'
10130             # CC pic flag -KPIC is the default.
10131             ;;
10132           *)
10133             ;;
10134         esac
10135         ;;
10136       linux*)
10137         case $cc_basename in
10138           KCC)
10139             # KAI C++ Compiler
10140             lt_prog_compiler_wl_CXX='--backend -Wl,'
10141             lt_prog_compiler_pic_CXX='-fPIC'
10142             ;;
10143           icpc)
10144             # Intel C++
10145             lt_prog_compiler_wl_CXX='-Wl,'
10146             lt_prog_compiler_pic_CXX='-KPIC'
10147             lt_prog_compiler_static_CXX='-static'
10148             ;;
10149           cxx)
10150             # Compaq C++
10151             # Make sure the PIC flag is empty.  It appears that all Alpha
10152             # Linux and Compaq Tru64 Unix objects are PIC.
10153             lt_prog_compiler_pic_CXX=
10154             lt_prog_compiler_static_CXX='-non_shared'
10155             ;;
10156           *)
10157             ;;
10158         esac
10159         ;;
10160       lynxos*)
10161         ;;
10162       m88k*)
10163         ;;
10164       mvs*)
10165         case $cc_basename in
10166           cxx)
10167             lt_prog_compiler_pic_CXX='-W c,exportall'
10168             ;;
10169           *)
10170             ;;
10171         esac
10172         ;;
10173       netbsd*)
10174         ;;
10175       osf3* | osf4* | osf5*)
10176         case $cc_basename in
10177           KCC)
10178             lt_prog_compiler_wl_CXX='--backend -Wl,'
10179             ;;
10180           RCC)
10181             # Rational C++ 2.4.1
10182             lt_prog_compiler_pic_CXX='-pic'
10183             ;;
10184           cxx)
10185             # Digital/Compaq C++
10186             lt_prog_compiler_wl_CXX='-Wl,'
10187             # Make sure the PIC flag is empty.  It appears that all Alpha
10188             # Linux and Compaq Tru64 Unix objects are PIC.
10189             lt_prog_compiler_pic_CXX=
10190             lt_prog_compiler_static_CXX='-non_shared'
10191             ;;
10192           *)
10193             ;;
10194         esac
10195         ;;
10196       psos*)
10197         ;;
10198       sco*)
10199         case $cc_basename in
10200           CC)
10201             lt_prog_compiler_pic_CXX='-fPIC'
10202             ;;
10203           *)
10204             ;;
10205         esac
10206         ;;
10207       solaris*)
10208         case $cc_basename in
10209           CC)
10210             # Sun C++ 4.2, 5.x and Centerline C++
10211             lt_prog_compiler_pic_CXX='-KPIC'
10212             lt_prog_compiler_static_CXX='-Bstatic'
10213             lt_prog_compiler_wl_CXX='-Qoption ld '
10214             ;;
10215           gcx)
10216             # Green Hills C++ Compiler
10217             lt_prog_compiler_pic_CXX='-PIC'
10218             ;;
10219           *)
10220             ;;
10221         esac
10222         ;;
10223       sunos4*)
10224         case $cc_basename in
10225           CC)
10226             # Sun C++ 4.x
10227             lt_prog_compiler_pic_CXX='-pic'
10228             lt_prog_compiler_static_CXX='-Bstatic'
10229             ;;
10230           lcc)
10231             # Lucid
10232             lt_prog_compiler_pic_CXX='-pic'
10233             ;;
10234           *)
10235             ;;
10236         esac
10237         ;;
10238       tandem*)
10239         case $cc_basename in
10240           NCC)
10241             # NonStop-UX NCC 3.20
10242             lt_prog_compiler_pic_CXX='-KPIC'
10243             ;;
10244           *)
10245             ;;
10246         esac
10247         ;;
10248       unixware*)
10249         ;;
10250       vxworks*)
10251         ;;
10252       *)
10253         lt_prog_compiler_can_build_shared_CXX=no
10254         ;;
10255     esac
10256   fi
10257
10258 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10259 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10260
10261 #
10262 # Check to make sure the PIC flag actually works.
10263 #
10264 if test -n "$lt_prog_compiler_pic_CXX"; then
10265   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10266 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10267 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   lt_prog_compiler_pic_works_CXX=no
10271   ac_outfile=conftest.$ac_objext
10272    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10273    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10274    # Insert the option either (1) after the last *FLAGS variable, or
10275    # (2) before a word containing "conftest.", or (3) at the end.
10276    # Note that $ac_compile itself does not contain backslashes and begins
10277    # with a dollar sign (not a hyphen), so the echo should work correctly.
10278    # The option is referenced via a variable to avoid confusing sed.
10279    lt_compile=`echo "$ac_compile" | $SED \
10280    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10282    -e 's:$: $lt_compiler_flag:'`
10283    (eval echo "\"\$as_me:10283: $lt_compile\"" >&5)
10284    (eval "$lt_compile" 2>conftest.err)
10285    ac_status=$?
10286    cat conftest.err >&5
10287    echo "$as_me:10287: \$? = $ac_status" >&5
10288    if (exit $ac_status) && test -s "$ac_outfile"; then
10289      # The compiler can only warn and ignore the option if not recognized
10290      # So say no if there are warnings
10291      if test ! -s conftest.err; then
10292        lt_prog_compiler_pic_works_CXX=yes
10293      fi
10294    fi
10295    $rm conftest*
10296
10297 fi
10298 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10299 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10300
10301 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10302     case $lt_prog_compiler_pic_CXX in
10303      "" | " "*) ;;
10304      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10305      esac
10306 else
10307     lt_prog_compiler_pic_CXX=
10308      lt_prog_compiler_can_build_shared_CXX=no
10309 fi
10310
10311 fi
10312 case "$host_os" in
10313   # For platforms which do not support PIC, -DPIC is meaningless:
10314   *djgpp*)
10315     lt_prog_compiler_pic_CXX=
10316     ;;
10317   *)
10318     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10319     ;;
10320 esac
10321
10322 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10323 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10324 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   lt_cv_prog_compiler_c_o_CXX=no
10328    $rm -r conftest 2>/dev/null
10329    mkdir conftest
10330    cd conftest
10331    mkdir out
10332    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10333
10334    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10335    # that will create temporary files in the current directory regardless of
10336    # the output directory.  Thus, making CWD read-only will cause this test
10337    # to fail, enabling locking or at least warning the user not to do parallel
10338    # builds.
10339    chmod -w .
10340
10341    lt_compiler_flag="-o out/conftest2.$ac_objext"
10342    # Insert the option either (1) after the last *FLAGS variable, or
10343    # (2) before a word containing "conftest.", or (3) at the end.
10344    # Note that $ac_compile itself does not contain backslashes and begins
10345    # with a dollar sign (not a hyphen), so the echo should work correctly.
10346    lt_compile=`echo "$ac_compile" | $SED \
10347    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10349    -e 's:$: $lt_compiler_flag:'`
10350    (eval echo "\"\$as_me:10350: $lt_compile\"" >&5)
10351    (eval "$lt_compile" 2>out/conftest.err)
10352    ac_status=$?
10353    cat out/conftest.err >&5
10354    echo "$as_me:10354: \$? = $ac_status" >&5
10355    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10356    then
10357      # The compiler can only warn and ignore the option if not recognized
10358      # So say no if there are warnings
10359      if test ! -s out/conftest.err; then
10360        lt_cv_prog_compiler_c_o_CXX=yes
10361      fi
10362    fi
10363    chmod u+w .
10364    $rm conftest* out/*
10365    rmdir out
10366    cd ..
10367    rmdir conftest
10368    $rm conftest*
10369
10370 fi
10371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10373
10374
10375 hard_links="nottested"
10376 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10377   # do not overwrite the value of need_locks provided by the user
10378   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10380   hard_links=yes
10381   $rm conftest*
10382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10383   touch conftest.a
10384   ln conftest.a conftest.b 2>&5 || hard_links=no
10385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10386   echo "$as_me:$LINENO: result: $hard_links" >&5
10387 echo "${ECHO_T}$hard_links" >&6
10388   if test "$hard_links" = no; then
10389     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10391     need_locks=warn
10392   fi
10393 else
10394   need_locks=no
10395 fi
10396
10397 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10399
10400   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10401   case $host_os in
10402   aix4* | aix5*)
10403     # If we're using GNU nm, then we don't want the "-C" option.
10404     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10405     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10406       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'
10407     else
10408       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'
10409     fi
10410     ;;
10411   pw32*)
10412     export_symbols_cmds_CXX="$ltdll_cmds"
10413   ;;
10414   cygwin* | mingw*)
10415     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10416   ;;
10417   *)
10418     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10419   ;;
10420   esac
10421
10422 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10423 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10424 test "$ld_shlibs_CXX" = no && can_build_shared=no
10425
10426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10427 if test "$GCC" = yes; then
10428   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10429 fi
10430
10431 #
10432 # Do we need to explicitly link libc?
10433 #
10434 case "x$archive_cmds_need_lc_CXX" in
10435 x|xyes)
10436   # Assume -lc should be added
10437   archive_cmds_need_lc_CXX=yes
10438
10439   if test "$enable_shared" = yes && test "$GCC" = yes; then
10440     case $archive_cmds_CXX in
10441     *'~'*)
10442       # FIXME: we may have to deal with multi-command sequences.
10443       ;;
10444     '$CC '*)
10445       # Test whether the compiler implicitly links with -lc since on some
10446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10447       # to ld, don't add -lc before -lgcc.
10448       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10450       $rm conftest*
10451       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10452
10453       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454   (eval $ac_compile) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } 2>conftest.err; then
10458         soname=conftest
10459         lib=conftest
10460         libobjs=conftest.$ac_objext
10461         deplibs=
10462         wl=$lt_prog_compiler_wl_CXX
10463         compiler_flags=-v
10464         linker_flags=-v
10465         verstring=
10466         output_objdir=.
10467         libname=conftest
10468         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10469         allow_undefined_flag_CXX=
10470         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10471   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }
10475         then
10476           archive_cmds_need_lc_CXX=no
10477         else
10478           archive_cmds_need_lc_CXX=yes
10479         fi
10480         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10481       else
10482         cat conftest.err 1>&5
10483       fi
10484       $rm conftest*
10485       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10486 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10487       ;;
10488     esac
10489   fi
10490   ;;
10491 esac
10492
10493 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10494 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10495 hardcode_action_CXX=
10496 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10497    test -n "$runpath_var CXX" || \
10498    test "X$hardcode_automatic_CXX"="Xyes" ; then
10499
10500   # We can hardcode non-existant directories.
10501   if test "$hardcode_direct_CXX" != no &&
10502      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10503      # have to relink, otherwise we might link with an installed library
10504      # when we should be linking with a yet-to-be-installed one
10505      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10506      test "$hardcode_minus_L_CXX" != no; then
10507     # Linking always hardcodes the temporary library directory.
10508     hardcode_action_CXX=relink
10509   else
10510     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10511     hardcode_action_CXX=immediate
10512   fi
10513 else
10514   # We cannot hardcode anything, or else we can only hardcode existing
10515   # directories.
10516   hardcode_action_CXX=unsupported
10517 fi
10518 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10519 echo "${ECHO_T}$hardcode_action_CXX" >&6
10520
10521 if test "$hardcode_action_CXX" = relink; then
10522   # Fast installation is not supported
10523   enable_fast_install=no
10524 elif test "$shlibpath_overrides_runpath" = yes ||
10525      test "$enable_shared" = no; then
10526   # Fast installation is not necessary
10527   enable_fast_install=needless
10528 fi
10529
10530 striplib=
10531 old_striplib=
10532 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10533 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10534 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10535   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10536   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10537   echo "$as_me:$LINENO: result: yes" >&5
10538 echo "${ECHO_T}yes" >&6
10539 else
10540 # FIXME - insert some real tests, host_os isn't really good enough
10541   case $host_os in
10542    darwin*)
10543        if test -n "$STRIP" ; then
10544          striplib="$STRIP -x"
10545          echo "$as_me:$LINENO: result: yes" >&5
10546 echo "${ECHO_T}yes" >&6
10547        else
10548   echo "$as_me:$LINENO: result: no" >&5
10549 echo "${ECHO_T}no" >&6
10550 fi
10551        ;;
10552    *)
10553   echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10555     ;;
10556   esac
10557 fi
10558
10559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10561 library_names_spec=
10562 libname_spec='lib$name'
10563 soname_spec=
10564 shrext=".so"
10565 postinstall_cmds=
10566 postuninstall_cmds=
10567 finish_cmds=
10568 finish_eval=
10569 shlibpath_var=
10570 shlibpath_overrides_runpath=unknown
10571 version_type=none
10572 dynamic_linker="$host_os ld.so"
10573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10574 if test "$GCC" = yes; then
10575   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10576   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10577     # if the path contains ";" then we assume it to be the separator
10578     # otherwise default to the standard path separator (i.e. ":") - it is
10579     # assumed that no part of a normal pathname contains ";" but that should
10580     # okay in the real world where ";" in dirpaths is itself problematic.
10581     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10582   else
10583     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10584   fi
10585 else
10586   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10587 fi
10588 need_lib_prefix=unknown
10589 hardcode_into_libs=no
10590
10591 # when you set need_version to no, make sure it does not cause -set_version
10592 # flags to be left without arguments
10593 need_version=unknown
10594
10595 case $host_os in
10596 aix3*)
10597   version_type=linux
10598   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10599   shlibpath_var=LIBPATH
10600
10601   # AIX 3 has no versioning support, so we append a major version to the name.
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   ;;
10604
10605 aix4* | aix5*)
10606   version_type=linux
10607   need_lib_prefix=no
10608   need_version=no
10609   hardcode_into_libs=yes
10610   if test "$host_cpu" = ia64; then
10611     # AIX 5 supports IA64
10612     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10613     shlibpath_var=LD_LIBRARY_PATH
10614   else
10615     # With GCC up to 2.95.x, collect2 would create an import file
10616     # for dependence libraries.  The import file would start with
10617     # the line `#! .'.  This would cause the generated library to
10618     # depend on `.', always an invalid library.  This was fixed in
10619     # development snapshots of GCC prior to 3.0.
10620     case $host_os in
10621       aix4 | aix4.[01] | aix4.[01].*)
10622       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10623            echo ' yes '
10624            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10625         :
10626       else
10627         can_build_shared=no
10628       fi
10629       ;;
10630     esac
10631     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10632     # soname into executable. Probably we can add versioning support to
10633     # collect2, so additional links can be useful in future.
10634     if test "$aix_use_runtimelinking" = yes; then
10635       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10636       # instead of lib<name>.a to let people know that these are not
10637       # typical AIX shared libraries.
10638       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639     else
10640       # We preserve .a as extension for shared libraries through AIX4.2
10641       # and later when we are not doing run time linking.
10642       library_names_spec='${libname}${release}.a $libname.a'
10643       soname_spec='${libname}${release}${shared_ext}$major'
10644     fi
10645     shlibpath_var=LIBPATH
10646   fi
10647   ;;
10648
10649 amigaos*)
10650   library_names_spec='$libname.ixlibrary $libname.a'
10651   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10652   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'
10653   ;;
10654
10655 beos*)
10656   library_names_spec='${libname}${shared_ext}'
10657   dynamic_linker="$host_os ld.so"
10658   shlibpath_var=LIBRARY_PATH
10659   ;;
10660
10661 bsdi4*)
10662   version_type=linux
10663   need_version=no
10664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665   soname_spec='${libname}${release}${shared_ext}$major'
10666   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10667   shlibpath_var=LD_LIBRARY_PATH
10668   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10669   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10670   # the default ld.so.conf also contains /usr/contrib/lib and
10671   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10672   # libtool to hard-code these into programs
10673   ;;
10674
10675 cygwin* | mingw* | pw32*)
10676   version_type=windows
10677   shrext=".dll"
10678   need_version=no
10679   need_lib_prefix=no
10680
10681   case $GCC,$host_os in
10682   yes,cygwin* | yes,mingw* | yes,pw32*)
10683     library_names_spec='$libname.dll.a'
10684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10685     postinstall_cmds='base_file=`basename \${file}`~
10686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10687       dldir=$destdir/`dirname \$dlpath`~
10688       test -d \$dldir || mkdir -p \$dldir~
10689       $install_prog $dir/$dlname \$dldir/$dlname'
10690     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10691       dlpath=$dir/\$dldll~
10692        $rm \$dlpath'
10693     shlibpath_overrides_runpath=yes
10694
10695     case $host_os in
10696     cygwin*)
10697       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10698       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10700       ;;
10701     mingw*)
10702       # MinGW DLLs use traditional 'lib' prefix
10703       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10704       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10705       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10706         # It is most probably a Windows format PATH printed by
10707         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10708         # path with ; separators, and with drive letters. We can handle the
10709         # drive letters (cygwin fileutils understands them), so leave them,
10710         # especially as we might pass files found there to a mingw objdump,
10711         # which wouldn't understand a cygwinified path. Ahh.
10712         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713       else
10714         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10715       fi
10716       ;;
10717     pw32*)
10718       # pw32 DLLs use 'pw' prefix rather than 'lib'
10719       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10720       ;;
10721     esac
10722     ;;
10723
10724   *)
10725     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10726     ;;
10727   esac
10728   dynamic_linker='Win32 ld.exe'
10729   # FIXME: first we should search . and the directory the executable is in
10730   shlibpath_var=PATH
10731   ;;
10732
10733 darwin* | rhapsody*)
10734   dynamic_linker="$host_os dyld"
10735   version_type=darwin
10736   need_lib_prefix=no
10737   need_version=no
10738   # FIXME: Relying on posixy $() will cause problems for
10739   #        cross-compilation, but unfortunately the echo tests do not
10740   #        yet detect zsh echo's removal of \ escapes.
10741   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10742   soname_spec='${libname}${release}${major}$shared_ext'
10743   shlibpath_overrides_runpath=yes
10744   shlibpath_var=DYLD_LIBRARY_PATH
10745   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10746   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10747   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10748   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"`
10749   fi
10750   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10751   ;;
10752
10753 dgux*)
10754   version_type=linux
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   ;;
10761
10762 freebsd1*)
10763   dynamic_linker=no
10764   ;;
10765
10766 freebsd*)
10767   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10768   version_type=freebsd-$objformat
10769   case $version_type in
10770     freebsd-elf*)
10771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10772       need_version=no
10773       need_lib_prefix=no
10774       ;;
10775     freebsd-*)
10776       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10777       need_version=yes
10778       ;;
10779   esac
10780   shlibpath_var=LD_LIBRARY_PATH
10781   case $host_os in
10782   freebsd2*)
10783     shlibpath_overrides_runpath=yes
10784     ;;
10785   freebsd3.01* | freebsdelf3.01*)
10786     shlibpath_overrides_runpath=yes
10787     hardcode_into_libs=yes
10788     ;;
10789   *) # from 3.2 on
10790     shlibpath_overrides_runpath=no
10791     hardcode_into_libs=yes
10792     ;;
10793   esac
10794   ;;
10795
10796 gnu*)
10797   version_type=linux
10798   need_lib_prefix=no
10799   need_version=no
10800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10801   soname_spec='${libname}${release}${shared_ext}$major'
10802   shlibpath_var=LD_LIBRARY_PATH
10803   hardcode_into_libs=yes
10804   ;;
10805
10806 hpux9* | hpux10* | hpux11*)
10807   # Give a soname corresponding to the major version so that dld.sl refuses to
10808   # link against other versions.
10809   version_type=sunos
10810   need_lib_prefix=no
10811   need_version=no
10812   case "$host_cpu" in
10813   ia64*)
10814     shrext='.so'
10815     hardcode_into_libs=yes
10816     dynamic_linker="$host_os dld.so"
10817     shlibpath_var=LD_LIBRARY_PATH
10818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820     soname_spec='${libname}${release}${shared_ext}$major'
10821     if test "X$HPUX_IA64_MODE" = X32; then
10822       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10823     else
10824       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10825     fi
10826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10827     ;;
10828    hppa*64*)
10829      shrext='.sl'
10830      hardcode_into_libs=yes
10831      dynamic_linker="$host_os dld.sl"
10832      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10833      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835      soname_spec='${libname}${release}${shared_ext}$major'
10836      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10837      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10838      ;;
10839    *)
10840     shrext='.sl'
10841     dynamic_linker="$host_os dld.sl"
10842     shlibpath_var=SHLIB_PATH
10843     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845     soname_spec='${libname}${release}${shared_ext}$major'
10846     ;;
10847   esac
10848   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10849   postinstall_cmds='chmod 555 $lib'
10850   ;;
10851
10852 irix5* | irix6* | nonstopux*)
10853   case $host_os in
10854     nonstopux*) version_type=nonstopux ;;
10855     *)
10856         if test "$lt_cv_prog_gnu_ld" = yes; then
10857                 version_type=linux
10858         else
10859                 version_type=irix
10860         fi ;;
10861   esac
10862   need_lib_prefix=no
10863   need_version=no
10864   soname_spec='${libname}${release}${shared_ext}$major'
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10866   case $host_os in
10867   irix5* | nonstopux*)
10868     libsuff= shlibsuff=
10869     ;;
10870   *)
10871     case $LD in # libtool.m4 will add one of these switches to LD
10872     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10873       libsuff= shlibsuff= libmagic=32-bit;;
10874     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10875       libsuff=32 shlibsuff=N32 libmagic=N32;;
10876     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10877       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10878     *) libsuff= shlibsuff= libmagic=never-match;;
10879     esac
10880     ;;
10881   esac
10882   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10883   shlibpath_overrides_runpath=no
10884   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10885   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10886   hardcode_into_libs=yes
10887   ;;
10888
10889 # No shared lib support for Linux oldld, aout, or coff.
10890 linux*oldld* | linux*aout* | linux*coff*)
10891   dynamic_linker=no
10892   ;;
10893
10894 # This must be Linux ELF.
10895 linux*)
10896   version_type=linux
10897   need_lib_prefix=no
10898   need_version=no
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900   soname_spec='${libname}${release}${shared_ext}$major'
10901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10902   shlibpath_var=LD_LIBRARY_PATH
10903   shlibpath_overrides_runpath=no
10904   # This implies no fast_install, which is unacceptable.
10905   # Some rework will be needed to allow for fast_install
10906   # before this can be enabled.
10907   hardcode_into_libs=yes
10908
10909   # We used to test for /lib/ld.so.1 and disable shared libraries on
10910   # powerpc, because MkLinux only supported shared libraries with the
10911   # GNU dynamic linker.  Since this was broken with cross compilers,
10912   # most powerpc-linux boxes support dynamic linking these days and
10913   # people can always --disable-shared, the test was removed, and we
10914   # assume the GNU/Linux dynamic linker is in use.
10915   dynamic_linker='GNU/Linux ld.so'
10916   ;;
10917
10918 netbsd*)
10919   version_type=sunos
10920   need_lib_prefix=no
10921   need_version=no
10922   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925     dynamic_linker='NetBSD (a.out) ld.so'
10926   else
10927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10928     soname_spec='${libname}${release}${shared_ext}$major'
10929     dynamic_linker='NetBSD ld.elf_so'
10930   fi
10931   shlibpath_var=LD_LIBRARY_PATH
10932   shlibpath_overrides_runpath=yes
10933   hardcode_into_libs=yes
10934   ;;
10935
10936 newsos6)
10937   version_type=linux
10938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   shlibpath_overrides_runpath=yes
10941   ;;
10942
10943 nto-qnx)
10944   version_type=linux
10945   need_lib_prefix=no
10946   need_version=no
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   shlibpath_var=LD_LIBRARY_PATH
10950   shlibpath_overrides_runpath=yes
10951   ;;
10952
10953 openbsd*)
10954   version_type=sunos
10955   need_lib_prefix=no
10956   need_version=no
10957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10958   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10959   shlibpath_var=LD_LIBRARY_PATH
10960   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10961     case $host_os in
10962       openbsd2.[89] | openbsd2.[89].*)
10963         shlibpath_overrides_runpath=no
10964         ;;
10965       *)
10966         shlibpath_overrides_runpath=yes
10967         ;;
10968       esac
10969   else
10970     shlibpath_overrides_runpath=yes
10971   fi
10972   ;;
10973
10974 os2*)
10975   libname_spec='$name'
10976   shrext=".dll"
10977   need_lib_prefix=no
10978   library_names_spec='$libname${shared_ext} $libname.a'
10979   dynamic_linker='OS/2 ld.exe'
10980   shlibpath_var=LIBPATH
10981   ;;
10982
10983 osf3* | osf4* | osf5*)
10984   version_type=osf
10985   need_lib_prefix=no
10986   need_version=no
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989   shlibpath_var=LD_LIBRARY_PATH
10990   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10991   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10992   ;;
10993
10994 sco3.2v5*)
10995   version_type=osf
10996   soname_spec='${libname}${release}${shared_ext}$major'
10997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998   shlibpath_var=LD_LIBRARY_PATH
10999   ;;
11000
11001 solaris*)
11002   version_type=linux
11003   need_lib_prefix=no
11004   need_version=no
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   shlibpath_var=LD_LIBRARY_PATH
11008   shlibpath_overrides_runpath=yes
11009   hardcode_into_libs=yes
11010   # ldd complains unless libraries are executable
11011   postinstall_cmds='chmod +x $lib'
11012   ;;
11013
11014 sunos4*)
11015   version_type=sunos
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11017   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   shlibpath_overrides_runpath=yes
11020   if test "$with_gnu_ld" = yes; then
11021     need_lib_prefix=no
11022   fi
11023   need_version=yes
11024   ;;
11025
11026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11027   version_type=linux
11028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029   soname_spec='${libname}${release}${shared_ext}$major'
11030   shlibpath_var=LD_LIBRARY_PATH
11031   case $host_vendor in
11032     sni)
11033       shlibpath_overrides_runpath=no
11034       need_lib_prefix=no
11035       export_dynamic_flag_spec='${wl}-Blargedynsym'
11036       runpath_var=LD_RUN_PATH
11037       ;;
11038     siemens)
11039       need_lib_prefix=no
11040       ;;
11041     motorola)
11042       need_lib_prefix=no
11043       need_version=no
11044       shlibpath_overrides_runpath=no
11045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11046       ;;
11047   esac
11048   ;;
11049
11050 sysv4*MP*)
11051   if test -d /usr/nec ;then
11052     version_type=linux
11053     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11054     soname_spec='$libname${shared_ext}.$major'
11055     shlibpath_var=LD_LIBRARY_PATH
11056   fi
11057   ;;
11058
11059 uts4*)
11060   version_type=linux
11061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11062   soname_spec='${libname}${release}${shared_ext}$major'
11063   shlibpath_var=LD_LIBRARY_PATH
11064   ;;
11065
11066 *)
11067   dynamic_linker=no
11068   ;;
11069 esac
11070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11071 echo "${ECHO_T}$dynamic_linker" >&6
11072 test "$dynamic_linker" = no && can_build_shared=no
11073
11074 if test "x$enable_dlopen" != xyes; then
11075   enable_dlopen=unknown
11076   enable_dlopen_self=unknown
11077   enable_dlopen_self_static=unknown
11078 else
11079   lt_cv_dlopen=no
11080   lt_cv_dlopen_libs=
11081
11082   case $host_os in
11083   beos*)
11084     lt_cv_dlopen="load_add_on"
11085     lt_cv_dlopen_libs=
11086     lt_cv_dlopen_self=yes
11087     ;;
11088
11089   mingw* | pw32*)
11090     lt_cv_dlopen="LoadLibrary"
11091     lt_cv_dlopen_libs=
11092    ;;
11093
11094   cygwin*)
11095     lt_cv_dlopen="dlopen"
11096     lt_cv_dlopen_libs=
11097    ;;
11098
11099   darwin*)
11100   # if libdl is installed we need to link against it
11101     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11102 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   ac_check_lib_save_LIBS=$LIBS
11107 LIBS="-ldl  $LIBS"
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114
11115 /* Override any gcc2 internal prototype to avoid an error.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 /* We use char because int might match the return type of a gcc2
11120    builtin and then its argument prototype would still apply.  */
11121 char dlopen ();
11122 int
11123 main ()
11124 {
11125 dlopen ();
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } &&
11139          { ac_try='test -z "$ac_cxx_werror_flag"
11140                          || test ! -s conftest.err'
11141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142   (eval $ac_try) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; } &&
11146          { ac_try='test -s conftest$ac_exeext'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_cv_lib_dl_dlopen=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_cv_lib_dl_dlopen=no
11158 fi
11159 rm -f conftest.err conftest.$ac_objext \
11160       conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11162 fi
11163 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11164 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11165 if test $ac_cv_lib_dl_dlopen = yes; then
11166   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11167 else
11168
11169     lt_cv_dlopen="dyld"
11170     lt_cv_dlopen_libs=
11171     lt_cv_dlopen_self=yes
11172
11173 fi
11174
11175    ;;
11176
11177   *)
11178     echo "$as_me:$LINENO: checking for shl_load" >&5
11179 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11180 if test "${ac_cv_func_shl_load+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11191 #define shl_load innocuous_shl_load
11192
11193 /* System header to define __stub macros and hopefully few prototypes,
11194     which can conflict with char shl_load (); below.
11195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11196     <limits.h> exists even on freestanding compilers.  */
11197
11198 #ifdef __STDC__
11199 # include <limits.h>
11200 #else
11201 # include <assert.h>
11202 #endif
11203
11204 #undef shl_load
11205
11206 /* Override any gcc2 internal prototype to avoid an error.  */
11207 #ifdef __cplusplus
11208 extern "C"
11209 {
11210 #endif
11211 /* We use char because int might match the return type of a gcc2
11212    builtin and then its argument prototype would still apply.  */
11213 char shl_load ();
11214 /* The GNU C library defines this for functions which it implements
11215     to always fail with ENOSYS.  Some functions are actually named
11216     something starting with __ and the normal name is an alias.  */
11217 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11218 choke me
11219 #else
11220 char (*f) () = shl_load;
11221 #endif
11222 #ifdef __cplusplus
11223 }
11224 #endif
11225
11226 int
11227 main ()
11228 {
11229 return f != shl_load;
11230   ;
11231   return 0;
11232 }
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236   (eval $ac_link) 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -z "$ac_cxx_werror_flag"
11244                          || test ! -s conftest.err'
11245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246   (eval $ac_try) 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; } &&
11250          { ac_try='test -s conftest$ac_exeext'
11251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252   (eval $ac_try) 2>&5
11253   ac_status=$?
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); }; }; then
11256   ac_cv_func_shl_load=yes
11257 else
11258   echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_cv_func_shl_load=no
11262 fi
11263 rm -f conftest.err conftest.$ac_objext \
11264       conftest$ac_exeext conftest.$ac_ext
11265 fi
11266 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11267 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11268 if test $ac_cv_func_shl_load = yes; then
11269   lt_cv_dlopen="shl_load"
11270 else
11271   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11272 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldld  $LIBS"
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284
11285 /* Override any gcc2 internal prototype to avoid an error.  */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 /* We use char because int might match the return type of a gcc2
11290    builtin and then its argument prototype would still apply.  */
11291 char shl_load ();
11292 int
11293 main ()
11294 {
11295 shl_load ();
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302   (eval $ac_link) 2>conftest.er1
11303   ac_status=$?
11304   grep -v '^ *+' conftest.er1 >conftest.err
11305   rm -f conftest.er1
11306   cat conftest.err >&5
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); } &&
11309          { ac_try='test -z "$ac_cxx_werror_flag"
11310                          || test ! -s conftest.err'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; } &&
11316          { ac_try='test -s conftest$ac_exeext'
11317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318   (eval $ac_try) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_cv_lib_dld_shl_load=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_cv_lib_dld_shl_load=no
11328 fi
11329 rm -f conftest.err conftest.$ac_objext \
11330       conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11332 fi
11333 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11334 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11335 if test $ac_cv_lib_dld_shl_load = yes; then
11336   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11337 else
11338   echo "$as_me:$LINENO: checking for dlopen" >&5
11339 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11340 if test "${ac_cv_func_dlopen+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11351 #define dlopen innocuous_dlopen
11352
11353 /* System header to define __stub macros and hopefully few prototypes,
11354     which can conflict with char dlopen (); below.
11355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11356     <limits.h> exists even on freestanding compilers.  */
11357
11358 #ifdef __STDC__
11359 # include <limits.h>
11360 #else
11361 # include <assert.h>
11362 #endif
11363
11364 #undef dlopen
11365
11366 /* Override any gcc2 internal prototype to avoid an error.  */
11367 #ifdef __cplusplus
11368 extern "C"
11369 {
11370 #endif
11371 /* We use char because int might match the return type of a gcc2
11372    builtin and then its argument prototype would still apply.  */
11373 char dlopen ();
11374 /* The GNU C library defines this for functions which it implements
11375     to always fail with ENOSYS.  Some functions are actually named
11376     something starting with __ and the normal name is an alias.  */
11377 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11378 choke me
11379 #else
11380 char (*f) () = dlopen;
11381 #endif
11382 #ifdef __cplusplus
11383 }
11384 #endif
11385
11386 int
11387 main ()
11388 {
11389 return f != dlopen;
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396   (eval $ac_link) 2>conftest.er1
11397   ac_status=$?
11398   grep -v '^ *+' conftest.er1 >conftest.err
11399   rm -f conftest.er1
11400   cat conftest.err >&5
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); } &&
11403          { ac_try='test -z "$ac_cxx_werror_flag"
11404                          || test ! -s conftest.err'
11405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406   (eval $ac_try) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; } &&
11410          { ac_try='test -s conftest$ac_exeext'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; }; then
11416   ac_cv_func_dlopen=yes
11417 else
11418   echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_cv_func_dlopen=no
11422 fi
11423 rm -f conftest.err conftest.$ac_objext \
11424       conftest$ac_exeext conftest.$ac_ext
11425 fi
11426 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11427 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11428 if test $ac_cv_func_dlopen = yes; then
11429   lt_cv_dlopen="dlopen"
11430 else
11431   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-ldl  $LIBS"
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444
11445 /* Override any gcc2 internal prototype to avoid an error.  */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 /* We use char because int might match the return type of a gcc2
11450    builtin and then its argument prototype would still apply.  */
11451 char dlopen ();
11452 int
11453 main ()
11454 {
11455 dlopen ();
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462   (eval $ac_link) 2>conftest.er1
11463   ac_status=$?
11464   grep -v '^ *+' conftest.er1 >conftest.err
11465   rm -f conftest.er1
11466   cat conftest.err >&5
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); } &&
11469          { ac_try='test -z "$ac_cxx_werror_flag"
11470                          || test ! -s conftest.err'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; } &&
11476          { ac_try='test -s conftest$ac_exeext'
11477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478   (eval $ac_try) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; }; then
11482   ac_cv_lib_dl_dlopen=yes
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 ac_cv_lib_dl_dlopen=no
11488 fi
11489 rm -f conftest.err conftest.$ac_objext \
11490       conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11494 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11495 if test $ac_cv_lib_dl_dlopen = yes; then
11496   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497 else
11498   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11499 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11500 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-lsvld  $LIBS"
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511
11512 /* Override any gcc2 internal prototype to avoid an error.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 /* We use char because int might match the return type of a gcc2
11517    builtin and then its argument prototype would still apply.  */
11518 char dlopen ();
11519 int
11520 main ()
11521 {
11522 dlopen ();
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11529   (eval $ac_link) 2>conftest.er1
11530   ac_status=$?
11531   grep -v '^ *+' conftest.er1 >conftest.err
11532   rm -f conftest.er1
11533   cat conftest.err >&5
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } &&
11536          { ac_try='test -z "$ac_cxx_werror_flag"
11537                          || test ! -s conftest.err'
11538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539   (eval $ac_try) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; } &&
11543          { ac_try='test -s conftest$ac_exeext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   ac_cv_lib_svld_dlopen=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 ac_cv_lib_svld_dlopen=no
11555 fi
11556 rm -f conftest.err conftest.$ac_objext \
11557       conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11559 fi
11560 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11561 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11562 if test $ac_cv_lib_svld_dlopen = yes; then
11563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11564 else
11565   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11566 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11567 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-ldld  $LIBS"
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h.  */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h.  */
11578
11579 /* Override any gcc2 internal prototype to avoid an error.  */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 /* We use char because int might match the return type of a gcc2
11584    builtin and then its argument prototype would still apply.  */
11585 char dld_link ();
11586 int
11587 main ()
11588 {
11589 dld_link ();
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext conftest$ac_exeext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596   (eval $ac_link) 2>conftest.er1
11597   ac_status=$?
11598   grep -v '^ *+' conftest.er1 >conftest.err
11599   rm -f conftest.er1
11600   cat conftest.err >&5
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } &&
11603          { ac_try='test -z "$ac_cxx_werror_flag"
11604                          || test ! -s conftest.err'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; } &&
11610          { ac_try='test -s conftest$ac_exeext'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_cv_lib_dld_dld_link=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 ac_cv_lib_dld_dld_link=no
11622 fi
11623 rm -f conftest.err conftest.$ac_objext \
11624       conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11626 fi
11627 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11628 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11629 if test $ac_cv_lib_dld_dld_link = yes; then
11630   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11631 fi
11632
11633
11634 fi
11635
11636
11637 fi
11638
11639
11640 fi
11641
11642
11643 fi
11644
11645
11646 fi
11647
11648     ;;
11649   esac
11650
11651   if test "x$lt_cv_dlopen" != xno; then
11652     enable_dlopen=yes
11653   else
11654     enable_dlopen=no
11655   fi
11656
11657   case $lt_cv_dlopen in
11658   dlopen)
11659     save_CPPFLAGS="$CPPFLAGS"
11660     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11661
11662     save_LDFLAGS="$LDFLAGS"
11663     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11664
11665     save_LIBS="$LIBS"
11666     LIBS="$lt_cv_dlopen_libs $LIBS"
11667
11668     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11669 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11670 if test "${lt_cv_dlopen_self+set}" = set; then
11671   echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673           if test "$cross_compiling" = yes; then :
11674   lt_cv_dlopen_self=cross
11675 else
11676   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11677   lt_status=$lt_dlunknown
11678   cat > conftest.$ac_ext <<EOF
11679 #line 11679 "configure"
11680 #include "confdefs.h"
11681
11682 #if HAVE_DLFCN_H
11683 #include <dlfcn.h>
11684 #endif
11685
11686 #include <stdio.h>
11687
11688 #ifdef RTLD_GLOBAL
11689 #  define LT_DLGLOBAL           RTLD_GLOBAL
11690 #else
11691 #  ifdef DL_GLOBAL
11692 #    define LT_DLGLOBAL         DL_GLOBAL
11693 #  else
11694 #    define LT_DLGLOBAL         0
11695 #  endif
11696 #endif
11697
11698 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11699    find out it does not work in some platform. */
11700 #ifndef LT_DLLAZY_OR_NOW
11701 #  ifdef RTLD_LAZY
11702 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11703 #  else
11704 #    ifdef DL_LAZY
11705 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11706 #    else
11707 #      ifdef RTLD_NOW
11708 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11709 #      else
11710 #        ifdef DL_NOW
11711 #          define LT_DLLAZY_OR_NOW      DL_NOW
11712 #        else
11713 #          define LT_DLLAZY_OR_NOW      0
11714 #        endif
11715 #      endif
11716 #    endif
11717 #  endif
11718 #endif
11719
11720 #ifdef __cplusplus
11721 extern "C" void exit (int);
11722 #endif
11723
11724 void fnord() { int i=42;}
11725 int main ()
11726 {
11727   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11728   int status = $lt_dlunknown;
11729
11730   if (self)
11731     {
11732       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11733       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734       /* dlclose (self); */
11735     }
11736
11737     exit (status);
11738 }
11739 EOF
11740   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11741   (eval $ac_link) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11745     (./conftest; exit; ) 2>/dev/null
11746     lt_status=$?
11747     case x$lt_status in
11748       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11749       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11750       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11751     esac
11752   else :
11753     # compilation failed
11754     lt_cv_dlopen_self=no
11755   fi
11756 fi
11757 rm -fr conftest*
11758
11759
11760 fi
11761 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11762 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11763
11764     if test "x$lt_cv_dlopen_self" = xyes; then
11765       LDFLAGS="$LDFLAGS $link_static_flag"
11766       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11767 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11768 if test "${lt_cv_dlopen_self_static+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771           if test "$cross_compiling" = yes; then :
11772   lt_cv_dlopen_self_static=cross
11773 else
11774   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11775   lt_status=$lt_dlunknown
11776   cat > conftest.$ac_ext <<EOF
11777 #line 11777 "configure"
11778 #include "confdefs.h"
11779
11780 #if HAVE_DLFCN_H
11781 #include <dlfcn.h>
11782 #endif
11783
11784 #include <stdio.h>
11785
11786 #ifdef RTLD_GLOBAL
11787 #  define LT_DLGLOBAL           RTLD_GLOBAL
11788 #else
11789 #  ifdef DL_GLOBAL
11790 #    define LT_DLGLOBAL         DL_GLOBAL
11791 #  else
11792 #    define LT_DLGLOBAL         0
11793 #  endif
11794 #endif
11795
11796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11797    find out it does not work in some platform. */
11798 #ifndef LT_DLLAZY_OR_NOW
11799 #  ifdef RTLD_LAZY
11800 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11801 #  else
11802 #    ifdef DL_LAZY
11803 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11804 #    else
11805 #      ifdef RTLD_NOW
11806 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11807 #      else
11808 #        ifdef DL_NOW
11809 #          define LT_DLLAZY_OR_NOW      DL_NOW
11810 #        else
11811 #          define LT_DLLAZY_OR_NOW      0
11812 #        endif
11813 #      endif
11814 #    endif
11815 #  endif
11816 #endif
11817
11818 #ifdef __cplusplus
11819 extern "C" void exit (int);
11820 #endif
11821
11822 void fnord() { int i=42;}
11823 int main ()
11824 {
11825   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11826   int status = $lt_dlunknown;
11827
11828   if (self)
11829     {
11830       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11831       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11832       /* dlclose (self); */
11833     }
11834
11835     exit (status);
11836 }
11837 EOF
11838   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11839   (eval $ac_link) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11843     (./conftest; exit; ) 2>/dev/null
11844     lt_status=$?
11845     case x$lt_status in
11846       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11847       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11848       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11849     esac
11850   else :
11851     # compilation failed
11852     lt_cv_dlopen_self_static=no
11853   fi
11854 fi
11855 rm -fr conftest*
11856
11857
11858 fi
11859 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11860 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11861     fi
11862
11863     CPPFLAGS="$save_CPPFLAGS"
11864     LDFLAGS="$save_LDFLAGS"
11865     LIBS="$save_LIBS"
11866     ;;
11867   esac
11868
11869   case $lt_cv_dlopen_self in
11870   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11871   *) enable_dlopen_self=unknown ;;
11872   esac
11873
11874   case $lt_cv_dlopen_self_static in
11875   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11876   *) enable_dlopen_self_static=unknown ;;
11877   esac
11878 fi
11879
11880
11881 # The else clause should only fire when bootstrapping the
11882 # libtool distribution, otherwise you forgot to ship ltmain.sh
11883 # with your package, and you will get complaints that there are
11884 # no rules to generate ltmain.sh.
11885 if test -f "$ltmain"; then
11886   # See if we are running on zsh, and set the options which allow our commands through
11887   # without removal of \ escapes.
11888   if test -n "${ZSH_VERSION+set}" ; then
11889     setopt NO_GLOB_SUBST
11890   fi
11891   # Now quote all the things that may contain metacharacters while being
11892   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11893   # variables and quote the copies for generation of the libtool script.
11894   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11895     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11896     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11897     deplibs_check_method reload_flag reload_cmds need_locks \
11898     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11899     lt_cv_sys_global_symbol_to_c_name_address \
11900     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11901     old_postinstall_cmds old_postuninstall_cmds \
11902     compiler_CXX \
11903     CC_CXX \
11904     LD_CXX \
11905     lt_prog_compiler_wl_CXX \
11906     lt_prog_compiler_pic_CXX \
11907     lt_prog_compiler_static_CXX \
11908     lt_prog_compiler_no_builtin_flag_CXX \
11909     export_dynamic_flag_spec_CXX \
11910     thread_safe_flag_spec_CXX \
11911     whole_archive_flag_spec_CXX \
11912     enable_shared_with_static_runtimes_CXX \
11913     old_archive_cmds_CXX \
11914     old_archive_from_new_cmds_CXX \
11915     predep_objects_CXX \
11916     postdep_objects_CXX \
11917     predeps_CXX \
11918     postdeps_CXX \
11919     compiler_lib_search_path_CXX \
11920     archive_cmds_CXX \
11921     archive_expsym_cmds_CXX \
11922     postinstall_cmds_CXX \
11923     postuninstall_cmds_CXX \
11924     old_archive_from_expsyms_cmds_CXX \
11925     allow_undefined_flag_CXX \
11926     no_undefined_flag_CXX \
11927     export_symbols_cmds_CXX \
11928     hardcode_libdir_flag_spec_CXX \
11929     hardcode_libdir_flag_spec_ld_CXX \
11930     hardcode_libdir_separator_CXX \
11931     hardcode_automatic_CXX \
11932     module_cmds_CXX \
11933     module_expsym_cmds_CXX \
11934     lt_cv_prog_compiler_c_o_CXX \
11935     exclude_expsyms_CXX \
11936     include_expsyms_CXX; do
11937
11938     case $var in
11939     old_archive_cmds_CXX | \
11940     old_archive_from_new_cmds_CXX | \
11941     archive_cmds_CXX | \
11942     archive_expsym_cmds_CXX | \
11943     module_cmds_CXX | \
11944     module_expsym_cmds_CXX | \
11945     old_archive_from_expsyms_cmds_CXX | \
11946     export_symbols_cmds_CXX | \
11947     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11948     postinstall_cmds | postuninstall_cmds | \
11949     old_postinstall_cmds | old_postuninstall_cmds | \
11950     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11951       # Double-quote double-evaled strings.
11952       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11953       ;;
11954     *)
11955       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11956       ;;
11957     esac
11958   done
11959
11960   case $lt_echo in
11961   *'\$0 --fallback-echo"')
11962     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11963     ;;
11964   esac
11965
11966 cfgfile="$ofile"
11967
11968   cat <<__EOF__ >> "$cfgfile"
11969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11970
11971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11972
11973 # Shell to use when invoking shell scripts.
11974 SHELL=$lt_SHELL
11975
11976 # Whether or not to build shared libraries.
11977 build_libtool_libs=$enable_shared
11978
11979 # Whether or not to build static libraries.
11980 build_old_libs=$enable_static
11981
11982 # Whether or not to add -lc for building shared libraries.
11983 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11984
11985 # Whether or not to disallow shared libs when runtime libs are static
11986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11987
11988 # Whether or not to optimize for fast installation.
11989 fast_install=$enable_fast_install
11990
11991 # The host system.
11992 host_alias=$host_alias
11993 host=$host
11994
11995 # An echo program that does not interpret backslashes.
11996 echo=$lt_echo
11997
11998 # The archiver.
11999 AR=$lt_AR
12000 AR_FLAGS=$lt_AR_FLAGS
12001
12002 # A C compiler.
12003 LTCC=$lt_LTCC
12004
12005 # A language-specific compiler.
12006 CC=$lt_compiler_CXX
12007
12008 # Is the compiler the GNU C compiler?
12009 with_gcc=$GCC_CXX
12010
12011 # An ERE matcher.
12012 EGREP=$lt_EGREP
12013
12014 # The linker used to build libraries.
12015 LD=$lt_LD_CXX
12016
12017 # Whether we need hard or soft links.
12018 LN_S=$lt_LN_S
12019
12020 # A BSD-compatible nm program.
12021 NM=$lt_NM
12022
12023 # A symbol stripping program
12024 STRIP=$STRIP
12025
12026 # Used to examine libraries when file_magic_cmd begins "file"
12027 MAGIC_CMD=$MAGIC_CMD
12028
12029 # Used on cygwin: DLL creation program.
12030 DLLTOOL="$DLLTOOL"
12031
12032 # Used on cygwin: object dumper.
12033 OBJDUMP="$OBJDUMP"
12034
12035 # Used on cygwin: assembler.
12036 AS="$AS"
12037
12038 # The name of the directory that contains temporary libtool files.
12039 objdir=$objdir
12040
12041 # How to create reloadable object files.
12042 reload_flag=$lt_reload_flag
12043 reload_cmds=$lt_reload_cmds
12044
12045 # How to pass a linker flag through the compiler.
12046 wl=$lt_lt_prog_compiler_wl_CXX
12047
12048 # Object file suffix (normally "o").
12049 objext="$ac_objext"
12050
12051 # Old archive suffix (normally "a").
12052 libext="$libext"
12053
12054 # Shared library suffix (normally ".so").
12055 shrext='$shrext'
12056
12057 # Executable file suffix (normally "").
12058 exeext="$exeext"
12059
12060 # Additional compiler flags for building library objects.
12061 pic_flag=$lt_lt_prog_compiler_pic_CXX
12062 pic_mode=$pic_mode
12063
12064 # What is the maximum length of a command?
12065 max_cmd_len=$lt_cv_sys_max_cmd_len
12066
12067 # Does compiler simultaneously support -c and -o options?
12068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12069
12070 # Must we lock files when doing compilation ?
12071 need_locks=$lt_need_locks
12072
12073 # Do we need the lib prefix for modules?
12074 need_lib_prefix=$need_lib_prefix
12075
12076 # Do we need a version for libraries?
12077 need_version=$need_version
12078
12079 # Whether dlopen is supported.
12080 dlopen_support=$enable_dlopen
12081
12082 # Whether dlopen of programs is supported.
12083 dlopen_self=$enable_dlopen_self
12084
12085 # Whether dlopen of statically linked programs is supported.
12086 dlopen_self_static=$enable_dlopen_self_static
12087
12088 # Compiler flag to prevent dynamic linking.
12089 link_static_flag=$lt_lt_prog_compiler_static_CXX
12090
12091 # Compiler flag to turn off builtin functions.
12092 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12093
12094 # Compiler flag to allow reflexive dlopens.
12095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12096
12097 # Compiler flag to generate shared objects directly from archives.
12098 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12099
12100 # Compiler flag to generate thread-safe objects.
12101 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12102
12103 # Library versioning type.
12104 version_type=$version_type
12105
12106 # Format of library name prefix.
12107 libname_spec=$lt_libname_spec
12108
12109 # List of archive names.  First name is the real one, the rest are links.
12110 # The last name is the one that the linker finds with -lNAME.
12111 library_names_spec=$lt_library_names_spec
12112
12113 # The coded name of the library, if different from the real name.
12114 soname_spec=$lt_soname_spec
12115
12116 # Commands used to build and install an old-style archive.
12117 RANLIB=$lt_RANLIB
12118 old_archive_cmds=$lt_old_archive_cmds_CXX
12119 old_postinstall_cmds=$lt_old_postinstall_cmds
12120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12121
12122 # Create an old-style archive from a shared archive.
12123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12124
12125 # Create a temporary old-style archive to link instead of a shared archive.
12126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12127
12128 # Commands used to build and install a shared archive.
12129 archive_cmds=$lt_archive_cmds_CXX
12130 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12131 postinstall_cmds=$lt_postinstall_cmds
12132 postuninstall_cmds=$lt_postuninstall_cmds
12133
12134 # Commands used to build a loadable module (assumed same as above if empty)
12135 module_cmds=$lt_module_cmds_CXX
12136 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12137
12138 # Commands to strip libraries.
12139 old_striplib=$lt_old_striplib
12140 striplib=$lt_striplib
12141
12142 # Dependencies to place before the objects being linked to create a
12143 # shared library.
12144 predep_objects=$lt_predep_objects_CXX
12145
12146 # Dependencies to place after the objects being linked to create a
12147 # shared library.
12148 postdep_objects=$lt_postdep_objects_CXX
12149
12150 # Dependencies to place before the objects being linked to create a
12151 # shared library.
12152 predeps=$lt_predeps_CXX
12153
12154 # Dependencies to place after the objects being linked to create a
12155 # shared library.
12156 postdeps=$lt_postdeps_CXX
12157
12158 # The library search path used internally by the compiler when linking
12159 # a shared library.
12160 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12161
12162 # Method to check whether dependent libraries are shared objects.
12163 deplibs_check_method=$lt_deplibs_check_method
12164
12165 # Command to use when deplibs_check_method == file_magic.
12166 file_magic_cmd=$lt_file_magic_cmd
12167
12168 # Flag that allows shared libraries with undefined symbols to be built.
12169 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12170
12171 # Flag that forces no undefined symbols.
12172 no_undefined_flag=$lt_no_undefined_flag_CXX
12173
12174 # Commands used to finish a libtool library installation in a directory.
12175 finish_cmds=$lt_finish_cmds
12176
12177 # Same as above, but a single script fragment to be evaled but not shown.
12178 finish_eval=$lt_finish_eval
12179
12180 # Take the output of nm and produce a listing of raw symbols and C names.
12181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12182
12183 # Transform the output of nm in a proper C declaration
12184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12185
12186 # Transform the output of nm in a C name address pair
12187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12188
12189 # This is the shared library runtime path variable.
12190 runpath_var=$runpath_var
12191
12192 # This is the shared library path variable.
12193 shlibpath_var=$shlibpath_var
12194
12195 # Is shlibpath searched before the hard-coded library search path?
12196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12197
12198 # How to hardcode a shared library path into an executable.
12199 hardcode_action=$hardcode_action_CXX
12200
12201 # Whether we should hardcode library paths into libraries.
12202 hardcode_into_libs=$hardcode_into_libs
12203
12204 # Flag to hardcode \$libdir into a binary during linking.
12205 # This must work even if \$libdir does not exist.
12206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12207
12208 # If ld is used when linking, flag to hardcode \$libdir into
12209 # a binary during linking. This must work even if \$libdir does
12210 # not exist.
12211 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12212
12213 # Whether we need a single -rpath flag with a separated argument.
12214 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12215
12216 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12217 # resulting binary.
12218 hardcode_direct=$hardcode_direct_CXX
12219
12220 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12221 # resulting binary.
12222 hardcode_minus_L=$hardcode_minus_L_CXX
12223
12224 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12225 # the resulting binary.
12226 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12227
12228 # Set to yes if building a shared library automatically hardcodes DIR into the library
12229 # and all subsequent libraries and executables linked against it.
12230 hardcode_automatic=$hardcode_automatic_CXX
12231
12232 # Variables whose values should be saved in libtool wrapper scripts and
12233 # restored at relink time.
12234 variables_saved_for_relink="$variables_saved_for_relink"
12235
12236 # Whether libtool must link a program against all its dependency libraries.
12237 link_all_deplibs=$link_all_deplibs_CXX
12238
12239 # Compile-time system search path for libraries
12240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12241
12242 # Run-time system search path for libraries
12243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12244
12245 # Fix the shell variable \$srcfile for the compiler.
12246 fix_srcfile_path="$fix_srcfile_path_CXX"
12247
12248 # Set to yes if exported symbols are required.
12249 always_export_symbols=$always_export_symbols_CXX
12250
12251 # The commands to list exported symbols.
12252 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12253
12254 # The commands to extract the exported symbol list from a shared archive.
12255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12256
12257 # Symbols that should not be listed in the preloaded symbols.
12258 exclude_expsyms=$lt_exclude_expsyms_CXX
12259
12260 # Symbols that must always be exported.
12261 include_expsyms=$lt_include_expsyms_CXX
12262
12263 # ### END LIBTOOL TAG CONFIG: $tagname
12264
12265 __EOF__
12266
12267
12268 else
12269   # If there is no Makefile yet, we rely on a make rule to execute
12270   # `config.status --recheck' to rerun these tests and create the
12271   # libtool script then.
12272   test -f Makefile && make "$ltmain"
12273 fi
12274
12275
12276 ac_ext=c
12277 ac_cpp='$CPP $CPPFLAGS'
12278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12281
12282 CC=$lt_save_CC
12283 LDCXX=$LD
12284 LD=$lt_save_LD
12285 GCC=$lt_save_GCC
12286 with_gnu_ldcxx=$with_gnu_ld
12287 with_gnu_ld=$lt_save_with_gnu_ld
12288 lt_cv_path_LDCXX=$lt_cv_path_LD
12289 lt_cv_path_LD=$lt_save_path_LD
12290 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12291 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12292
12293         else
12294           tagname=""
12295         fi
12296         ;;
12297
12298       F77)
12299         if test -n "$F77" && test "X$F77" != "Xno"; then
12300
12301 ac_ext=f
12302 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12303 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12305
12306
12307 archive_cmds_need_lc_F77=no
12308 allow_undefined_flag_F77=
12309 always_export_symbols_F77=no
12310 archive_expsym_cmds_F77=
12311 export_dynamic_flag_spec_F77=
12312 hardcode_direct_F77=no
12313 hardcode_libdir_flag_spec_F77=
12314 hardcode_libdir_flag_spec_ld_F77=
12315 hardcode_libdir_separator_F77=
12316 hardcode_minus_L_F77=no
12317 hardcode_automatic_F77=no
12318 module_cmds_F77=
12319 module_expsym_cmds_F77=
12320 link_all_deplibs_F77=unknown
12321 old_archive_cmds_F77=$old_archive_cmds
12322 no_undefined_flag_F77=
12323 whole_archive_flag_spec_F77=
12324 enable_shared_with_static_runtimes_F77=no
12325
12326 # Source file extension for f77 test sources.
12327 ac_ext=f
12328
12329 # Object file extension for compiled f77 test sources.
12330 objext=o
12331 objext_F77=$objext
12332
12333 # Code to be used in simple compile tests
12334 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12335
12336 # Code to be used in simple link tests
12337 lt_simple_link_test_code="      program t\n      end\n"
12338
12339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12340
12341 # If no C compiler was specified, use CC.
12342 LTCC=${LTCC-"$CC"}
12343
12344 # Allow CC to be a program name with arguments.
12345 compiler=$CC
12346
12347
12348 # Allow CC to be a program name with arguments.
12349 lt_save_CC="$CC"
12350 CC=${F77-"f77"}
12351 compiler=$CC
12352 compiler_F77=$CC
12353 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12354
12355 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12357 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12358 echo "${ECHO_T}$can_build_shared" >&6
12359
12360 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12362 test "$can_build_shared" = "no" && enable_shared=no
12363
12364 # On AIX, shared libraries and static libraries use the same namespace, and
12365 # are all built from PIC.
12366 case "$host_os" in
12367 aix3*)
12368   test "$enable_shared" = yes && enable_static=no
12369   if test -n "$RANLIB"; then
12370     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12371     postinstall_cmds='$RANLIB $lib'
12372   fi
12373   ;;
12374 aix4*)
12375   test "$enable_shared" = yes && enable_static=no
12376   ;;
12377 esac
12378 echo "$as_me:$LINENO: result: $enable_shared" >&5
12379 echo "${ECHO_T}$enable_shared" >&6
12380
12381 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12382 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12383 # Make sure either enable_shared or enable_static is yes.
12384 test "$enable_shared" = yes || enable_static=yes
12385 echo "$as_me:$LINENO: result: $enable_static" >&5
12386 echo "${ECHO_T}$enable_static" >&6
12387
12388 test "$ld_shlibs_F77" = no && can_build_shared=no
12389
12390 GCC_F77="$G77"
12391 LD_F77="$LD"
12392
12393 lt_prog_compiler_wl_F77=
12394 lt_prog_compiler_pic_F77=
12395 lt_prog_compiler_static_F77=
12396
12397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12399
12400   if test "$GCC" = yes; then
12401     lt_prog_compiler_wl_F77='-Wl,'
12402     lt_prog_compiler_static_F77='-static'
12403
12404     case $host_os in
12405       aix*)
12406       # All AIX code is PIC.
12407       if test "$host_cpu" = ia64; then
12408         # AIX 5 now supports IA64 processor
12409         lt_prog_compiler_static_F77='-Bstatic'
12410       fi
12411       ;;
12412
12413     amigaos*)
12414       # FIXME: we need at least 68020 code to build shared libraries, but
12415       # adding the `-m68020' flag to GCC prevents building anything better,
12416       # like `-m68040'.
12417       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12418       ;;
12419
12420     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12421       # PIC is the default for these OSes.
12422       ;;
12423
12424     mingw* | pw32* | os2*)
12425       # This hack is so that the source file can tell whether it is being
12426       # built for inclusion in a dll (and should export symbols for example).
12427       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12428       ;;
12429
12430     darwin* | rhapsody*)
12431       # PIC is the default on this platform
12432       # Common symbols not allowed in MH_DYLIB files
12433       lt_prog_compiler_pic_F77='-fno-common'
12434       ;;
12435
12436     msdosdjgpp*)
12437       # Just because we use GCC doesn't mean we suddenly get shared libraries
12438       # on systems that don't support them.
12439       lt_prog_compiler_can_build_shared_F77=no
12440       enable_shared=no
12441       ;;
12442
12443     sysv4*MP*)
12444       if test -d /usr/nec; then
12445         lt_prog_compiler_pic_F77=-Kconform_pic
12446       fi
12447       ;;
12448
12449     hpux*)
12450       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12451       # not for PA HP-UX.
12452       case "$host_cpu" in
12453       hppa*64*|ia64*)
12454         # +Z the default
12455         ;;
12456       *)
12457         lt_prog_compiler_pic_F77='-fPIC'
12458         ;;
12459       esac
12460       ;;
12461
12462     *)
12463       lt_prog_compiler_pic_F77='-fPIC'
12464       ;;
12465     esac
12466   else
12467     # PORTME Check for flag to pass linker flags through the system compiler.
12468     case $host_os in
12469     aix*)
12470       lt_prog_compiler_wl_F77='-Wl,'
12471       if test "$host_cpu" = ia64; then
12472         # AIX 5 now supports IA64 processor
12473         lt_prog_compiler_static_F77='-Bstatic'
12474       else
12475         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12476       fi
12477       ;;
12478
12479     mingw* | pw32* | os2*)
12480       # This hack is so that the source file can tell whether it is being
12481       # built for inclusion in a dll (and should export symbols for example).
12482       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12483       ;;
12484
12485     hpux9* | hpux10* | hpux11*)
12486       lt_prog_compiler_wl_F77='-Wl,'
12487       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12488       # not for PA HP-UX.
12489       case "$host_cpu" in
12490       hppa*64*|ia64*)
12491         # +Z the default
12492         ;;
12493       *)
12494         lt_prog_compiler_pic_F77='+Z'
12495         ;;
12496       esac
12497       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12498       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12499       ;;
12500
12501     irix5* | irix6* | nonstopux*)
12502       lt_prog_compiler_wl_F77='-Wl,'
12503       # PIC (with -KPIC) is the default.
12504       lt_prog_compiler_static_F77='-non_shared'
12505       ;;
12506
12507     newsos6)
12508       lt_prog_compiler_pic_F77='-KPIC'
12509       lt_prog_compiler_static_F77='-Bstatic'
12510       ;;
12511
12512     linux*)
12513       case $CC in
12514       icc|ecc)
12515         lt_prog_compiler_wl_F77='-Wl,'
12516         lt_prog_compiler_pic_F77='-KPIC'
12517         lt_prog_compiler_static_F77='-static'
12518         ;;
12519       ccc)
12520         lt_prog_compiler_wl_F77='-Wl,'
12521         # All Alpha code is PIC.
12522         lt_prog_compiler_static_F77='-non_shared'
12523         ;;
12524       esac
12525       ;;
12526
12527     osf3* | osf4* | osf5*)
12528       lt_prog_compiler_wl_F77='-Wl,'
12529       # All OSF/1 code is PIC.
12530       lt_prog_compiler_static_F77='-non_shared'
12531       ;;
12532
12533     sco3.2v5*)
12534       lt_prog_compiler_pic_F77='-Kpic'
12535       lt_prog_compiler_static_F77='-dn'
12536       ;;
12537
12538     solaris*)
12539       lt_prog_compiler_wl_F77='-Wl,'
12540       lt_prog_compiler_pic_F77='-KPIC'
12541       lt_prog_compiler_static_F77='-Bstatic'
12542       ;;
12543
12544     sunos4*)
12545       lt_prog_compiler_wl_F77='-Qoption ld '
12546       lt_prog_compiler_pic_F77='-PIC'
12547       lt_prog_compiler_static_F77='-Bstatic'
12548       ;;
12549
12550     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12551       lt_prog_compiler_wl_F77='-Wl,'
12552       lt_prog_compiler_pic_F77='-KPIC'
12553       lt_prog_compiler_static_F77='-Bstatic'
12554       ;;
12555
12556     sysv4*MP*)
12557       if test -d /usr/nec ;then
12558         lt_prog_compiler_pic_F77='-Kconform_pic'
12559         lt_prog_compiler_static_F77='-Bstatic'
12560       fi
12561       ;;
12562
12563     uts4*)
12564       lt_prog_compiler_pic_F77='-pic'
12565       lt_prog_compiler_static_F77='-Bstatic'
12566       ;;
12567
12568     *)
12569       lt_prog_compiler_can_build_shared_F77=no
12570       ;;
12571     esac
12572   fi
12573
12574 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12575 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12576
12577 #
12578 # Check to make sure the PIC flag actually works.
12579 #
12580 if test -n "$lt_prog_compiler_pic_F77"; then
12581   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12583 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   lt_prog_compiler_pic_works_F77=no
12587   ac_outfile=conftest.$ac_objext
12588    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12589    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12590    # Insert the option either (1) after the last *FLAGS variable, or
12591    # (2) before a word containing "conftest.", or (3) at the end.
12592    # Note that $ac_compile itself does not contain backslashes and begins
12593    # with a dollar sign (not a hyphen), so the echo should work correctly.
12594    # The option is referenced via a variable to avoid confusing sed.
12595    lt_compile=`echo "$ac_compile" | $SED \
12596    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12598    -e 's:$: $lt_compiler_flag:'`
12599    (eval echo "\"\$as_me:12599: $lt_compile\"" >&5)
12600    (eval "$lt_compile" 2>conftest.err)
12601    ac_status=$?
12602    cat conftest.err >&5
12603    echo "$as_me:12603: \$? = $ac_status" >&5
12604    if (exit $ac_status) && test -s "$ac_outfile"; then
12605      # The compiler can only warn and ignore the option if not recognized
12606      # So say no if there are warnings
12607      if test ! -s conftest.err; then
12608        lt_prog_compiler_pic_works_F77=yes
12609      fi
12610    fi
12611    $rm conftest*
12612
12613 fi
12614 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12615 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12616
12617 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12618     case $lt_prog_compiler_pic_F77 in
12619      "" | " "*) ;;
12620      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12621      esac
12622 else
12623     lt_prog_compiler_pic_F77=
12624      lt_prog_compiler_can_build_shared_F77=no
12625 fi
12626
12627 fi
12628 case "$host_os" in
12629   # For platforms which do not support PIC, -DPIC is meaningless:
12630   *djgpp*)
12631     lt_prog_compiler_pic_F77=
12632     ;;
12633   *)
12634     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12635     ;;
12636 esac
12637
12638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12640 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643   lt_cv_prog_compiler_c_o_F77=no
12644    $rm -r conftest 2>/dev/null
12645    mkdir conftest
12646    cd conftest
12647    mkdir out
12648    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12649
12650    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12651    # that will create temporary files in the current directory regardless of
12652    # the output directory.  Thus, making CWD read-only will cause this test
12653    # to fail, enabling locking or at least warning the user not to do parallel
12654    # builds.
12655    chmod -w .
12656
12657    lt_compiler_flag="-o out/conftest2.$ac_objext"
12658    # Insert the option either (1) after the last *FLAGS variable, or
12659    # (2) before a word containing "conftest.", or (3) at the end.
12660    # Note that $ac_compile itself does not contain backslashes and begins
12661    # with a dollar sign (not a hyphen), so the echo should work correctly.
12662    lt_compile=`echo "$ac_compile" | $SED \
12663    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665    -e 's:$: $lt_compiler_flag:'`
12666    (eval echo "\"\$as_me:12666: $lt_compile\"" >&5)
12667    (eval "$lt_compile" 2>out/conftest.err)
12668    ac_status=$?
12669    cat out/conftest.err >&5
12670    echo "$as_me:12670: \$? = $ac_status" >&5
12671    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12672    then
12673      # The compiler can only warn and ignore the option if not recognized
12674      # So say no if there are warnings
12675      if test ! -s out/conftest.err; then
12676        lt_cv_prog_compiler_c_o_F77=yes
12677      fi
12678    fi
12679    chmod u+w .
12680    $rm conftest* out/*
12681    rmdir out
12682    cd ..
12683    rmdir conftest
12684    $rm conftest*
12685
12686 fi
12687 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12688 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12689
12690
12691 hard_links="nottested"
12692 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12693   # do not overwrite the value of need_locks provided by the user
12694   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12695 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12696   hard_links=yes
12697   $rm conftest*
12698   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12699   touch conftest.a
12700   ln conftest.a conftest.b 2>&5 || hard_links=no
12701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12702   echo "$as_me:$LINENO: result: $hard_links" >&5
12703 echo "${ECHO_T}$hard_links" >&6
12704   if test "$hard_links" = no; then
12705     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12706 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12707     need_locks=warn
12708   fi
12709 else
12710   need_locks=no
12711 fi
12712
12713 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12714 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12715
12716   runpath_var=
12717   allow_undefined_flag_F77=
12718   enable_shared_with_static_runtimes_F77=no
12719   archive_cmds_F77=
12720   archive_expsym_cmds_F77=
12721   old_archive_From_new_cmds_F77=
12722   old_archive_from_expsyms_cmds_F77=
12723   export_dynamic_flag_spec_F77=
12724   whole_archive_flag_spec_F77=
12725   thread_safe_flag_spec_F77=
12726   hardcode_libdir_flag_spec_F77=
12727   hardcode_libdir_flag_spec_ld_F77=
12728   hardcode_libdir_separator_F77=
12729   hardcode_direct_F77=no
12730   hardcode_minus_L_F77=no
12731   hardcode_shlibpath_var_F77=unsupported
12732   link_all_deplibs_F77=unknown
12733   hardcode_automatic_F77=no
12734   module_cmds_F77=
12735   module_expsym_cmds_F77=
12736   always_export_symbols_F77=no
12737   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12738   # include_expsyms should be a list of space-separated symbols to be *always*
12739   # included in the symbol list
12740   include_expsyms_F77=
12741   # exclude_expsyms can be an extended regexp of symbols to exclude
12742   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12743   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12744   # as well as any symbol that contains `d'.
12745   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12746   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12747   # platforms (ab)use it in PIC code, but their linkers get confused if
12748   # the symbol is explicitly referenced.  Since portable code cannot
12749   # rely on this symbol name, it's probably fine to never include it in
12750   # preloaded symbol tables.
12751   extract_expsyms_cmds=
12752
12753   case $host_os in
12754   cygwin* | mingw* | pw32*)
12755     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12756     # When not using gcc, we currently assume that we are using
12757     # Microsoft Visual C++.
12758     if test "$GCC" != yes; then
12759       with_gnu_ld=no
12760     fi
12761     ;;
12762   openbsd*)
12763     with_gnu_ld=no
12764     ;;
12765   esac
12766
12767   ld_shlibs_F77=yes
12768   if test "$with_gnu_ld" = yes; then
12769     # If archive_cmds runs LD, not CC, wlarc should be empty
12770     wlarc='${wl}'
12771
12772     # See if GNU ld supports shared libraries.
12773     case $host_os in
12774     aix3* | aix4* | aix5*)
12775       # On AIX/PPC, the GNU linker is very broken
12776       if test "$host_cpu" != ia64; then
12777         ld_shlibs_F77=no
12778         cat <<EOF 1>&2
12779
12780 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12781 *** to be unable to reliably create shared libraries on AIX.
12782 *** Therefore, libtool is disabling shared libraries support.  If you
12783 *** really care for shared libraries, you may want to modify your PATH
12784 *** so that a non-GNU linker is found, and then restart.
12785
12786 EOF
12787       fi
12788       ;;
12789
12790     amigaos*)
12791       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)'
12792       hardcode_libdir_flag_spec_F77='-L$libdir'
12793       hardcode_minus_L_F77=yes
12794
12795       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12796       # that the semantics of dynamic libraries on AmigaOS, at least up
12797       # to version 4, is to share data among multiple programs linked
12798       # with the same dynamic library.  Since this doesn't match the
12799       # behavior of shared libraries on other platforms, we can't use
12800       # them.
12801       ld_shlibs_F77=no
12802       ;;
12803
12804     beos*)
12805       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12806         allow_undefined_flag_F77=unsupported
12807         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12808         # support --undefined.  This deserves some investigation.  FIXME
12809         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12810       else
12811         ld_shlibs_F77=no
12812       fi
12813       ;;
12814
12815     cygwin* | mingw* | pw32*)
12816       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12817       # as there is no search path for DLLs.
12818       hardcode_libdir_flag_spec_F77='-L$libdir'
12819       allow_undefined_flag_F77=unsupported
12820       always_export_symbols_F77=no
12821       enable_shared_with_static_runtimes_F77=yes
12822       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12823
12824       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12825         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12826         # If the export-symbols file already is a .def file (1st line
12827         # is EXPORTS), use it as is; otherwise, prepend...
12828         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12829           cp $export_symbols $output_objdir/$soname.def;
12830         else
12831           echo EXPORTS > $output_objdir/$soname.def;
12832           cat $export_symbols >> $output_objdir/$soname.def;
12833         fi~
12834         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12835       else
12836         ld_shlibs=no
12837       fi
12838       ;;
12839
12840     netbsd*)
12841       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12842         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12843         wlarc=
12844       else
12845         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12847       fi
12848       ;;
12849
12850     solaris* | sysv5*)
12851       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12852         ld_shlibs_F77=no
12853         cat <<EOF 1>&2
12854
12855 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12856 *** create shared libraries on Solaris systems.  Therefore, libtool
12857 *** is disabling shared libraries support.  We urge you to upgrade GNU
12858 *** binutils to release 2.9.1 or newer.  Another option is to modify
12859 *** your PATH or compiler configuration so that the native linker is
12860 *** used, and then restart.
12861
12862 EOF
12863       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12864         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12865         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12866       else
12867         ld_shlibs_F77=no
12868       fi
12869       ;;
12870
12871     sunos4*)
12872       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12873       wlarc=
12874       hardcode_direct_F77=yes
12875       hardcode_shlibpath_var_F77=no
12876       ;;
12877
12878     *)
12879       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12880         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12882       else
12883         ld_shlibs_F77=no
12884       fi
12885       ;;
12886     esac
12887
12888     if test "$ld_shlibs_F77" = yes; then
12889       runpath_var=LD_RUN_PATH
12890       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12891       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12892       # ancient GNU ld didn't support --whole-archive et. al.
12893       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12894         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12895       else
12896         whole_archive_flag_spec_F77=
12897       fi
12898     fi
12899   else
12900     # PORTME fill in a description of your system's linker (not GNU ld)
12901     case $host_os in
12902     aix3*)
12903       allow_undefined_flag_F77=unsupported
12904       always_export_symbols_F77=yes
12905       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'
12906       # Note: this linker hardcodes the directories in LIBPATH if there
12907       # are no directories specified by -L.
12908       hardcode_minus_L_F77=yes
12909       if test "$GCC" = yes && test -z "$link_static_flag"; then
12910         # Neither direct hardcoding nor static linking is supported with a
12911         # broken collect2.
12912         hardcode_direct_F77=unsupported
12913       fi
12914       ;;
12915
12916     aix4* | aix5*)
12917       if test "$host_cpu" = ia64; then
12918         # On IA64, the linker does run time linking by default, so we don't
12919         # have to do anything special.
12920         aix_use_runtimelinking=no
12921         exp_sym_flag='-Bexport'
12922         no_entry_flag=""
12923       else
12924         # If we're using GNU nm, then we don't want the "-C" option.
12925         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12926         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12927           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'
12928         else
12929           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'
12930         fi
12931         aix_use_runtimelinking=no
12932
12933         # Test if we are trying to use run time linking or normal
12934         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12935         # need to do runtime linking.
12936         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12937           for ld_flag in $LDFLAGS; do
12938           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12939             aix_use_runtimelinking=yes
12940             break
12941           fi
12942           done
12943         esac
12944
12945         exp_sym_flag='-bexport'
12946         no_entry_flag='-bnoentry'
12947       fi
12948
12949       # When large executables or shared objects are built, AIX ld can
12950       # have problems creating the table of contents.  If linking a library
12951       # or program results in "error TOC overflow" add -mminimal-toc to
12952       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12953       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12954
12955       archive_cmds_F77=''
12956       hardcode_direct_F77=yes
12957       hardcode_libdir_separator_F77=':'
12958       link_all_deplibs_F77=yes
12959
12960       if test "$GCC" = yes; then
12961         case $host_os in aix4.012|aix4.012.*)
12962         # We only want to do this on AIX 4.2 and lower, the check
12963         # below for broken collect2 doesn't work under 4.3+
12964           collect2name=`${CC} -print-prog-name=collect2`
12965           if test -f "$collect2name" && \
12966            strings "$collect2name" | grep resolve_lib_name >/dev/null
12967           then
12968           # We have reworked collect2
12969           hardcode_direct_F77=yes
12970           else
12971           # We have old collect2
12972           hardcode_direct_F77=unsupported
12973           # It fails to find uninstalled libraries when the uninstalled
12974           # path is not listed in the libpath.  Setting hardcode_minus_L
12975           # to unsupported forces relinking
12976           hardcode_minus_L_F77=yes
12977           hardcode_libdir_flag_spec_F77='-L$libdir'
12978           hardcode_libdir_separator_F77=
12979           fi
12980         esac
12981         shared_flag='-shared'
12982       else
12983         # not using gcc
12984         if test "$host_cpu" = ia64; then
12985         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12986         # chokes on -Wl,-G. The following line is correct:
12987           shared_flag='-G'
12988         else
12989         if test "$aix_use_runtimelinking" = yes; then
12990             shared_flag='${wl}-G'
12991           else
12992             shared_flag='${wl}-bM:SRE'
12993         fi
12994         fi
12995       fi
12996
12997       # It seems that -bexpall does not export symbols beginning with
12998       # underscore (_), so it is better to generate a list of symbols to export.
12999       always_export_symbols_F77=yes
13000       if test "$aix_use_runtimelinking" = yes; then
13001         # Warning - without using the other runtime loading flags (-brtl),
13002         # -berok will link without error, but may produce a broken library.
13003         allow_undefined_flag_F77='-berok'
13004        # Determine the default libpath from the value encoded in an empty executable.
13005        cat >conftest.$ac_ext <<_ACEOF
13006       program main
13007
13008       end
13009 _ACEOF
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012   (eval $ac_link) 2>conftest.er1
13013   ac_status=$?
13014   grep -v '^ *+' conftest.er1 >conftest.err
13015   rm -f conftest.er1
13016   cat conftest.err >&5
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); } &&
13019          { ac_try='test -z "$ac_f77_werror_flag"
13020                          || test ! -s conftest.err'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; } &&
13026          { ac_try='test -s conftest$ac_exeext'
13027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028   (eval $ac_try) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032
13033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13034 }'`
13035 # Check for a 64-bit object if we didn't find anything.
13036 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; }
13037 }'`; fi
13038 else
13039   echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 fi
13043 rm -f conftest.err conftest.$ac_objext \
13044       conftest$ac_exeext conftest.$ac_ext
13045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13046
13047        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13048         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"
13049        else
13050         if test "$host_cpu" = ia64; then
13051           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13052           allow_undefined_flag_F77="-z nodefs"
13053           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"
13054         else
13055          # Determine the default libpath from the value encoded in an empty executable.
13056          cat >conftest.$ac_ext <<_ACEOF
13057       program main
13058
13059       end
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063   (eval $ac_link) 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -z "$ac_f77_werror_flag"
13071                          || test ! -s conftest.err'
13072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073   (eval $ac_try) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); }; } &&
13077          { ac_try='test -s conftest$ac_exeext'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083
13084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13085 }'`
13086 # Check for a 64-bit object if we didn't find anything.
13087 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; }
13088 }'`; fi
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 fi
13094 rm -f conftest.err conftest.$ac_objext \
13095       conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097
13098          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099           # Warning - without using the other run time loading flags,
13100           # -berok will link without error, but may produce a broken library.
13101           no_undefined_flag_F77=' ${wl}-bernotok'
13102           allow_undefined_flag_F77=' ${wl}-berok'
13103           # -bexpall does not export symbols beginning with underscore (_)
13104           always_export_symbols_F77=yes
13105           # Exported symbols can be pulled into shared objects from archives
13106           whole_archive_flag_spec_F77=' '
13107           archive_cmds_need_lc_F77=yes
13108           # This is similar to how AIX traditionally builds it's shared libraries.
13109           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'
13110         fi
13111       fi
13112       ;;
13113
13114     amigaos*)
13115       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)'
13116       hardcode_libdir_flag_spec_F77='-L$libdir'
13117       hardcode_minus_L_F77=yes
13118       # see comment about different semantics on the GNU ld section
13119       ld_shlibs_F77=no
13120       ;;
13121
13122     bsdi4*)
13123       export_dynamic_flag_spec_F77=-rdynamic
13124       ;;
13125
13126     cygwin* | mingw* | pw32*)
13127       # When not using gcc, we currently assume that we are using
13128       # Microsoft Visual C++.
13129       # hardcode_libdir_flag_spec is actually meaningless, as there is
13130       # no search path for DLLs.
13131       hardcode_libdir_flag_spec_F77=' '
13132       allow_undefined_flag_F77=unsupported
13133       # Tell ltmain to make .lib files, not .a files.
13134       libext=lib
13135       # Tell ltmain to make .dll files, not .so files.
13136       shrext=".dll"
13137       # FIXME: Setting linknames here is a bad hack.
13138       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13139       # The linker will automatically build a .lib file if we build a DLL.
13140       old_archive_From_new_cmds_F77='true'
13141       # FIXME: Should let the user specify the lib program.
13142       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13143       fix_srcfile_path='`cygpath -w "$srcfile"`'
13144       enable_shared_with_static_runtimes_F77=yes
13145       ;;
13146
13147     darwin* | rhapsody*)
13148     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13149       archive_cmds_need_lc_F77=no
13150       case "$host_os" in
13151       rhapsody* | darwin1.[012])
13152         allow_undefined_flag_F77='-undefined suppress'
13153         ;;
13154       *) # Darwin 1.3 on
13155         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13156         ;;
13157       esac
13158       # FIXME: Relying on posixy $() will cause problems for
13159       #        cross-compilation, but unfortunately the echo tests do not
13160       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13161       #        `"' quotes if we put them in here... so don't!
13162         lt_int_apple_cc_single_mod=no
13163         output_verbose_link_cmd='echo'
13164         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13165           lt_int_apple_cc_single_mod=yes
13166         fi
13167         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13168           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13169         else
13170         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'
13171       fi
13172       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13173       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13174         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13175           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}'
13176         else
13177           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}'
13178         fi
13179           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}'
13180       hardcode_direct_F77=no
13181       hardcode_automatic_F77=yes
13182       hardcode_shlibpath_var_F77=unsupported
13183       whole_archive_flag_spec_F77='-all_load $convenience'
13184       link_all_deplibs_F77=yes
13185     fi
13186       ;;
13187
13188     dgux*)
13189       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13190       hardcode_libdir_flag_spec_F77='-L$libdir'
13191       hardcode_shlibpath_var_F77=no
13192       ;;
13193
13194     freebsd1*)
13195       ld_shlibs_F77=no
13196       ;;
13197
13198     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13199     # support.  Future versions do this automatically, but an explicit c++rt0.o
13200     # does not break anything, and helps significantly (at the cost of a little
13201     # extra space).
13202     freebsd2.2*)
13203       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13204       hardcode_libdir_flag_spec_F77='-R$libdir'
13205       hardcode_direct_F77=yes
13206       hardcode_shlibpath_var_F77=no
13207       ;;
13208
13209     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13210     freebsd2*)
13211       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13212       hardcode_direct_F77=yes
13213       hardcode_minus_L_F77=yes
13214       hardcode_shlibpath_var_F77=no
13215       ;;
13216
13217     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13218     freebsd*)
13219       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13220       hardcode_libdir_flag_spec_F77='-R$libdir'
13221       hardcode_direct_F77=yes
13222       hardcode_shlibpath_var_F77=no
13223       ;;
13224
13225     hpux9*)
13226       if test "$GCC" = yes; then
13227         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'
13228       else
13229         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'
13230       fi
13231       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13232       hardcode_libdir_separator_F77=:
13233       hardcode_direct_F77=yes
13234
13235       # hardcode_minus_L: Not really in the search PATH,
13236       # but as the default location of the library.
13237       hardcode_minus_L_F77=yes
13238       export_dynamic_flag_spec_F77='${wl}-E'
13239       ;;
13240
13241     hpux10* | hpux11*)
13242       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13243         case "$host_cpu" in
13244         hppa*64*|ia64*)
13245           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13246           ;;
13247         *)
13248           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13249           ;;
13250         esac
13251       else
13252         case "$host_cpu" in
13253         hppa*64*|ia64*)
13254           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13255           ;;
13256         *)
13257           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13258           ;;
13259         esac
13260       fi
13261       if test "$with_gnu_ld" = no; then
13262         case "$host_cpu" in
13263         hppa*64*)
13264           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13265           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13266           hardcode_libdir_separator_F77=:
13267           hardcode_direct_F77=no
13268           hardcode_shlibpath_var_F77=no
13269           ;;
13270         ia64*)
13271           hardcode_libdir_flag_spec_F77='-L$libdir'
13272           hardcode_direct_F77=no
13273           hardcode_shlibpath_var_F77=no
13274
13275           # hardcode_minus_L: Not really in the search PATH,
13276           # but as the default location of the library.
13277           hardcode_minus_L_F77=yes
13278           ;;
13279         *)
13280           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13281           hardcode_libdir_separator_F77=:
13282           hardcode_direct_F77=yes
13283           export_dynamic_flag_spec_F77='${wl}-E'
13284
13285           # hardcode_minus_L: Not really in the search PATH,
13286           # but as the default location of the library.
13287           hardcode_minus_L_F77=yes
13288           ;;
13289         esac
13290       fi
13291       ;;
13292
13293     irix5* | irix6* | nonstopux*)
13294       if test "$GCC" = yes; then
13295         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'
13296       else
13297         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'
13298         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13299       fi
13300       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13301       hardcode_libdir_separator_F77=:
13302       link_all_deplibs_F77=yes
13303       ;;
13304
13305     netbsd*)
13306       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13307         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13308       else
13309         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13310       fi
13311       hardcode_libdir_flag_spec_F77='-R$libdir'
13312       hardcode_direct_F77=yes
13313       hardcode_shlibpath_var_F77=no
13314       ;;
13315
13316     newsos6)
13317       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13318       hardcode_direct_F77=yes
13319       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13320       hardcode_libdir_separator_F77=:
13321       hardcode_shlibpath_var_F77=no
13322       ;;
13323
13324     openbsd*)
13325       hardcode_direct_F77=yes
13326       hardcode_shlibpath_var_F77=no
13327       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13328         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13329         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13330         export_dynamic_flag_spec_F77='${wl}-E'
13331       else
13332        case $host_os in
13333          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13334            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13335            hardcode_libdir_flag_spec_F77='-R$libdir'
13336            ;;
13337          *)
13338            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13339            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13340            ;;
13341        esac
13342       fi
13343       ;;
13344
13345     os2*)
13346       hardcode_libdir_flag_spec_F77='-L$libdir'
13347       hardcode_minus_L_F77=yes
13348       allow_undefined_flag_F77=unsupported
13349       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'
13350       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13351       ;;
13352
13353     osf3*)
13354       if test "$GCC" = yes; then
13355         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13356         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'
13357       else
13358         allow_undefined_flag_F77=' -expect_unresolved \*'
13359         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'
13360       fi
13361       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13362       hardcode_libdir_separator_F77=:
13363       ;;
13364
13365     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13366       if test "$GCC" = yes; then
13367         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13368         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'
13369         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13370       else
13371         allow_undefined_flag_F77=' -expect_unresolved \*'
13372         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'
13373         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~
13374         $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'
13375
13376         # Both c and cxx compiler support -rpath directly
13377         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13378       fi
13379       hardcode_libdir_separator_F77=:
13380       ;;
13381
13382     sco3.2v5*)
13383       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13384       hardcode_shlibpath_var_F77=no
13385       export_dynamic_flag_spec_F77='${wl}-Bexport'
13386       runpath_var=LD_RUN_PATH
13387       hardcode_runpath_var=yes
13388       ;;
13389
13390     solaris*)
13391       no_undefined_flag_F77=' -z text'
13392       if test "$GCC" = yes; then
13393         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13395           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13396       else
13397         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13399         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13400       fi
13401       hardcode_libdir_flag_spec_F77='-R$libdir'
13402       hardcode_shlibpath_var_F77=no
13403       case $host_os in
13404       solaris2.[0-5] | solaris2.[0-5].*) ;;
13405       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13406         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13407       esac
13408       link_all_deplibs_F77=yes
13409       ;;
13410
13411     sunos4*)
13412       if test "x$host_vendor" = xsequent; then
13413         # Use $CC to link under sequent, because it throws in some extra .o
13414         # files that make .init and .fini sections work.
13415         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13416       else
13417         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13418       fi
13419       hardcode_libdir_flag_spec_F77='-L$libdir'
13420       hardcode_direct_F77=yes
13421       hardcode_minus_L_F77=yes
13422       hardcode_shlibpath_var_F77=no
13423       ;;
13424
13425     sysv4)
13426       case $host_vendor in
13427         sni)
13428           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429           hardcode_direct_F77=yes # is this really true???
13430         ;;
13431         siemens)
13432           ## LD is ld it makes a PLAMLIB
13433           ## CC just makes a GrossModule.
13434           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13435           reload_cmds_F77='$CC -r -o $output$reload_objs'
13436           hardcode_direct_F77=no
13437         ;;
13438         motorola)
13439           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13440           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13441         ;;
13442       esac
13443       runpath_var='LD_RUN_PATH'
13444       hardcode_shlibpath_var_F77=no
13445       ;;
13446
13447     sysv4.3*)
13448       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449       hardcode_shlibpath_var_F77=no
13450       export_dynamic_flag_spec_F77='-Bexport'
13451       ;;
13452
13453     sysv4*MP*)
13454       if test -d /usr/nec; then
13455         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456         hardcode_shlibpath_var_F77=no
13457         runpath_var=LD_RUN_PATH
13458         hardcode_runpath_var=yes
13459         ld_shlibs_F77=yes
13460       fi
13461       ;;
13462
13463     sysv4.2uw2*)
13464       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13465       hardcode_direct_F77=yes
13466       hardcode_minus_L_F77=no
13467       hardcode_shlibpath_var_F77=no
13468       hardcode_runpath_var=yes
13469       runpath_var=LD_RUN_PATH
13470       ;;
13471
13472    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13473       no_undefined_flag_F77='${wl}-z ${wl}text'
13474       if test "$GCC" = yes; then
13475         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13476       else
13477         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13478       fi
13479       runpath_var='LD_RUN_PATH'
13480       hardcode_shlibpath_var_F77=no
13481       ;;
13482
13483     sysv5*)
13484       no_undefined_flag_F77=' -z text'
13485       # $CC -shared without GNU ld will not create a library from C++
13486       # object files and a static libstdc++, better avoid it by now
13487       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13489                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13490       hardcode_libdir_flag_spec_F77=
13491       hardcode_shlibpath_var_F77=no
13492       runpath_var='LD_RUN_PATH'
13493       ;;
13494
13495     uts4*)
13496       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497       hardcode_libdir_flag_spec_F77='-L$libdir'
13498       hardcode_shlibpath_var_F77=no
13499       ;;
13500
13501     *)
13502       ld_shlibs_F77=no
13503       ;;
13504     esac
13505   fi
13506
13507 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13508 echo "${ECHO_T}$ld_shlibs_F77" >&6
13509 test "$ld_shlibs_F77" = no && can_build_shared=no
13510
13511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13512 if test "$GCC" = yes; then
13513   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13514 fi
13515
13516 #
13517 # Do we need to explicitly link libc?
13518 #
13519 case "x$archive_cmds_need_lc_F77" in
13520 x|xyes)
13521   # Assume -lc should be added
13522   archive_cmds_need_lc_F77=yes
13523
13524   if test "$enable_shared" = yes && test "$GCC" = yes; then
13525     case $archive_cmds_F77 in
13526     *'~'*)
13527       # FIXME: we may have to deal with multi-command sequences.
13528       ;;
13529     '$CC '*)
13530       # Test whether the compiler implicitly links with -lc since on some
13531       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13532       # to ld, don't add -lc before -lgcc.
13533       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13534 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13535       $rm conftest*
13536       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13537
13538       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539   (eval $ac_compile) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); } 2>conftest.err; then
13543         soname=conftest
13544         lib=conftest
13545         libobjs=conftest.$ac_objext
13546         deplibs=
13547         wl=$lt_prog_compiler_wl_F77
13548         compiler_flags=-v
13549         linker_flags=-v
13550         verstring=
13551         output_objdir=.
13552         libname=conftest
13553         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13554         allow_undefined_flag_F77=
13555         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13556   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }
13560         then
13561           archive_cmds_need_lc_F77=no
13562         else
13563           archive_cmds_need_lc_F77=yes
13564         fi
13565         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13566       else
13567         cat conftest.err 1>&5
13568       fi
13569       $rm conftest*
13570       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13571 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13572       ;;
13573     esac
13574   fi
13575   ;;
13576 esac
13577
13578 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13580 hardcode_action_F77=
13581 if test -n "$hardcode_libdir_flag_spec_F77" || \
13582    test -n "$runpath_var F77" || \
13583    test "X$hardcode_automatic_F77"="Xyes" ; then
13584
13585   # We can hardcode non-existant directories.
13586   if test "$hardcode_direct_F77" != no &&
13587      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13588      # have to relink, otherwise we might link with an installed library
13589      # when we should be linking with a yet-to-be-installed one
13590      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13591      test "$hardcode_minus_L_F77" != no; then
13592     # Linking always hardcodes the temporary library directory.
13593     hardcode_action_F77=relink
13594   else
13595     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13596     hardcode_action_F77=immediate
13597   fi
13598 else
13599   # We cannot hardcode anything, or else we can only hardcode existing
13600   # directories.
13601   hardcode_action_F77=unsupported
13602 fi
13603 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13604 echo "${ECHO_T}$hardcode_action_F77" >&6
13605
13606 if test "$hardcode_action_F77" = relink; then
13607   # Fast installation is not supported
13608   enable_fast_install=no
13609 elif test "$shlibpath_overrides_runpath" = yes ||
13610      test "$enable_shared" = no; then
13611   # Fast installation is not necessary
13612   enable_fast_install=needless
13613 fi
13614
13615 striplib=
13616 old_striplib=
13617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13620   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13621   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13622   echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6
13624 else
13625 # FIXME - insert some real tests, host_os isn't really good enough
13626   case $host_os in
13627    darwin*)
13628        if test -n "$STRIP" ; then
13629          striplib="$STRIP -x"
13630          echo "$as_me:$LINENO: result: yes" >&5
13631 echo "${ECHO_T}yes" >&6
13632        else
13633   echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13635 fi
13636        ;;
13637    *)
13638   echo "$as_me:$LINENO: result: no" >&5
13639 echo "${ECHO_T}no" >&6
13640     ;;
13641   esac
13642 fi
13643
13644 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13646 library_names_spec=
13647 libname_spec='lib$name'
13648 soname_spec=
13649 shrext=".so"
13650 postinstall_cmds=
13651 postuninstall_cmds=
13652 finish_cmds=
13653 finish_eval=
13654 shlibpath_var=
13655 shlibpath_overrides_runpath=unknown
13656 version_type=none
13657 dynamic_linker="$host_os ld.so"
13658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13659 if test "$GCC" = yes; then
13660   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13661   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13662     # if the path contains ";" then we assume it to be the separator
13663     # otherwise default to the standard path separator (i.e. ":") - it is
13664     # assumed that no part of a normal pathname contains ";" but that should
13665     # okay in the real world where ";" in dirpaths is itself problematic.
13666     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13667   else
13668     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13669   fi
13670 else
13671   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13672 fi
13673 need_lib_prefix=unknown
13674 hardcode_into_libs=no
13675
13676 # when you set need_version to no, make sure it does not cause -set_version
13677 # flags to be left without arguments
13678 need_version=unknown
13679
13680 case $host_os in
13681 aix3*)
13682   version_type=linux
13683   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13684   shlibpath_var=LIBPATH
13685
13686   # AIX 3 has no versioning support, so we append a major version to the name.
13687   soname_spec='${libname}${release}${shared_ext}$major'
13688   ;;
13689
13690 aix4* | aix5*)
13691   version_type=linux
13692   need_lib_prefix=no
13693   need_version=no
13694   hardcode_into_libs=yes
13695   if test "$host_cpu" = ia64; then
13696     # AIX 5 supports IA64
13697     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13698     shlibpath_var=LD_LIBRARY_PATH
13699   else
13700     # With GCC up to 2.95.x, collect2 would create an import file
13701     # for dependence libraries.  The import file would start with
13702     # the line `#! .'.  This would cause the generated library to
13703     # depend on `.', always an invalid library.  This was fixed in
13704     # development snapshots of GCC prior to 3.0.
13705     case $host_os in
13706       aix4 | aix4.[01] | aix4.[01].*)
13707       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13708            echo ' yes '
13709            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13710         :
13711       else
13712         can_build_shared=no
13713       fi
13714       ;;
13715     esac
13716     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13717     # soname into executable. Probably we can add versioning support to
13718     # collect2, so additional links can be useful in future.
13719     if test "$aix_use_runtimelinking" = yes; then
13720       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13721       # instead of lib<name>.a to let people know that these are not
13722       # typical AIX shared libraries.
13723       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724     else
13725       # We preserve .a as extension for shared libraries through AIX4.2
13726       # and later when we are not doing run time linking.
13727       library_names_spec='${libname}${release}.a $libname.a'
13728       soname_spec='${libname}${release}${shared_ext}$major'
13729     fi
13730     shlibpath_var=LIBPATH
13731   fi
13732   ;;
13733
13734 amigaos*)
13735   library_names_spec='$libname.ixlibrary $libname.a'
13736   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13737   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'
13738   ;;
13739
13740 beos*)
13741   library_names_spec='${libname}${shared_ext}'
13742   dynamic_linker="$host_os ld.so"
13743   shlibpath_var=LIBRARY_PATH
13744   ;;
13745
13746 bsdi4*)
13747   version_type=linux
13748   need_version=no
13749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750   soname_spec='${libname}${release}${shared_ext}$major'
13751   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13752   shlibpath_var=LD_LIBRARY_PATH
13753   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13754   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13755   # the default ld.so.conf also contains /usr/contrib/lib and
13756   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13757   # libtool to hard-code these into programs
13758   ;;
13759
13760 cygwin* | mingw* | pw32*)
13761   version_type=windows
13762   shrext=".dll"
13763   need_version=no
13764   need_lib_prefix=no
13765
13766   case $GCC,$host_os in
13767   yes,cygwin* | yes,mingw* | yes,pw32*)
13768     library_names_spec='$libname.dll.a'
13769     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13770     postinstall_cmds='base_file=`basename \${file}`~
13771       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13772       dldir=$destdir/`dirname \$dlpath`~
13773       test -d \$dldir || mkdir -p \$dldir~
13774       $install_prog $dir/$dlname \$dldir/$dlname'
13775     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13776       dlpath=$dir/\$dldll~
13777        $rm \$dlpath'
13778     shlibpath_overrides_runpath=yes
13779
13780     case $host_os in
13781     cygwin*)
13782       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13783       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13784       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13785       ;;
13786     mingw*)
13787       # MinGW DLLs use traditional 'lib' prefix
13788       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13789       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13790       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13791         # It is most probably a Windows format PATH printed by
13792         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13793         # path with ; separators, and with drive letters. We can handle the
13794         # drive letters (cygwin fileutils understands them), so leave them,
13795         # especially as we might pass files found there to a mingw objdump,
13796         # which wouldn't understand a cygwinified path. Ahh.
13797         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13798       else
13799         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13800       fi
13801       ;;
13802     pw32*)
13803       # pw32 DLLs use 'pw' prefix rather than 'lib'
13804       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13805       ;;
13806     esac
13807     ;;
13808
13809   *)
13810     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13811     ;;
13812   esac
13813   dynamic_linker='Win32 ld.exe'
13814   # FIXME: first we should search . and the directory the executable is in
13815   shlibpath_var=PATH
13816   ;;
13817
13818 darwin* | rhapsody*)
13819   dynamic_linker="$host_os dyld"
13820   version_type=darwin
13821   need_lib_prefix=no
13822   need_version=no
13823   # FIXME: Relying on posixy $() will cause problems for
13824   #        cross-compilation, but unfortunately the echo tests do not
13825   #        yet detect zsh echo's removal of \ escapes.
13826   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827   soname_spec='${libname}${release}${major}$shared_ext'
13828   shlibpath_overrides_runpath=yes
13829   shlibpath_var=DYLD_LIBRARY_PATH
13830   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13831   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13832   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13833   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"`
13834   fi
13835   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13836   ;;
13837
13838 dgux*)
13839   version_type=linux
13840   need_lib_prefix=no
13841   need_version=no
13842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13843   soname_spec='${libname}${release}${shared_ext}$major'
13844   shlibpath_var=LD_LIBRARY_PATH
13845   ;;
13846
13847 freebsd1*)
13848   dynamic_linker=no
13849   ;;
13850
13851 freebsd*)
13852   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13853   version_type=freebsd-$objformat
13854   case $version_type in
13855     freebsd-elf*)
13856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13857       need_version=no
13858       need_lib_prefix=no
13859       ;;
13860     freebsd-*)
13861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13862       need_version=yes
13863       ;;
13864   esac
13865   shlibpath_var=LD_LIBRARY_PATH
13866   case $host_os in
13867   freebsd2*)
13868     shlibpath_overrides_runpath=yes
13869     ;;
13870   freebsd3.01* | freebsdelf3.01*)
13871     shlibpath_overrides_runpath=yes
13872     hardcode_into_libs=yes
13873     ;;
13874   *) # from 3.2 on
13875     shlibpath_overrides_runpath=no
13876     hardcode_into_libs=yes
13877     ;;
13878   esac
13879   ;;
13880
13881 gnu*)
13882   version_type=linux
13883   need_lib_prefix=no
13884   need_version=no
13885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13886   soname_spec='${libname}${release}${shared_ext}$major'
13887   shlibpath_var=LD_LIBRARY_PATH
13888   hardcode_into_libs=yes
13889   ;;
13890
13891 hpux9* | hpux10* | hpux11*)
13892   # Give a soname corresponding to the major version so that dld.sl refuses to
13893   # link against other versions.
13894   version_type=sunos
13895   need_lib_prefix=no
13896   need_version=no
13897   case "$host_cpu" in
13898   ia64*)
13899     shrext='.so'
13900     hardcode_into_libs=yes
13901     dynamic_linker="$host_os dld.so"
13902     shlibpath_var=LD_LIBRARY_PATH
13903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13905     soname_spec='${libname}${release}${shared_ext}$major'
13906     if test "X$HPUX_IA64_MODE" = X32; then
13907       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13908     else
13909       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13910     fi
13911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13912     ;;
13913    hppa*64*)
13914      shrext='.sl'
13915      hardcode_into_libs=yes
13916      dynamic_linker="$host_os dld.sl"
13917      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13918      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13919      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920      soname_spec='${libname}${release}${shared_ext}$major'
13921      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13922      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13923      ;;
13924    *)
13925     shrext='.sl'
13926     dynamic_linker="$host_os dld.sl"
13927     shlibpath_var=SHLIB_PATH
13928     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13930     soname_spec='${libname}${release}${shared_ext}$major'
13931     ;;
13932   esac
13933   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13934   postinstall_cmds='chmod 555 $lib'
13935   ;;
13936
13937 irix5* | irix6* | nonstopux*)
13938   case $host_os in
13939     nonstopux*) version_type=nonstopux ;;
13940     *)
13941         if test "$lt_cv_prog_gnu_ld" = yes; then
13942                 version_type=linux
13943         else
13944                 version_type=irix
13945         fi ;;
13946   esac
13947   need_lib_prefix=no
13948   need_version=no
13949   soname_spec='${libname}${release}${shared_ext}$major'
13950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13951   case $host_os in
13952   irix5* | nonstopux*)
13953     libsuff= shlibsuff=
13954     ;;
13955   *)
13956     case $LD in # libtool.m4 will add one of these switches to LD
13957     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13958       libsuff= shlibsuff= libmagic=32-bit;;
13959     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13960       libsuff=32 shlibsuff=N32 libmagic=N32;;
13961     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13962       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13963     *) libsuff= shlibsuff= libmagic=never-match;;
13964     esac
13965     ;;
13966   esac
13967   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13968   shlibpath_overrides_runpath=no
13969   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13970   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13971   hardcode_into_libs=yes
13972   ;;
13973
13974 # No shared lib support for Linux oldld, aout, or coff.
13975 linux*oldld* | linux*aout* | linux*coff*)
13976   dynamic_linker=no
13977   ;;
13978
13979 # This must be Linux ELF.
13980 linux*)
13981   version_type=linux
13982   need_lib_prefix=no
13983   need_version=no
13984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985   soname_spec='${libname}${release}${shared_ext}$major'
13986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13987   shlibpath_var=LD_LIBRARY_PATH
13988   shlibpath_overrides_runpath=no
13989   # This implies no fast_install, which is unacceptable.
13990   # Some rework will be needed to allow for fast_install
13991   # before this can be enabled.
13992   hardcode_into_libs=yes
13993
13994   # We used to test for /lib/ld.so.1 and disable shared libraries on
13995   # powerpc, because MkLinux only supported shared libraries with the
13996   # GNU dynamic linker.  Since this was broken with cross compilers,
13997   # most powerpc-linux boxes support dynamic linking these days and
13998   # people can always --disable-shared, the test was removed, and we
13999   # assume the GNU/Linux dynamic linker is in use.
14000   dynamic_linker='GNU/Linux ld.so'
14001   ;;
14002
14003 netbsd*)
14004   version_type=sunos
14005   need_lib_prefix=no
14006   need_version=no
14007   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14009     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14010     dynamic_linker='NetBSD (a.out) ld.so'
14011   else
14012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14013     soname_spec='${libname}${release}${shared_ext}$major'
14014     dynamic_linker='NetBSD ld.elf_so'
14015   fi
14016   shlibpath_var=LD_LIBRARY_PATH
14017   shlibpath_overrides_runpath=yes
14018   hardcode_into_libs=yes
14019   ;;
14020
14021 newsos6)
14022   version_type=linux
14023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024   shlibpath_var=LD_LIBRARY_PATH
14025   shlibpath_overrides_runpath=yes
14026   ;;
14027
14028 nto-qnx)
14029   version_type=linux
14030   need_lib_prefix=no
14031   need_version=no
14032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033   soname_spec='${libname}${release}${shared_ext}$major'
14034   shlibpath_var=LD_LIBRARY_PATH
14035   shlibpath_overrides_runpath=yes
14036   ;;
14037
14038 openbsd*)
14039   version_type=sunos
14040   need_lib_prefix=no
14041   need_version=no
14042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14043   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14044   shlibpath_var=LD_LIBRARY_PATH
14045   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14046     case $host_os in
14047       openbsd2.[89] | openbsd2.[89].*)
14048         shlibpath_overrides_runpath=no
14049         ;;
14050       *)
14051         shlibpath_overrides_runpath=yes
14052         ;;
14053       esac
14054   else
14055     shlibpath_overrides_runpath=yes
14056   fi
14057   ;;
14058
14059 os2*)
14060   libname_spec='$name'
14061   shrext=".dll"
14062   need_lib_prefix=no
14063   library_names_spec='$libname${shared_ext} $libname.a'
14064   dynamic_linker='OS/2 ld.exe'
14065   shlibpath_var=LIBPATH
14066   ;;
14067
14068 osf3* | osf4* | osf5*)
14069   version_type=osf
14070   need_lib_prefix=no
14071   need_version=no
14072   soname_spec='${libname}${release}${shared_ext}$major'
14073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074   shlibpath_var=LD_LIBRARY_PATH
14075   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14076   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14077   ;;
14078
14079 sco3.2v5*)
14080   version_type=osf
14081   soname_spec='${libname}${release}${shared_ext}$major'
14082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083   shlibpath_var=LD_LIBRARY_PATH
14084   ;;
14085
14086 solaris*)
14087   version_type=linux
14088   need_lib_prefix=no
14089   need_version=no
14090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091   soname_spec='${libname}${release}${shared_ext}$major'
14092   shlibpath_var=LD_LIBRARY_PATH
14093   shlibpath_overrides_runpath=yes
14094   hardcode_into_libs=yes
14095   # ldd complains unless libraries are executable
14096   postinstall_cmds='chmod +x $lib'
14097   ;;
14098
14099 sunos4*)
14100   version_type=sunos
14101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14102   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14103   shlibpath_var=LD_LIBRARY_PATH
14104   shlibpath_overrides_runpath=yes
14105   if test "$with_gnu_ld" = yes; then
14106     need_lib_prefix=no
14107   fi
14108   need_version=yes
14109   ;;
14110
14111 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14112   version_type=linux
14113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114   soname_spec='${libname}${release}${shared_ext}$major'
14115   shlibpath_var=LD_LIBRARY_PATH
14116   case $host_vendor in
14117     sni)
14118       shlibpath_overrides_runpath=no
14119       need_lib_prefix=no
14120       export_dynamic_flag_spec='${wl}-Blargedynsym'
14121       runpath_var=LD_RUN_PATH
14122       ;;
14123     siemens)
14124       need_lib_prefix=no
14125       ;;
14126     motorola)
14127       need_lib_prefix=no
14128       need_version=no
14129       shlibpath_overrides_runpath=no
14130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14131       ;;
14132   esac
14133   ;;
14134
14135 sysv4*MP*)
14136   if test -d /usr/nec ;then
14137     version_type=linux
14138     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14139     soname_spec='$libname${shared_ext}.$major'
14140     shlibpath_var=LD_LIBRARY_PATH
14141   fi
14142   ;;
14143
14144 uts4*)
14145   version_type=linux
14146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147   soname_spec='${libname}${release}${shared_ext}$major'
14148   shlibpath_var=LD_LIBRARY_PATH
14149   ;;
14150
14151 *)
14152   dynamic_linker=no
14153   ;;
14154 esac
14155 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14156 echo "${ECHO_T}$dynamic_linker" >&6
14157 test "$dynamic_linker" = no && can_build_shared=no
14158
14159
14160 # The else clause should only fire when bootstrapping the
14161 # libtool distribution, otherwise you forgot to ship ltmain.sh
14162 # with your package, and you will get complaints that there are
14163 # no rules to generate ltmain.sh.
14164 if test -f "$ltmain"; then
14165   # See if we are running on zsh, and set the options which allow our commands through
14166   # without removal of \ escapes.
14167   if test -n "${ZSH_VERSION+set}" ; then
14168     setopt NO_GLOB_SUBST
14169   fi
14170   # Now quote all the things that may contain metacharacters while being
14171   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14172   # variables and quote the copies for generation of the libtool script.
14173   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14174     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14175     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14176     deplibs_check_method reload_flag reload_cmds need_locks \
14177     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14178     lt_cv_sys_global_symbol_to_c_name_address \
14179     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14180     old_postinstall_cmds old_postuninstall_cmds \
14181     compiler_F77 \
14182     CC_F77 \
14183     LD_F77 \
14184     lt_prog_compiler_wl_F77 \
14185     lt_prog_compiler_pic_F77 \
14186     lt_prog_compiler_static_F77 \
14187     lt_prog_compiler_no_builtin_flag_F77 \
14188     export_dynamic_flag_spec_F77 \
14189     thread_safe_flag_spec_F77 \
14190     whole_archive_flag_spec_F77 \
14191     enable_shared_with_static_runtimes_F77 \
14192     old_archive_cmds_F77 \
14193     old_archive_from_new_cmds_F77 \
14194     predep_objects_F77 \
14195     postdep_objects_F77 \
14196     predeps_F77 \
14197     postdeps_F77 \
14198     compiler_lib_search_path_F77 \
14199     archive_cmds_F77 \
14200     archive_expsym_cmds_F77 \
14201     postinstall_cmds_F77 \
14202     postuninstall_cmds_F77 \
14203     old_archive_from_expsyms_cmds_F77 \
14204     allow_undefined_flag_F77 \
14205     no_undefined_flag_F77 \
14206     export_symbols_cmds_F77 \
14207     hardcode_libdir_flag_spec_F77 \
14208     hardcode_libdir_flag_spec_ld_F77 \
14209     hardcode_libdir_separator_F77 \
14210     hardcode_automatic_F77 \
14211     module_cmds_F77 \
14212     module_expsym_cmds_F77 \
14213     lt_cv_prog_compiler_c_o_F77 \
14214     exclude_expsyms_F77 \
14215     include_expsyms_F77; do
14216
14217     case $var in
14218     old_archive_cmds_F77 | \
14219     old_archive_from_new_cmds_F77 | \
14220     archive_cmds_F77 | \
14221     archive_expsym_cmds_F77 | \
14222     module_cmds_F77 | \
14223     module_expsym_cmds_F77 | \
14224     old_archive_from_expsyms_cmds_F77 | \
14225     export_symbols_cmds_F77 | \
14226     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14227     postinstall_cmds | postuninstall_cmds | \
14228     old_postinstall_cmds | old_postuninstall_cmds | \
14229     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14230       # Double-quote double-evaled strings.
14231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14232       ;;
14233     *)
14234       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14235       ;;
14236     esac
14237   done
14238
14239   case $lt_echo in
14240   *'\$0 --fallback-echo"')
14241     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14242     ;;
14243   esac
14244
14245 cfgfile="$ofile"
14246
14247   cat <<__EOF__ >> "$cfgfile"
14248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14249
14250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14251
14252 # Shell to use when invoking shell scripts.
14253 SHELL=$lt_SHELL
14254
14255 # Whether or not to build shared libraries.
14256 build_libtool_libs=$enable_shared
14257
14258 # Whether or not to build static libraries.
14259 build_old_libs=$enable_static
14260
14261 # Whether or not to add -lc for building shared libraries.
14262 build_libtool_need_lc=$archive_cmds_need_lc_F77
14263
14264 # Whether or not to disallow shared libs when runtime libs are static
14265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14266
14267 # Whether or not to optimize for fast installation.
14268 fast_install=$enable_fast_install
14269
14270 # The host system.
14271 host_alias=$host_alias
14272 host=$host
14273
14274 # An echo program that does not interpret backslashes.
14275 echo=$lt_echo
14276
14277 # The archiver.
14278 AR=$lt_AR
14279 AR_FLAGS=$lt_AR_FLAGS
14280
14281 # A C compiler.
14282 LTCC=$lt_LTCC
14283
14284 # A language-specific compiler.
14285 CC=$lt_compiler_F77
14286
14287 # Is the compiler the GNU C compiler?
14288 with_gcc=$GCC_F77
14289
14290 # An ERE matcher.
14291 EGREP=$lt_EGREP
14292
14293 # The linker used to build libraries.
14294 LD=$lt_LD_F77
14295
14296 # Whether we need hard or soft links.
14297 LN_S=$lt_LN_S
14298
14299 # A BSD-compatible nm program.
14300 NM=$lt_NM
14301
14302 # A symbol stripping program
14303 STRIP=$STRIP
14304
14305 # Used to examine libraries when file_magic_cmd begins "file"
14306 MAGIC_CMD=$MAGIC_CMD
14307
14308 # Used on cygwin: DLL creation program.
14309 DLLTOOL="$DLLTOOL"
14310
14311 # Used on cygwin: object dumper.
14312 OBJDUMP="$OBJDUMP"
14313
14314 # Used on cygwin: assembler.
14315 AS="$AS"
14316
14317 # The name of the directory that contains temporary libtool files.
14318 objdir=$objdir
14319
14320 # How to create reloadable object files.
14321 reload_flag=$lt_reload_flag
14322 reload_cmds=$lt_reload_cmds
14323
14324 # How to pass a linker flag through the compiler.
14325 wl=$lt_lt_prog_compiler_wl_F77
14326
14327 # Object file suffix (normally "o").
14328 objext="$ac_objext"
14329
14330 # Old archive suffix (normally "a").
14331 libext="$libext"
14332
14333 # Shared library suffix (normally ".so").
14334 shrext='$shrext'
14335
14336 # Executable file suffix (normally "").
14337 exeext="$exeext"
14338
14339 # Additional compiler flags for building library objects.
14340 pic_flag=$lt_lt_prog_compiler_pic_F77
14341 pic_mode=$pic_mode
14342
14343 # What is the maximum length of a command?
14344 max_cmd_len=$lt_cv_sys_max_cmd_len
14345
14346 # Does compiler simultaneously support -c and -o options?
14347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14348
14349 # Must we lock files when doing compilation ?
14350 need_locks=$lt_need_locks
14351
14352 # Do we need the lib prefix for modules?
14353 need_lib_prefix=$need_lib_prefix
14354
14355 # Do we need a version for libraries?
14356 need_version=$need_version
14357
14358 # Whether dlopen is supported.
14359 dlopen_support=$enable_dlopen
14360
14361 # Whether dlopen of programs is supported.
14362 dlopen_self=$enable_dlopen_self
14363
14364 # Whether dlopen of statically linked programs is supported.
14365 dlopen_self_static=$enable_dlopen_self_static
14366
14367 # Compiler flag to prevent dynamic linking.
14368 link_static_flag=$lt_lt_prog_compiler_static_F77
14369
14370 # Compiler flag to turn off builtin functions.
14371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14372
14373 # Compiler flag to allow reflexive dlopens.
14374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14375
14376 # Compiler flag to generate shared objects directly from archives.
14377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14378
14379 # Compiler flag to generate thread-safe objects.
14380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14381
14382 # Library versioning type.
14383 version_type=$version_type
14384
14385 # Format of library name prefix.
14386 libname_spec=$lt_libname_spec
14387
14388 # List of archive names.  First name is the real one, the rest are links.
14389 # The last name is the one that the linker finds with -lNAME.
14390 library_names_spec=$lt_library_names_spec
14391
14392 # The coded name of the library, if different from the real name.
14393 soname_spec=$lt_soname_spec
14394
14395 # Commands used to build and install an old-style archive.
14396 RANLIB=$lt_RANLIB
14397 old_archive_cmds=$lt_old_archive_cmds_F77
14398 old_postinstall_cmds=$lt_old_postinstall_cmds
14399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14400
14401 # Create an old-style archive from a shared archive.
14402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14403
14404 # Create a temporary old-style archive to link instead of a shared archive.
14405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14406
14407 # Commands used to build and install a shared archive.
14408 archive_cmds=$lt_archive_cmds_F77
14409 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14410 postinstall_cmds=$lt_postinstall_cmds
14411 postuninstall_cmds=$lt_postuninstall_cmds
14412
14413 # Commands used to build a loadable module (assumed same as above if empty)
14414 module_cmds=$lt_module_cmds_F77
14415 module_expsym_cmds=$lt_module_expsym_cmds_F77
14416
14417 # Commands to strip libraries.
14418 old_striplib=$lt_old_striplib
14419 striplib=$lt_striplib
14420
14421 # Dependencies to place before the objects being linked to create a
14422 # shared library.
14423 predep_objects=$lt_predep_objects_F77
14424
14425 # Dependencies to place after the objects being linked to create a
14426 # shared library.
14427 postdep_objects=$lt_postdep_objects_F77
14428
14429 # Dependencies to place before the objects being linked to create a
14430 # shared library.
14431 predeps=$lt_predeps_F77
14432
14433 # Dependencies to place after the objects being linked to create a
14434 # shared library.
14435 postdeps=$lt_postdeps_F77
14436
14437 # The library search path used internally by the compiler when linking
14438 # a shared library.
14439 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14440
14441 # Method to check whether dependent libraries are shared objects.
14442 deplibs_check_method=$lt_deplibs_check_method
14443
14444 # Command to use when deplibs_check_method == file_magic.
14445 file_magic_cmd=$lt_file_magic_cmd
14446
14447 # Flag that allows shared libraries with undefined symbols to be built.
14448 allow_undefined_flag=$lt_allow_undefined_flag_F77
14449
14450 # Flag that forces no undefined symbols.
14451 no_undefined_flag=$lt_no_undefined_flag_F77
14452
14453 # Commands used to finish a libtool library installation in a directory.
14454 finish_cmds=$lt_finish_cmds
14455
14456 # Same as above, but a single script fragment to be evaled but not shown.
14457 finish_eval=$lt_finish_eval
14458
14459 # Take the output of nm and produce a listing of raw symbols and C names.
14460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14461
14462 # Transform the output of nm in a proper C declaration
14463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14464
14465 # Transform the output of nm in a C name address pair
14466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14467
14468 # This is the shared library runtime path variable.
14469 runpath_var=$runpath_var
14470
14471 # This is the shared library path variable.
14472 shlibpath_var=$shlibpath_var
14473
14474 # Is shlibpath searched before the hard-coded library search path?
14475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14476
14477 # How to hardcode a shared library path into an executable.
14478 hardcode_action=$hardcode_action_F77
14479
14480 # Whether we should hardcode library paths into libraries.
14481 hardcode_into_libs=$hardcode_into_libs
14482
14483 # Flag to hardcode \$libdir into a binary during linking.
14484 # This must work even if \$libdir does not exist.
14485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14486
14487 # If ld is used when linking, flag to hardcode \$libdir into
14488 # a binary during linking. This must work even if \$libdir does
14489 # not exist.
14490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14491
14492 # Whether we need a single -rpath flag with a separated argument.
14493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14494
14495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14496 # resulting binary.
14497 hardcode_direct=$hardcode_direct_F77
14498
14499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14500 # resulting binary.
14501 hardcode_minus_L=$hardcode_minus_L_F77
14502
14503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14504 # the resulting binary.
14505 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14506
14507 # Set to yes if building a shared library automatically hardcodes DIR into the library
14508 # and all subsequent libraries and executables linked against it.
14509 hardcode_automatic=$hardcode_automatic_F77
14510
14511 # Variables whose values should be saved in libtool wrapper scripts and
14512 # restored at relink time.
14513 variables_saved_for_relink="$variables_saved_for_relink"
14514
14515 # Whether libtool must link a program against all its dependency libraries.
14516 link_all_deplibs=$link_all_deplibs_F77
14517
14518 # Compile-time system search path for libraries
14519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14520
14521 # Run-time system search path for libraries
14522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14523
14524 # Fix the shell variable \$srcfile for the compiler.
14525 fix_srcfile_path="$fix_srcfile_path_F77"
14526
14527 # Set to yes if exported symbols are required.
14528 always_export_symbols=$always_export_symbols_F77
14529
14530 # The commands to list exported symbols.
14531 export_symbols_cmds=$lt_export_symbols_cmds_F77
14532
14533 # The commands to extract the exported symbol list from a shared archive.
14534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14535
14536 # Symbols that should not be listed in the preloaded symbols.
14537 exclude_expsyms=$lt_exclude_expsyms_F77
14538
14539 # Symbols that must always be exported.
14540 include_expsyms=$lt_include_expsyms_F77
14541
14542 # ### END LIBTOOL TAG CONFIG: $tagname
14543
14544 __EOF__
14545
14546
14547 else
14548   # If there is no Makefile yet, we rely on a make rule to execute
14549   # `config.status --recheck' to rerun these tests and create the
14550   # libtool script then.
14551   test -f Makefile && make "$ltmain"
14552 fi
14553
14554
14555 ac_ext=c
14556 ac_cpp='$CPP $CPPFLAGS'
14557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14560
14561 CC="$lt_save_CC"
14562
14563         else
14564           tagname=""
14565         fi
14566         ;;
14567
14568       GCJ)
14569         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14570
14571
14572
14573 # Source file extension for Java test sources.
14574 ac_ext=java
14575
14576 # Object file extension for compiled Java test sources.
14577 objext=o
14578 objext_GCJ=$objext
14579
14580 # Code to be used in simple compile tests
14581 lt_simple_compile_test_code="class foo {}\n"
14582
14583 # Code to be used in simple link tests
14584 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14585
14586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14587
14588 # If no C compiler was specified, use CC.
14589 LTCC=${LTCC-"$CC"}
14590
14591 # Allow CC to be a program name with arguments.
14592 compiler=$CC
14593
14594
14595 # Allow CC to be a program name with arguments.
14596 lt_save_CC="$CC"
14597 CC=${GCJ-"gcj"}
14598 compiler=$CC
14599 compiler_GCJ=$CC
14600
14601 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14602 archive_cmds_need_lc_GCJ=no
14603
14604 ## CAVEAT EMPTOR:
14605 ## There is no encapsulation within the following macros, do not change
14606 ## the running order or otherwise move them around unless you know exactly
14607 ## what you are doing...
14608
14609 lt_prog_compiler_no_builtin_flag_GCJ=
14610
14611 if test "$GCC" = yes; then
14612   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14613
14614   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   lt_cv_prog_compiler_rtti_exceptions=no
14620   ac_outfile=conftest.$ac_objext
14621    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622    lt_compiler_flag="-fno-rtti -fno-exceptions"
14623    # Insert the option either (1) after the last *FLAGS variable, or
14624    # (2) before a word containing "conftest.", or (3) at the end.
14625    # Note that $ac_compile itself does not contain backslashes and begins
14626    # with a dollar sign (not a hyphen), so the echo should work correctly.
14627    # The option is referenced via a variable to avoid confusing sed.
14628    lt_compile=`echo "$ac_compile" | $SED \
14629    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631    -e 's:$: $lt_compiler_flag:'`
14632    (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633    (eval "$lt_compile" 2>conftest.err)
14634    ac_status=$?
14635    cat conftest.err >&5
14636    echo "$as_me:14636: \$? = $ac_status" >&5
14637    if (exit $ac_status) && test -s "$ac_outfile"; then
14638      # The compiler can only warn and ignore the option if not recognized
14639      # So say no if there are warnings
14640      if test ! -s conftest.err; then
14641        lt_cv_prog_compiler_rtti_exceptions=yes
14642      fi
14643    fi
14644    $rm conftest*
14645
14646 fi
14647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14648 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14649
14650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14651     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14652 else
14653     :
14654 fi
14655
14656 fi
14657
14658 lt_prog_compiler_wl_GCJ=
14659 lt_prog_compiler_pic_GCJ=
14660 lt_prog_compiler_static_GCJ=
14661
14662 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14663 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14664
14665   if test "$GCC" = yes; then
14666     lt_prog_compiler_wl_GCJ='-Wl,'
14667     lt_prog_compiler_static_GCJ='-static'
14668
14669     case $host_os in
14670       aix*)
14671       # All AIX code is PIC.
14672       if test "$host_cpu" = ia64; then
14673         # AIX 5 now supports IA64 processor
14674         lt_prog_compiler_static_GCJ='-Bstatic'
14675       fi
14676       ;;
14677
14678     amigaos*)
14679       # FIXME: we need at least 68020 code to build shared libraries, but
14680       # adding the `-m68020' flag to GCC prevents building anything better,
14681       # like `-m68040'.
14682       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14683       ;;
14684
14685     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14686       # PIC is the default for these OSes.
14687       ;;
14688
14689     mingw* | pw32* | os2*)
14690       # This hack is so that the source file can tell whether it is being
14691       # built for inclusion in a dll (and should export symbols for example).
14692       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14693       ;;
14694
14695     darwin* | rhapsody*)
14696       # PIC is the default on this platform
14697       # Common symbols not allowed in MH_DYLIB files
14698       lt_prog_compiler_pic_GCJ='-fno-common'
14699       ;;
14700
14701     msdosdjgpp*)
14702       # Just because we use GCC doesn't mean we suddenly get shared libraries
14703       # on systems that don't support them.
14704       lt_prog_compiler_can_build_shared_GCJ=no
14705       enable_shared=no
14706       ;;
14707
14708     sysv4*MP*)
14709       if test -d /usr/nec; then
14710         lt_prog_compiler_pic_GCJ=-Kconform_pic
14711       fi
14712       ;;
14713
14714     hpux*)
14715       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14716       # not for PA HP-UX.
14717       case "$host_cpu" in
14718       hppa*64*|ia64*)
14719         # +Z the default
14720         ;;
14721       *)
14722         lt_prog_compiler_pic_GCJ='-fPIC'
14723         ;;
14724       esac
14725       ;;
14726
14727     *)
14728       lt_prog_compiler_pic_GCJ='-fPIC'
14729       ;;
14730     esac
14731   else
14732     # PORTME Check for flag to pass linker flags through the system compiler.
14733     case $host_os in
14734     aix*)
14735       lt_prog_compiler_wl_GCJ='-Wl,'
14736       if test "$host_cpu" = ia64; then
14737         # AIX 5 now supports IA64 processor
14738         lt_prog_compiler_static_GCJ='-Bstatic'
14739       else
14740         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14741       fi
14742       ;;
14743
14744     mingw* | pw32* | os2*)
14745       # This hack is so that the source file can tell whether it is being
14746       # built for inclusion in a dll (and should export symbols for example).
14747       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14748       ;;
14749
14750     hpux9* | hpux10* | hpux11*)
14751       lt_prog_compiler_wl_GCJ='-Wl,'
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='+Z'
14760         ;;
14761       esac
14762       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14763       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14764       ;;
14765
14766     irix5* | irix6* | nonstopux*)
14767       lt_prog_compiler_wl_GCJ='-Wl,'
14768       # PIC (with -KPIC) is the default.
14769       lt_prog_compiler_static_GCJ='-non_shared'
14770       ;;
14771
14772     newsos6)
14773       lt_prog_compiler_pic_GCJ='-KPIC'
14774       lt_prog_compiler_static_GCJ='-Bstatic'
14775       ;;
14776
14777     linux*)
14778       case $CC in
14779       icc|ecc)
14780         lt_prog_compiler_wl_GCJ='-Wl,'
14781         lt_prog_compiler_pic_GCJ='-KPIC'
14782         lt_prog_compiler_static_GCJ='-static'
14783         ;;
14784       ccc)
14785         lt_prog_compiler_wl_GCJ='-Wl,'
14786         # All Alpha code is PIC.
14787         lt_prog_compiler_static_GCJ='-non_shared'
14788         ;;
14789       esac
14790       ;;
14791
14792     osf3* | osf4* | osf5*)
14793       lt_prog_compiler_wl_GCJ='-Wl,'
14794       # All OSF/1 code is PIC.
14795       lt_prog_compiler_static_GCJ='-non_shared'
14796       ;;
14797
14798     sco3.2v5*)
14799       lt_prog_compiler_pic_GCJ='-Kpic'
14800       lt_prog_compiler_static_GCJ='-dn'
14801       ;;
14802
14803     solaris*)
14804       lt_prog_compiler_wl_GCJ='-Wl,'
14805       lt_prog_compiler_pic_GCJ='-KPIC'
14806       lt_prog_compiler_static_GCJ='-Bstatic'
14807       ;;
14808
14809     sunos4*)
14810       lt_prog_compiler_wl_GCJ='-Qoption ld '
14811       lt_prog_compiler_pic_GCJ='-PIC'
14812       lt_prog_compiler_static_GCJ='-Bstatic'
14813       ;;
14814
14815     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14816       lt_prog_compiler_wl_GCJ='-Wl,'
14817       lt_prog_compiler_pic_GCJ='-KPIC'
14818       lt_prog_compiler_static_GCJ='-Bstatic'
14819       ;;
14820
14821     sysv4*MP*)
14822       if test -d /usr/nec ;then
14823         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14824         lt_prog_compiler_static_GCJ='-Bstatic'
14825       fi
14826       ;;
14827
14828     uts4*)
14829       lt_prog_compiler_pic_GCJ='-pic'
14830       lt_prog_compiler_static_GCJ='-Bstatic'
14831       ;;
14832
14833     *)
14834       lt_prog_compiler_can_build_shared_GCJ=no
14835       ;;
14836     esac
14837   fi
14838
14839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14840 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14841
14842 #
14843 # Check to make sure the PIC flag actually works.
14844 #
14845 if test -n "$lt_prog_compiler_pic_GCJ"; then
14846   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14847 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14848 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   lt_prog_compiler_pic_works_GCJ=no
14852   ac_outfile=conftest.$ac_objext
14853    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14854    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14855    # Insert the option either (1) after the last *FLAGS variable, or
14856    # (2) before a word containing "conftest.", or (3) at the end.
14857    # Note that $ac_compile itself does not contain backslashes and begins
14858    # with a dollar sign (not a hyphen), so the echo should work correctly.
14859    # The option is referenced via a variable to avoid confusing sed.
14860    lt_compile=`echo "$ac_compile" | $SED \
14861    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863    -e 's:$: $lt_compiler_flag:'`
14864    (eval echo "\"\$as_me:14864: $lt_compile\"" >&5)
14865    (eval "$lt_compile" 2>conftest.err)
14866    ac_status=$?
14867    cat conftest.err >&5
14868    echo "$as_me:14868: \$? = $ac_status" >&5
14869    if (exit $ac_status) && test -s "$ac_outfile"; then
14870      # The compiler can only warn and ignore the option if not recognized
14871      # So say no if there are warnings
14872      if test ! -s conftest.err; then
14873        lt_prog_compiler_pic_works_GCJ=yes
14874      fi
14875    fi
14876    $rm conftest*
14877
14878 fi
14879 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14880 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14881
14882 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14883     case $lt_prog_compiler_pic_GCJ in
14884      "" | " "*) ;;
14885      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14886      esac
14887 else
14888     lt_prog_compiler_pic_GCJ=
14889      lt_prog_compiler_can_build_shared_GCJ=no
14890 fi
14891
14892 fi
14893 case "$host_os" in
14894   # For platforms which do not support PIC, -DPIC is meaningless:
14895   *djgpp*)
14896     lt_prog_compiler_pic_GCJ=
14897     ;;
14898   *)
14899     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14900     ;;
14901 esac
14902
14903 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14905 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   lt_cv_prog_compiler_c_o_GCJ=no
14909    $rm -r conftest 2>/dev/null
14910    mkdir conftest
14911    cd conftest
14912    mkdir out
14913    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14914
14915    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14916    # that will create temporary files in the current directory regardless of
14917    # the output directory.  Thus, making CWD read-only will cause this test
14918    # to fail, enabling locking or at least warning the user not to do parallel
14919    # builds.
14920    chmod -w .
14921
14922    lt_compiler_flag="-o out/conftest2.$ac_objext"
14923    # Insert the option either (1) after the last *FLAGS variable, or
14924    # (2) before a word containing "conftest.", or (3) at the end.
14925    # Note that $ac_compile itself does not contain backslashes and begins
14926    # with a dollar sign (not a hyphen), so the echo should work correctly.
14927    lt_compile=`echo "$ac_compile" | $SED \
14928    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930    -e 's:$: $lt_compiler_flag:'`
14931    (eval echo "\"\$as_me:14931: $lt_compile\"" >&5)
14932    (eval "$lt_compile" 2>out/conftest.err)
14933    ac_status=$?
14934    cat out/conftest.err >&5
14935    echo "$as_me:14935: \$? = $ac_status" >&5
14936    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14937    then
14938      # The compiler can only warn and ignore the option if not recognized
14939      # So say no if there are warnings
14940      if test ! -s out/conftest.err; then
14941        lt_cv_prog_compiler_c_o_GCJ=yes
14942      fi
14943    fi
14944    chmod u+w .
14945    $rm conftest* out/*
14946    rmdir out
14947    cd ..
14948    rmdir conftest
14949    $rm conftest*
14950
14951 fi
14952 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14953 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14954
14955
14956 hard_links="nottested"
14957 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14958   # do not overwrite the value of need_locks provided by the user
14959   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14961   hard_links=yes
14962   $rm conftest*
14963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14964   touch conftest.a
14965   ln conftest.a conftest.b 2>&5 || hard_links=no
14966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14967   echo "$as_me:$LINENO: result: $hard_links" >&5
14968 echo "${ECHO_T}$hard_links" >&6
14969   if test "$hard_links" = no; then
14970     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14972     need_locks=warn
14973   fi
14974 else
14975   need_locks=no
14976 fi
14977
14978 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14979 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14980
14981   runpath_var=
14982   allow_undefined_flag_GCJ=
14983   enable_shared_with_static_runtimes_GCJ=no
14984   archive_cmds_GCJ=
14985   archive_expsym_cmds_GCJ=
14986   old_archive_From_new_cmds_GCJ=
14987   old_archive_from_expsyms_cmds_GCJ=
14988   export_dynamic_flag_spec_GCJ=
14989   whole_archive_flag_spec_GCJ=
14990   thread_safe_flag_spec_GCJ=
14991   hardcode_libdir_flag_spec_GCJ=
14992   hardcode_libdir_flag_spec_ld_GCJ=
14993   hardcode_libdir_separator_GCJ=
14994   hardcode_direct_GCJ=no
14995   hardcode_minus_L_GCJ=no
14996   hardcode_shlibpath_var_GCJ=unsupported
14997   link_all_deplibs_GCJ=unknown
14998   hardcode_automatic_GCJ=no
14999   module_cmds_GCJ=
15000   module_expsym_cmds_GCJ=
15001   always_export_symbols_GCJ=no
15002   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15003   # include_expsyms should be a list of space-separated symbols to be *always*
15004   # included in the symbol list
15005   include_expsyms_GCJ=
15006   # exclude_expsyms can be an extended regexp of symbols to exclude
15007   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15008   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15009   # as well as any symbol that contains `d'.
15010   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15011   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15012   # platforms (ab)use it in PIC code, but their linkers get confused if
15013   # the symbol is explicitly referenced.  Since portable code cannot
15014   # rely on this symbol name, it's probably fine to never include it in
15015   # preloaded symbol tables.
15016   extract_expsyms_cmds=
15017
15018   case $host_os in
15019   cygwin* | mingw* | pw32*)
15020     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15021     # When not using gcc, we currently assume that we are using
15022     # Microsoft Visual C++.
15023     if test "$GCC" != yes; then
15024       with_gnu_ld=no
15025     fi
15026     ;;
15027   openbsd*)
15028     with_gnu_ld=no
15029     ;;
15030   esac
15031
15032   ld_shlibs_GCJ=yes
15033   if test "$with_gnu_ld" = yes; then
15034     # If archive_cmds runs LD, not CC, wlarc should be empty
15035     wlarc='${wl}'
15036
15037     # See if GNU ld supports shared libraries.
15038     case $host_os in
15039     aix3* | aix4* | aix5*)
15040       # On AIX/PPC, the GNU linker is very broken
15041       if test "$host_cpu" != ia64; then
15042         ld_shlibs_GCJ=no
15043         cat <<EOF 1>&2
15044
15045 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15046 *** to be unable to reliably create shared libraries on AIX.
15047 *** Therefore, libtool is disabling shared libraries support.  If you
15048 *** really care for shared libraries, you may want to modify your PATH
15049 *** so that a non-GNU linker is found, and then restart.
15050
15051 EOF
15052       fi
15053       ;;
15054
15055     amigaos*)
15056       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)'
15057       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15058       hardcode_minus_L_GCJ=yes
15059
15060       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15061       # that the semantics of dynamic libraries on AmigaOS, at least up
15062       # to version 4, is to share data among multiple programs linked
15063       # with the same dynamic library.  Since this doesn't match the
15064       # behavior of shared libraries on other platforms, we can't use
15065       # them.
15066       ld_shlibs_GCJ=no
15067       ;;
15068
15069     beos*)
15070       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071         allow_undefined_flag_GCJ=unsupported
15072         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15073         # support --undefined.  This deserves some investigation.  FIXME
15074         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15075       else
15076         ld_shlibs_GCJ=no
15077       fi
15078       ;;
15079
15080     cygwin* | mingw* | pw32*)
15081       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15082       # as there is no search path for DLLs.
15083       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15084       allow_undefined_flag_GCJ=unsupported
15085       always_export_symbols_GCJ=no
15086       enable_shared_with_static_runtimes_GCJ=yes
15087       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15088
15089       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15090         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15091         # If the export-symbols file already is a .def file (1st line
15092         # is EXPORTS), use it as is; otherwise, prepend...
15093         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15094           cp $export_symbols $output_objdir/$soname.def;
15095         else
15096           echo EXPORTS > $output_objdir/$soname.def;
15097           cat $export_symbols >> $output_objdir/$soname.def;
15098         fi~
15099         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15100       else
15101         ld_shlibs=no
15102       fi
15103       ;;
15104
15105     netbsd*)
15106       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15107         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15108         wlarc=
15109       else
15110         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15112       fi
15113       ;;
15114
15115     solaris* | sysv5*)
15116       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15117         ld_shlibs_GCJ=no
15118         cat <<EOF 1>&2
15119
15120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15121 *** create shared libraries on Solaris systems.  Therefore, libtool
15122 *** is disabling shared libraries support.  We urge you to upgrade GNU
15123 *** binutils to release 2.9.1 or newer.  Another option is to modify
15124 *** your PATH or compiler configuration so that the native linker is
15125 *** used, and then restart.
15126
15127 EOF
15128       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15130         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15131       else
15132         ld_shlibs_GCJ=no
15133       fi
15134       ;;
15135
15136     sunos4*)
15137       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15138       wlarc=
15139       hardcode_direct_GCJ=yes
15140       hardcode_shlibpath_var_GCJ=no
15141       ;;
15142
15143     *)
15144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15145         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147       else
15148         ld_shlibs_GCJ=no
15149       fi
15150       ;;
15151     esac
15152
15153     if test "$ld_shlibs_GCJ" = yes; then
15154       runpath_var=LD_RUN_PATH
15155       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15156       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15157       # ancient GNU ld didn't support --whole-archive et. al.
15158       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15159         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15160       else
15161         whole_archive_flag_spec_GCJ=
15162       fi
15163     fi
15164   else
15165     # PORTME fill in a description of your system's linker (not GNU ld)
15166     case $host_os in
15167     aix3*)
15168       allow_undefined_flag_GCJ=unsupported
15169       always_export_symbols_GCJ=yes
15170       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'
15171       # Note: this linker hardcodes the directories in LIBPATH if there
15172       # are no directories specified by -L.
15173       hardcode_minus_L_GCJ=yes
15174       if test "$GCC" = yes && test -z "$link_static_flag"; then
15175         # Neither direct hardcoding nor static linking is supported with a
15176         # broken collect2.
15177         hardcode_direct_GCJ=unsupported
15178       fi
15179       ;;
15180
15181     aix4* | aix5*)
15182       if test "$host_cpu" = ia64; then
15183         # On IA64, the linker does run time linking by default, so we don't
15184         # have to do anything special.
15185         aix_use_runtimelinking=no
15186         exp_sym_flag='-Bexport'
15187         no_entry_flag=""
15188       else
15189         # If we're using GNU nm, then we don't want the "-C" option.
15190         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15191         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15192           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'
15193         else
15194           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'
15195         fi
15196         aix_use_runtimelinking=no
15197
15198         # Test if we are trying to use run time linking or normal
15199         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15200         # need to do runtime linking.
15201         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15202           for ld_flag in $LDFLAGS; do
15203           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15204             aix_use_runtimelinking=yes
15205             break
15206           fi
15207           done
15208         esac
15209
15210         exp_sym_flag='-bexport'
15211         no_entry_flag='-bnoentry'
15212       fi
15213
15214       # When large executables or shared objects are built, AIX ld can
15215       # have problems creating the table of contents.  If linking a library
15216       # or program results in "error TOC overflow" add -mminimal-toc to
15217       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15218       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15219
15220       archive_cmds_GCJ=''
15221       hardcode_direct_GCJ=yes
15222       hardcode_libdir_separator_GCJ=':'
15223       link_all_deplibs_GCJ=yes
15224
15225       if test "$GCC" = yes; then
15226         case $host_os in aix4.012|aix4.012.*)
15227         # We only want to do this on AIX 4.2 and lower, the check
15228         # below for broken collect2 doesn't work under 4.3+
15229           collect2name=`${CC} -print-prog-name=collect2`
15230           if test -f "$collect2name" && \
15231            strings "$collect2name" | grep resolve_lib_name >/dev/null
15232           then
15233           # We have reworked collect2
15234           hardcode_direct_GCJ=yes
15235           else
15236           # We have old collect2
15237           hardcode_direct_GCJ=unsupported
15238           # It fails to find uninstalled libraries when the uninstalled
15239           # path is not listed in the libpath.  Setting hardcode_minus_L
15240           # to unsupported forces relinking
15241           hardcode_minus_L_GCJ=yes
15242           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15243           hardcode_libdir_separator_GCJ=
15244           fi
15245         esac
15246         shared_flag='-shared'
15247       else
15248         # not using gcc
15249         if test "$host_cpu" = ia64; then
15250         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15251         # chokes on -Wl,-G. The following line is correct:
15252           shared_flag='-G'
15253         else
15254         if test "$aix_use_runtimelinking" = yes; then
15255             shared_flag='${wl}-G'
15256           else
15257             shared_flag='${wl}-bM:SRE'
15258         fi
15259         fi
15260       fi
15261
15262       # It seems that -bexpall does not export symbols beginning with
15263       # underscore (_), so it is better to generate a list of symbols to export.
15264       always_export_symbols_GCJ=yes
15265       if test "$aix_use_runtimelinking" = yes; then
15266         # Warning - without using the other runtime loading flags (-brtl),
15267         # -berok will link without error, but may produce a broken library.
15268         allow_undefined_flag_GCJ='-berok'
15269        # Determine the default libpath from the value encoded in an empty executable.
15270        cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276
15277 int
15278 main ()
15279 {
15280
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287   (eval $ac_link) 2>conftest.er1
15288   ac_status=$?
15289   grep -v '^ *+' conftest.er1 >conftest.err
15290   rm -f conftest.er1
15291   cat conftest.err >&5
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); } &&
15294          { ac_try='test -z "$ac_c_werror_flag"
15295                          || test ! -s conftest.err'
15296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297   (eval $ac_try) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; } &&
15301          { ac_try='test -s conftest$ac_exeext'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }; then
15307
15308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15309 }'`
15310 # Check for a 64-bit object if we didn't find anything.
15311 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; }
15312 }'`; fi
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 fi
15318 rm -f conftest.err conftest.$ac_objext \
15319       conftest$ac_exeext conftest.$ac_ext
15320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15321
15322        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15323         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"
15324        else
15325         if test "$host_cpu" = ia64; then
15326           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15327           allow_undefined_flag_GCJ="-z nodefs"
15328           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"
15329         else
15330          # Determine the default libpath from the value encoded in an empty executable.
15331          cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337
15338 int
15339 main ()
15340 {
15341
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348   (eval $ac_link) 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -z "$ac_c_werror_flag"
15356                          || test ! -s conftest.err'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; } &&
15362          { ac_try='test -s conftest$ac_exeext'
15363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364   (eval $ac_try) 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; }; then
15368
15369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15370 }'`
15371 # Check for a 64-bit object if we didn't find anything.
15372 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; }
15373 }'`; fi
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 fi
15379 rm -f conftest.err conftest.$ac_objext \
15380       conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15382
15383          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15384           # Warning - without using the other run time loading flags,
15385           # -berok will link without error, but may produce a broken library.
15386           no_undefined_flag_GCJ=' ${wl}-bernotok'
15387           allow_undefined_flag_GCJ=' ${wl}-berok'
15388           # -bexpall does not export symbols beginning with underscore (_)
15389           always_export_symbols_GCJ=yes
15390           # Exported symbols can be pulled into shared objects from archives
15391           whole_archive_flag_spec_GCJ=' '
15392           archive_cmds_need_lc_GCJ=yes
15393           # This is similar to how AIX traditionally builds it's shared libraries.
15394           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'
15395         fi
15396       fi
15397       ;;
15398
15399     amigaos*)
15400       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)'
15401       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15402       hardcode_minus_L_GCJ=yes
15403       # see comment about different semantics on the GNU ld section
15404       ld_shlibs_GCJ=no
15405       ;;
15406
15407     bsdi4*)
15408       export_dynamic_flag_spec_GCJ=-rdynamic
15409       ;;
15410
15411     cygwin* | mingw* | pw32*)
15412       # When not using gcc, we currently assume that we are using
15413       # Microsoft Visual C++.
15414       # hardcode_libdir_flag_spec is actually meaningless, as there is
15415       # no search path for DLLs.
15416       hardcode_libdir_flag_spec_GCJ=' '
15417       allow_undefined_flag_GCJ=unsupported
15418       # Tell ltmain to make .lib files, not .a files.
15419       libext=lib
15420       # Tell ltmain to make .dll files, not .so files.
15421       shrext=".dll"
15422       # FIXME: Setting linknames here is a bad hack.
15423       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15424       # The linker will automatically build a .lib file if we build a DLL.
15425       old_archive_From_new_cmds_GCJ='true'
15426       # FIXME: Should let the user specify the lib program.
15427       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15428       fix_srcfile_path='`cygpath -w "$srcfile"`'
15429       enable_shared_with_static_runtimes_GCJ=yes
15430       ;;
15431
15432     darwin* | rhapsody*)
15433     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15434       archive_cmds_need_lc_GCJ=no
15435       case "$host_os" in
15436       rhapsody* | darwin1.[012])
15437         allow_undefined_flag_GCJ='-undefined suppress'
15438         ;;
15439       *) # Darwin 1.3 on
15440         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15441         ;;
15442       esac
15443       # FIXME: Relying on posixy $() will cause problems for
15444       #        cross-compilation, but unfortunately the echo tests do not
15445       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15446       #        `"' quotes if we put them in here... so don't!
15447         lt_int_apple_cc_single_mod=no
15448         output_verbose_link_cmd='echo'
15449         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15450           lt_int_apple_cc_single_mod=yes
15451         fi
15452         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15453           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15454         else
15455         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'
15456       fi
15457       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15458       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15459         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15460           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}'
15461         else
15462           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}'
15463         fi
15464           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}'
15465       hardcode_direct_GCJ=no
15466       hardcode_automatic_GCJ=yes
15467       hardcode_shlibpath_var_GCJ=unsupported
15468       whole_archive_flag_spec_GCJ='-all_load $convenience'
15469       link_all_deplibs_GCJ=yes
15470     fi
15471       ;;
15472
15473     dgux*)
15474       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476       hardcode_shlibpath_var_GCJ=no
15477       ;;
15478
15479     freebsd1*)
15480       ld_shlibs_GCJ=no
15481       ;;
15482
15483     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15484     # support.  Future versions do this automatically, but an explicit c++rt0.o
15485     # does not break anything, and helps significantly (at the cost of a little
15486     # extra space).
15487     freebsd2.2*)
15488       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15489       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15490       hardcode_direct_GCJ=yes
15491       hardcode_shlibpath_var_GCJ=no
15492       ;;
15493
15494     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15495     freebsd2*)
15496       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15497       hardcode_direct_GCJ=yes
15498       hardcode_minus_L_GCJ=yes
15499       hardcode_shlibpath_var_GCJ=no
15500       ;;
15501
15502     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15503     freebsd*)
15504       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15505       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506       hardcode_direct_GCJ=yes
15507       hardcode_shlibpath_var_GCJ=no
15508       ;;
15509
15510     hpux9*)
15511       if test "$GCC" = yes; then
15512         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'
15513       else
15514         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'
15515       fi
15516       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15517       hardcode_libdir_separator_GCJ=:
15518       hardcode_direct_GCJ=yes
15519
15520       # hardcode_minus_L: Not really in the search PATH,
15521       # but as the default location of the library.
15522       hardcode_minus_L_GCJ=yes
15523       export_dynamic_flag_spec_GCJ='${wl}-E'
15524       ;;
15525
15526     hpux10* | hpux11*)
15527       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15528         case "$host_cpu" in
15529         hppa*64*|ia64*)
15530           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15531           ;;
15532         *)
15533           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15534           ;;
15535         esac
15536       else
15537         case "$host_cpu" in
15538         hppa*64*|ia64*)
15539           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15540           ;;
15541         *)
15542           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15543           ;;
15544         esac
15545       fi
15546       if test "$with_gnu_ld" = no; then
15547         case "$host_cpu" in
15548         hppa*64*)
15549           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15550           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15551           hardcode_libdir_separator_GCJ=:
15552           hardcode_direct_GCJ=no
15553           hardcode_shlibpath_var_GCJ=no
15554           ;;
15555         ia64*)
15556           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15557           hardcode_direct_GCJ=no
15558           hardcode_shlibpath_var_GCJ=no
15559
15560           # hardcode_minus_L: Not really in the search PATH,
15561           # but as the default location of the library.
15562           hardcode_minus_L_GCJ=yes
15563           ;;
15564         *)
15565           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566           hardcode_libdir_separator_GCJ=:
15567           hardcode_direct_GCJ=yes
15568           export_dynamic_flag_spec_GCJ='${wl}-E'
15569
15570           # hardcode_minus_L: Not really in the search PATH,
15571           # but as the default location of the library.
15572           hardcode_minus_L_GCJ=yes
15573           ;;
15574         esac
15575       fi
15576       ;;
15577
15578     irix5* | irix6* | nonstopux*)
15579       if test "$GCC" = yes; then
15580         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'
15581       else
15582         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'
15583         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15584       fi
15585       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15586       hardcode_libdir_separator_GCJ=:
15587       link_all_deplibs_GCJ=yes
15588       ;;
15589
15590     netbsd*)
15591       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15593       else
15594         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15595       fi
15596       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15597       hardcode_direct_GCJ=yes
15598       hardcode_shlibpath_var_GCJ=no
15599       ;;
15600
15601     newsos6)
15602       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603       hardcode_direct_GCJ=yes
15604       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15605       hardcode_libdir_separator_GCJ=:
15606       hardcode_shlibpath_var_GCJ=no
15607       ;;
15608
15609     openbsd*)
15610       hardcode_direct_GCJ=yes
15611       hardcode_shlibpath_var_GCJ=no
15612       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15614         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15615         export_dynamic_flag_spec_GCJ='${wl}-E'
15616       else
15617        case $host_os in
15618          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15619            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15620            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15621            ;;
15622          *)
15623            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15624            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15625            ;;
15626        esac
15627       fi
15628       ;;
15629
15630     os2*)
15631       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15632       hardcode_minus_L_GCJ=yes
15633       allow_undefined_flag_GCJ=unsupported
15634       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'
15635       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15636       ;;
15637
15638     osf3*)
15639       if test "$GCC" = yes; then
15640         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15641         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'
15642       else
15643         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15644         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'
15645       fi
15646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15647       hardcode_libdir_separator_GCJ=:
15648       ;;
15649
15650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15651       if test "$GCC" = yes; then
15652         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15653         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'
15654         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15655       else
15656         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15657         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'
15658         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~
15659         $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'
15660
15661         # Both c and cxx compiler support -rpath directly
15662         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15663       fi
15664       hardcode_libdir_separator_GCJ=:
15665       ;;
15666
15667     sco3.2v5*)
15668       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669       hardcode_shlibpath_var_GCJ=no
15670       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15671       runpath_var=LD_RUN_PATH
15672       hardcode_runpath_var=yes
15673       ;;
15674
15675     solaris*)
15676       no_undefined_flag_GCJ=' -z text'
15677       if test "$GCC" = yes; then
15678         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15680           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15681       else
15682         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15684         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15685       fi
15686       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15687       hardcode_shlibpath_var_GCJ=no
15688       case $host_os in
15689       solaris2.[0-5] | solaris2.[0-5].*) ;;
15690       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15691         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15692       esac
15693       link_all_deplibs_GCJ=yes
15694       ;;
15695
15696     sunos4*)
15697       if test "x$host_vendor" = xsequent; then
15698         # Use $CC to link under sequent, because it throws in some extra .o
15699         # files that make .init and .fini sections work.
15700         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15701       else
15702         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15703       fi
15704       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15705       hardcode_direct_GCJ=yes
15706       hardcode_minus_L_GCJ=yes
15707       hardcode_shlibpath_var_GCJ=no
15708       ;;
15709
15710     sysv4)
15711       case $host_vendor in
15712         sni)
15713           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714           hardcode_direct_GCJ=yes # is this really true???
15715         ;;
15716         siemens)
15717           ## LD is ld it makes a PLAMLIB
15718           ## CC just makes a GrossModule.
15719           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15721           hardcode_direct_GCJ=no
15722         ;;
15723         motorola)
15724           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15726         ;;
15727       esac
15728       runpath_var='LD_RUN_PATH'
15729       hardcode_shlibpath_var_GCJ=no
15730       ;;
15731
15732     sysv4.3*)
15733       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734       hardcode_shlibpath_var_GCJ=no
15735       export_dynamic_flag_spec_GCJ='-Bexport'
15736       ;;
15737
15738     sysv4*MP*)
15739       if test -d /usr/nec; then
15740         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741         hardcode_shlibpath_var_GCJ=no
15742         runpath_var=LD_RUN_PATH
15743         hardcode_runpath_var=yes
15744         ld_shlibs_GCJ=yes
15745       fi
15746       ;;
15747
15748     sysv4.2uw2*)
15749       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15750       hardcode_direct_GCJ=yes
15751       hardcode_minus_L_GCJ=no
15752       hardcode_shlibpath_var_GCJ=no
15753       hardcode_runpath_var=yes
15754       runpath_var=LD_RUN_PATH
15755       ;;
15756
15757    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15758       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15759       if test "$GCC" = yes; then
15760         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761       else
15762         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763       fi
15764       runpath_var='LD_RUN_PATH'
15765       hardcode_shlibpath_var_GCJ=no
15766       ;;
15767
15768     sysv5*)
15769       no_undefined_flag_GCJ=' -z text'
15770       # $CC -shared without GNU ld will not create a library from C++
15771       # object files and a static libstdc++, better avoid it by now
15772       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15773       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15775       hardcode_libdir_flag_spec_GCJ=
15776       hardcode_shlibpath_var_GCJ=no
15777       runpath_var='LD_RUN_PATH'
15778       ;;
15779
15780     uts4*)
15781       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783       hardcode_shlibpath_var_GCJ=no
15784       ;;
15785
15786     *)
15787       ld_shlibs_GCJ=no
15788       ;;
15789     esac
15790   fi
15791
15792 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15793 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15794 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15795
15796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15797 if test "$GCC" = yes; then
15798   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15799 fi
15800
15801 #
15802 # Do we need to explicitly link libc?
15803 #
15804 case "x$archive_cmds_need_lc_GCJ" in
15805 x|xyes)
15806   # Assume -lc should be added
15807   archive_cmds_need_lc_GCJ=yes
15808
15809   if test "$enable_shared" = yes && test "$GCC" = yes; then
15810     case $archive_cmds_GCJ in
15811     *'~'*)
15812       # FIXME: we may have to deal with multi-command sequences.
15813       ;;
15814     '$CC '*)
15815       # Test whether the compiler implicitly links with -lc since on some
15816       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15817       # to ld, don't add -lc before -lgcc.
15818       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15819 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15820       $rm conftest*
15821       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15822
15823       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824   (eval $ac_compile) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } 2>conftest.err; then
15828         soname=conftest
15829         lib=conftest
15830         libobjs=conftest.$ac_objext
15831         deplibs=
15832         wl=$lt_prog_compiler_wl_GCJ
15833         compiler_flags=-v
15834         linker_flags=-v
15835         verstring=
15836         output_objdir=.
15837         libname=conftest
15838         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15839         allow_undefined_flag_GCJ=
15840         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15841   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }
15845         then
15846           archive_cmds_need_lc_GCJ=no
15847         else
15848           archive_cmds_need_lc_GCJ=yes
15849         fi
15850         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15851       else
15852         cat conftest.err 1>&5
15853       fi
15854       $rm conftest*
15855       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15856 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15857       ;;
15858     esac
15859   fi
15860   ;;
15861 esac
15862
15863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15865 hardcode_action_GCJ=
15866 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15867    test -n "$runpath_var GCJ" || \
15868    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15869
15870   # We can hardcode non-existant directories.
15871   if test "$hardcode_direct_GCJ" != no &&
15872      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15873      # have to relink, otherwise we might link with an installed library
15874      # when we should be linking with a yet-to-be-installed one
15875      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15876      test "$hardcode_minus_L_GCJ" != no; then
15877     # Linking always hardcodes the temporary library directory.
15878     hardcode_action_GCJ=relink
15879   else
15880     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15881     hardcode_action_GCJ=immediate
15882   fi
15883 else
15884   # We cannot hardcode anything, or else we can only hardcode existing
15885   # directories.
15886   hardcode_action_GCJ=unsupported
15887 fi
15888 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15889 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15890
15891 if test "$hardcode_action_GCJ" = relink; then
15892   # Fast installation is not supported
15893   enable_fast_install=no
15894 elif test "$shlibpath_overrides_runpath" = yes ||
15895      test "$enable_shared" = no; then
15896   # Fast installation is not necessary
15897   enable_fast_install=needless
15898 fi
15899
15900 striplib=
15901 old_striplib=
15902 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15903 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15904 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15905   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15906   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15907   echo "$as_me:$LINENO: result: yes" >&5
15908 echo "${ECHO_T}yes" >&6
15909 else
15910 # FIXME - insert some real tests, host_os isn't really good enough
15911   case $host_os in
15912    darwin*)
15913        if test -n "$STRIP" ; then
15914          striplib="$STRIP -x"
15915          echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15917        else
15918   echo "$as_me:$LINENO: result: no" >&5
15919 echo "${ECHO_T}no" >&6
15920 fi
15921        ;;
15922    *)
15923   echo "$as_me:$LINENO: result: no" >&5
15924 echo "${ECHO_T}no" >&6
15925     ;;
15926   esac
15927 fi
15928
15929 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15930 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15931 library_names_spec=
15932 libname_spec='lib$name'
15933 soname_spec=
15934 shrext=".so"
15935 postinstall_cmds=
15936 postuninstall_cmds=
15937 finish_cmds=
15938 finish_eval=
15939 shlibpath_var=
15940 shlibpath_overrides_runpath=unknown
15941 version_type=none
15942 dynamic_linker="$host_os ld.so"
15943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15944 if test "$GCC" = yes; then
15945   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15946   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15947     # if the path contains ";" then we assume it to be the separator
15948     # otherwise default to the standard path separator (i.e. ":") - it is
15949     # assumed that no part of a normal pathname contains ";" but that should
15950     # okay in the real world where ";" in dirpaths is itself problematic.
15951     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15952   else
15953     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15954   fi
15955 else
15956   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15957 fi
15958 need_lib_prefix=unknown
15959 hardcode_into_libs=no
15960
15961 # when you set need_version to no, make sure it does not cause -set_version
15962 # flags to be left without arguments
15963 need_version=unknown
15964
15965 case $host_os in
15966 aix3*)
15967   version_type=linux
15968   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15969   shlibpath_var=LIBPATH
15970
15971   # AIX 3 has no versioning support, so we append a major version to the name.
15972   soname_spec='${libname}${release}${shared_ext}$major'
15973   ;;
15974
15975 aix4* | aix5*)
15976   version_type=linux
15977   need_lib_prefix=no
15978   need_version=no
15979   hardcode_into_libs=yes
15980   if test "$host_cpu" = ia64; then
15981     # AIX 5 supports IA64
15982     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15983     shlibpath_var=LD_LIBRARY_PATH
15984   else
15985     # With GCC up to 2.95.x, collect2 would create an import file
15986     # for dependence libraries.  The import file would start with
15987     # the line `#! .'.  This would cause the generated library to
15988     # depend on `.', always an invalid library.  This was fixed in
15989     # development snapshots of GCC prior to 3.0.
15990     case $host_os in
15991       aix4 | aix4.[01] | aix4.[01].*)
15992       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15993            echo ' yes '
15994            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15995         :
15996       else
15997         can_build_shared=no
15998       fi
15999       ;;
16000     esac
16001     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16002     # soname into executable. Probably we can add versioning support to
16003     # collect2, so additional links can be useful in future.
16004     if test "$aix_use_runtimelinking" = yes; then
16005       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16006       # instead of lib<name>.a to let people know that these are not
16007       # typical AIX shared libraries.
16008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009     else
16010       # We preserve .a as extension for shared libraries through AIX4.2
16011       # and later when we are not doing run time linking.
16012       library_names_spec='${libname}${release}.a $libname.a'
16013       soname_spec='${libname}${release}${shared_ext}$major'
16014     fi
16015     shlibpath_var=LIBPATH
16016   fi
16017   ;;
16018
16019 amigaos*)
16020   library_names_spec='$libname.ixlibrary $libname.a'
16021   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16022   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'
16023   ;;
16024
16025 beos*)
16026   library_names_spec='${libname}${shared_ext}'
16027   dynamic_linker="$host_os ld.so"
16028   shlibpath_var=LIBRARY_PATH
16029   ;;
16030
16031 bsdi4*)
16032   version_type=linux
16033   need_version=no
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035   soname_spec='${libname}${release}${shared_ext}$major'
16036   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16037   shlibpath_var=LD_LIBRARY_PATH
16038   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16039   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16040   # the default ld.so.conf also contains /usr/contrib/lib and
16041   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16042   # libtool to hard-code these into programs
16043   ;;
16044
16045 cygwin* | mingw* | pw32*)
16046   version_type=windows
16047   shrext=".dll"
16048   need_version=no
16049   need_lib_prefix=no
16050
16051   case $GCC,$host_os in
16052   yes,cygwin* | yes,mingw* | yes,pw32*)
16053     library_names_spec='$libname.dll.a'
16054     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16055     postinstall_cmds='base_file=`basename \${file}`~
16056       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16057       dldir=$destdir/`dirname \$dlpath`~
16058       test -d \$dldir || mkdir -p \$dldir~
16059       $install_prog $dir/$dlname \$dldir/$dlname'
16060     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16061       dlpath=$dir/\$dldll~
16062        $rm \$dlpath'
16063     shlibpath_overrides_runpath=yes
16064
16065     case $host_os in
16066     cygwin*)
16067       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16068       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16069       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16070       ;;
16071     mingw*)
16072       # MinGW DLLs use traditional 'lib' prefix
16073       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16074       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16075       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16076         # It is most probably a Windows format PATH printed by
16077         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16078         # path with ; separators, and with drive letters. We can handle the
16079         # drive letters (cygwin fileutils understands them), so leave them,
16080         # especially as we might pass files found there to a mingw objdump,
16081         # which wouldn't understand a cygwinified path. Ahh.
16082         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16083       else
16084         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16085       fi
16086       ;;
16087     pw32*)
16088       # pw32 DLLs use 'pw' prefix rather than 'lib'
16089       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16090       ;;
16091     esac
16092     ;;
16093
16094   *)
16095     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16096     ;;
16097   esac
16098   dynamic_linker='Win32 ld.exe'
16099   # FIXME: first we should search . and the directory the executable is in
16100   shlibpath_var=PATH
16101   ;;
16102
16103 darwin* | rhapsody*)
16104   dynamic_linker="$host_os dyld"
16105   version_type=darwin
16106   need_lib_prefix=no
16107   need_version=no
16108   # FIXME: Relying on posixy $() will cause problems for
16109   #        cross-compilation, but unfortunately the echo tests do not
16110   #        yet detect zsh echo's removal of \ escapes.
16111   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112   soname_spec='${libname}${release}${major}$shared_ext'
16113   shlibpath_overrides_runpath=yes
16114   shlibpath_var=DYLD_LIBRARY_PATH
16115   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16116   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16117   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16118   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"`
16119   fi
16120   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16121   ;;
16122
16123 dgux*)
16124   version_type=linux
16125   need_lib_prefix=no
16126   need_version=no
16127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16128   soname_spec='${libname}${release}${shared_ext}$major'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   ;;
16131
16132 freebsd1*)
16133   dynamic_linker=no
16134   ;;
16135
16136 freebsd*)
16137   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16138   version_type=freebsd-$objformat
16139   case $version_type in
16140     freebsd-elf*)
16141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16142       need_version=no
16143       need_lib_prefix=no
16144       ;;
16145     freebsd-*)
16146       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16147       need_version=yes
16148       ;;
16149   esac
16150   shlibpath_var=LD_LIBRARY_PATH
16151   case $host_os in
16152   freebsd2*)
16153     shlibpath_overrides_runpath=yes
16154     ;;
16155   freebsd3.01* | freebsdelf3.01*)
16156     shlibpath_overrides_runpath=yes
16157     hardcode_into_libs=yes
16158     ;;
16159   *) # from 3.2 on
16160     shlibpath_overrides_runpath=no
16161     hardcode_into_libs=yes
16162     ;;
16163   esac
16164   ;;
16165
16166 gnu*)
16167   version_type=linux
16168   need_lib_prefix=no
16169   need_version=no
16170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16171   soname_spec='${libname}${release}${shared_ext}$major'
16172   shlibpath_var=LD_LIBRARY_PATH
16173   hardcode_into_libs=yes
16174   ;;
16175
16176 hpux9* | hpux10* | hpux11*)
16177   # Give a soname corresponding to the major version so that dld.sl refuses to
16178   # link against other versions.
16179   version_type=sunos
16180   need_lib_prefix=no
16181   need_version=no
16182   case "$host_cpu" in
16183   ia64*)
16184     shrext='.so'
16185     hardcode_into_libs=yes
16186     dynamic_linker="$host_os dld.so"
16187     shlibpath_var=LD_LIBRARY_PATH
16188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190     soname_spec='${libname}${release}${shared_ext}$major'
16191     if test "X$HPUX_IA64_MODE" = X32; then
16192       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16193     else
16194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16195     fi
16196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16197     ;;
16198    hppa*64*)
16199      shrext='.sl'
16200      hardcode_into_libs=yes
16201      dynamic_linker="$host_os dld.sl"
16202      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16203      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205      soname_spec='${libname}${release}${shared_ext}$major'
16206      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16207      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208      ;;
16209    *)
16210     shrext='.sl'
16211     dynamic_linker="$host_os dld.sl"
16212     shlibpath_var=SHLIB_PATH
16213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215     soname_spec='${libname}${release}${shared_ext}$major'
16216     ;;
16217   esac
16218   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16219   postinstall_cmds='chmod 555 $lib'
16220   ;;
16221
16222 irix5* | irix6* | nonstopux*)
16223   case $host_os in
16224     nonstopux*) version_type=nonstopux ;;
16225     *)
16226         if test "$lt_cv_prog_gnu_ld" = yes; then
16227                 version_type=linux
16228         else
16229                 version_type=irix
16230         fi ;;
16231   esac
16232   need_lib_prefix=no
16233   need_version=no
16234   soname_spec='${libname}${release}${shared_ext}$major'
16235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16236   case $host_os in
16237   irix5* | nonstopux*)
16238     libsuff= shlibsuff=
16239     ;;
16240   *)
16241     case $LD in # libtool.m4 will add one of these switches to LD
16242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16243       libsuff= shlibsuff= libmagic=32-bit;;
16244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16245       libsuff=32 shlibsuff=N32 libmagic=N32;;
16246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16248     *) libsuff= shlibsuff= libmagic=never-match;;
16249     esac
16250     ;;
16251   esac
16252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16253   shlibpath_overrides_runpath=no
16254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16256   hardcode_into_libs=yes
16257   ;;
16258
16259 # No shared lib support for Linux oldld, aout, or coff.
16260 linux*oldld* | linux*aout* | linux*coff*)
16261   dynamic_linker=no
16262   ;;
16263
16264 # This must be Linux ELF.
16265 linux*)
16266   version_type=linux
16267   need_lib_prefix=no
16268   need_version=no
16269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16272   shlibpath_var=LD_LIBRARY_PATH
16273   shlibpath_overrides_runpath=no
16274   # This implies no fast_install, which is unacceptable.
16275   # Some rework will be needed to allow for fast_install
16276   # before this can be enabled.
16277   hardcode_into_libs=yes
16278
16279   # We used to test for /lib/ld.so.1 and disable shared libraries on
16280   # powerpc, because MkLinux only supported shared libraries with the
16281   # GNU dynamic linker.  Since this was broken with cross compilers,
16282   # most powerpc-linux boxes support dynamic linking these days and
16283   # people can always --disable-shared, the test was removed, and we
16284   # assume the GNU/Linux dynamic linker is in use.
16285   dynamic_linker='GNU/Linux ld.so'
16286   ;;
16287
16288 netbsd*)
16289   version_type=sunos
16290   need_lib_prefix=no
16291   need_version=no
16292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16295     dynamic_linker='NetBSD (a.out) ld.so'
16296   else
16297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16298     soname_spec='${libname}${release}${shared_ext}$major'
16299     dynamic_linker='NetBSD ld.elf_so'
16300   fi
16301   shlibpath_var=LD_LIBRARY_PATH
16302   shlibpath_overrides_runpath=yes
16303   hardcode_into_libs=yes
16304   ;;
16305
16306 newsos6)
16307   version_type=linux
16308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309   shlibpath_var=LD_LIBRARY_PATH
16310   shlibpath_overrides_runpath=yes
16311   ;;
16312
16313 nto-qnx)
16314   version_type=linux
16315   need_lib_prefix=no
16316   need_version=no
16317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   shlibpath_var=LD_LIBRARY_PATH
16320   shlibpath_overrides_runpath=yes
16321   ;;
16322
16323 openbsd*)
16324   version_type=sunos
16325   need_lib_prefix=no
16326   need_version=no
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16329   shlibpath_var=LD_LIBRARY_PATH
16330   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16331     case $host_os in
16332       openbsd2.[89] | openbsd2.[89].*)
16333         shlibpath_overrides_runpath=no
16334         ;;
16335       *)
16336         shlibpath_overrides_runpath=yes
16337         ;;
16338       esac
16339   else
16340     shlibpath_overrides_runpath=yes
16341   fi
16342   ;;
16343
16344 os2*)
16345   libname_spec='$name'
16346   shrext=".dll"
16347   need_lib_prefix=no
16348   library_names_spec='$libname${shared_ext} $libname.a'
16349   dynamic_linker='OS/2 ld.exe'
16350   shlibpath_var=LIBPATH
16351   ;;
16352
16353 osf3* | osf4* | osf5*)
16354   version_type=osf
16355   need_lib_prefix=no
16356   need_version=no
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16361   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16362   ;;
16363
16364 sco3.2v5*)
16365   version_type=osf
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368   shlibpath_var=LD_LIBRARY_PATH
16369   ;;
16370
16371 solaris*)
16372   version_type=linux
16373   need_lib_prefix=no
16374   need_version=no
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376   soname_spec='${libname}${release}${shared_ext}$major'
16377   shlibpath_var=LD_LIBRARY_PATH
16378   shlibpath_overrides_runpath=yes
16379   hardcode_into_libs=yes
16380   # ldd complains unless libraries are executable
16381   postinstall_cmds='chmod +x $lib'
16382   ;;
16383
16384 sunos4*)
16385   version_type=sunos
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16387   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   shlibpath_overrides_runpath=yes
16390   if test "$with_gnu_ld" = yes; then
16391     need_lib_prefix=no
16392   fi
16393   need_version=yes
16394   ;;
16395
16396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16397   version_type=linux
16398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399   soname_spec='${libname}${release}${shared_ext}$major'
16400   shlibpath_var=LD_LIBRARY_PATH
16401   case $host_vendor in
16402     sni)
16403       shlibpath_overrides_runpath=no
16404       need_lib_prefix=no
16405       export_dynamic_flag_spec='${wl}-Blargedynsym'
16406       runpath_var=LD_RUN_PATH
16407       ;;
16408     siemens)
16409       need_lib_prefix=no
16410       ;;
16411     motorola)
16412       need_lib_prefix=no
16413       need_version=no
16414       shlibpath_overrides_runpath=no
16415       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16416       ;;
16417   esac
16418   ;;
16419
16420 sysv4*MP*)
16421   if test -d /usr/nec ;then
16422     version_type=linux
16423     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16424     soname_spec='$libname${shared_ext}.$major'
16425     shlibpath_var=LD_LIBRARY_PATH
16426   fi
16427   ;;
16428
16429 uts4*)
16430   version_type=linux
16431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432   soname_spec='${libname}${release}${shared_ext}$major'
16433   shlibpath_var=LD_LIBRARY_PATH
16434   ;;
16435
16436 *)
16437   dynamic_linker=no
16438   ;;
16439 esac
16440 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16441 echo "${ECHO_T}$dynamic_linker" >&6
16442 test "$dynamic_linker" = no && can_build_shared=no
16443
16444 if test "x$enable_dlopen" != xyes; then
16445   enable_dlopen=unknown
16446   enable_dlopen_self=unknown
16447   enable_dlopen_self_static=unknown
16448 else
16449   lt_cv_dlopen=no
16450   lt_cv_dlopen_libs=
16451
16452   case $host_os in
16453   beos*)
16454     lt_cv_dlopen="load_add_on"
16455     lt_cv_dlopen_libs=
16456     lt_cv_dlopen_self=yes
16457     ;;
16458
16459   mingw* | pw32*)
16460     lt_cv_dlopen="LoadLibrary"
16461     lt_cv_dlopen_libs=
16462    ;;
16463
16464   cygwin*)
16465     lt_cv_dlopen="dlopen"
16466     lt_cv_dlopen_libs=
16467    ;;
16468
16469   darwin*)
16470   # if libdl is installed we need to link against it
16471     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16474   echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476   ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-ldl  $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484
16485 /* Override any gcc2 internal prototype to avoid an error.  */
16486 #ifdef __cplusplus
16487 extern "C"
16488 #endif
16489 /* We use char because int might match the return type of a gcc2
16490    builtin and then its argument prototype would still apply.  */
16491 char dlopen ();
16492 int
16493 main ()
16494 {
16495 dlopen ();
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502   (eval $ac_link) 2>conftest.er1
16503   ac_status=$?
16504   grep -v '^ *+' conftest.er1 >conftest.err
16505   rm -f conftest.er1
16506   cat conftest.err >&5
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); } &&
16509          { ac_try='test -z "$ac_c_werror_flag"
16510                          || test ! -s conftest.err'
16511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512   (eval $ac_try) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; } &&
16516          { ac_try='test -s conftest$ac_exeext'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   ac_cv_lib_dl_dlopen=yes
16523 else
16524   echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16526
16527 ac_cv_lib_dl_dlopen=no
16528 fi
16529 rm -f conftest.err conftest.$ac_objext \
16530       conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_lib_save_LIBS
16532 fi
16533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16535 if test $ac_cv_lib_dl_dlopen = yes; then
16536   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16537 else
16538
16539     lt_cv_dlopen="dyld"
16540     lt_cv_dlopen_libs=
16541     lt_cv_dlopen_self=yes
16542
16543 fi
16544
16545    ;;
16546
16547   *)
16548     echo "$as_me:$LINENO: checking for shl_load" >&5
16549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16550 if test "${ac_cv_func_shl_load+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16561 #define shl_load innocuous_shl_load
16562
16563 /* System header to define __stub macros and hopefully few prototypes,
16564     which can conflict with char shl_load (); below.
16565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566     <limits.h> exists even on freestanding compilers.  */
16567
16568 #ifdef __STDC__
16569 # include <limits.h>
16570 #else
16571 # include <assert.h>
16572 #endif
16573
16574 #undef shl_load
16575
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>conftest.er1
16607   ac_status=$?
16608   grep -v '^ *+' conftest.er1 >conftest.err
16609   rm -f conftest.er1
16610   cat conftest.err >&5
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); } &&
16613          { ac_try='test -z "$ac_c_werror_flag"
16614                          || test ! -s conftest.err'
16615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616   (eval $ac_try) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; } &&
16620          { ac_try='test -s conftest$ac_exeext'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_func_shl_load=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ac_cv_func_shl_load=no
16632 fi
16633 rm -f conftest.err conftest.$ac_objext \
16634       conftest$ac_exeext conftest.$ac_ext
16635 fi
16636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16638 if test $ac_cv_func_shl_load = yes; then
16639   lt_cv_dlopen="shl_load"
16640 else
16641   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   ac_check_lib_save_LIBS=$LIBS
16647 LIBS="-ldld  $LIBS"
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 /* Override any gcc2 internal prototype to avoid an error.  */
16656 #ifdef __cplusplus
16657 extern "C"
16658 #endif
16659 /* We use char because int might match the return type of a gcc2
16660    builtin and then its argument prototype would still apply.  */
16661 char shl_load ();
16662 int
16663 main ()
16664 {
16665 shl_load ();
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672   (eval $ac_link) 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -z "$ac_c_werror_flag"
16680                          || test ! -s conftest.err'
16681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682   (eval $ac_try) 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; } &&
16686          { ac_try='test -s conftest$ac_exeext'
16687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688   (eval $ac_try) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; }; then
16692   ac_cv_lib_dld_shl_load=yes
16693 else
16694   echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ac_cv_lib_dld_shl_load=no
16698 fi
16699 rm -f conftest.err conftest.$ac_objext \
16700       conftest$ac_exeext conftest.$ac_ext
16701 LIBS=$ac_check_lib_save_LIBS
16702 fi
16703 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16705 if test $ac_cv_lib_dld_shl_load = yes; then
16706   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16707 else
16708   echo "$as_me:$LINENO: checking for dlopen" >&5
16709 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16710 if test "${ac_cv_func_dlopen+set}" = set; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713   cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16721 #define dlopen innocuous_dlopen
16722
16723 /* System header to define __stub macros and hopefully few prototypes,
16724     which can conflict with char dlopen (); below.
16725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726     <limits.h> exists even on freestanding compilers.  */
16727
16728 #ifdef __STDC__
16729 # include <limits.h>
16730 #else
16731 # include <assert.h>
16732 #endif
16733
16734 #undef dlopen
16735
16736 /* Override any gcc2 internal prototype to avoid an error.  */
16737 #ifdef __cplusplus
16738 extern "C"
16739 {
16740 #endif
16741 /* We use char because int might match the return type of a gcc2
16742    builtin and then its argument prototype would still apply.  */
16743 char dlopen ();
16744 /* The GNU C library defines this for functions which it implements
16745     to always fail with ENOSYS.  Some functions are actually named
16746     something starting with __ and the normal name is an alias.  */
16747 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16748 choke me
16749 #else
16750 char (*f) () = dlopen;
16751 #endif
16752 #ifdef __cplusplus
16753 }
16754 #endif
16755
16756 int
16757 main ()
16758 {
16759 return f != dlopen;
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766   (eval $ac_link) 2>conftest.er1
16767   ac_status=$?
16768   grep -v '^ *+' conftest.er1 >conftest.err
16769   rm -f conftest.er1
16770   cat conftest.err >&5
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } &&
16773          { ac_try='test -z "$ac_c_werror_flag"
16774                          || test ! -s conftest.err'
16775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776   (eval $ac_try) 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); }; } &&
16780          { ac_try='test -s conftest$ac_exeext'
16781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782   (eval $ac_try) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; }; then
16786   ac_cv_func_dlopen=yes
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ac_cv_func_dlopen=no
16792 fi
16793 rm -f conftest.err conftest.$ac_objext \
16794       conftest$ac_exeext conftest.$ac_ext
16795 fi
16796 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16797 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16798 if test $ac_cv_func_dlopen = yes; then
16799   lt_cv_dlopen="dlopen"
16800 else
16801   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   ac_check_lib_save_LIBS=$LIBS
16807 LIBS="-ldl  $LIBS"
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814
16815 /* Override any gcc2 internal prototype to avoid an error.  */
16816 #ifdef __cplusplus
16817 extern "C"
16818 #endif
16819 /* We use char because int might match the return type of a gcc2
16820    builtin and then its argument prototype would still apply.  */
16821 char dlopen ();
16822 int
16823 main ()
16824 {
16825 dlopen ();
16826   ;
16827   return 0;
16828 }
16829 _ACEOF
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832   (eval $ac_link) 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } &&
16839          { ac_try='test -z "$ac_c_werror_flag"
16840                          || test ! -s conftest.err'
16841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842   (eval $ac_try) 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }; } &&
16846          { ac_try='test -s conftest$ac_exeext'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; }; then
16852   ac_cv_lib_dl_dlopen=yes
16853 else
16854   echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 ac_cv_lib_dl_dlopen=no
16858 fi
16859 rm -f conftest.err conftest.$ac_objext \
16860       conftest$ac_exeext conftest.$ac_ext
16861 LIBS=$ac_check_lib_save_LIBS
16862 fi
16863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16865 if test $ac_cv_lib_dl_dlopen = yes; then
16866   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16867 else
16868   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16871   echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873   ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-lsvld  $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881
16882 /* Override any gcc2 internal prototype to avoid an error.  */
16883 #ifdef __cplusplus
16884 extern "C"
16885 #endif
16886 /* We use char because int might match the return type of a gcc2
16887    builtin and then its argument prototype would still apply.  */
16888 char dlopen ();
16889 int
16890 main ()
16891 {
16892 dlopen ();
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899   (eval $ac_link) 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -z "$ac_c_werror_flag"
16907                          || test ! -s conftest.err'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest$ac_exeext'
16914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915   (eval $ac_try) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; }; then
16919   ac_cv_lib_svld_dlopen=yes
16920 else
16921   echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924 ac_cv_lib_svld_dlopen=no
16925 fi
16926 rm -f conftest.err conftest.$ac_objext \
16927       conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16932 if test $ac_cv_lib_svld_dlopen = yes; then
16933   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16934 else
16935   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16938   echo $ECHO_N "(cached) $ECHO_C" >&6
16939 else
16940   ac_check_lib_save_LIBS=$LIBS
16941 LIBS="-ldld  $LIBS"
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948
16949 /* Override any gcc2 internal prototype to avoid an error.  */
16950 #ifdef __cplusplus
16951 extern "C"
16952 #endif
16953 /* We use char because int might match the return type of a gcc2
16954    builtin and then its argument prototype would still apply.  */
16955 char dld_link ();
16956 int
16957 main ()
16958 {
16959 dld_link ();
16960   ;
16961   return 0;
16962 }
16963 _ACEOF
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966   (eval $ac_link) 2>conftest.er1
16967   ac_status=$?
16968   grep -v '^ *+' conftest.er1 >conftest.err
16969   rm -f conftest.er1
16970   cat conftest.err >&5
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); } &&
16973          { ac_try='test -z "$ac_c_werror_flag"
16974                          || test ! -s conftest.err'
16975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976   (eval $ac_try) 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; } &&
16980          { ac_try='test -s conftest$ac_exeext'
16981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982   (eval $ac_try) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_lib_dld_dld_link=yes
16987 else
16988   echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_cv_lib_dld_dld_link=no
16992 fi
16993 rm -f conftest.err conftest.$ac_objext \
16994       conftest$ac_exeext conftest.$ac_ext
16995 LIBS=$ac_check_lib_save_LIBS
16996 fi
16997 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16999 if test $ac_cv_lib_dld_dld_link = yes; then
17000   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17001 fi
17002
17003
17004 fi
17005
17006
17007 fi
17008
17009
17010 fi
17011
17012
17013 fi
17014
17015
17016 fi
17017
17018     ;;
17019   esac
17020
17021   if test "x$lt_cv_dlopen" != xno; then
17022     enable_dlopen=yes
17023   else
17024     enable_dlopen=no
17025   fi
17026
17027   case $lt_cv_dlopen in
17028   dlopen)
17029     save_CPPFLAGS="$CPPFLAGS"
17030     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17031
17032     save_LDFLAGS="$LDFLAGS"
17033     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17034
17035     save_LIBS="$LIBS"
17036     LIBS="$lt_cv_dlopen_libs $LIBS"
17037
17038     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17039 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17040 if test "${lt_cv_dlopen_self+set}" = set; then
17041   echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043           if test "$cross_compiling" = yes; then :
17044   lt_cv_dlopen_self=cross
17045 else
17046   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17047   lt_status=$lt_dlunknown
17048   cat > conftest.$ac_ext <<EOF
17049 #line 17049 "configure"
17050 #include "confdefs.h"
17051
17052 #if HAVE_DLFCN_H
17053 #include <dlfcn.h>
17054 #endif
17055
17056 #include <stdio.h>
17057
17058 #ifdef RTLD_GLOBAL
17059 #  define LT_DLGLOBAL           RTLD_GLOBAL
17060 #else
17061 #  ifdef DL_GLOBAL
17062 #    define LT_DLGLOBAL         DL_GLOBAL
17063 #  else
17064 #    define LT_DLGLOBAL         0
17065 #  endif
17066 #endif
17067
17068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17069    find out it does not work in some platform. */
17070 #ifndef LT_DLLAZY_OR_NOW
17071 #  ifdef RTLD_LAZY
17072 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17073 #  else
17074 #    ifdef DL_LAZY
17075 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17076 #    else
17077 #      ifdef RTLD_NOW
17078 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17079 #      else
17080 #        ifdef DL_NOW
17081 #          define LT_DLLAZY_OR_NOW      DL_NOW
17082 #        else
17083 #          define LT_DLLAZY_OR_NOW      0
17084 #        endif
17085 #      endif
17086 #    endif
17087 #  endif
17088 #endif
17089
17090 #ifdef __cplusplus
17091 extern "C" void exit (int);
17092 #endif
17093
17094 void fnord() { int i=42;}
17095 int main ()
17096 {
17097   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17098   int status = $lt_dlunknown;
17099
17100   if (self)
17101     {
17102       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17103       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17104       /* dlclose (self); */
17105     }
17106
17107     exit (status);
17108 }
17109 EOF
17110   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111   (eval $ac_link) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17115     (./conftest; exit; ) 2>/dev/null
17116     lt_status=$?
17117     case x$lt_status in
17118       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17119       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17120       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17121     esac
17122   else :
17123     # compilation failed
17124     lt_cv_dlopen_self=no
17125   fi
17126 fi
17127 rm -fr conftest*
17128
17129
17130 fi
17131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17132 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17133
17134     if test "x$lt_cv_dlopen_self" = xyes; then
17135       LDFLAGS="$LDFLAGS $link_static_flag"
17136       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17137 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17138 if test "${lt_cv_dlopen_self_static+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141           if test "$cross_compiling" = yes; then :
17142   lt_cv_dlopen_self_static=cross
17143 else
17144   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17145   lt_status=$lt_dlunknown
17146   cat > conftest.$ac_ext <<EOF
17147 #line 17147 "configure"
17148 #include "confdefs.h"
17149
17150 #if HAVE_DLFCN_H
17151 #include <dlfcn.h>
17152 #endif
17153
17154 #include <stdio.h>
17155
17156 #ifdef RTLD_GLOBAL
17157 #  define LT_DLGLOBAL           RTLD_GLOBAL
17158 #else
17159 #  ifdef DL_GLOBAL
17160 #    define LT_DLGLOBAL         DL_GLOBAL
17161 #  else
17162 #    define LT_DLGLOBAL         0
17163 #  endif
17164 #endif
17165
17166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17167    find out it does not work in some platform. */
17168 #ifndef LT_DLLAZY_OR_NOW
17169 #  ifdef RTLD_LAZY
17170 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17171 #  else
17172 #    ifdef DL_LAZY
17173 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17174 #    else
17175 #      ifdef RTLD_NOW
17176 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17177 #      else
17178 #        ifdef DL_NOW
17179 #          define LT_DLLAZY_OR_NOW      DL_NOW
17180 #        else
17181 #          define LT_DLLAZY_OR_NOW      0
17182 #        endif
17183 #      endif
17184 #    endif
17185 #  endif
17186 #endif
17187
17188 #ifdef __cplusplus
17189 extern "C" void exit (int);
17190 #endif
17191
17192 void fnord() { int i=42;}
17193 int main ()
17194 {
17195   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17196   int status = $lt_dlunknown;
17197
17198   if (self)
17199     {
17200       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17201       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17202       /* dlclose (self); */
17203     }
17204
17205     exit (status);
17206 }
17207 EOF
17208   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209   (eval $ac_link) 2>&5
17210   ac_status=$?
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17213     (./conftest; exit; ) 2>/dev/null
17214     lt_status=$?
17215     case x$lt_status in
17216       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17217       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17218       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17219     esac
17220   else :
17221     # compilation failed
17222     lt_cv_dlopen_self_static=no
17223   fi
17224 fi
17225 rm -fr conftest*
17226
17227
17228 fi
17229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17230 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17231     fi
17232
17233     CPPFLAGS="$save_CPPFLAGS"
17234     LDFLAGS="$save_LDFLAGS"
17235     LIBS="$save_LIBS"
17236     ;;
17237   esac
17238
17239   case $lt_cv_dlopen_self in
17240   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17241   *) enable_dlopen_self=unknown ;;
17242   esac
17243
17244   case $lt_cv_dlopen_self_static in
17245   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17246   *) enable_dlopen_self_static=unknown ;;
17247   esac
17248 fi
17249
17250
17251 # The else clause should only fire when bootstrapping the
17252 # libtool distribution, otherwise you forgot to ship ltmain.sh
17253 # with your package, and you will get complaints that there are
17254 # no rules to generate ltmain.sh.
17255 if test -f "$ltmain"; then
17256   # See if we are running on zsh, and set the options which allow our commands through
17257   # without removal of \ escapes.
17258   if test -n "${ZSH_VERSION+set}" ; then
17259     setopt NO_GLOB_SUBST
17260   fi
17261   # Now quote all the things that may contain metacharacters while being
17262   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17263   # variables and quote the copies for generation of the libtool script.
17264   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17265     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17266     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17267     deplibs_check_method reload_flag reload_cmds need_locks \
17268     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17269     lt_cv_sys_global_symbol_to_c_name_address \
17270     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17271     old_postinstall_cmds old_postuninstall_cmds \
17272     compiler_GCJ \
17273     CC_GCJ \
17274     LD_GCJ \
17275     lt_prog_compiler_wl_GCJ \
17276     lt_prog_compiler_pic_GCJ \
17277     lt_prog_compiler_static_GCJ \
17278     lt_prog_compiler_no_builtin_flag_GCJ \
17279     export_dynamic_flag_spec_GCJ \
17280     thread_safe_flag_spec_GCJ \
17281     whole_archive_flag_spec_GCJ \
17282     enable_shared_with_static_runtimes_GCJ \
17283     old_archive_cmds_GCJ \
17284     old_archive_from_new_cmds_GCJ \
17285     predep_objects_GCJ \
17286     postdep_objects_GCJ \
17287     predeps_GCJ \
17288     postdeps_GCJ \
17289     compiler_lib_search_path_GCJ \
17290     archive_cmds_GCJ \
17291     archive_expsym_cmds_GCJ \
17292     postinstall_cmds_GCJ \
17293     postuninstall_cmds_GCJ \
17294     old_archive_from_expsyms_cmds_GCJ \
17295     allow_undefined_flag_GCJ \
17296     no_undefined_flag_GCJ \
17297     export_symbols_cmds_GCJ \
17298     hardcode_libdir_flag_spec_GCJ \
17299     hardcode_libdir_flag_spec_ld_GCJ \
17300     hardcode_libdir_separator_GCJ \
17301     hardcode_automatic_GCJ \
17302     module_cmds_GCJ \
17303     module_expsym_cmds_GCJ \
17304     lt_cv_prog_compiler_c_o_GCJ \
17305     exclude_expsyms_GCJ \
17306     include_expsyms_GCJ; do
17307
17308     case $var in
17309     old_archive_cmds_GCJ | \
17310     old_archive_from_new_cmds_GCJ | \
17311     archive_cmds_GCJ | \
17312     archive_expsym_cmds_GCJ | \
17313     module_cmds_GCJ | \
17314     module_expsym_cmds_GCJ | \
17315     old_archive_from_expsyms_cmds_GCJ | \
17316     export_symbols_cmds_GCJ | \
17317     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17318     postinstall_cmds | postuninstall_cmds | \
17319     old_postinstall_cmds | old_postuninstall_cmds | \
17320     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17321       # Double-quote double-evaled strings.
17322       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17323       ;;
17324     *)
17325       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17326       ;;
17327     esac
17328   done
17329
17330   case $lt_echo in
17331   *'\$0 --fallback-echo"')
17332     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17333     ;;
17334   esac
17335
17336 cfgfile="$ofile"
17337
17338   cat <<__EOF__ >> "$cfgfile"
17339 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17340
17341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17342
17343 # Shell to use when invoking shell scripts.
17344 SHELL=$lt_SHELL
17345
17346 # Whether or not to build shared libraries.
17347 build_libtool_libs=$enable_shared
17348
17349 # Whether or not to build static libraries.
17350 build_old_libs=$enable_static
17351
17352 # Whether or not to add -lc for building shared libraries.
17353 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17354
17355 # Whether or not to disallow shared libs when runtime libs are static
17356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17357
17358 # Whether or not to optimize for fast installation.
17359 fast_install=$enable_fast_install
17360
17361 # The host system.
17362 host_alias=$host_alias
17363 host=$host
17364
17365 # An echo program that does not interpret backslashes.
17366 echo=$lt_echo
17367
17368 # The archiver.
17369 AR=$lt_AR
17370 AR_FLAGS=$lt_AR_FLAGS
17371
17372 # A C compiler.
17373 LTCC=$lt_LTCC
17374
17375 # A language-specific compiler.
17376 CC=$lt_compiler_GCJ
17377
17378 # Is the compiler the GNU C compiler?
17379 with_gcc=$GCC_GCJ
17380
17381 # An ERE matcher.
17382 EGREP=$lt_EGREP
17383
17384 # The linker used to build libraries.
17385 LD=$lt_LD_GCJ
17386
17387 # Whether we need hard or soft links.
17388 LN_S=$lt_LN_S
17389
17390 # A BSD-compatible nm program.
17391 NM=$lt_NM
17392
17393 # A symbol stripping program
17394 STRIP=$STRIP
17395
17396 # Used to examine libraries when file_magic_cmd begins "file"
17397 MAGIC_CMD=$MAGIC_CMD
17398
17399 # Used on cygwin: DLL creation program.
17400 DLLTOOL="$DLLTOOL"
17401
17402 # Used on cygwin: object dumper.
17403 OBJDUMP="$OBJDUMP"
17404
17405 # Used on cygwin: assembler.
17406 AS="$AS"
17407
17408 # The name of the directory that contains temporary libtool files.
17409 objdir=$objdir
17410
17411 # How to create reloadable object files.
17412 reload_flag=$lt_reload_flag
17413 reload_cmds=$lt_reload_cmds
17414
17415 # How to pass a linker flag through the compiler.
17416 wl=$lt_lt_prog_compiler_wl_GCJ
17417
17418 # Object file suffix (normally "o").
17419 objext="$ac_objext"
17420
17421 # Old archive suffix (normally "a").
17422 libext="$libext"
17423
17424 # Shared library suffix (normally ".so").
17425 shrext='$shrext'
17426
17427 # Executable file suffix (normally "").
17428 exeext="$exeext"
17429
17430 # Additional compiler flags for building library objects.
17431 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17432 pic_mode=$pic_mode
17433
17434 # What is the maximum length of a command?
17435 max_cmd_len=$lt_cv_sys_max_cmd_len
17436
17437 # Does compiler simultaneously support -c and -o options?
17438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17439
17440 # Must we lock files when doing compilation ?
17441 need_locks=$lt_need_locks
17442
17443 # Do we need the lib prefix for modules?
17444 need_lib_prefix=$need_lib_prefix
17445
17446 # Do we need a version for libraries?
17447 need_version=$need_version
17448
17449 # Whether dlopen is supported.
17450 dlopen_support=$enable_dlopen
17451
17452 # Whether dlopen of programs is supported.
17453 dlopen_self=$enable_dlopen_self
17454
17455 # Whether dlopen of statically linked programs is supported.
17456 dlopen_self_static=$enable_dlopen_self_static
17457
17458 # Compiler flag to prevent dynamic linking.
17459 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17460
17461 # Compiler flag to turn off builtin functions.
17462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17463
17464 # Compiler flag to allow reflexive dlopens.
17465 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17466
17467 # Compiler flag to generate shared objects directly from archives.
17468 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17469
17470 # Compiler flag to generate thread-safe objects.
17471 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17472
17473 # Library versioning type.
17474 version_type=$version_type
17475
17476 # Format of library name prefix.
17477 libname_spec=$lt_libname_spec
17478
17479 # List of archive names.  First name is the real one, the rest are links.
17480 # The last name is the one that the linker finds with -lNAME.
17481 library_names_spec=$lt_library_names_spec
17482
17483 # The coded name of the library, if different from the real name.
17484 soname_spec=$lt_soname_spec
17485
17486 # Commands used to build and install an old-style archive.
17487 RANLIB=$lt_RANLIB
17488 old_archive_cmds=$lt_old_archive_cmds_GCJ
17489 old_postinstall_cmds=$lt_old_postinstall_cmds
17490 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17491
17492 # Create an old-style archive from a shared archive.
17493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17494
17495 # Create a temporary old-style archive to link instead of a shared archive.
17496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17497
17498 # Commands used to build and install a shared archive.
17499 archive_cmds=$lt_archive_cmds_GCJ
17500 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17501 postinstall_cmds=$lt_postinstall_cmds
17502 postuninstall_cmds=$lt_postuninstall_cmds
17503
17504 # Commands used to build a loadable module (assumed same as above if empty)
17505 module_cmds=$lt_module_cmds_GCJ
17506 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17507
17508 # Commands to strip libraries.
17509 old_striplib=$lt_old_striplib
17510 striplib=$lt_striplib
17511
17512 # Dependencies to place before the objects being linked to create a
17513 # shared library.
17514 predep_objects=$lt_predep_objects_GCJ
17515
17516 # Dependencies to place after the objects being linked to create a
17517 # shared library.
17518 postdep_objects=$lt_postdep_objects_GCJ
17519
17520 # Dependencies to place before the objects being linked to create a
17521 # shared library.
17522 predeps=$lt_predeps_GCJ
17523
17524 # Dependencies to place after the objects being linked to create a
17525 # shared library.
17526 postdeps=$lt_postdeps_GCJ
17527
17528 # The library search path used internally by the compiler when linking
17529 # a shared library.
17530 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17531
17532 # Method to check whether dependent libraries are shared objects.
17533 deplibs_check_method=$lt_deplibs_check_method
17534
17535 # Command to use when deplibs_check_method == file_magic.
17536 file_magic_cmd=$lt_file_magic_cmd
17537
17538 # Flag that allows shared libraries with undefined symbols to be built.
17539 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17540
17541 # Flag that forces no undefined symbols.
17542 no_undefined_flag=$lt_no_undefined_flag_GCJ
17543
17544 # Commands used to finish a libtool library installation in a directory.
17545 finish_cmds=$lt_finish_cmds
17546
17547 # Same as above, but a single script fragment to be evaled but not shown.
17548 finish_eval=$lt_finish_eval
17549
17550 # Take the output of nm and produce a listing of raw symbols and C names.
17551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17552
17553 # Transform the output of nm in a proper C declaration
17554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17555
17556 # Transform the output of nm in a C name address pair
17557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17558
17559 # This is the shared library runtime path variable.
17560 runpath_var=$runpath_var
17561
17562 # This is the shared library path variable.
17563 shlibpath_var=$shlibpath_var
17564
17565 # Is shlibpath searched before the hard-coded library search path?
17566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17567
17568 # How to hardcode a shared library path into an executable.
17569 hardcode_action=$hardcode_action_GCJ
17570
17571 # Whether we should hardcode library paths into libraries.
17572 hardcode_into_libs=$hardcode_into_libs
17573
17574 # Flag to hardcode \$libdir into a binary during linking.
17575 # This must work even if \$libdir does not exist.
17576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17577
17578 # If ld is used when linking, flag to hardcode \$libdir into
17579 # a binary during linking. This must work even if \$libdir does
17580 # not exist.
17581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17582
17583 # Whether we need a single -rpath flag with a separated argument.
17584 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17585
17586 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17587 # resulting binary.
17588 hardcode_direct=$hardcode_direct_GCJ
17589
17590 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17591 # resulting binary.
17592 hardcode_minus_L=$hardcode_minus_L_GCJ
17593
17594 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17595 # the resulting binary.
17596 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17597
17598 # Set to yes if building a shared library automatically hardcodes DIR into the library
17599 # and all subsequent libraries and executables linked against it.
17600 hardcode_automatic=$hardcode_automatic_GCJ
17601
17602 # Variables whose values should be saved in libtool wrapper scripts and
17603 # restored at relink time.
17604 variables_saved_for_relink="$variables_saved_for_relink"
17605
17606 # Whether libtool must link a program against all its dependency libraries.
17607 link_all_deplibs=$link_all_deplibs_GCJ
17608
17609 # Compile-time system search path for libraries
17610 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17611
17612 # Run-time system search path for libraries
17613 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17614
17615 # Fix the shell variable \$srcfile for the compiler.
17616 fix_srcfile_path="$fix_srcfile_path_GCJ"
17617
17618 # Set to yes if exported symbols are required.
17619 always_export_symbols=$always_export_symbols_GCJ
17620
17621 # The commands to list exported symbols.
17622 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17623
17624 # The commands to extract the exported symbol list from a shared archive.
17625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17626
17627 # Symbols that should not be listed in the preloaded symbols.
17628 exclude_expsyms=$lt_exclude_expsyms_GCJ
17629
17630 # Symbols that must always be exported.
17631 include_expsyms=$lt_include_expsyms_GCJ
17632
17633 # ### END LIBTOOL TAG CONFIG: $tagname
17634
17635 __EOF__
17636
17637
17638 else
17639   # If there is no Makefile yet, we rely on a make rule to execute
17640   # `config.status --recheck' to rerun these tests and create the
17641   # libtool script then.
17642   test -f Makefile && make "$ltmain"
17643 fi
17644
17645
17646 ac_ext=c
17647 ac_cpp='$CPP $CPPFLAGS'
17648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17651
17652 CC="$lt_save_CC"
17653
17654         else
17655           tagname=""
17656         fi
17657         ;;
17658
17659       RC)
17660
17661
17662
17663 # Source file extension for RC test sources.
17664 ac_ext=rc
17665
17666 # Object file extension for compiled RC test sources.
17667 objext=o
17668 objext_RC=$objext
17669
17670 # Code to be used in simple compile tests
17671 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17672
17673 # Code to be used in simple link tests
17674 lt_simple_link_test_code="$lt_simple_compile_test_code"
17675
17676 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17677
17678 # If no C compiler was specified, use CC.
17679 LTCC=${LTCC-"$CC"}
17680
17681 # Allow CC to be a program name with arguments.
17682 compiler=$CC
17683
17684
17685 # Allow CC to be a program name with arguments.
17686 lt_save_CC="$CC"
17687 CC=${RC-"windres"}
17688 compiler=$CC
17689 compiler_RC=$CC
17690 lt_cv_prog_compiler_c_o_RC=yes
17691
17692 # The else clause should only fire when bootstrapping the
17693 # libtool distribution, otherwise you forgot to ship ltmain.sh
17694 # with your package, and you will get complaints that there are
17695 # no rules to generate ltmain.sh.
17696 if test -f "$ltmain"; then
17697   # See if we are running on zsh, and set the options which allow our commands through
17698   # without removal of \ escapes.
17699   if test -n "${ZSH_VERSION+set}" ; then
17700     setopt NO_GLOB_SUBST
17701   fi
17702   # Now quote all the things that may contain metacharacters while being
17703   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17704   # variables and quote the copies for generation of the libtool script.
17705   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17706     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17707     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17708     deplibs_check_method reload_flag reload_cmds need_locks \
17709     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17710     lt_cv_sys_global_symbol_to_c_name_address \
17711     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17712     old_postinstall_cmds old_postuninstall_cmds \
17713     compiler_RC \
17714     CC_RC \
17715     LD_RC \
17716     lt_prog_compiler_wl_RC \
17717     lt_prog_compiler_pic_RC \
17718     lt_prog_compiler_static_RC \
17719     lt_prog_compiler_no_builtin_flag_RC \
17720     export_dynamic_flag_spec_RC \
17721     thread_safe_flag_spec_RC \
17722     whole_archive_flag_spec_RC \
17723     enable_shared_with_static_runtimes_RC \
17724     old_archive_cmds_RC \
17725     old_archive_from_new_cmds_RC \
17726     predep_objects_RC \
17727     postdep_objects_RC \
17728     predeps_RC \
17729     postdeps_RC \
17730     compiler_lib_search_path_RC \
17731     archive_cmds_RC \
17732     archive_expsym_cmds_RC \
17733     postinstall_cmds_RC \
17734     postuninstall_cmds_RC \
17735     old_archive_from_expsyms_cmds_RC \
17736     allow_undefined_flag_RC \
17737     no_undefined_flag_RC \
17738     export_symbols_cmds_RC \
17739     hardcode_libdir_flag_spec_RC \
17740     hardcode_libdir_flag_spec_ld_RC \
17741     hardcode_libdir_separator_RC \
17742     hardcode_automatic_RC \
17743     module_cmds_RC \
17744     module_expsym_cmds_RC \
17745     lt_cv_prog_compiler_c_o_RC \
17746     exclude_expsyms_RC \
17747     include_expsyms_RC; do
17748
17749     case $var in
17750     old_archive_cmds_RC | \
17751     old_archive_from_new_cmds_RC | \
17752     archive_cmds_RC | \
17753     archive_expsym_cmds_RC | \
17754     module_cmds_RC | \
17755     module_expsym_cmds_RC | \
17756     old_archive_from_expsyms_cmds_RC | \
17757     export_symbols_cmds_RC | \
17758     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17759     postinstall_cmds | postuninstall_cmds | \
17760     old_postinstall_cmds | old_postuninstall_cmds | \
17761     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17762       # Double-quote double-evaled strings.
17763       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17764       ;;
17765     *)
17766       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17767       ;;
17768     esac
17769   done
17770
17771   case $lt_echo in
17772   *'\$0 --fallback-echo"')
17773     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17774     ;;
17775   esac
17776
17777 cfgfile="$ofile"
17778
17779   cat <<__EOF__ >> "$cfgfile"
17780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17781
17782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17783
17784 # Shell to use when invoking shell scripts.
17785 SHELL=$lt_SHELL
17786
17787 # Whether or not to build shared libraries.
17788 build_libtool_libs=$enable_shared
17789
17790 # Whether or not to build static libraries.
17791 build_old_libs=$enable_static
17792
17793 # Whether or not to add -lc for building shared libraries.
17794 build_libtool_need_lc=$archive_cmds_need_lc_RC
17795
17796 # Whether or not to disallow shared libs when runtime libs are static
17797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17798
17799 # Whether or not to optimize for fast installation.
17800 fast_install=$enable_fast_install
17801
17802 # The host system.
17803 host_alias=$host_alias
17804 host=$host
17805
17806 # An echo program that does not interpret backslashes.
17807 echo=$lt_echo
17808
17809 # The archiver.
17810 AR=$lt_AR
17811 AR_FLAGS=$lt_AR_FLAGS
17812
17813 # A C compiler.
17814 LTCC=$lt_LTCC
17815
17816 # A language-specific compiler.
17817 CC=$lt_compiler_RC
17818
17819 # Is the compiler the GNU C compiler?
17820 with_gcc=$GCC_RC
17821
17822 # An ERE matcher.
17823 EGREP=$lt_EGREP
17824
17825 # The linker used to build libraries.
17826 LD=$lt_LD_RC
17827
17828 # Whether we need hard or soft links.
17829 LN_S=$lt_LN_S
17830
17831 # A BSD-compatible nm program.
17832 NM=$lt_NM
17833
17834 # A symbol stripping program
17835 STRIP=$STRIP
17836
17837 # Used to examine libraries when file_magic_cmd begins "file"
17838 MAGIC_CMD=$MAGIC_CMD
17839
17840 # Used on cygwin: DLL creation program.
17841 DLLTOOL="$DLLTOOL"
17842
17843 # Used on cygwin: object dumper.
17844 OBJDUMP="$OBJDUMP"
17845
17846 # Used on cygwin: assembler.
17847 AS="$AS"
17848
17849 # The name of the directory that contains temporary libtool files.
17850 objdir=$objdir
17851
17852 # How to create reloadable object files.
17853 reload_flag=$lt_reload_flag
17854 reload_cmds=$lt_reload_cmds
17855
17856 # How to pass a linker flag through the compiler.
17857 wl=$lt_lt_prog_compiler_wl_RC
17858
17859 # Object file suffix (normally "o").
17860 objext="$ac_objext"
17861
17862 # Old archive suffix (normally "a").
17863 libext="$libext"
17864
17865 # Shared library suffix (normally ".so").
17866 shrext='$shrext'
17867
17868 # Executable file suffix (normally "").
17869 exeext="$exeext"
17870
17871 # Additional compiler flags for building library objects.
17872 pic_flag=$lt_lt_prog_compiler_pic_RC
17873 pic_mode=$pic_mode
17874
17875 # What is the maximum length of a command?
17876 max_cmd_len=$lt_cv_sys_max_cmd_len
17877
17878 # Does compiler simultaneously support -c and -o options?
17879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17880
17881 # Must we lock files when doing compilation ?
17882 need_locks=$lt_need_locks
17883
17884 # Do we need the lib prefix for modules?
17885 need_lib_prefix=$need_lib_prefix
17886
17887 # Do we need a version for libraries?
17888 need_version=$need_version
17889
17890 # Whether dlopen is supported.
17891 dlopen_support=$enable_dlopen
17892
17893 # Whether dlopen of programs is supported.
17894 dlopen_self=$enable_dlopen_self
17895
17896 # Whether dlopen of statically linked programs is supported.
17897 dlopen_self_static=$enable_dlopen_self_static
17898
17899 # Compiler flag to prevent dynamic linking.
17900 link_static_flag=$lt_lt_prog_compiler_static_RC
17901
17902 # Compiler flag to turn off builtin functions.
17903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17904
17905 # Compiler flag to allow reflexive dlopens.
17906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17907
17908 # Compiler flag to generate shared objects directly from archives.
17909 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17910
17911 # Compiler flag to generate thread-safe objects.
17912 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17913
17914 # Library versioning type.
17915 version_type=$version_type
17916
17917 # Format of library name prefix.
17918 libname_spec=$lt_libname_spec
17919
17920 # List of archive names.  First name is the real one, the rest are links.
17921 # The last name is the one that the linker finds with -lNAME.
17922 library_names_spec=$lt_library_names_spec
17923
17924 # The coded name of the library, if different from the real name.
17925 soname_spec=$lt_soname_spec
17926
17927 # Commands used to build and install an old-style archive.
17928 RANLIB=$lt_RANLIB
17929 old_archive_cmds=$lt_old_archive_cmds_RC
17930 old_postinstall_cmds=$lt_old_postinstall_cmds
17931 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17932
17933 # Create an old-style archive from a shared archive.
17934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17935
17936 # Create a temporary old-style archive to link instead of a shared archive.
17937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17938
17939 # Commands used to build and install a shared archive.
17940 archive_cmds=$lt_archive_cmds_RC
17941 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17942 postinstall_cmds=$lt_postinstall_cmds
17943 postuninstall_cmds=$lt_postuninstall_cmds
17944
17945 # Commands used to build a loadable module (assumed same as above if empty)
17946 module_cmds=$lt_module_cmds_RC
17947 module_expsym_cmds=$lt_module_expsym_cmds_RC
17948
17949 # Commands to strip libraries.
17950 old_striplib=$lt_old_striplib
17951 striplib=$lt_striplib
17952
17953 # Dependencies to place before the objects being linked to create a
17954 # shared library.
17955 predep_objects=$lt_predep_objects_RC
17956
17957 # Dependencies to place after the objects being linked to create a
17958 # shared library.
17959 postdep_objects=$lt_postdep_objects_RC
17960
17961 # Dependencies to place before the objects being linked to create a
17962 # shared library.
17963 predeps=$lt_predeps_RC
17964
17965 # Dependencies to place after the objects being linked to create a
17966 # shared library.
17967 postdeps=$lt_postdeps_RC
17968
17969 # The library search path used internally by the compiler when linking
17970 # a shared library.
17971 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17972
17973 # Method to check whether dependent libraries are shared objects.
17974 deplibs_check_method=$lt_deplibs_check_method
17975
17976 # Command to use when deplibs_check_method == file_magic.
17977 file_magic_cmd=$lt_file_magic_cmd
17978
17979 # Flag that allows shared libraries with undefined symbols to be built.
17980 allow_undefined_flag=$lt_allow_undefined_flag_RC
17981
17982 # Flag that forces no undefined symbols.
17983 no_undefined_flag=$lt_no_undefined_flag_RC
17984
17985 # Commands used to finish a libtool library installation in a directory.
17986 finish_cmds=$lt_finish_cmds
17987
17988 # Same as above, but a single script fragment to be evaled but not shown.
17989 finish_eval=$lt_finish_eval
17990
17991 # Take the output of nm and produce a listing of raw symbols and C names.
17992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17993
17994 # Transform the output of nm in a proper C declaration
17995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17996
17997 # Transform the output of nm in a C name address pair
17998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17999
18000 # This is the shared library runtime path variable.
18001 runpath_var=$runpath_var
18002
18003 # This is the shared library path variable.
18004 shlibpath_var=$shlibpath_var
18005
18006 # Is shlibpath searched before the hard-coded library search path?
18007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18008
18009 # How to hardcode a shared library path into an executable.
18010 hardcode_action=$hardcode_action_RC
18011
18012 # Whether we should hardcode library paths into libraries.
18013 hardcode_into_libs=$hardcode_into_libs
18014
18015 # Flag to hardcode \$libdir into a binary during linking.
18016 # This must work even if \$libdir does not exist.
18017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18018
18019 # If ld is used when linking, flag to hardcode \$libdir into
18020 # a binary during linking. This must work even if \$libdir does
18021 # not exist.
18022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18023
18024 # Whether we need a single -rpath flag with a separated argument.
18025 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18026
18027 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18028 # resulting binary.
18029 hardcode_direct=$hardcode_direct_RC
18030
18031 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18032 # resulting binary.
18033 hardcode_minus_L=$hardcode_minus_L_RC
18034
18035 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18036 # the resulting binary.
18037 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18038
18039 # Set to yes if building a shared library automatically hardcodes DIR into the library
18040 # and all subsequent libraries and executables linked against it.
18041 hardcode_automatic=$hardcode_automatic_RC
18042
18043 # Variables whose values should be saved in libtool wrapper scripts and
18044 # restored at relink time.
18045 variables_saved_for_relink="$variables_saved_for_relink"
18046
18047 # Whether libtool must link a program against all its dependency libraries.
18048 link_all_deplibs=$link_all_deplibs_RC
18049
18050 # Compile-time system search path for libraries
18051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18052
18053 # Run-time system search path for libraries
18054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18055
18056 # Fix the shell variable \$srcfile for the compiler.
18057 fix_srcfile_path="$fix_srcfile_path_RC"
18058
18059 # Set to yes if exported symbols are required.
18060 always_export_symbols=$always_export_symbols_RC
18061
18062 # The commands to list exported symbols.
18063 export_symbols_cmds=$lt_export_symbols_cmds_RC
18064
18065 # The commands to extract the exported symbol list from a shared archive.
18066 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18067
18068 # Symbols that should not be listed in the preloaded symbols.
18069 exclude_expsyms=$lt_exclude_expsyms_RC
18070
18071 # Symbols that must always be exported.
18072 include_expsyms=$lt_include_expsyms_RC
18073
18074 # ### END LIBTOOL TAG CONFIG: $tagname
18075
18076 __EOF__
18077
18078
18079 else
18080   # If there is no Makefile yet, we rely on a make rule to execute
18081   # `config.status --recheck' to rerun these tests and create the
18082   # libtool script then.
18083   test -f Makefile && make "$ltmain"
18084 fi
18085
18086
18087 ac_ext=c
18088 ac_cpp='$CPP $CPPFLAGS'
18089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18092
18093 CC="$lt_save_CC"
18094
18095         ;;
18096
18097       *)
18098         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18099 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18100    { (exit 1); exit 1; }; }
18101         ;;
18102       esac
18103
18104       # Append the new tag name to the list of available tags.
18105       if test -n "$tagname" ; then
18106       available_tags="$available_tags $tagname"
18107     fi
18108     fi
18109   done
18110   IFS="$lt_save_ifs"
18111
18112   # Now substitute the updated list of available tags.
18113   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18114     mv "${ofile}T" "$ofile"
18115     chmod +x "$ofile"
18116   else
18117     rm -f "${ofile}T"
18118     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18119 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18120    { (exit 1); exit 1; }; }
18121   fi
18122 fi
18123
18124
18125
18126 # This can be used to rebuild libtool when needed
18127 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18128
18129 # Always use our own libtool.
18130 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18131
18132 # Prevent multiple expansion
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153 echo "$as_me:$LINENO: checking for shared library suffix" >&5
18154 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
18155 eval "SHLIBEXT=$shrext"
18156 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
18157 echo "${ECHO_T}$SHLIBEXT" >&6
18158 SHLIBEXT=$SHLIBEXT
18159
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define SHLIBEXT "$SHLIBEXT"
18163 _ACEOF
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175 # Check whether --with-llvmsrc or --without-llvmsrc was given.
18176 if test "${with_llvmsrc+set}" = set; then
18177   withval="$with_llvmsrc"
18178   LLVM_SRC=$withval
18179
18180 else
18181   LLVM_SRC=`cd ${srcdir}/../..; pwd`
18182
18183 fi;
18184
18185
18186 # Check whether --with-llvmobj or --without-llvmobj was given.
18187 if test "${with_llvmobj+set}" = set; then
18188   withval="$with_llvmobj"
18189   LLVM_OBJ=$withval
18190
18191 else
18192   LLVM_OBJ=`cd ../..; pwd`
18193
18194 fi;
18195
18196 cat >confcache <<\_ACEOF
18197 # This file is a shell script that caches the results of configure
18198 # tests run on this system so they can be shared between configure
18199 # scripts and configure runs, see configure's option --config-cache.
18200 # It is not useful on other systems.  If it contains results you don't
18201 # want to keep, you may remove or edit it.
18202 #
18203 # config.status only pays attention to the cache file if you give it
18204 # the --recheck option to rerun configure.
18205 #
18206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18208 # following values.
18209
18210 _ACEOF
18211
18212 # The following way of writing the cache mishandles newlines in values,
18213 # but we know of no workaround that is simple, portable, and efficient.
18214 # So, don't put newlines in cache variables' values.
18215 # Ultrix sh set writes to stderr and can't be redirected directly,
18216 # and sets the high bit in the cache file unless we assign to the vars.
18217 {
18218   (set) 2>&1 |
18219     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18220     *ac_space=\ *)
18221       # `set' does not quote correctly, so add quotes (double-quote
18222       # substitution turns \\\\ into \\, and sed turns \\ into \).
18223       sed -n \
18224         "s/'/'\\\\''/g;
18225           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18226       ;;
18227     *)
18228       # `set' quotes correctly as required by POSIX, so do not add quotes.
18229       sed -n \
18230         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18231       ;;
18232     esac;
18233 } |
18234   sed '
18235      t clear
18236      : clear
18237      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18238      t end
18239      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18240      : end' >>confcache
18241 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18242   if test -w $cache_file; then
18243     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18244     cat confcache >$cache_file
18245   else
18246     echo "not updating unwritable cache $cache_file"
18247   fi
18248 fi
18249 rm -f confcache
18250
18251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18252 # Let make expand exec_prefix.
18253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18254
18255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18257 # trailing colons and then remove the whole line if VPATH becomes empty
18258 # (actually we leave an empty line to preserve line numbers).
18259 if test "x$srcdir" = x.; then
18260   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18261 s/:*\$(srcdir):*/:/;
18262 s/:*\${srcdir}:*/:/;
18263 s/:*@srcdir@:*/:/;
18264 s/^\([^=]*=[     ]*\):*/\1/;
18265 s/:*$//;
18266 s/^[^=]*=[       ]*$//;
18267 }'
18268 fi
18269
18270 # Transform confdefs.h into DEFS.
18271 # Protect against shell expansion while executing Makefile rules.
18272 # Protect against Makefile macro expansion.
18273 #
18274 # If the first sed substitution is executed (which looks for macros that
18275 # take arguments), then we branch to the quote section.  Otherwise,
18276 # look for a macro that doesn't take arguments.
18277 cat >confdef2opt.sed <<\_ACEOF
18278 t clear
18279 : clear
18280 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
18281 t quote
18282 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
18283 t quote
18284 d
18285 : quote
18286 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
18287 s,\[,\\&,g
18288 s,\],\\&,g
18289 s,\$,$$,g
18290 p
18291 _ACEOF
18292 # We use echo to avoid assuming a particular line-breaking character.
18293 # The extra dot is to prevent the shell from consuming trailing
18294 # line-breaks from the sub-command output.  A line-break within
18295 # single-quotes doesn't work because, if this script is created in a
18296 # platform that uses two characters for line-breaks (e.g., DOS), tr
18297 # would break.
18298 ac_LF_and_DOT=`echo; echo .`
18299 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18300 rm -f confdef2opt.sed
18301
18302
18303 ac_libobjs=
18304 ac_ltlibobjs=
18305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18306   # 1. Remove the extension, and $U if already installed.
18307   ac_i=`echo "$ac_i" |
18308          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18309   # 2. Add them.
18310   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18311   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18312 done
18313 LIBOBJS=$ac_libobjs
18314
18315 LTLIBOBJS=$ac_ltlibobjs
18316
18317
18318
18319 : ${CONFIG_STATUS=./config.status}
18320 ac_clean_files_save=$ac_clean_files
18321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18322 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18323 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18324 cat >$CONFIG_STATUS <<_ACEOF
18325 #! $SHELL
18326 # Generated by $as_me.
18327 # Run this file to recreate the current configuration.
18328 # Compiler output produced by configure, useful for debugging
18329 # configure, is in config.log if it exists.
18330
18331 debug=false
18332 ac_cs_recheck=false
18333 ac_cs_silent=false
18334 SHELL=\${CONFIG_SHELL-$SHELL}
18335 _ACEOF
18336
18337 cat >>$CONFIG_STATUS <<\_ACEOF
18338 ## --------------------- ##
18339 ## M4sh Initialization.  ##
18340 ## --------------------- ##
18341
18342 # Be Bourne compatible
18343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18344   emulate sh
18345   NULLCMD=:
18346   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18347   # is contrary to our usage.  Disable this feature.
18348   alias -g '${1+"$@"}'='"$@"'
18349 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18350   set -o posix
18351 fi
18352 DUALCASE=1; export DUALCASE # for MKS sh
18353
18354 # Support unset when possible.
18355 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18356   as_unset=unset
18357 else
18358   as_unset=false
18359 fi
18360
18361
18362 # Work around bugs in pre-3.0 UWIN ksh.
18363 $as_unset ENV MAIL MAILPATH
18364 PS1='$ '
18365 PS2='> '
18366 PS4='+ '
18367
18368 # NLS nuisances.
18369 for as_var in \
18370   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18371   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18372   LC_TELEPHONE LC_TIME
18373 do
18374   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18375     eval $as_var=C; export $as_var
18376   else
18377     $as_unset $as_var
18378   fi
18379 done
18380
18381 # Required to use basename.
18382 if expr a : '\(a\)' >/dev/null 2>&1; then
18383   as_expr=expr
18384 else
18385   as_expr=false
18386 fi
18387
18388 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18389   as_basename=basename
18390 else
18391   as_basename=false
18392 fi
18393
18394
18395 # Name of the executable.
18396 as_me=`$as_basename "$0" ||
18397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18398          X"$0" : 'X\(//\)$' \| \
18399          X"$0" : 'X\(/\)$' \| \
18400          .     : '\(.\)' 2>/dev/null ||
18401 echo X/"$0" |
18402     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18403           /^X\/\(\/\/\)$/{ s//\1/; q; }
18404           /^X\/\(\/\).*/{ s//\1/; q; }
18405           s/.*/./; q'`
18406
18407
18408 # PATH needs CR, and LINENO needs CR and PATH.
18409 # Avoid depending upon Character Ranges.
18410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18413 as_cr_digits='0123456789'
18414 as_cr_alnum=$as_cr_Letters$as_cr_digits
18415
18416 # The user is always right.
18417 if test "${PATH_SEPARATOR+set}" != set; then
18418   echo "#! /bin/sh" >conf$$.sh
18419   echo  "exit 0"   >>conf$$.sh
18420   chmod +x conf$$.sh
18421   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18422     PATH_SEPARATOR=';'
18423   else
18424     PATH_SEPARATOR=:
18425   fi
18426   rm -f conf$$.sh
18427 fi
18428
18429
18430   as_lineno_1=$LINENO
18431   as_lineno_2=$LINENO
18432   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18433   test "x$as_lineno_1" != "x$as_lineno_2" &&
18434   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18435   # Find who we are.  Look in the path if we contain no path at all
18436   # relative or not.
18437   case $0 in
18438     *[\\/]* ) as_myself=$0 ;;
18439     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440 for as_dir in $PATH
18441 do
18442   IFS=$as_save_IFS
18443   test -z "$as_dir" && as_dir=.
18444   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18445 done
18446
18447        ;;
18448   esac
18449   # We did not find ourselves, most probably we were run as `sh COMMAND'
18450   # in which case we are not to be found in the path.
18451   if test "x$as_myself" = x; then
18452     as_myself=$0
18453   fi
18454   if test ! -f "$as_myself"; then
18455     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18456 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18457    { (exit 1); exit 1; }; }
18458   fi
18459   case $CONFIG_SHELL in
18460   '')
18461     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18462 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18463 do
18464   IFS=$as_save_IFS
18465   test -z "$as_dir" && as_dir=.
18466   for as_base in sh bash ksh sh5; do
18467          case $as_dir in
18468          /*)
18469            if ("$as_dir/$as_base" -c '
18470   as_lineno_1=$LINENO
18471   as_lineno_2=$LINENO
18472   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18473   test "x$as_lineno_1" != "x$as_lineno_2" &&
18474   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18475              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18476              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18477              CONFIG_SHELL=$as_dir/$as_base
18478              export CONFIG_SHELL
18479              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18480            fi;;
18481          esac
18482        done
18483 done
18484 ;;
18485   esac
18486
18487   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18488   # uniformly replaced by the line number.  The first 'sed' inserts a
18489   # line-number line before each line; the second 'sed' does the real
18490   # work.  The second script uses 'N' to pair each line-number line
18491   # with the numbered line, and appends trailing '-' during
18492   # substitution so that $LINENO is not a special case at line end.
18493   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18494   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18495   sed '=' <$as_myself |
18496     sed '
18497       N
18498       s,$,-,
18499       : loop
18500       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18501       t loop
18502       s,-$,,
18503       s,^['$as_cr_digits']*\n,,
18504     ' >$as_me.lineno &&
18505   chmod +x $as_me.lineno ||
18506     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18507 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18508    { (exit 1); exit 1; }; }
18509
18510   # Don't try to exec as it changes $[0], causing all sort of problems
18511   # (the dirname of $[0] is not the place where we might find the
18512   # original and so on.  Autoconf is especially sensible to this).
18513   . ./$as_me.lineno
18514   # Exit status is that of the last command.
18515   exit
18516 }
18517
18518
18519 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18520   *c*,-n*) ECHO_N= ECHO_C='
18521 ' ECHO_T='      ' ;;
18522   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18523   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18524 esac
18525
18526 if expr a : '\(a\)' >/dev/null 2>&1; then
18527   as_expr=expr
18528 else
18529   as_expr=false
18530 fi
18531
18532 rm -f conf$$ conf$$.exe conf$$.file
18533 echo >conf$$.file
18534 if ln -s conf$$.file conf$$ 2>/dev/null; then
18535   # We could just check for DJGPP; but this test a) works b) is more generic
18536   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18537   if test -f conf$$.exe; then
18538     # Don't use ln at all; we don't have any links
18539     as_ln_s='cp -p'
18540   else
18541     as_ln_s='ln -s'
18542   fi
18543 elif ln conf$$.file conf$$ 2>/dev/null; then
18544   as_ln_s=ln
18545 else
18546   as_ln_s='cp -p'
18547 fi
18548 rm -f conf$$ conf$$.exe conf$$.file
18549
18550 if mkdir -p . 2>/dev/null; then
18551   as_mkdir_p=:
18552 else
18553   test -d ./-p && rmdir ./-p
18554   as_mkdir_p=false
18555 fi
18556
18557 as_executable_p="test -f"
18558
18559 # Sed expression to map a string onto a valid CPP name.
18560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18561
18562 # Sed expression to map a string onto a valid variable name.
18563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18564
18565
18566 # IFS
18567 # We need space, tab and new line, in precisely that order.
18568 as_nl='
18569 '
18570 IFS="   $as_nl"
18571
18572 # CDPATH.
18573 $as_unset CDPATH
18574
18575 exec 6>&1
18576
18577 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18578 # report actual input values of CONFIG_FILES etc. instead of their
18579 # values after options handling.  Logging --version etc. is OK.
18580 exec 5>>config.log
18581 {
18582   echo
18583   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18584 ## Running $as_me. ##
18585 _ASBOX
18586 } >&5
18587 cat >&5 <<_CSEOF
18588
18589 This file was extended by [Stacker] $as_me [1.0], which was
18590 generated by GNU Autoconf 2.59.  Invocation command line was
18591
18592   CONFIG_FILES    = $CONFIG_FILES
18593   CONFIG_HEADERS  = $CONFIG_HEADERS
18594   CONFIG_LINKS    = $CONFIG_LINKS
18595   CONFIG_COMMANDS = $CONFIG_COMMANDS
18596   $ $0 $@
18597
18598 _CSEOF
18599 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18600 echo >&5
18601 _ACEOF
18602
18603 # Files that config.status was made for.
18604 if test -n "$ac_config_files"; then
18605   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18606 fi
18607
18608 if test -n "$ac_config_headers"; then
18609   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18610 fi
18611
18612 if test -n "$ac_config_links"; then
18613   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18614 fi
18615
18616 if test -n "$ac_config_commands"; then
18617   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18618 fi
18619
18620 cat >>$CONFIG_STATUS <<\_ACEOF
18621
18622 ac_cs_usage="\
18623 \`$as_me' instantiates files from templates according to the
18624 current configuration.
18625
18626 Usage: $0 [OPTIONS] [FILE]...
18627
18628   -h, --help       print this help, then exit
18629   -V, --version    print version number, then exit
18630   -q, --quiet      do not print progress messages
18631   -d, --debug      don't remove temporary files
18632       --recheck    update $as_me by reconfiguring in the same conditions
18633   --file=FILE[:TEMPLATE]
18634                    instantiate the configuration file FILE
18635
18636 Configuration files:
18637 $config_files
18638
18639 Configuration commands:
18640 $config_commands
18641
18642 Report bugs to <bug-autoconf@gnu.org>."
18643 _ACEOF
18644
18645 cat >>$CONFIG_STATUS <<_ACEOF
18646 ac_cs_version="\\
18647 [Stacker] config.status [1.0]
18648 configured by $0, generated by GNU Autoconf 2.59,
18649   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18650
18651 Copyright (C) 2003 Free Software Foundation, Inc.
18652 This config.status script is free software; the Free Software Foundation
18653 gives unlimited permission to copy, distribute and modify it."
18654 srcdir=$srcdir
18655 _ACEOF
18656
18657 cat >>$CONFIG_STATUS <<\_ACEOF
18658 # If no file are specified by the user, then we need to provide default
18659 # value.  By we need to know if files were specified by the user.
18660 ac_need_defaults=:
18661 while test $# != 0
18662 do
18663   case $1 in
18664   --*=*)
18665     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18666     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18667     ac_shift=:
18668     ;;
18669   -*)
18670     ac_option=$1
18671     ac_optarg=$2
18672     ac_shift=shift
18673     ;;
18674   *) # This is not an option, so the user has probably given explicit
18675      # arguments.
18676      ac_option=$1
18677      ac_need_defaults=false;;
18678   esac
18679
18680   case $ac_option in
18681   # Handling of the options.
18682 _ACEOF
18683 cat >>$CONFIG_STATUS <<\_ACEOF
18684   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18685     ac_cs_recheck=: ;;
18686   --version | --vers* | -V )
18687     echo "$ac_cs_version"; exit 0 ;;
18688   --he | --h)
18689     # Conflict between --help and --header
18690     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18691 Try \`$0 --help' for more information." >&5
18692 echo "$as_me: error: ambiguous option: $1
18693 Try \`$0 --help' for more information." >&2;}
18694    { (exit 1); exit 1; }; };;
18695   --help | --hel | -h )
18696     echo "$ac_cs_usage"; exit 0 ;;
18697   --debug | --d* | -d )
18698     debug=: ;;
18699   --file | --fil | --fi | --f )
18700     $ac_shift
18701     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18702     ac_need_defaults=false;;
18703   --header | --heade | --head | --hea )
18704     $ac_shift
18705     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18706     ac_need_defaults=false;;
18707   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18708   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18709     ac_cs_silent=: ;;
18710
18711   # This is an error.
18712   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18713 Try \`$0 --help' for more information." >&5
18714 echo "$as_me: error: unrecognized option: $1
18715 Try \`$0 --help' for more information." >&2;}
18716    { (exit 1); exit 1; }; } ;;
18717
18718   *) ac_config_targets="$ac_config_targets $1" ;;
18719
18720   esac
18721   shift
18722 done
18723
18724 ac_configure_extra_args=
18725
18726 if $ac_cs_silent; then
18727   exec 6>/dev/null
18728   ac_configure_extra_args="$ac_configure_extra_args --silent"
18729 fi
18730
18731 _ACEOF
18732 cat >>$CONFIG_STATUS <<_ACEOF
18733 if \$ac_cs_recheck; then
18734   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18735   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18736 fi
18737
18738 _ACEOF
18739
18740 cat >>$CONFIG_STATUS <<_ACEOF
18741 #
18742 # INIT-COMMANDS section.
18743 #
18744
18745 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
18746 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
18747 ${srcdir}/autoconf/mkinstalldirs `dirname lib/compiler/Makefile`
18748 ${srcdir}/autoconf/mkinstalldirs `dirname lib/runtime/Makefile`
18749 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
18750 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
18751 ${srcdir}/autoconf/mkinstalldirs `dirname tools/stkrc/Makefile`
18752
18753 _ACEOF
18754
18755
18756
18757 cat >>$CONFIG_STATUS <<\_ACEOF
18758 for ac_config_target in $ac_config_targets
18759 do
18760   case "$ac_config_target" in
18761   # Handling of arguments.
18762   "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18763   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18764   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18765   "lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/compiler/Makefile" ;;
18766   "lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/runtime/Makefile" ;;
18767   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18768   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18769   "tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/stkrc/Makefile" ;;
18770   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18771 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18772    { (exit 1); exit 1; }; };;
18773   esac
18774 done
18775
18776 # If the user did not use the arguments to specify the items to instantiate,
18777 # then the envvar interface is used.  Set only those that are not.
18778 # We use the long form for the default assignment because of an extremely
18779 # bizarre bug on SunOS 4.1.3.
18780 if $ac_need_defaults; then
18781   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18782   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18783 fi
18784
18785 # Have a temporary directory for convenience.  Make it in the build tree
18786 # simply because there is no reason to put it here, and in addition,
18787 # creating and moving files from /tmp can sometimes cause problems.
18788 # Create a temporary directory, and hook for its removal unless debugging.
18789 $debug ||
18790 {
18791   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18792   trap '{ (exit 1); exit 1; }' 1 2 13 15
18793 }
18794
18795 # Create a (secure) tmp directory for tmp files.
18796
18797 {
18798   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18799   test -n "$tmp" && test -d "$tmp"
18800 }  ||
18801 {
18802   tmp=./confstat$$-$RANDOM
18803   (umask 077 && mkdir $tmp)
18804 } ||
18805 {
18806    echo "$me: cannot create a temporary directory in ." >&2
18807    { (exit 1); exit 1; }
18808 }
18809
18810 _ACEOF
18811
18812 cat >>$CONFIG_STATUS <<_ACEOF
18813
18814 #
18815 # CONFIG_FILES section.
18816 #
18817
18818 # No need to generate the scripts if there are no CONFIG_FILES.
18819 # This happens for instance when ./config.status config.h
18820 if test -n "\$CONFIG_FILES"; then
18821   # Protect against being on the right side of a sed subst in config.status.
18822   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18823    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18824 s,@SHELL@,$SHELL,;t t
18825 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18826 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18827 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18828 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18829 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18830 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18831 s,@exec_prefix@,$exec_prefix,;t t
18832 s,@prefix@,$prefix,;t t
18833 s,@program_transform_name@,$program_transform_name,;t t
18834 s,@bindir@,$bindir,;t t
18835 s,@sbindir@,$sbindir,;t t
18836 s,@libexecdir@,$libexecdir,;t t
18837 s,@datadir@,$datadir,;t t
18838 s,@sysconfdir@,$sysconfdir,;t t
18839 s,@sharedstatedir@,$sharedstatedir,;t t
18840 s,@localstatedir@,$localstatedir,;t t
18841 s,@libdir@,$libdir,;t t
18842 s,@includedir@,$includedir,;t t
18843 s,@oldincludedir@,$oldincludedir,;t t
18844 s,@infodir@,$infodir,;t t
18845 s,@mandir@,$mandir,;t t
18846 s,@build_alias@,$build_alias,;t t
18847 s,@host_alias@,$host_alias,;t t
18848 s,@target_alias@,$target_alias,;t t
18849 s,@DEFS@,$DEFS,;t t
18850 s,@ECHO_C@,$ECHO_C,;t t
18851 s,@ECHO_N@,$ECHO_N,;t t
18852 s,@ECHO_T@,$ECHO_T,;t t
18853 s,@LIBS@,$LIBS,;t t
18854 s,@build@,$build,;t t
18855 s,@build_cpu@,$build_cpu,;t t
18856 s,@build_vendor@,$build_vendor,;t t
18857 s,@build_os@,$build_os,;t t
18858 s,@host@,$host,;t t
18859 s,@host_cpu@,$host_cpu,;t t
18860 s,@host_vendor@,$host_vendor,;t t
18861 s,@host_os@,$host_os,;t t
18862 s,@CC@,$CC,;t t
18863 s,@CFLAGS@,$CFLAGS,;t t
18864 s,@LDFLAGS@,$LDFLAGS,;t t
18865 s,@CPPFLAGS@,$CPPFLAGS,;t t
18866 s,@ac_ct_CC@,$ac_ct_CC,;t t
18867 s,@EXEEXT@,$EXEEXT,;t t
18868 s,@OBJEXT@,$OBJEXT,;t t
18869 s,@EGREP@,$EGREP,;t t
18870 s,@LN_S@,$LN_S,;t t
18871 s,@ECHO@,$ECHO,;t t
18872 s,@AR@,$AR,;t t
18873 s,@ac_ct_AR@,$ac_ct_AR,;t t
18874 s,@RANLIB@,$RANLIB,;t t
18875 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18876 s,@STRIP@,$STRIP,;t t
18877 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18878 s,@CPP@,$CPP,;t t
18879 s,@CXX@,$CXX,;t t
18880 s,@CXXFLAGS@,$CXXFLAGS,;t t
18881 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18882 s,@CXXCPP@,$CXXCPP,;t t
18883 s,@F77@,$F77,;t t
18884 s,@FFLAGS@,$FFLAGS,;t t
18885 s,@ac_ct_F77@,$ac_ct_F77,;t t
18886 s,@LIBTOOL@,$LIBTOOL,;t t
18887 s,@SHLIBEXT@,$SHLIBEXT,;t t
18888 s,@LLVM_SRC@,$LLVM_SRC,;t t
18889 s,@LLVM_OBJ@,$LLVM_OBJ,;t t
18890 s,@LIBOBJS@,$LIBOBJS,;t t
18891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18892 CEOF
18893
18894 _ACEOF
18895
18896   cat >>$CONFIG_STATUS <<\_ACEOF
18897   # Split the substitutions into bite-sized pieces for seds with
18898   # small command number limits, like on Digital OSF/1 and HP-UX.
18899   ac_max_sed_lines=48
18900   ac_sed_frag=1 # Number of current file.
18901   ac_beg=1 # First line for current file.
18902   ac_end=$ac_max_sed_lines # Line after last line for current file.
18903   ac_more_lines=:
18904   ac_sed_cmds=
18905   while $ac_more_lines; do
18906     if test $ac_beg -gt 1; then
18907       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18908     else
18909       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18910     fi
18911     if test ! -s $tmp/subs.frag; then
18912       ac_more_lines=false
18913     else
18914       # The purpose of the label and of the branching condition is to
18915       # speed up the sed processing (if there are no `@' at all, there
18916       # is no need to browse any of the substitutions).
18917       # These are the two extra sed commands mentioned above.
18918       (echo ':t
18919   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18920       if test -z "$ac_sed_cmds"; then
18921         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18922       else
18923         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18924       fi
18925       ac_sed_frag=`expr $ac_sed_frag + 1`
18926       ac_beg=$ac_end
18927       ac_end=`expr $ac_end + $ac_max_sed_lines`
18928     fi
18929   done
18930   if test -z "$ac_sed_cmds"; then
18931     ac_sed_cmds=cat
18932   fi
18933 fi # test -n "$CONFIG_FILES"
18934
18935 _ACEOF
18936 cat >>$CONFIG_STATUS <<\_ACEOF
18937 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18938   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18939   case $ac_file in
18940   - | *:- | *:-:* ) # input from stdin
18941         cat >$tmp/stdin
18942         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18943         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18944   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18945         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18946   * )   ac_file_in=$ac_file.in ;;
18947   esac
18948
18949   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18950   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952          X"$ac_file" : 'X\(//\)[^/]' \| \
18953          X"$ac_file" : 'X\(//\)$' \| \
18954          X"$ac_file" : 'X\(/\)' \| \
18955          .     : '\(.\)' 2>/dev/null ||
18956 echo X"$ac_file" |
18957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18959           /^X\(\/\/\)$/{ s//\1/; q; }
18960           /^X\(\/\).*/{ s//\1/; q; }
18961           s/.*/./; q'`
18962   { if $as_mkdir_p; then
18963     mkdir -p "$ac_dir"
18964   else
18965     as_dir="$ac_dir"
18966     as_dirs=
18967     while test ! -d "$as_dir"; do
18968       as_dirs="$as_dir $as_dirs"
18969       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971          X"$as_dir" : 'X\(//\)[^/]' \| \
18972          X"$as_dir" : 'X\(//\)$' \| \
18973          X"$as_dir" : 'X\(/\)' \| \
18974          .     : '\(.\)' 2>/dev/null ||
18975 echo X"$as_dir" |
18976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18977           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18978           /^X\(\/\/\)$/{ s//\1/; q; }
18979           /^X\(\/\).*/{ s//\1/; q; }
18980           s/.*/./; q'`
18981     done
18982     test ! -n "$as_dirs" || mkdir $as_dirs
18983   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18985    { (exit 1); exit 1; }; }; }
18986
18987   ac_builddir=.
18988
18989 if test "$ac_dir" != .; then
18990   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18991   # A "../" for each directory in $ac_dir_suffix.
18992   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18993 else
18994   ac_dir_suffix= ac_top_builddir=
18995 fi
18996
18997 case $srcdir in
18998   .)  # No --srcdir option.  We are building in place.
18999     ac_srcdir=.
19000     if test -z "$ac_top_builddir"; then
19001        ac_top_srcdir=.
19002     else
19003        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19004     fi ;;
19005   [\\/]* | ?:[\\/]* )  # Absolute path.
19006     ac_srcdir=$srcdir$ac_dir_suffix;
19007     ac_top_srcdir=$srcdir ;;
19008   *) # Relative path.
19009     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19010     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19011 esac
19012
19013 # Do not use `cd foo && pwd` to compute absolute paths, because
19014 # the directories may not exist.
19015 case `pwd` in
19016 .) ac_abs_builddir="$ac_dir";;
19017 *)
19018   case "$ac_dir" in
19019   .) ac_abs_builddir=`pwd`;;
19020   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19021   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19022   esac;;
19023 esac
19024 case $ac_abs_builddir in
19025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19026 *)
19027   case ${ac_top_builddir}. in
19028   .) ac_abs_top_builddir=$ac_abs_builddir;;
19029   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19030   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19031   esac;;
19032 esac
19033 case $ac_abs_builddir in
19034 .) ac_abs_srcdir=$ac_srcdir;;
19035 *)
19036   case $ac_srcdir in
19037   .) ac_abs_srcdir=$ac_abs_builddir;;
19038   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19039   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19040   esac;;
19041 esac
19042 case $ac_abs_builddir in
19043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19044 *)
19045   case $ac_top_srcdir in
19046   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19047   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19048   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19049   esac;;
19050 esac
19051
19052
19053
19054   if test x"$ac_file" != x-; then
19055     { echo "$as_me:$LINENO: creating $ac_file" >&5
19056 echo "$as_me: creating $ac_file" >&6;}
19057     rm -f "$ac_file"
19058   fi
19059   # Let's still pretend it is `configure' which instantiates (i.e., don't
19060   # use $as_me), people would be surprised to read:
19061   #    /* config.h.  Generated by config.status.  */
19062   if test x"$ac_file" = x-; then
19063     configure_input=
19064   else
19065     configure_input="$ac_file.  "
19066   fi
19067   configure_input=$configure_input"Generated from `echo $ac_file_in |
19068                                      sed 's,.*/,,'` by configure."
19069
19070   # First look for the input files in the build tree, otherwise in the
19071   # src tree.
19072   ac_file_inputs=`IFS=:
19073     for f in $ac_file_in; do
19074       case $f in
19075       -) echo $tmp/stdin ;;
19076       [\\/$]*)
19077          # Absolute (can't be DOS-style, as IFS=:)
19078          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19079 echo "$as_me: error: cannot find input file: $f" >&2;}
19080    { (exit 1); exit 1; }; }
19081          echo "$f";;
19082       *) # Relative
19083          if test -f "$f"; then
19084            # Build tree
19085            echo "$f"
19086          elif test -f "$srcdir/$f"; then
19087            # Source tree
19088            echo "$srcdir/$f"
19089          else
19090            # /dev/null tree
19091            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19092 echo "$as_me: error: cannot find input file: $f" >&2;}
19093    { (exit 1); exit 1; }; }
19094          fi;;
19095       esac
19096     done` || { (exit 1); exit 1; }
19097 _ACEOF
19098 cat >>$CONFIG_STATUS <<_ACEOF
19099   sed "$ac_vpsub
19100 $extrasub
19101 _ACEOF
19102 cat >>$CONFIG_STATUS <<\_ACEOF
19103 :t
19104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19105 s,@configure_input@,$configure_input,;t t
19106 s,@srcdir@,$ac_srcdir,;t t
19107 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19108 s,@top_srcdir@,$ac_top_srcdir,;t t
19109 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19110 s,@builddir@,$ac_builddir,;t t
19111 s,@abs_builddir@,$ac_abs_builddir,;t t
19112 s,@top_builddir@,$ac_top_builddir,;t t
19113 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19114 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19115   rm -f $tmp/stdin
19116   if test x"$ac_file" != x-; then
19117     mv $tmp/out $ac_file
19118   else
19119     cat $tmp/out
19120     rm -f $tmp/out
19121   fi
19122
19123 done
19124 _ACEOF
19125 cat >>$CONFIG_STATUS <<\_ACEOF
19126
19127 #
19128 # CONFIG_COMMANDS section.
19129 #
19130 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19131   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19132   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19133   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19134 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135          X"$ac_dest" : 'X\(//\)[^/]' \| \
19136          X"$ac_dest" : 'X\(//\)$' \| \
19137          X"$ac_dest" : 'X\(/\)' \| \
19138          .     : '\(.\)' 2>/dev/null ||
19139 echo X"$ac_dest" |
19140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19142           /^X\(\/\/\)$/{ s//\1/; q; }
19143           /^X\(\/\).*/{ s//\1/; q; }
19144           s/.*/./; q'`
19145   { if $as_mkdir_p; then
19146     mkdir -p "$ac_dir"
19147   else
19148     as_dir="$ac_dir"
19149     as_dirs=
19150     while test ! -d "$as_dir"; do
19151       as_dirs="$as_dir $as_dirs"
19152       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19154          X"$as_dir" : 'X\(//\)[^/]' \| \
19155          X"$as_dir" : 'X\(//\)$' \| \
19156          X"$as_dir" : 'X\(/\)' \| \
19157          .     : '\(.\)' 2>/dev/null ||
19158 echo X"$as_dir" |
19159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19160           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19161           /^X\(\/\/\)$/{ s//\1/; q; }
19162           /^X\(\/\).*/{ s//\1/; q; }
19163           s/.*/./; q'`
19164     done
19165     test ! -n "$as_dirs" || mkdir $as_dirs
19166   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19168    { (exit 1); exit 1; }; }; }
19169
19170   ac_builddir=.
19171
19172 if test "$ac_dir" != .; then
19173   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19174   # A "../" for each directory in $ac_dir_suffix.
19175   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19176 else
19177   ac_dir_suffix= ac_top_builddir=
19178 fi
19179
19180 case $srcdir in
19181   .)  # No --srcdir option.  We are building in place.
19182     ac_srcdir=.
19183     if test -z "$ac_top_builddir"; then
19184        ac_top_srcdir=.
19185     else
19186        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19187     fi ;;
19188   [\\/]* | ?:[\\/]* )  # Absolute path.
19189     ac_srcdir=$srcdir$ac_dir_suffix;
19190     ac_top_srcdir=$srcdir ;;
19191   *) # Relative path.
19192     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19193     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19194 esac
19195
19196 # Do not use `cd foo && pwd` to compute absolute paths, because
19197 # the directories may not exist.
19198 case `pwd` in
19199 .) ac_abs_builddir="$ac_dir";;
19200 *)
19201   case "$ac_dir" in
19202   .) ac_abs_builddir=`pwd`;;
19203   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19204   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19205   esac;;
19206 esac
19207 case $ac_abs_builddir in
19208 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19209 *)
19210   case ${ac_top_builddir}. in
19211   .) ac_abs_top_builddir=$ac_abs_builddir;;
19212   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19213   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19214   esac;;
19215 esac
19216 case $ac_abs_builddir in
19217 .) ac_abs_srcdir=$ac_srcdir;;
19218 *)
19219   case $ac_srcdir in
19220   .) ac_abs_srcdir=$ac_abs_builddir;;
19221   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19222   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19223   esac;;
19224 esac
19225 case $ac_abs_builddir in
19226 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19227 *)
19228   case $ac_top_srcdir in
19229   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19230   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19231   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19232   esac;;
19233 esac
19234
19235
19236   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19237 echo "$as_me: executing $ac_dest commands" >&6;}
19238   case $ac_dest in
19239     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
19240     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
19241     lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/compiler/Makefile lib/compiler/Makefile ;;
19242     lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/runtime/Makefile lib/runtime/Makefile ;;
19243     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
19244     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
19245     tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/stkrc/Makefile tools/stkrc/Makefile ;;
19246   esac
19247 done
19248 _ACEOF
19249
19250 cat >>$CONFIG_STATUS <<\_ACEOF
19251
19252 { (exit 0); exit 0; }
19253 _ACEOF
19254 chmod +x $CONFIG_STATUS
19255 ac_clean_files=$ac_clean_files_save
19256
19257
19258 # configure is writing to config.log, and then calls config.status.
19259 # config.status does its own redirection, appending to config.log.
19260 # Unfortunately, on DOS this fails, as config.log is still kept open
19261 # by configure, so config.status won't be able to write to it; its
19262 # output is simply discarded.  So we exec the FD to /dev/null,
19263 # effectively closing config.log, so it can be properly (re)opened and
19264 # appended to by config.status.  When coming back to configure, we
19265 # need to make the FD available again.
19266 if test "$no_create" != yes; then
19267   ac_cs_success=:
19268   ac_config_status_args=
19269   test "$silent" = yes &&
19270     ac_config_status_args="$ac_config_status_args --quiet"
19271   exec 5>/dev/null
19272   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19273   exec 5>>config.log
19274   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19275   # would make configure fail if this is the last instruction.
19276   $ac_cs_success || { (exit 1); exit 1; }
19277 fi
19278