OSDN Git Service

PR testsuite/37325
[pf3gnuchains/gcc-fork.git] / zlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="zlib.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911
912 #
913 # Report the --help message.
914 #
915 if test "$ac_init_help" = "long"; then
916   # Omit some internal or obsolete options to make the list less imposing.
917   # This message is too long to be a string in the A/UX 3.1 sh.
918   cat <<_ACEOF
919 \`configure' configures this package to adapt to many kinds of systems.
920
921 Usage: $0 [OPTION]... [VAR=VALUE]...
922
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE.  See below for descriptions of some of the useful variables.
925
926 Defaults for the options are specified in brackets.
927
928 Configuration:
929   -h, --help              display this help and exit
930       --help=short        display options specific to this package
931       --help=recursive    display the short help of all the included packages
932   -V, --version           display version information and exit
933   -q, --quiet, --silent   do not print \`checking...' messages
934       --cache-file=FILE   cache test results in FILE [disabled]
935   -C, --config-cache      alias for \`--cache-file=config.cache'
936   -n, --no-create         do not create output files
937       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
938
939 _ACEOF
940
941   cat <<_ACEOF
942 Installation directories:
943   --prefix=PREFIX         install architecture-independent files in PREFIX
944                           [$ac_default_prefix]
945   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
946                           [PREFIX]
947
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
952
953 For better control, use the options below.
954
955 Fine tuning of the installation directories:
956   --bindir=DIR           user executables [EPREFIX/bin]
957   --sbindir=DIR          system admin executables [EPREFIX/sbin]
958   --libexecdir=DIR       program executables [EPREFIX/libexec]
959   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
960   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
961   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
962   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
963   --libdir=DIR           object code libraries [EPREFIX/lib]
964   --includedir=DIR       C header files [PREFIX/include]
965   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
966   --infodir=DIR          info documentation [PREFIX/info]
967   --mandir=DIR           man documentation [PREFIX/man]
968 _ACEOF
969
970   cat <<\_ACEOF
971
972 Program names:
973   --program-prefix=PREFIX            prepend PREFIX to installed program names
974   --program-suffix=SUFFIX            append SUFFIX to installed program names
975   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
976
977 System types:
978   --build=BUILD     configure for building on BUILD [guessed]
979   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
980   --target=TARGET   configure for building compilers for TARGET [HOST]
981 _ACEOF
982 fi
983
984 if test -n "$ac_init_help"; then
985
986   cat <<\_ACEOF
987
988 Optional Features:
989   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
990   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
991   --enable-multilib       build many library versions (default)
992   --enable-maintainer-mode  enable make rules and dependencies not useful
993                           (and sometimes confusing) to the casual installer
994   --disable-dependency-tracking  speeds up one-time build
995   --enable-dependency-tracking   do not reject slow dependency extractors
996   --enable-shared[=PKGS]
997                           build shared libraries [default=yes]
998   --enable-static[=PKGS]
999                           build static libraries [default=yes]
1000   --enable-fast-install[=PKGS]
1001                           optimize for fast installation [default=yes]
1002   --disable-libtool-lock  avoid locking (might break parallel builds)
1003
1004 Optional Packages:
1005   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1006   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1007   --with-target-subdir=SUBDIR
1008                           configuring in a subdirectory
1009   --with-cross-host=HOST  configuring with a cross compiler
1010   --with-system-zlib      use installed libz
1011   --with-pic              try to use only PIC/non-PIC objects [default=use
1012                           both]
1013   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1014
1015 Some influential environment variables:
1016   CC          C compiler command
1017   CFLAGS      C compiler flags
1018   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1019               nonstandard directory <lib dir>
1020   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021               headers in a nonstandard directory <include dir>
1022   CPP         C preprocessor
1023
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1026
1027 _ACEOF
1028 fi
1029
1030 if test "$ac_init_help" = "recursive"; then
1031   # If there are subdirs, report their specific --help.
1032   ac_popdir=`pwd`
1033   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034     test -d $ac_dir || continue
1035     ac_builddir=.
1036
1037 if test "$ac_dir" != .; then
1038   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039   # A "../" for each directory in $ac_dir_suffix.
1040   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042   ac_dir_suffix= ac_top_builddir=
1043 fi
1044
1045 case $srcdir in
1046   .)  # No --srcdir option.  We are building in place.
1047     ac_srcdir=.
1048     if test -z "$ac_top_builddir"; then
1049        ac_top_srcdir=.
1050     else
1051        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052     fi ;;
1053   [\\/]* | ?:[\\/]* )  # Absolute path.
1054     ac_srcdir=$srcdir$ac_dir_suffix;
1055     ac_top_srcdir=$srcdir ;;
1056   *) # Relative path.
1057     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1060
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1065 *)
1066   case "$ac_dir" in
1067   .) ac_abs_builddir=`pwd`;;
1068   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070   esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 *)
1075   case ${ac_top_builddir}. in
1076   .) ac_abs_top_builddir=$ac_abs_builddir;;
1077   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079   esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1083 *)
1084   case $ac_srcdir in
1085   .) ac_abs_srcdir=$ac_abs_builddir;;
1086   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088   esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 *)
1093   case $ac_top_srcdir in
1094   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097   esac;;
1098 esac
1099
1100     cd $ac_dir
1101     # Check for guested configure; otherwise get Cygnus style configure.
1102     if test -f $ac_srcdir/configure.gnu; then
1103       echo
1104       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1105     elif test -f $ac_srcdir/configure; then
1106       echo
1107       $SHELL $ac_srcdir/configure  --help=recursive
1108     elif test -f $ac_srcdir/configure.ac ||
1109            test -f $ac_srcdir/configure.in; then
1110       echo
1111       $ac_configure --help
1112     else
1113       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114     fi
1115     cd $ac_popdir
1116   done
1117 fi
1118
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121   cat <<\_ACEOF
1122
1123 Copyright (C) 2003 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127   exit 0
1128 fi
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1133
1134 It was created by $as_me, which was
1135 generated by GNU Autoconf 2.59.  Invocation command line was
1136
1137   $ $0 $@
1138
1139 _ACEOF
1140 {
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1145
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1154
1155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1162
1163 _ASUNAME
1164
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1167 do
1168   IFS=$as_save_IFS
1169   test -z "$as_dir" && as_dir=.
1170   echo "PATH: $as_dir"
1171 done
1172
1173 } >&5
1174
1175 cat >&5 <<_ACEOF
1176
1177
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1181
1182 _ACEOF
1183
1184
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1196 do
1197   for ac_arg
1198   do
1199     case $ac_arg in
1200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202     | -silent | --silent | --silen | --sile | --sil)
1203       continue ;;
1204     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206     esac
1207     case $ac_pass in
1208     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209     2)
1210       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211       if test $ac_must_keep_next = true; then
1212         ac_must_keep_next=false # Got value, back to normal.
1213       else
1214         case $ac_arg in
1215           *=* | --config-cache | -C | -disable-* | --disable-* \
1216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218           | -with-* | --with-* | -without-* | --without-* | --x)
1219             case "$ac_configure_args0 " in
1220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221             esac
1222             ;;
1223           -* ) ac_must_keep_next=true ;;
1224         esac
1225       fi
1226       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227       # Get rid of the leading space.
1228       ac_sep=" "
1229       ;;
1230     esac
1231   done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log.  We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242   # Save into config.log some information that might help in debugging.
1243   {
1244     echo
1245
1246     cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251     echo
1252     # The following way of writing the cache mishandles newlines in values,
1253 {
1254   (set) 2>&1 |
1255     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256     *ac_space=\ *)
1257       sed -n \
1258         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260       ;;
1261     *)
1262       sed -n \
1263         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264       ;;
1265     esac;
1266 }
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274     echo
1275     for ac_var in $ac_subst_vars
1276     do
1277       eval ac_val=$`echo $ac_var`
1278       echo "$ac_var='"'"'$ac_val'"'"'"
1279     done | sort
1280     echo
1281
1282     if test -n "$ac_subst_files"; then
1283       cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288       echo
1289       for ac_var in $ac_subst_files
1290       do
1291         eval ac_val=$`echo $ac_var`
1292         echo "$ac_var='"'"'$ac_val'"'"'"
1293       done | sort
1294       echo
1295     fi
1296
1297     if test -s confdefs.h; then
1298       cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303       echo
1304       sed "/^$/d" confdefs.h | sort
1305       echo
1306     fi
1307     test "$ac_signal" != 0 &&
1308       echo "$as_me: caught signal $ac_signal"
1309     echo "$as_me: exit $exit_status"
1310   } >&5
1311   rm -f core *.core &&
1312   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313     exit $exit_status
1314      ' 0
1315 for ac_signal in 1 2 13 15; do
1316   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1319
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1324
1325 # Predefined preprocessor variables.
1326
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1330
1331
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1335
1336
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1340
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1350
1351
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355   if test "x$prefix" != xNONE; then
1356     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357   else
1358     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1359   fi
1360 fi
1361 for ac_site_file in $CONFIG_SITE; do
1362   if test -r "$ac_site_file"; then
1363     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365     sed 's/^/| /' "$ac_site_file" >&5
1366     . "$ac_site_file"
1367   fi
1368 done
1369
1370 if test -r "$cache_file"; then
1371   # Some versions of bash will fail to source /dev/null (special
1372   # files actually), so we avoid doing that.
1373   if test -f "$cache_file"; then
1374     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376     case $cache_file in
1377       [\\/]* | ?:[\\/]* ) . $cache_file;;
1378       *)                      . ./$cache_file;;
1379     esac
1380   fi
1381 else
1382   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384   >$cache_file
1385 fi
1386
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393   eval ac_new_set=\$ac_env_${ac_var}_set
1394   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395   eval ac_new_val="\$ac_env_${ac_var}_value"
1396   case $ac_old_set,$ac_new_set in
1397     set,)
1398       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400       ac_cache_corrupted=: ;;
1401     ,set)
1402       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404       ac_cache_corrupted=: ;;
1405     ,);;
1406     *)
1407       if test "x$ac_old_val" != "x$ac_new_val"; then
1408         # differences in whitespace do not lead to failure.
1409         ac_old_val_w=`echo x $ac_old_val`
1410         ac_new_val_w=`echo x $ac_new_val`
1411         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1412           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1413 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1414           ac_cache_corrupted=:
1415         else
1416           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1417 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1418           eval $ac_var=\$ac_old_val
1419         fi
1420         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1421 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1422         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1423 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1424       fi;;
1425   esac
1426   # Pass precious variables to config.status.
1427   if test "$ac_new_set" = set; then
1428     case $ac_new_val in
1429     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431     *) ac_arg=$ac_var=$ac_new_val ;;
1432     esac
1433     case " $ac_configure_args " in
1434       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1435       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436     esac
1437   fi
1438 done
1439 if $ac_cache_corrupted; then
1440   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1441 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1442   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1443 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1444   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1445 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1446    { (exit 1); exit 1; }; }
1447 fi
1448
1449 ac_ext=c
1450 ac_cpp='$CPP $CPPFLAGS'
1451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478 # Default to --enable-multilib
1479 # Check whether --enable-multilib or --disable-multilib was given.
1480 if test "${enable_multilib+set}" = set; then
1481   enableval="$enable_multilib"
1482   case "$enableval" in
1483   yes) multilib=yes ;;
1484   no)  multilib=no ;;
1485   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1486 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1487    { (exit 1); exit 1; }; } ;;
1488  esac
1489 else
1490   multilib=yes
1491 fi;
1492
1493 # We may get other options which we leave undocumented:
1494 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1495 # See config-ml.in if you want the gory details.
1496
1497 if test "$srcdir" = "."; then
1498   if test "$with_target_subdir" != "."; then
1499     multi_basedir="$srcdir/$with_multisrctop../.."
1500   else
1501     multi_basedir="$srcdir/$with_multisrctop.."
1502   fi
1503 else
1504   multi_basedir="$srcdir/.."
1505 fi
1506
1507
1508 # Even if the default multilib is not a cross compilation,
1509 # it may be that some of the other multilibs are.
1510 if test $cross_compiling = no && test $multilib = yes \
1511    && test "x${with_multisubdir}" != x ; then
1512    cross_compiling=maybe
1513 fi
1514
1515           ac_config_commands="$ac_config_commands default-1"
1516
1517
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520   if test -f $ac_dir/install-sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install-sh -c"
1523     break
1524   elif test -f $ac_dir/install.sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install.sh -c"
1527     break
1528   elif test -f $ac_dir/shtool; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/shtool install -c"
1531     break
1532   fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547    { (exit 1); exit 1; }; }
1548
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556   ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560    { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564    { (exit 1); exit 1; }; }
1565
1566 fi
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1569 build=$ac_cv_build
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575 echo "$as_me:$LINENO: checking host system type" >&5
1576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577 if test "${ac_cv_host+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_host_alias=$host_alias
1581 test -z "$ac_cv_host_alias" &&
1582   ac_cv_host_alias=$ac_cv_build_alias
1583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586    { (exit 1); exit 1; }; }
1587
1588 fi
1589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590 echo "${ECHO_T}$ac_cv_host" >&6
1591 host=$ac_cv_host
1592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597 echo "$as_me:$LINENO: checking target system type" >&5
1598 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1599 if test "${ac_cv_target+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   ac_cv_target_alias=$target_alias
1603 test "x$ac_cv_target_alias" = "x" &&
1604   ac_cv_target_alias=$ac_cv_host_alias
1605 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1606   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1608    { (exit 1); exit 1; }; }
1609
1610 fi
1611 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1612 echo "${ECHO_T}$ac_cv_target" >&6
1613 target=$ac_cv_target
1614 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 test -n "$target_alias" &&
1622   test "$program_prefix$program_suffix$program_transform_name" = \
1623     NONENONEs,x,x, &&
1624   program_prefix=${target_alias}-
1625
1626 # This works around an automake problem.
1627 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1628
1629
1630 am__api_version="1.9"
1631 # Find a good install program.  We prefer a C program (faster),
1632 # so one script is as good as another.  But avoid the broken or
1633 # incompatible versions:
1634 # SysV /etc/install, /usr/sbin/install
1635 # SunOS /usr/etc/install
1636 # IRIX /sbin/install
1637 # AIX /bin/install
1638 # AmigaOS /C/install, which installs bootblocks on floppy discs
1639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1642 # OS/2's system install, which has a completely different semantic
1643 # ./install, which can be erroneously created by make from ./install.sh.
1644 # Reject install programs that cannot install multiple files.
1645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1647 if test -z "$INSTALL"; then
1648 if test "${ac_cv_path_install+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654   IFS=$as_save_IFS
1655   test -z "$as_dir" && as_dir=.
1656   # Account for people who put trailing slashes in PATH elements.
1657 case $as_dir/ in
1658   ./ | .// | /cC/* | \
1659   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1660   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1661   /usr/ucb/* ) ;;
1662   *)
1663     # OSF1 and SCO ODT 3.0 have their own names for install.
1664     # Don't use installbsd from OSF since it installs stuff as root
1665     # by default.
1666     for ac_prog in ginstall scoinst install; do
1667       for ac_exec_ext in '' $ac_executable_extensions; do
1668         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1669           if test $ac_prog = install &&
1670             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1671             # AIX install.  It has an incompatible calling convention.
1672             :
1673           elif test $ac_prog = install &&
1674             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675             # program-specific install script used by HP pwplus--don't use.
1676             :
1677           else
1678             rm -rf conftest.one conftest.two conftest.dir
1679             echo one > conftest.one
1680             echo two > conftest.two
1681             mkdir conftest.dir
1682             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1683               test -s conftest.one && test -s conftest.two &&
1684               test -s conftest.dir/conftest.one &&
1685               test -s conftest.dir/conftest.two
1686             then
1687               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688               break 3
1689             fi
1690           fi
1691         fi
1692       done
1693     done
1694     ;;
1695 esac
1696 done
1697
1698 rm -rf conftest.one conftest.two conftest.dir
1699
1700 fi
1701   if test "${ac_cv_path_install+set}" = set; then
1702     INSTALL=$ac_cv_path_install
1703   else
1704     # As a last resort, use the slow shell script.  Don't cache a
1705     # value for INSTALL within a source directory, because that will
1706     # break other packages using the cache if that directory is
1707     # removed, or if the value is a relative name.
1708     INSTALL=$ac_install_sh
1709   fi
1710 fi
1711 echo "$as_me:$LINENO: result: $INSTALL" >&5
1712 echo "${ECHO_T}$INSTALL" >&6
1713
1714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715 # It thinks the first close brace ends the variable substitution.
1716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
1718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719
1720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
1722 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1723 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1724 # Just in case
1725 sleep 1
1726 echo timestamp > conftest.file
1727 # Do `set' in a subshell so we don't clobber the current shell's
1728 # arguments.  Must try -L first in case configure is actually a
1729 # symlink; some systems play weird games with the mod time of symlinks
1730 # (eg FreeBSD returns the mod time of the symlink's containing
1731 # directory).
1732 if (
1733    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1734    if test "$*" = "X"; then
1735       # -L didn't work.
1736       set X `ls -t $srcdir/configure conftest.file`
1737    fi
1738    rm -f conftest.file
1739    if test "$*" != "X $srcdir/configure conftest.file" \
1740       && test "$*" != "X conftest.file $srcdir/configure"; then
1741
1742       # If neither matched, then we have a broken ls.  This can happen
1743       # if, for instance, CONFIG_SHELL is bash and it inherits a
1744       # broken ls alias from the environment.  This has actually
1745       # happened.  Such a system could not be considered "sane".
1746       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1747 alias in your environment" >&5
1748 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1749 alias in your environment" >&2;}
1750    { (exit 1); exit 1; }; }
1751    fi
1752
1753    test "$2" = conftest.file
1754    )
1755 then
1756    # Ok.
1757    :
1758 else
1759    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1760 Check your system clock" >&5
1761 echo "$as_me: error: newly created file is older than distributed files!
1762 Check your system clock" >&2;}
1763    { (exit 1); exit 1; }; }
1764 fi
1765 echo "$as_me:$LINENO: result: yes" >&5
1766 echo "${ECHO_T}yes" >&6
1767 test "$program_prefix" != NONE &&
1768   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1769 # Use a double $ so make ignores it.
1770 test "$program_suffix" != NONE &&
1771   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1772 # Double any \ or $.  echo might interpret backslashes.
1773 # By default was `s,x,x', remove it if useless.
1774 cat <<\_ACEOF >conftest.sed
1775 s/[\\$]/&&/g;s/;s,x,x,$//
1776 _ACEOF
1777 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778 rm conftest.sed
1779
1780 # expand $ac_aux_dir to an absolute path
1781 am_aux_dir=`cd $ac_aux_dir && pwd`
1782
1783 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1784 # Use eval to expand $SHELL
1785 if eval "$MISSING --run true"; then
1786   am_missing_run="$MISSING --run "
1787 else
1788   am_missing_run=
1789   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1790 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1791 fi
1792
1793 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1794   # We used to keeping the `.' as first argument, in order to
1795   # allow $(mkdir_p) to be used without argument.  As in
1796   #   $(mkdir_p) $(somedir)
1797   # where $(somedir) is conditionally defined.  However this is wrong
1798   # for two reasons:
1799   #  1. if the package is installed by a user who cannot write `.'
1800   #     make install will fail,
1801   #  2. the above comment should most certainly read
1802   #     $(mkdir_p) $(DESTDIR)$(somedir)
1803   #     so it does not work when $(somedir) is undefined and
1804   #     $(DESTDIR) is not.
1805   #  To support the latter case, we have to write
1806   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1807   #  so the `.' trick is pointless.
1808   mkdir_p='mkdir -p --'
1809 else
1810   # On NextStep and OpenStep, the `mkdir' command does not
1811   # recognize any option.  It will interpret all options as
1812   # directories to create, and then abort because `.' already
1813   # exists.
1814   for d in ./-p ./--version;
1815   do
1816     test -d $d && rmdir $d
1817   done
1818   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819   if test -f "$ac_aux_dir/mkinstalldirs"; then
1820     mkdir_p='$(mkinstalldirs)'
1821   else
1822     mkdir_p='$(install_sh) -d'
1823   fi
1824 fi
1825
1826 for ac_prog in gawk mawk nawk awk
1827 do
1828   # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$AWK"; then
1836   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841   IFS=$as_save_IFS
1842   test -z "$as_dir" && as_dir=.
1843   for ac_exec_ext in '' $ac_executable_extensions; do
1844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845     ac_cv_prog_AWK="$ac_prog"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852 fi
1853 fi
1854 AWK=$ac_cv_prog_AWK
1855 if test -n "$AWK"; then
1856   echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1858 else
1859   echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863   test -n "$AWK" && break
1864 done
1865
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872   cat >conftest.make <<\_ACEOF
1873 all:
1874         @echo 'ac_maketemp="$(MAKE)"'
1875 _ACEOF
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879   eval ac_cv_prog_make_${ac_make}_set=yes
1880 else
1881   eval ac_cv_prog_make_${ac_make}_set=no
1882 fi
1883 rm -f conftest.make
1884 fi
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886   echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1888   SET_MAKE=
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892   SET_MAKE="MAKE=${MAKE-make}"
1893 fi
1894
1895 rm -rf .tst 2>/dev/null
1896 mkdir .tst 2>/dev/null
1897 if test -d .tst; then
1898   am__leading_dot=.
1899 else
1900   am__leading_dot=_
1901 fi
1902 rmdir .tst 2>/dev/null
1903
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906    test -f $srcdir/config.status; then
1907   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914   if (cygpath --version) >/dev/null 2>/dev/null; then
1915     CYGPATH_W='cygpath -w'
1916   else
1917     CYGPATH_W=echo
1918   fi
1919 fi
1920
1921
1922 # Define the identity of the package.
1923  PACKAGE=zlib
1924  VERSION=1.1.4
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define VERSION "$VERSION"
1934 _ACEOF
1935
1936 # Some tools Automake needs.
1937
1938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939
1940
1941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942
1943
1944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1945
1946
1947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948
1949
1950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951
1952 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1953
1954 # Installed binaries are usually stripped using `strip' when the user
1955 # run `make install-strip'.  However `strip' might not be the right
1956 # tool to use in cross-compilation environments, therefore Automake
1957 # will honor the `STRIP' environment variable to overrule this program.
1958 if test "$cross_compiling" != no; then
1959   if test -n "$ac_tool_prefix"; then
1960   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}strip; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_STRIP+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$STRIP"; then
1968   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 STRIP=$ac_cv_prog_STRIP
1987 if test -n "$STRIP"; then
1988   echo "$as_me:$LINENO: result: $STRIP" >&5
1989 echo "${ECHO_T}$STRIP" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995 fi
1996 if test -z "$ac_cv_prog_STRIP"; then
1997   ac_ct_STRIP=$STRIP
1998   # Extract the first word of "strip", so it can be a program name with args.
1999 set dummy strip; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$ac_ct_STRIP"; then
2006   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     ac_cv_prog_ac_ct_STRIP="strip"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2023 fi
2024 fi
2025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2026 if test -n "$ac_ct_STRIP"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2028 echo "${ECHO_T}$ac_ct_STRIP" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   STRIP=$ac_ct_STRIP
2035 else
2036   STRIP="$ac_cv_prog_STRIP"
2037 fi
2038
2039 fi
2040 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2041
2042 # We need awk for the "check" target.  The system "awk" is bad on
2043 # some platforms.
2044 # Always define AMTAR for backward compatibility.
2045
2046 AMTAR=${AMTAR-"${am_missing_run}tar"}
2047
2048 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2049
2050
2051
2052
2053
2054
2055 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2057     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058 if test "${enable_maintainer_mode+set}" = set; then
2059   enableval="$enable_maintainer_mode"
2060   USE_MAINTAINER_MODE=$enableval
2061 else
2062   USE_MAINTAINER_MODE=no
2063 fi;
2064   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2066
2067
2068 if test $USE_MAINTAINER_MODE = yes; then
2069   MAINTAINER_MODE_TRUE=
2070   MAINTAINER_MODE_FALSE='#'
2071 else
2072   MAINTAINER_MODE_TRUE='#'
2073   MAINTAINER_MODE_FALSE=
2074 fi
2075
2076   MAINT=$MAINTAINER_MODE_TRUE
2077
2078
2079
2080
2081 # Check whether --with-target-subdir or --without-target-subdir was given.
2082 if test "${with_target_subdir+set}" = set; then
2083   withval="$with_target_subdir"
2084
2085 fi;
2086
2087 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2088    COMPPATH=.
2089 else
2090    COMPPATH=..
2091 fi
2092
2093
2094
2095 # Check whether --with-cross-host or --without-cross-host was given.
2096 if test "${with_cross_host+set}" = set; then
2097   withval="$with_cross_host"
2098
2099 fi;
2100
2101 # Check whether --enable-multilib or --disable-multilib was given.
2102 if test "${enable_multilib+set}" = set; then
2103   enableval="$enable_multilib"
2104   case "${enableval}" in
2105   yes) multilib=yes ;;
2106   no)  multilib=no ;;
2107   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2108 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2109    { (exit 1); exit 1; }; } ;;
2110  esac
2111 else
2112   test -z "$with_target_subdir" && multilib=no || multilib=yes
2113 fi;
2114
2115 # Check whether --with-system-zlib or --without-system-zlib was given.
2116 if test "${with_system_zlib+set}" = set; then
2117   withval="$with_system_zlib"
2118
2119 fi;
2120
2121 # Make sure we don't test executables when making cross-tools.
2122
2123
2124 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2125 # We must force CC to /not/ be precious variables; otherwise
2126 # the wrong, non-multilib-adjusted value will be used in multilibs.
2127 # As a side effect, we have to subst CFLAGS ourselves.
2128
2129
2130
2131 ac_ext=c
2132 ac_cpp='$CPP $CPPFLAGS'
2133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136 if test -n "$ac_tool_prefix"; then
2137   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_CC+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test -n "$CC"; then
2145   ac_cv_prog_CC="$CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160
2161 fi
2162 fi
2163 CC=$ac_cv_prog_CC
2164 if test -n "$CC"; then
2165   echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6
2167 else
2168   echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172 fi
2173 if test -z "$ac_cv_prog_CC"; then
2174   ac_ct_CC=$CC
2175   # Extract the first word of "gcc", so it can be a program name with args.
2176 set dummy gcc; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$ac_ct_CC"; then
2183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192     ac_cv_prog_ac_ct_CC="gcc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198
2199 fi
2200 fi
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6
2205 else
2206   echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2208 fi
2209
2210   CC=$ac_ct_CC
2211 else
2212   CC="$ac_cv_prog_CC"
2213 fi
2214
2215 if test -z "$CC"; then
2216   if test -n "$ac_tool_prefix"; then
2217   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}cc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test -n "$CC"; then
2225   ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     ac_cv_prog_CC="${ac_tool_prefix}cc"
2235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245   echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252 fi
2253 if test -z "$ac_cv_prog_CC"; then
2254   ac_ct_CC=$CC
2255   # Extract the first word of "cc", so it can be a program name with args.
2256 set dummy cc; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   if test -n "$ac_ct_CC"; then
2263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270   for ac_exec_ext in '' $ac_executable_extensions; do
2271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272     ac_cv_prog_ac_ct_CC="cc"
2273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274     break 2
2275   fi
2276 done
2277 done
2278
2279 fi
2280 fi
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2285 else
2286   echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2288 fi
2289
2290   CC=$ac_ct_CC
2291 else
2292   CC="$ac_cv_prog_CC"
2293 fi
2294
2295 fi
2296 if test -z "$CC"; then
2297   # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$CC"; then
2305   ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307   ac_prog_rejected=no
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2316        ac_prog_rejected=yes
2317        continue
2318      fi
2319     ac_cv_prog_CC="cc"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325
2326 if test $ac_prog_rejected = yes; then
2327   # We found a bogon in the path, so make sure we never use it.
2328   set dummy $ac_cv_prog_CC
2329   shift
2330   if test $# != 0; then
2331     # We chose a different compiler from the bogus one.
2332     # However, it has the same basename, so the bogon will be chosen
2333     # first if we set CC to just the basename; use the full file name.
2334     shift
2335     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2336   fi
2337 fi
2338 fi
2339 fi
2340 CC=$ac_cv_prog_CC
2341 if test -n "$CC"; then
2342   echo "$as_me:$LINENO: result: $CC" >&5
2343 echo "${ECHO_T}$CC" >&6
2344 else
2345   echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6
2347 fi
2348
2349 fi
2350 if test -z "$CC"; then
2351   if test -n "$ac_tool_prefix"; then
2352   for ac_prog in cl
2353   do
2354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356 echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$CC"; then
2362   ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382   echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6
2384 else
2385   echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2387 fi
2388
2389     test -n "$CC" && break
2390   done
2391 fi
2392 if test -z "$CC"; then
2393   ac_ct_CC=$CC
2394   for ac_prog in cl
2395 do
2396   # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$ac_ct_CC"; then
2404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_ac_ct_CC="$ac_prog"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419
2420 fi
2421 fi
2422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423 if test -n "$ac_ct_CC"; then
2424   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425 echo "${ECHO_T}$ac_ct_CC" >&6
2426 else
2427   echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431   test -n "$ac_ct_CC" && break
2432 done
2433
2434   CC=$ac_ct_CC
2435 fi
2436
2437 fi
2438
2439
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&2;}
2446    { (exit 1); exit 1; }; }; }
2447
2448 # Provide some information about the compiler.
2449 echo "$as_me:$LINENO:" \
2450      "checking for C compiler version" >&5
2451 ac_compiler=`set X $ac_compile; echo $2`
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2453   (eval $ac_compiler --version </dev/null >&5) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2458   (eval $ac_compiler -v </dev/null >&5) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }
2462 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2463   (eval $ac_compiler -V </dev/null >&5) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }
2467
2468 cat >conftest.$ac_ext <<_ACEOF
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474
2475 int
2476 main ()
2477 {
2478
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 # FIXME: Cleanup?
2484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485   (eval $ac_link) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; then
2489   gcc_no_link=no
2490 else
2491   gcc_no_link=yes
2492 fi
2493
2494 if test x$gcc_no_link = xyes; then
2495   # Setting cross_compile will disable run tests; it will
2496   # also disable AC_CHECK_FILE but that's generally
2497   # correct if we can't link.
2498   cross_compiling=yes
2499   EXEEXT=
2500 else
2501   cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 ac_clean_files_save=$ac_clean_files
2517 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518 # Try to create an executable without -o first, disregard a.out.
2519 # It will help us diagnose broken compilers, and finding out an intuition
2520 # of exeext.
2521 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2522 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2523 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2525   (eval $ac_link_default) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   # Find the output, starting from the most likely.  This scheme is
2530 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2531 # resort.
2532
2533 # Be careful to initialize this variable, since it used to be cached.
2534 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2535 ac_cv_exeext=
2536 # b.out is created by i960 compilers.
2537 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2538 do
2539   test -f "$ac_file" || continue
2540   case $ac_file in
2541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2542         ;;
2543     conftest.$ac_ext )
2544         # This is the source file.
2545         ;;
2546     [ab].out )
2547         # We found the default executable, but exeext='' is most
2548         # certainly right.
2549         break;;
2550     *.* )
2551         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552         # FIXME: I believe we export ac_cv_exeext for Libtool,
2553         # but it would be cool to find out if it's true.  Does anybody
2554         # maintain Libtool? --akim.
2555         export ac_cv_exeext
2556         break;;
2557     * )
2558         break;;
2559   esac
2560 done
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C compiler cannot create executables
2570 See \`config.log' for more details." >&2;}
2571    { (exit 77); exit 77; }; }; }
2572 fi
2573
2574 ac_exeext=$ac_cv_exeext
2575 echo "$as_me:$LINENO: result: $ac_file" >&5
2576 echo "${ECHO_T}$ac_file" >&6
2577
2578 # Check the compiler produces executables we can run.  If not, either
2579 # the compiler is broken, or we cross compile.
2580 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2582 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583 # If not cross compiling, check that we can run a simple program.
2584 if test "$cross_compiling" != yes; then
2585   if { ac_try='./$ac_file'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591     cross_compiling=no
2592   else
2593     if test "$cross_compiling" = maybe; then
2594         cross_compiling=yes
2595     else
2596         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&2;}
2604    { (exit 1); exit 1; }; }; }
2605     fi
2606   fi
2607 fi
2608 echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2610
2611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612 ac_clean_files=$ac_clean_files_save
2613 # Check the compiler produces executables we can run.  If not, either
2614 # the compiler is broken, or we cross compile.
2615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618 echo "${ECHO_T}$cross_compiling" >&6
2619
2620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623   (eval $ac_link) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; then
2627   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2628 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2629 # work properly (i.e., refer to `conftest.exe'), while it won't with
2630 # `rm'.
2631 for ac_file in conftest.exe conftest conftest.*; do
2632   test -f "$ac_file" || continue
2633   case $ac_file in
2634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636           export ac_cv_exeext
2637           break;;
2638     * ) break;;
2639   esac
2640 done
2641 else
2642   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2643 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2645 See \`config.log' for more details." >&5
2646 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2647 See \`config.log' for more details." >&2;}
2648    { (exit 1); exit 1; }; }; }
2649 fi
2650
2651 rm -f conftest$ac_cv_exeext
2652 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2653 echo "${ECHO_T}$ac_cv_exeext" >&6
2654
2655 rm -f conftest.$ac_ext
2656 EXEEXT=$ac_cv_exeext
2657 ac_exeext=$EXEEXT
2658 fi
2659 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661 if test "${ac_cv_objext+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670
2671 int
2672 main ()
2673 {
2674
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 rm -f conftest.o conftest.obj
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681   (eval $ac_compile) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; then
2685   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686   case $ac_file in
2687     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689        break;;
2690   esac
2691 done
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2697 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&2;}
2702    { (exit 1); exit 1; }; }; }
2703 fi
2704
2705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708 echo "${ECHO_T}$ac_cv_objext" >&6
2709 OBJEXT=$ac_cv_objext
2710 ac_objext=$OBJEXT
2711 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722
2723 int
2724 main ()
2725 {
2726 #ifndef __GNUC__
2727        choke me
2728 #endif
2729
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736   (eval $ac_compile) 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag"
2744                          || test ! -s conftest.err'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; } &&
2750          { ac_try='test -s conftest.$ac_objext'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; }; then
2756   ac_compiler_gnu=yes
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 ac_compiler_gnu=no
2762 fi
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2765
2766 fi
2767 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769 GCC=`test $ac_compiler_gnu = yes && echo yes`
2770 ac_test_CFLAGS=${CFLAGS+set}
2771 ac_save_CFLAGS=$CFLAGS
2772 CFLAGS="-g"
2773 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   ac_cv_prog_cc_g=yes
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 ac_cv_prog_cc_g=no
2821 fi
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 fi
2824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826 if test "$ac_test_CFLAGS" = set; then
2827   CFLAGS=$ac_save_CFLAGS
2828 elif test $ac_cv_prog_cc_g = yes; then
2829   if test "$GCC" = yes; then
2830     CFLAGS="-g -O2"
2831   else
2832     CFLAGS="-g"
2833   fi
2834 else
2835   if test "$GCC" = yes; then
2836     CFLAGS="-O2"
2837   else
2838     CFLAGS=
2839   fi
2840 fi
2841 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   ac_cv_prog_cc_stdc=no
2847 ac_save_CC=$CC
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 #include <stdarg.h>
2855 #include <stdio.h>
2856 #include <sys/types.h>
2857 #include <sys/stat.h>
2858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2859 struct buf { int x; };
2860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861 static char *e (p, i)
2862      char **p;
2863      int i;
2864 {
2865   return p[i];
2866 }
2867 static char *f (char * (*g) (char **, int), char **p, ...)
2868 {
2869   char *s;
2870   va_list v;
2871   va_start (v,p);
2872   s = g (p, va_arg (v,int));
2873   va_end (v);
2874   return s;
2875 }
2876
2877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2878    function prototypes and stuff, but not '\xHH' hex character constants.
2879    These don't provoke an error unfortunately, instead are silently treated
2880    as 'x'.  The following induces an error, until -std1 is added to get
2881    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2882    array size at least.  It's necessary to write '\x00'==0 to get something
2883    that's true only with -std1.  */
2884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2885
2886 int test (int i, double x);
2887 struct s1 {int (*f) (int a);};
2888 struct s2 {int (*f) (double a);};
2889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 int argc;
2891 char **argv;
2892 int
2893 main ()
2894 {
2895 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 # Don't try gcc -ansi; that turns off useful extensions and
2901 # breaks some systems' header files.
2902 # AIX                   -qlanglvl=ansi
2903 # Ultrix and OSF/1      -std1
2904 # HP-UX 10.20 and later -Ae
2905 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2906 # SVR4                  -Xc -D__EXTENSIONS__
2907 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908 do
2909   CC="$ac_save_CC $ac_arg"
2910   rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912   (eval $ac_compile) 2>conftest.er1
2913   ac_status=$?
2914   grep -v '^ *+' conftest.er1 >conftest.err
2915   rm -f conftest.er1
2916   cat conftest.err >&5
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); } &&
2919          { ac_try='test -z "$ac_c_werror_flag"
2920                          || test ! -s conftest.err'
2921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922   (eval $ac_try) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }; } &&
2926          { ac_try='test -s conftest.$ac_objext'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; }; then
2932   ac_cv_prog_cc_stdc=$ac_arg
2933 break
2934 else
2935   echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 fi
2939 rm -f conftest.err conftest.$ac_objext
2940 done
2941 rm -f conftest.$ac_ext conftest.$ac_objext
2942 CC=$ac_save_CC
2943
2944 fi
2945
2946 case "x$ac_cv_prog_cc_stdc" in
2947   x|xno)
2948     echo "$as_me:$LINENO: result: none needed" >&5
2949 echo "${ECHO_T}none needed" >&6 ;;
2950   *)
2951     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953     CC="$CC $ac_cv_prog_cc_stdc" ;;
2954 esac
2955
2956 # Some people use a C++ compiler to compile C.  Since we use `exit',
2957 # in C++ we need to declare it.  In case someone uses the same compiler
2958 # for both compiling C and C++ we need to have the C++ compiler decide
2959 # the declaration of exit, since it's the most demanding environment.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #ifndef __cplusplus
2962   choke me
2963 #endif
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967   (eval $ac_compile) 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } &&
2974          { ac_try='test -z "$ac_c_werror_flag"
2975                          || test ! -s conftest.err'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   for ac_declaration in \
2988    '' \
2989    'extern "C" void std::exit (int) throw (); using std::exit;' \
2990    'extern "C" void std::exit (int); using std::exit;' \
2991    'extern "C" void exit (int) throw ();' \
2992    'extern "C" void exit (int);' \
2993    'void exit (int);'
2994 do
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001 $ac_declaration
3002 #include <stdlib.h>
3003 int
3004 main ()
3005 {
3006 exit (42);
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013   (eval $ac_compile) 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -z "$ac_c_werror_flag"
3021                          || test ! -s conftest.err'
3022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023   (eval $ac_try) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; } &&
3027          { ac_try='test -s conftest.$ac_objext'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; }; then
3033   :
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 continue
3039 fi
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041   cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 $ac_declaration
3048 int
3049 main ()
3050 {
3051 exit (42);
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058   (eval $ac_compile) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -z "$ac_c_werror_flag"
3066                          || test ! -s conftest.err'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   break
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 fi
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 done
3086 rm -f conftest*
3087 if test -n "$ac_declaration"; then
3088   echo '#ifdef __cplusplus' >>confdefs.h
3089   echo $ac_declaration      >>confdefs.h
3090   echo '#endif'             >>confdefs.h
3091 fi
3092
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 fi
3098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 DEPDIR="${am__leading_dot}deps"
3105
3106           ac_config_commands="$ac_config_commands depfiles"
3107
3108
3109 am_make=${MAKE-make}
3110 cat > confinc << 'END'
3111 am__doit:
3112         @echo done
3113 .PHONY: am__doit
3114 END
3115 # If we don't find an include directive, just comment out the code.
3116 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3117 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3118 am__include="#"
3119 am__quote=
3120 _am_result=none
3121 # First try GNU make style include.
3122 echo "include confinc" > confmf
3123 # We grep out `Entering directory' and `Leaving directory'
3124 # messages which can occur if `w' ends up in MAKEFLAGS.
3125 # In particular we don't look at `^make:' because GNU make might
3126 # be invoked under some other name (usually "gmake"), in which
3127 # case it prints its new name instead of `make'.
3128 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3129    am__include=include
3130    am__quote=
3131    _am_result=GNU
3132 fi
3133 # Now try BSD make style include.
3134 if test "$am__include" = "#"; then
3135    echo '.include "confinc"' > confmf
3136    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3137       am__include=.include
3138       am__quote="\""
3139       _am_result=BSD
3140    fi
3141 fi
3142
3143
3144 echo "$as_me:$LINENO: result: $_am_result" >&5
3145 echo "${ECHO_T}$_am_result" >&6
3146 rm -f confinc confmf
3147
3148 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3149 if test "${enable_dependency_tracking+set}" = set; then
3150   enableval="$enable_dependency_tracking"
3151
3152 fi;
3153 if test "x$enable_dependency_tracking" != xno; then
3154   am_depcomp="$ac_aux_dir/depcomp"
3155   AMDEPBACKSLASH='\'
3156 fi
3157
3158
3159 if test "x$enable_dependency_tracking" != xno; then
3160   AMDEP_TRUE=
3161   AMDEP_FALSE='#'
3162 else
3163   AMDEP_TRUE='#'
3164   AMDEP_FALSE=
3165 fi
3166
3167
3168
3169
3170 depcc="$CC"   am_compiler_list=
3171
3172 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3174 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178   # We make a subdir and do the tests there.  Otherwise we can end up
3179   # making bogus files that we don't know about and never remove.  For
3180   # instance it was reported that on HP-UX the gcc test will end up
3181   # making a dummy file named `D' -- because `-MD' means `put the output
3182   # in D'.
3183   mkdir conftest.dir
3184   # Copy depcomp to subdir because otherwise we won't find it if we're
3185   # using a relative directory.
3186   cp "$am_depcomp" conftest.dir
3187   cd conftest.dir
3188   # We will build objects and dependencies in a subdirectory because
3189   # it helps to detect inapplicable dependency modes.  For instance
3190   # both Tru64's cc and ICC support -MD to output dependencies as a
3191   # side effect of compilation, but ICC will put the dependencies in
3192   # the current directory while Tru64 will put them in the object
3193   # directory.
3194   mkdir sub
3195
3196   am_cv_CC_dependencies_compiler_type=none
3197   if test "$am_compiler_list" = ""; then
3198      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3199   fi
3200   for depmode in $am_compiler_list; do
3201     # Setup a source with many dependencies, because some compilers
3202     # like to wrap large dependency lists on column 80 (with \), and
3203     # we should not choose a depcomp mode which is confused by this.
3204     #
3205     # We need to recreate these files for each test, as the compiler may
3206     # overwrite some of them when testing with obscure command lines.
3207     # This happens at least with the AIX C compiler.
3208     : > sub/conftest.c
3209     for i in 1 2 3 4 5 6; do
3210       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3211       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212       # Solaris 8's {/usr,}/bin/sh.
3213       touch sub/conftst$i.h
3214     done
3215     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3216
3217     case $depmode in
3218     nosideeffect)
3219       # after this tag, mechanisms are not by side-effect, so they'll
3220       # only be used when explicitly requested
3221       if test "x$enable_dependency_tracking" = xyes; then
3222         continue
3223       else
3224         break
3225       fi
3226       ;;
3227     none) break ;;
3228     esac
3229     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230     # mode.  It turns out that the SunPro C++ compiler does not properly
3231     # handle `-M -o', and we need to detect this.
3232     if depmode=$depmode \
3233        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236          >/dev/null 2>conftest.err &&
3237        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240       # icc doesn't choke on unknown options, it will just issue warnings
3241       # or remarks (even with -Werror).  So we grep stderr for any message
3242       # that says an option was ignored or not supported.
3243       # When given -MP, icc 7.0 and 7.1 complain thusly:
3244       #   icc: Command line warning: ignoring option '-M'; no argument required
3245       # The diagnosis changed in icc 8.0:
3246       #   icc: Command line remark: option '-MP' not supported
3247       if (grep 'ignoring option' conftest.err ||
3248           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3249         am_cv_CC_dependencies_compiler_type=$depmode
3250         break
3251       fi
3252     fi
3253   done
3254
3255   cd ..
3256   rm -rf conftest.dir
3257 else
3258   am_cv_CC_dependencies_compiler_type=none
3259 fi
3260
3261 fi
3262 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3265
3266
3267
3268 if
3269   test "x$enable_dependency_tracking" != xno \
3270   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271   am__fastdepCC_TRUE=
3272   am__fastdepCC_FALSE='#'
3273 else
3274   am__fastdepCC_TRUE='#'
3275   am__fastdepCC_FALSE=
3276 fi
3277
3278
3279
3280
3281
3282
3283
3284
3285 macro_version='2.1a'
3286 macro_revision='1.2435'
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299 ltmain="$ac_aux_dir/ltmain.sh"
3300
3301 # Set options
3302
3303 enable_dlopen=no
3304
3305
3306 enable_win32_dll=no
3307
3308
3309 # Check whether --enable-shared or --disable-shared was given.
3310 if test "${enable_shared+set}" = set; then
3311   enableval="$enable_shared"
3312   p=${PACKAGE-default}
3313     case $enableval in
3314     yes) enable_shared=yes ;;
3315     no) enable_shared=no ;;
3316     *)
3317       enable_shared=no
3318       # Look at the argument we got.  We use all the common list separators.
3319       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3320       for pkg in $enableval; do
3321         IFS="$lt_save_ifs"
3322         if test "X$pkg" = "X$p"; then
3323           enable_shared=yes
3324         fi
3325       done
3326       IFS="$lt_save_ifs"
3327       ;;
3328     esac
3329 else
3330   enable_shared=yes
3331 fi;
3332
3333
3334
3335
3336
3337
3338
3339
3340 # Check whether --enable-static or --disable-static was given.
3341 if test "${enable_static+set}" = set; then
3342   enableval="$enable_static"
3343   p=${PACKAGE-default}
3344     case $enableval in
3345     yes) enable_static=yes ;;
3346     no) enable_static=no ;;
3347     *)
3348      enable_static=no
3349       # Look at the argument we got.  We use all the common list separators.
3350       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3351       for pkg in $enableval; do
3352         IFS="$lt_save_ifs"
3353         if test "X$pkg" = "X$p"; then
3354           enable_static=yes
3355         fi
3356       done
3357       IFS="$lt_save_ifs"
3358       ;;
3359     esac
3360 else
3361   enable_static=yes
3362 fi;
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372 # Check whether --with-pic or --without-pic was given.
3373 if test "${with_pic+set}" = set; then
3374   withval="$with_pic"
3375   pic_mode="$withval"
3376 else
3377   pic_mode=default
3378 fi;
3379
3380 test -z "$pic_mode" && pic_mode=default
3381
3382
3383
3384
3385
3386
3387
3388 # Check whether --enable-fast-install or --disable-fast-install was given.
3389 if test "${enable_fast_install+set}" = set; then
3390   enableval="$enable_fast_install"
3391   p=${PACKAGE-default}
3392     case $enableval in
3393     yes) enable_fast_install=yes ;;
3394     no) enable_fast_install=no ;;
3395     *)
3396       enable_fast_install=no
3397       # Look at the argument we got.  We use all the common list separators.
3398       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3399       for pkg in $enableval; do
3400         IFS="$lt_save_ifs"
3401         if test "X$pkg" = "X$p"; then
3402           enable_fast_install=yes
3403         fi
3404       done
3405       IFS="$lt_save_ifs"
3406       ;;
3407     esac
3408 else
3409   enable_fast_install=yes
3410 fi;
3411
3412
3413
3414
3415
3416
3417
3418
3419 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3420 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3421 if test "${lt_cv_path_SED+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   # Loop through the user's path and test for sed and gsed.
3425 # Then use that list of sed's as ones to test for truncation.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for lt_ac_prog in sed gsed; do
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3434         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3435       fi
3436     done
3437   done
3438 done
3439 IFS=$as_save_IFS
3440 lt_ac_max=0
3441 lt_ac_count=0
3442 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3443 # along with /bin/sed that truncates output.
3444 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3445   test ! -f $lt_ac_sed && continue
3446   cat /dev/null > conftest.in
3447   lt_ac_count=0
3448   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3449   # Check for GNU sed and select it if it is found.
3450   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3451     lt_cv_path_SED=$lt_ac_sed
3452     break
3453   fi
3454   while true; do
3455     cat conftest.in conftest.in >conftest.tmp
3456     mv conftest.tmp conftest.in
3457     cp conftest.in conftest.nl
3458     echo >>conftest.nl
3459     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3460     cmp -s conftest.out conftest.nl || break
3461     # 10000 chars as input seems more than enough
3462     test $lt_ac_count -gt 10 && break
3463     lt_ac_count=`expr $lt_ac_count + 1`
3464     if test $lt_ac_count -gt $lt_ac_max; then
3465       lt_ac_max=$lt_ac_count
3466       lt_cv_path_SED=$lt_ac_sed
3467     fi
3468   done
3469 done
3470
3471 fi
3472
3473 SED=$lt_cv_path_SED
3474
3475 echo "$as_me:$LINENO: result: $SED" >&5
3476 echo "${ECHO_T}$SED" >&6
3477
3478 test -z "$SED" && SED=sed
3479 Xsed="$SED -e 1s/^X//"
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491 echo "$as_me:$LINENO: checking for egrep" >&5
3492 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3493 if test "${ac_cv_prog_egrep+set}" = set; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3497     then ac_cv_prog_egrep='grep -E'
3498     else ac_cv_prog_egrep='egrep'
3499     fi
3500 fi
3501 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3502 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3503  EGREP=$ac_cv_prog_egrep
3504
3505
3506 echo "$as_me:$LINENO: checking for fgrep" >&5
3507 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3508 if test "${ac_cv_prog_fgrep+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3512     then ac_cv_prog_fgrep='grep -F'
3513     else ac_cv_prog_fgrep='fgrep'
3514     fi
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3517 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3518  FGREP=$ac_cv_prog_fgrep
3519
3520
3521 test -z "$GREP" && GREP=grep
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3542 if test "${with_gnu_ld+set}" = set; then
3543   withval="$with_gnu_ld"
3544   test "$withval" = no || with_gnu_ld=yes
3545 else
3546   with_gnu_ld=no
3547 fi;
3548 ac_prog=ld
3549 if test "$GCC" = yes; then
3550   # Check if gcc -print-prog-name=ld gives a path.
3551   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3552 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3553   case $host in
3554   *-*-mingw*)
3555     # gcc leaves a trailing carriage return which upsets mingw
3556     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3557   *)
3558     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3559   esac
3560   case $ac_prog in
3561     # Accept absolute paths.
3562     [\\/]* | ?:[\\/]*)
3563       re_direlt='/[^/][^/]*/\.\./'
3564       # Canonicalize the pathname of ld
3565       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3566       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3567         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3568       done
3569       test -z "$LD" && LD="$ac_prog"
3570       ;;
3571   "")
3572     # If it fails, then pretend we aren't using GCC.
3573     ac_prog=ld
3574     ;;
3575   *)
3576     # If it is relative, then search for the first ld in PATH.
3577     with_gnu_ld=unknown
3578     ;;
3579   esac
3580 elif test "$with_gnu_ld" = yes; then
3581   echo "$as_me:$LINENO: checking for GNU ld" >&5
3582 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3583 else
3584   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3585 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3586 fi
3587 if test "${lt_cv_path_LD+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -z "$LD"; then
3591   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3592   for ac_dir in $PATH; do
3593     IFS="$lt_save_ifs"
3594     test -z "$ac_dir" && ac_dir=.
3595     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3596       lt_cv_path_LD="$ac_dir/$ac_prog"
3597       # Check to see if the program is GNU ld.  I'd rather use --version,
3598       # but apparently some variants of GNU ld only accept -v.
3599       # Break only if it was the GNU/non-GNU ld that we prefer.
3600       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3601       *GNU* | *'with BFD'*)
3602         test "$with_gnu_ld" != no && break
3603         ;;
3604       *)
3605         test "$with_gnu_ld" != yes && break
3606         ;;
3607       esac
3608     fi
3609   done
3610   IFS="$lt_save_ifs"
3611 else
3612   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3613 fi
3614 fi
3615
3616 LD="$lt_cv_path_LD"
3617 if test -n "$LD"; then
3618   echo "$as_me:$LINENO: result: $LD" >&5
3619 echo "${ECHO_T}$LD" >&6
3620 else
3621   echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3625 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3626    { (exit 1); exit 1; }; }
3627 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3628 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3629 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3633 case `$LD -v 2>&1 </dev/null` in
3634 *GNU* | *'with BFD'*)
3635   lt_cv_prog_gnu_ld=yes
3636   ;;
3637 *)
3638   lt_cv_prog_gnu_ld=no
3639   ;;
3640 esac
3641 fi
3642 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3643 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3644 with_gnu_ld=$lt_cv_prog_gnu_ld
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3656 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3657 if test "${lt_cv_path_NM+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -n "$NM"; then
3661   # Let the user override the test.
3662   lt_cv_path_NM="$NM"
3663 else
3664   lt_nm_to_check="${ac_tool_prefix}nm"
3665   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3666     lt_nm_to_check="$lt_nm_to_check nm"
3667   fi
3668   for lt_tmp_nm in $lt_nm_to_check; do
3669     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3670     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3671       IFS="$lt_save_ifs"
3672       test -z "$ac_dir" && ac_dir=.
3673       tmp_nm="$ac_dir/$lt_tmp_nm"
3674       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3675         # Check to see if the nm accepts a BSD-compat flag.
3676         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3677         #   nm: unknown option "B" ignored
3678         # Tru64's nm complains that /dev/null is an invalid object file
3679         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3680         */dev/null* | *'Invalid file or object type'*)
3681           lt_cv_path_NM="$tmp_nm -B"
3682           break
3683           ;;
3684         *)
3685           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3686           */dev/null*)
3687             lt_cv_path_NM="$tmp_nm -p"
3688             break
3689             ;;
3690           *)
3691             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3692             continue # so that we can try to find one that supports BSD flags
3693             ;;
3694           esac
3695           ;;
3696         esac
3697       fi
3698     done
3699     IFS="$lt_save_ifs"
3700   done
3701   : ${lt_cv_path_NM=no}
3702 fi
3703 fi
3704 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3705 echo "${ECHO_T}$lt_cv_path_NM" >&6
3706 if test "$lt_cv_path_NM" != "no"; then
3707   NM="$lt_cv_path_NM"
3708 else
3709   # Didn't find any BSD compatible name lister, look for dumpbin.
3710   if test -n "$ac_tool_prefix"; then
3711   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3712   do
3713     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test -n "$DUMPBIN"; then
3721   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728   for ac_exec_ext in '' $ac_executable_extensions; do
3729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732     break 2
3733   fi
3734 done
3735 done
3736
3737 fi
3738 fi
3739 DUMPBIN=$ac_cv_prog_DUMPBIN
3740 if test -n "$DUMPBIN"; then
3741   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3742 echo "${ECHO_T}$DUMPBIN" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748     test -n "$DUMPBIN" && break
3749   done
3750 fi
3751 if test -z "$DUMPBIN"; then
3752   ac_ct_DUMPBIN=$DUMPBIN
3753   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3754 do
3755   # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test -n "$ac_ct_DUMPBIN"; then
3763   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for ac_exec_ext in '' $ac_executable_extensions; do
3771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777 done
3778
3779 fi
3780 fi
3781 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3782 if test -n "$ac_ct_DUMPBIN"; then
3783   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3784 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790   test -n "$ac_ct_DUMPBIN" && break
3791 done
3792 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3793
3794   DUMPBIN=$ac_ct_DUMPBIN
3795 fi
3796
3797
3798   if test "$DUMPBIN" != ":"; then
3799     NM="$DUMPBIN"
3800   fi
3801 fi
3802 test -z "$NM" && NM=nm
3803
3804
3805
3806
3807
3808
3809 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3810 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3811 if test "${lt_cv_nm_interface+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   lt_cv_nm_interface="BSD nm"
3815   echo "int some_variable = 0;" > conftest.$ac_ext
3816   (eval echo "\"\$as_me:3816: $ac_compile\"" >&5)
3817   (eval "$ac_compile" 2>conftest.err)
3818   cat conftest.err >&5
3819   (eval echo "\"\$as_me:3819: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3820   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3821   cat conftest.err >&5
3822   (eval echo "\"\$as_me:3822: output\"" >&5)
3823   cat conftest.out >&5
3824   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3825     lt_cv_nm_interface="MS dumpbin"
3826   fi
3827   rm -f conftest*
3828 fi
3829 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3830 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3831
3832 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3833 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3834 LN_S=$as_ln_s
3835 if test "$LN_S" = "ln -s"; then
3836   echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6
3838 else
3839   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3840 echo "${ECHO_T}no, using $LN_S" >&6
3841 fi
3842
3843 # find the maximum length of command line arguments
3844 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3845 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3846 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849     i=0
3850   teststring="ABCD"
3851
3852   case $build_os in
3853   msdosdjgpp*)
3854     # On DJGPP, this test can blow up pretty badly due to problems in libc
3855     # (any single argument exceeding 2000 bytes causes a buffer overrun
3856     # during glob expansion).  Even if it were fixed, the result of this
3857     # check would be larger than it should be.
3858     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3859     ;;
3860
3861   gnu*)
3862     # Under GNU Hurd, this test is not required because there is
3863     # no limit to the length of command line arguments.
3864     # Libtool will interpret -1 as no limit whatsoever
3865     lt_cv_sys_max_cmd_len=-1;
3866     ;;
3867
3868   cygwin* | mingw*)
3869     # On Win9x/ME, this test blows up -- it succeeds, but takes
3870     # about 5 minutes as the teststring grows exponentially.
3871     # Worse, since 9x/ME are not pre-emptively multitasking,
3872     # you end up with a "frozen" computer, even though with patience
3873     # the test eventually succeeds (with a max line length of 256k).
3874     # Instead, let's just punt: use the minimum linelength reported by
3875     # all of the supported platforms: 8192 (on NT/2K/XP).
3876     lt_cv_sys_max_cmd_len=8192;
3877     ;;
3878
3879   amigaos*)
3880     # On AmigaOS with pdksh, this test takes hours, literally.
3881     # So we just punt and use a minimum line length of 8192.
3882     lt_cv_sys_max_cmd_len=8192;
3883     ;;
3884
3885   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3886     # This has been around since 386BSD, at least.  Likely further.
3887     if test -x /sbin/sysctl; then
3888       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3889     elif test -x /usr/sbin/sysctl; then
3890       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3891     else
3892       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3893     fi
3894     # And add a safety zone
3895     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3896     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3897     ;;
3898
3899   interix*)
3900     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3901     lt_cv_sys_max_cmd_len=196608
3902     ;;
3903
3904   osf*)
3905     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3906     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3907     # nice to cause kernel panics so lets avoid the loop below.
3908     # First set a reasonable default.
3909     lt_cv_sys_max_cmd_len=16384
3910     #
3911     if test -x /sbin/sysconfig; then
3912       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3913         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3914       esac
3915     fi
3916     ;;
3917   sco3.2v5*)
3918     lt_cv_sys_max_cmd_len=102400
3919     ;;
3920   sysv5* | sco5v6* | sysv4.2uw2*)
3921     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3922     if test -n "$kargmax"; then
3923       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3924     else
3925       lt_cv_sys_max_cmd_len=32768
3926     fi
3927     ;;
3928   *)
3929     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3930     if test -n $lt_cv_sys_max_cmd_len; then
3931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3932       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3933     else
3934       # Make teststring a little bigger before we do anything with it.
3935       # a 1K string should be a reasonable start.
3936       for i in 1 2 3 4 5 6 7 8 ; do
3937         teststring=$teststring$teststring
3938       done
3939       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3940       # If test is not a shell built-in, we'll probably end up computing a
3941       # maximum length that is only half of the actual maximum length, but
3942       # we can't tell.
3943       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3944                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3945               test $i != 17 # 1/2 MB should be enough
3946       do
3947         i=`expr $i + 1`
3948         teststring=$teststring$teststring
3949       done
3950       # Only check the string length outside the loop.
3951       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3952       teststring=
3953       # Add a significant safety factor because C++ compilers can tack on
3954       # massive amounts of additional arguments before passing them to the
3955       # linker.  It appears as though 1/2 is a usable value.
3956       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3957     fi
3958     ;;
3959   esac
3960
3961 fi
3962
3963 if test -n $lt_cv_sys_max_cmd_len ; then
3964   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3965 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3966 else
3967   echo "$as_me:$LINENO: result: none" >&5
3968 echo "${ECHO_T}none" >&6
3969 fi
3970 max_cmd_len=$lt_cv_sys_max_cmd_len
3971
3972
3973
3974
3975
3976
3977
3978 : ${CP="cp -f"}
3979 : ${MV="mv -f"}
3980 : ${RM="rm -f"}
3981
3982 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3983 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3984 # Try some XSI features
3985 xsi_shell=no
3986 ( _lt_dummy="a/b/c"
3987   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3988       = c,a/b,, ) >/dev/null 2>&1 \
3989   && xsi_shell=yes
3990 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3991 echo "${ECHO_T}$xsi_shell" >&6
3992
3993
3994 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3995 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3996 lt_shell_append=no
3997 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3998     >/dev/null 2>&1 \
3999   && lt_shell_append=yes
4000 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4001 echo "${ECHO_T}$lt_shell_append" >&6
4002
4003
4004 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4005   lt_unset=unset
4006 else
4007   lt_unset=false
4008 fi
4009
4010
4011
4012
4013
4014 # test EBCDIC or ASCII
4015 case `echo X|tr X '\101'` in
4016  A) # ASCII based system
4017     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4018   lt_SP2NL='tr \040 \012'
4019   lt_NL2SP='tr \015\012 \040\040'
4020   ;;
4021  *) # EBCDIC based system
4022   lt_SP2NL='tr \100 \n'
4023   lt_NL2SP='tr \r\n \100\100'
4024   ;;
4025 esac
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4036 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4037 if test "${lt_cv_ld_reload_flag+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   lt_cv_ld_reload_flag='-r'
4041 fi
4042 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4043 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4044 reload_flag=$lt_cv_ld_reload_flag
4045 case $reload_flag in
4046 "" | " "*) ;;
4047 *) reload_flag=" $reload_flag" ;;
4048 esac
4049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4050 case $host_os in
4051   darwin*)
4052     if test "$GCC" = yes; then
4053       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4054     else
4055       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4056     fi
4057     ;;
4058 esac
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4070 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4071 if test "${lt_cv_deplibs_check_method+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   lt_cv_file_magic_cmd='$MAGIC_CMD'
4075 lt_cv_file_magic_test_file=
4076 lt_cv_deplibs_check_method='unknown'
4077 # Need to set the preceding variable on all platforms that support
4078 # interlibrary dependencies.
4079 # 'none' -- dependencies not supported.
4080 # `unknown' -- same as none, but documents that we really don't know.
4081 # 'pass_all' -- all dependencies passed with no checks.
4082 # 'test_compile' -- check by making test program.
4083 # 'file_magic [[regex]]' -- check by looking for files in library path
4084 # which responds to the $file_magic_cmd with a given extended regex.
4085 # If you have `file' or equivalent on your system and you're not sure
4086 # whether `pass_all' will *always* work, you probably want this one.
4087
4088 case $host_os in
4089 aix[4-9]*)
4090   lt_cv_deplibs_check_method=pass_all
4091   ;;
4092
4093 beos*)
4094   lt_cv_deplibs_check_method=pass_all
4095   ;;
4096
4097 bsdi[45]*)
4098   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4099   lt_cv_file_magic_cmd='/usr/bin/file -L'
4100   lt_cv_file_magic_test_file=/shlib/libc.so
4101   ;;
4102
4103 cygwin*)
4104   # func_win32_libid is a shell function defined in ltmain.sh
4105   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4106   lt_cv_file_magic_cmd='func_win32_libid'
4107   ;;
4108
4109 mingw* | pw32*)
4110   # Base MSYS/MinGW do not provide the 'file' command needed by
4111   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4112   # unless we find 'file', for example because we are cross-compiling.
4113   if ( file / ) >/dev/null 2>&1; then
4114     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115     lt_cv_file_magic_cmd='func_win32_libid'
4116   else
4117     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4118     lt_cv_file_magic_cmd='$OBJDUMP -f'
4119   fi
4120   ;;
4121
4122 darwin* | rhapsody*)
4123   lt_cv_deplibs_check_method=pass_all
4124   ;;
4125
4126 freebsd* | dragonfly*)
4127   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4128     case $host_cpu in
4129     i*86 )
4130       # Not sure whether the presence of OpenBSD here was a mistake.
4131       # Let's accept both of them until this is cleared up.
4132       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4133       lt_cv_file_magic_cmd=/usr/bin/file
4134       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4135       ;;
4136     esac
4137   else
4138     lt_cv_deplibs_check_method=pass_all
4139   fi
4140   ;;
4141
4142 gnu*)
4143   lt_cv_deplibs_check_method=pass_all
4144   ;;
4145
4146 hpux10.20* | hpux11*)
4147   lt_cv_file_magic_cmd=/usr/bin/file
4148   case $host_cpu in
4149   ia64*)
4150     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4151     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4152     ;;
4153   hppa*64*)
4154     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]'
4155     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4156     ;;
4157   *)
4158     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4159     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4160     ;;
4161   esac
4162   ;;
4163
4164 interix[3-9]*)
4165   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4166   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4167   ;;
4168
4169 irix5* | irix6* | nonstopux*)
4170   case $LD in
4171   *-32|*"-32 ") libmagic=32-bit;;
4172   *-n32|*"-n32 ") libmagic=N32;;
4173   *-64|*"-64 ") libmagic=64-bit;;
4174   *) libmagic=never-match;;
4175   esac
4176   lt_cv_deplibs_check_method=pass_all
4177   ;;
4178
4179 # This must be Linux ELF.
4180 linux* | k*bsd*-gnu)
4181   lt_cv_deplibs_check_method=pass_all
4182   ;;
4183
4184 netbsd*)
4185   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4187   else
4188     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4189   fi
4190   ;;
4191
4192 newos6*)
4193   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4194   lt_cv_file_magic_cmd=/usr/bin/file
4195   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4196   ;;
4197
4198 *nto* | *qnx*)
4199   lt_cv_deplibs_check_method=pass_all
4200   ;;
4201
4202 openbsd*)
4203   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4205   else
4206     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4207   fi
4208   ;;
4209
4210 osf3* | osf4* | osf5*)
4211   lt_cv_deplibs_check_method=pass_all
4212   ;;
4213
4214 rdos*)
4215   lt_cv_deplibs_check_method=pass_all
4216   ;;
4217
4218 solaris*)
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4223   lt_cv_deplibs_check_method=pass_all
4224   ;;
4225
4226 sysv4 | sysv4.3*)
4227   case $host_vendor in
4228   motorola)
4229     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]'
4230     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4231     ;;
4232   ncr)
4233     lt_cv_deplibs_check_method=pass_all
4234     ;;
4235   sequent)
4236     lt_cv_file_magic_cmd='/bin/file'
4237     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4238     ;;
4239   sni)
4240     lt_cv_file_magic_cmd='/bin/file'
4241     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4242     lt_cv_file_magic_test_file=/lib/libc.so
4243     ;;
4244   siemens)
4245     lt_cv_deplibs_check_method=pass_all
4246     ;;
4247   pc)
4248     lt_cv_deplibs_check_method=pass_all
4249     ;;
4250   esac
4251   ;;
4252
4253 tpf*)
4254   lt_cv_deplibs_check_method=pass_all
4255   ;;
4256 esac
4257
4258 fi
4259 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4260 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4261 file_magic_cmd=$lt_cv_file_magic_cmd
4262 deplibs_check_method=$lt_cv_deplibs_check_method
4263 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276 if test -n "$ac_tool_prefix"; then
4277   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}ar; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AR+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$AR"; then
4285   ac_cv_prog_AR="$AR" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_AR="${ac_tool_prefix}ar"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 AR=$ac_cv_prog_AR
4304 if test -n "$AR"; then
4305   echo "$as_me:$LINENO: result: $AR" >&5
4306 echo "${ECHO_T}$AR" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312 fi
4313 if test -z "$ac_cv_prog_AR"; then
4314   ac_ct_AR=$AR
4315   # Extract the first word of "ar", so it can be a program name with args.
4316 set dummy ar; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   if test -n "$ac_ct_AR"; then
4323   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330   for ac_exec_ext in '' $ac_executable_extensions; do
4331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332     ac_cv_prog_ac_ct_AR="ar"
4333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337 done
4338
4339   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4340 fi
4341 fi
4342 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4343 if test -n "$ac_ct_AR"; then
4344   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4345 echo "${ECHO_T}$ac_ct_AR" >&6
4346 else
4347   echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351   AR=$ac_ct_AR
4352 else
4353   AR="$ac_cv_prog_AR"
4354 fi
4355
4356 test -z "$AR" && AR=ar
4357 test -z "$AR_FLAGS" && AR_FLAGS=cru
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 if test -n "$ac_tool_prefix"; then
4370   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4371 set dummy ${ac_tool_prefix}strip; ac_word=$2
4372 echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4374 if test "${ac_cv_prog_STRIP+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   if test -n "$STRIP"; then
4378   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393
4394 fi
4395 fi
4396 STRIP=$ac_cv_prog_STRIP
4397 if test -n "$STRIP"; then
4398   echo "$as_me:$LINENO: result: $STRIP" >&5
4399 echo "${ECHO_T}$STRIP" >&6
4400 else
4401   echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6
4403 fi
4404
4405 fi
4406 if test -z "$ac_cv_prog_STRIP"; then
4407   ac_ct_STRIP=$STRIP
4408   # Extract the first word of "strip", so it can be a program name with args.
4409 set dummy strip; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$ac_ct_STRIP"; then
4416   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_prog_ac_ct_STRIP="strip"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431
4432   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4433 fi
4434 fi
4435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4436 if test -n "$ac_ct_STRIP"; then
4437   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4438 echo "${ECHO_T}$ac_ct_STRIP" >&6
4439 else
4440   echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4442 fi
4443
4444   STRIP=$ac_ct_STRIP
4445 else
4446   STRIP="$ac_cv_prog_STRIP"
4447 fi
4448
4449 test -z "$STRIP" && STRIP=:
4450
4451
4452
4453
4454
4455
4456 if test -n "$ac_tool_prefix"; then
4457   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4459 echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4461 if test "${ac_cv_prog_RANLIB+set}" = set; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   if test -n "$RANLIB"; then
4465   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480
4481 fi
4482 fi
4483 RANLIB=$ac_cv_prog_RANLIB
4484 if test -n "$RANLIB"; then
4485   echo "$as_me:$LINENO: result: $RANLIB" >&5
4486 echo "${ECHO_T}$RANLIB" >&6
4487 else
4488   echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6
4490 fi
4491
4492 fi
4493 if test -z "$ac_cv_prog_RANLIB"; then
4494   ac_ct_RANLIB=$RANLIB
4495   # Extract the first word of "ranlib", so it can be a program name with args.
4496 set dummy ranlib; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   if test -n "$ac_ct_RANLIB"; then
4503   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510   for ac_exec_ext in '' $ac_executable_extensions; do
4511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512     ac_cv_prog_ac_ct_RANLIB="ranlib"
4513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517 done
4518
4519   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4520 fi
4521 fi
4522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4523 if test -n "$ac_ct_RANLIB"; then
4524   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4525 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531   RANLIB=$ac_ct_RANLIB
4532 else
4533   RANLIB="$ac_cv_prog_RANLIB"
4534 fi
4535
4536 test -z "$RANLIB" && RANLIB=:
4537
4538
4539
4540
4541
4542
4543 # Determine commands to create old-style static archives.
4544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4545 old_postinstall_cmds='chmod 644 $oldlib'
4546 old_postuninstall_cmds=
4547
4548 if test -n "$RANLIB"; then
4549   case $host_os in
4550   openbsd*)
4551     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4552     ;;
4553   *)
4554     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4555     ;;
4556   esac
4557   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4558 fi
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593 # If no C compiler was specified, use CC.
4594 LTCC=${LTCC-"$CC"}
4595
4596 # If no C compiler flags were specified, use CFLAGS.
4597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4598
4599 # Allow CC to be a program name with arguments.
4600 compiler=$CC
4601
4602
4603 # Check for command to grab the raw symbol name followed by C symbol from nm.
4604 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4605 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4606 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609
4610 # These are sane defaults that work on at least a few old systems.
4611 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4612
4613 # Character class describing NM global symbol codes.
4614 symcode='[BCDEGRST]'
4615
4616 # Regexp to match symbols that can be accessed directly from C.
4617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4618
4619 # Define system-specific variables.
4620 case $host_os in
4621 aix*)
4622   symcode='[BCDT]'
4623   ;;
4624 cygwin* | mingw* | pw32*)
4625   symcode='[ABCDGISTW]'
4626   ;;
4627 hpux*)
4628   if test "$host_cpu" = ia64; then
4629     symcode='[ABCDEGRST]'
4630   fi
4631   ;;
4632 irix* | nonstopux*)
4633   symcode='[BCDEGRST]'
4634   ;;
4635 osf*)
4636   symcode='[BCDEGQRST]'
4637   ;;
4638 solaris*)
4639   symcode='[BDRT]'
4640   ;;
4641 sco3.2v5*)
4642   symcode='[DT]'
4643   ;;
4644 sysv4.2uw2*)
4645   symcode='[DT]'
4646   ;;
4647 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4648   symcode='[ABDT]'
4649   ;;
4650 sysv4)
4651   symcode='[DFNSTU]'
4652   ;;
4653 esac
4654
4655 # If we're using GNU nm, then use its standard symbol codes.
4656 case `$NM -V 2>&1` in
4657 *GNU* | *'with BFD'*)
4658   symcode='[ABCDGIRSTW]' ;;
4659 esac
4660
4661 # Transform an extracted symbol line into a proper C declaration.
4662 # Some systems (esp. on ia64) link data and code symbols differently,
4663 # so use this general approach.
4664 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4665
4666 # Transform an extracted symbol line into symbol name and symbol address
4667 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4668
4669 # Handle CRLF in mingw tool chain
4670 opt_cr=
4671 case $build_os in
4672 mingw*)
4673   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4674   ;;
4675 esac
4676
4677 # Try without a prefix underscore, then with it.
4678 for ac_symprfx in "" "_"; do
4679
4680   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4681   symxfrm="\\1 $ac_symprfx\\2 \\2"
4682
4683   # Write the raw and C identifiers.
4684   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4685     # Fake it for dumpbin and say T for any non-static function
4686     # and D for any global variable.
4687     # Also find C++ and __fastcall symbols from MSVC++,
4688     # which start with @ or ?.
4689     lt_cv_sys_global_symbol_pipe="$AWK '"\
4690 "     {last_section=section; section=\$ 3};"\
4691 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4692 "     \$ 0!~/External *\|/{next};"\
4693 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4694 "     {if(hide[section]) next};"\
4695 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4696 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4697 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4698 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4699 "     ' prfx=^$ac_symprfx"
4700   else
4701     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4702   fi
4703
4704   # Check to see that the pipe works correctly.
4705   pipe_works=no
4706
4707   rm -f conftest*
4708   cat > conftest.$ac_ext <<_LT_EOF
4709 #ifdef __cplusplus
4710 extern "C" {
4711 #endif
4712 char nm_test_var;
4713 void nm_test_func(void);
4714 void nm_test_func(void){}
4715 #ifdef __cplusplus
4716 }
4717 #endif
4718 int main(){nm_test_var='a';nm_test_func();return(0);}
4719 _LT_EOF
4720
4721   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722   (eval $ac_compile) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; then
4726     # Now try to grab the symbols.
4727     nlist=conftest.nm
4728     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4729   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && test -s "$nlist"; then
4733       # Try sorting and uniquifying the output.
4734       if sort "$nlist" | uniq > "$nlist"T; then
4735         mv -f "$nlist"T "$nlist"
4736       else
4737         rm -f "$nlist"T
4738       fi
4739
4740       # Make sure that we snagged all the symbols we need.
4741       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4742         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4743           cat <<_LT_EOF > conftest.$ac_ext
4744 #ifdef __cplusplus
4745 extern "C" {
4746 #endif
4747
4748 _LT_EOF
4749           # Now generate the symbol file.
4750           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4751
4752           cat <<_LT_EOF >> conftest.$ac_ext
4753
4754 /* The mapping between symbol names and symbols.  */
4755 const struct {
4756   const char *name;
4757   void       *address;
4758 }
4759 lt__PROGRAM__LTX_preloaded_symbols[] =
4760 {
4761   { "@PROGRAM@", (void *) 0 },
4762 _LT_EOF
4763           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4764           cat <<\_LT_EOF >> conftest.$ac_ext
4765   {0, (void *) 0}
4766 };
4767
4768 /* This works around a problem in FreeBSD linker */
4769 #ifdef FREEBSD_WORKAROUND
4770 static const void *lt_preloaded_setup() {
4771   return lt__PROGRAM__LTX_preloaded_symbols;
4772 }
4773 #endif
4774
4775 #ifdef __cplusplus
4776 }
4777 #endif
4778 _LT_EOF
4779           # Now try linking the two files.
4780           mv conftest.$ac_objext conftstm.$ac_objext
4781           lt_save_LIBS="$LIBS"
4782           lt_save_CFLAGS="$CFLAGS"
4783           LIBS="conftstm.$ac_objext"
4784           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4785           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786   (eval $ac_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4790             pipe_works=yes
4791           fi
4792           LIBS="$lt_save_LIBS"
4793           CFLAGS="$lt_save_CFLAGS"
4794         else
4795           echo "cannot find nm_test_func in $nlist" >&5
4796         fi
4797       else
4798         echo "cannot find nm_test_var in $nlist" >&5
4799       fi
4800     else
4801       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4802     fi
4803   else
4804     echo "$progname: failed program was:" >&5
4805     cat conftest.$ac_ext >&5
4806   fi
4807   rm -f conftest* conftst*
4808
4809   # Do not use the global_symbol_pipe unless it works.
4810   if test "$pipe_works" = yes; then
4811     break
4812   else
4813     lt_cv_sys_global_symbol_pipe=
4814   fi
4815 done
4816
4817 fi
4818
4819 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4820   lt_cv_sys_global_symbol_to_cdecl=
4821 fi
4822 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4823   echo "$as_me:$LINENO: result: failed" >&5
4824 echo "${ECHO_T}failed" >&6
4825 else
4826   echo "$as_me:$LINENO: result: ok" >&5
4827 echo "${ECHO_T}ok" >&6
4828 fi
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4848 if test "${enable_libtool_lock+set}" = set; then
4849   enableval="$enable_libtool_lock"
4850
4851 fi;
4852 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4853
4854 # Some flags need to be propagated to the compiler or linker for good
4855 # libtool support.
4856 case $host in
4857 ia64-*-hpux*)
4858   # Find out which ABI we are using.
4859   echo 'int i;' > conftest.$ac_ext
4860   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861   (eval $ac_compile) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; then
4865     case `/usr/bin/file conftest.$ac_objext` in
4866       *ELF-32*)
4867         HPUX_IA64_MODE="32"
4868         ;;
4869       *ELF-64*)
4870         HPUX_IA64_MODE="64"
4871         ;;
4872     esac
4873   fi
4874   rm -rf conftest*
4875   ;;
4876 *-*-irix6*)
4877   # Find out which ABI we are using.
4878   echo '#line 4878 "configure"' > conftest.$ac_ext
4879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880   (eval $ac_compile) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; then
4884     if test "$lt_cv_prog_gnu_ld" = yes; then
4885       case `/usr/bin/file conftest.$ac_objext` in
4886         *32-bit*)
4887           LD="${LD-ld} -melf32bsmip"
4888           ;;
4889         *N32*)
4890           LD="${LD-ld} -melf32bmipn32"
4891           ;;
4892         *64-bit*)
4893           LD="${LD-ld} -melf64bmip"
4894         ;;
4895       esac
4896     else
4897       case `/usr/bin/file conftest.$ac_objext` in
4898         *32-bit*)
4899           LD="${LD-ld} -32"
4900           ;;
4901         *N32*)
4902           LD="${LD-ld} -n32"
4903           ;;
4904         *64-bit*)
4905           LD="${LD-ld} -64"
4906           ;;
4907       esac
4908     fi
4909   fi
4910   rm -rf conftest*
4911   ;;
4912
4913 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4914 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4915   # Find out which ABI we are using.
4916   echo 'int i;' > conftest.$ac_ext
4917   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918   (eval $ac_compile) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; then
4922     case `/usr/bin/file conftest.o` in
4923       *32-bit*)
4924         case $host in
4925           x86_64-*kfreebsd*-gnu)
4926             LD="${LD-ld} -m elf_i386_fbsd"
4927             ;;
4928           x86_64-*linux*)
4929             LD="${LD-ld} -m elf_i386"
4930             ;;
4931           ppc64-*linux*|powerpc64-*linux*)
4932             LD="${LD-ld} -m elf32ppclinux"
4933             ;;
4934           s390x-*linux*)
4935             LD="${LD-ld} -m elf_s390"
4936             ;;
4937           sparc64-*linux*)
4938             LD="${LD-ld} -m elf32_sparc"
4939             ;;
4940         esac
4941         ;;
4942       *64-bit*)
4943         case $host in
4944           x86_64-*kfreebsd*-gnu)
4945             LD="${LD-ld} -m elf_x86_64_fbsd"
4946             ;;
4947           x86_64-*linux*)
4948             LD="${LD-ld} -m elf_x86_64"
4949             ;;
4950           ppc*-*linux*|powerpc*-*linux*)
4951             LD="${LD-ld} -m elf64ppc"
4952             ;;
4953           s390*-*linux*|s390*-*tpf*)
4954             LD="${LD-ld} -m elf64_s390"
4955             ;;
4956           sparc*-*linux*)
4957             LD="${LD-ld} -m elf64_sparc"
4958             ;;
4959         esac
4960         ;;
4961     esac
4962   fi
4963   rm -rf conftest*
4964   ;;
4965
4966 *-*-sco3.2v5*)
4967   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4968   SAVE_CFLAGS="$CFLAGS"
4969   CFLAGS="$CFLAGS -belf"
4970   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4971 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4972 if test "${lt_cv_cc_needs_belf+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981      if test x$gcc_no_link = xyes; then
4982   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4984    { (exit 1); exit 1; }; }
4985 fi
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992
4993 int
4994 main ()
4995 {
4996
4997   ;
4998   return 0;
4999 }
5000 _ACEOF
5001 rm -f conftest.$ac_objext conftest$ac_exeext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5003   (eval $ac_link) 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -z "$ac_c_werror_flag"
5011                          || test ! -s conftest.err'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; } &&
5017          { ac_try='test -s conftest$ac_exeext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   lt_cv_cc_needs_belf=yes
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 lt_cv_cc_needs_belf=no
5029 fi
5030 rm -f conftest.err conftest.$ac_objext \
5031       conftest$ac_exeext conftest.$ac_ext
5032      ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038 fi
5039 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5040 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5041   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5042     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5043     CFLAGS="$SAVE_CFLAGS"
5044   fi
5045   ;;
5046 sparc*-*solaris*)
5047   # Find out which ABI we are using.
5048   echo 'int i;' > conftest.$ac_ext
5049   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050   (eval $ac_compile) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; then
5054     case `/usr/bin/file conftest.o` in
5055     *64-bit*)
5056       case $lt_cv_prog_gnu_ld in
5057       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5058       *)    LD="${LD-ld} -64" ;;
5059       esac
5060       ;;
5061     esac
5062   fi
5063   rm -rf conftest*
5064   ;;
5065 esac
5066
5067 need_locks="$enable_libtool_lock"
5068
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5076 # On Suns, sometimes $CPP names a directory.
5077 if test -n "$CPP" && test -d "$CPP"; then
5078   CPP=
5079 fi
5080 if test -z "$CPP"; then
5081   if test "${ac_cv_prog_CPP+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084       # Double quotes because CPP needs to be expanded
5085     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5086     do
5087       ac_preproc_ok=false
5088 for ac_c_preproc_warn_flag in '' yes
5089 do
5090   # Use a header file that comes with gcc, so configuring glibc
5091   # with a fresh cross-compiler works.
5092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093   # <limits.h> exists even on freestanding compilers.
5094   # On the NeXT, cc -E runs the code through the compiler's parser,
5095   # not just through cpp. "Syntax error" is here to catch this case.
5096   cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 #ifdef __STDC__
5103 # include <limits.h>
5104 #else
5105 # include <assert.h>
5106 #endif
5107                      Syntax error
5108 _ACEOF
5109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } >/dev/null; then
5117   if test -s conftest.err; then
5118     ac_cpp_err=$ac_c_preproc_warn_flag
5119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5120   else
5121     ac_cpp_err=
5122   fi
5123 else
5124   ac_cpp_err=yes
5125 fi
5126 if test -z "$ac_cpp_err"; then
5127   :
5128 else
5129   echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132   # Broken: fails on valid input.
5133 continue
5134 fi
5135 rm -f conftest.err conftest.$ac_ext
5136
5137   # OK, works on sane cases.  Now check whether non-existent headers
5138   # can be detected and how.
5139   cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 #include <ac_nonexistent.h>
5146 _ACEOF
5147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5149   ac_status=$?
5150   grep -v '^ *+' conftest.er1 >conftest.err
5151   rm -f conftest.er1
5152   cat conftest.err >&5
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } >/dev/null; then
5155   if test -s conftest.err; then
5156     ac_cpp_err=$ac_c_preproc_warn_flag
5157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5158   else
5159     ac_cpp_err=
5160   fi
5161 else
5162   ac_cpp_err=yes
5163 fi
5164 if test -z "$ac_cpp_err"; then
5165   # Broken: success on invalid input.
5166 continue
5167 else
5168   echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171   # Passes both tests.
5172 ac_preproc_ok=:
5173 break
5174 fi
5175 rm -f conftest.err conftest.$ac_ext
5176
5177 done
5178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179 rm -f conftest.err conftest.$ac_ext
5180 if $ac_preproc_ok; then
5181   break
5182 fi
5183
5184     done
5185     ac_cv_prog_CPP=$CPP
5186
5187 fi
5188   CPP=$ac_cv_prog_CPP
5189 else
5190   ac_cv_prog_CPP=$CPP
5191 fi
5192 echo "$as_me:$LINENO: result: $CPP" >&5
5193 echo "${ECHO_T}$CPP" >&6
5194 ac_preproc_ok=false
5195 for ac_c_preproc_warn_flag in '' yes
5196 do
5197   # Use a header file that comes with gcc, so configuring glibc
5198   # with a fresh cross-compiler works.
5199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200   # <limits.h> exists even on freestanding compilers.
5201   # On the NeXT, cc -E runs the code through the compiler's parser,
5202   # not just through cpp. "Syntax error" is here to catch this case.
5203   cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 #ifdef __STDC__
5210 # include <limits.h>
5211 #else
5212 # include <assert.h>
5213 #endif
5214                      Syntax error
5215 _ACEOF
5216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218   ac_status=$?
5219   grep -v '^ *+' conftest.er1 >conftest.err
5220   rm -f conftest.er1
5221   cat conftest.err >&5
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } >/dev/null; then
5224   if test -s conftest.err; then
5225     ac_cpp_err=$ac_c_preproc_warn_flag
5226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5227   else
5228     ac_cpp_err=
5229   fi
5230 else
5231   ac_cpp_err=yes
5232 fi
5233 if test -z "$ac_cpp_err"; then
5234   :
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239   # Broken: fails on valid input.
5240 continue
5241 fi
5242 rm -f conftest.err conftest.$ac_ext
5243
5244   # OK, works on sane cases.  Now check whether non-existent headers
5245   # can be detected and how.
5246   cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 #include <ac_nonexistent.h>
5253 _ACEOF
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } >/dev/null; then
5262   if test -s conftest.err; then
5263     ac_cpp_err=$ac_c_preproc_warn_flag
5264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265   else
5266     ac_cpp_err=
5267   fi
5268 else
5269   ac_cpp_err=yes
5270 fi
5271 if test -z "$ac_cpp_err"; then
5272   # Broken: success on invalid input.
5273 continue
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278   # Passes both tests.
5279 ac_preproc_ok=:
5280 break
5281 fi
5282 rm -f conftest.err conftest.$ac_ext
5283
5284 done
5285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5286 rm -f conftest.err conftest.$ac_ext
5287 if $ac_preproc_ok; then
5288   :
5289 else
5290   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5291 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5292 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5293 See \`config.log' for more details." >&5
5294 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5295 See \`config.log' for more details." >&2;}
5296    { (exit 1); exit 1; }; }; }
5297 fi
5298
5299 ac_ext=c
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304
5305
5306 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5307 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5308 if test "${ac_cv_header_stdc+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317 #include <stdlib.h>
5318 #include <stdarg.h>
5319 #include <string.h>
5320 #include <float.h>
5321
5322 int
5323 main ()
5324 {
5325
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332   (eval $ac_compile) 2>conftest.er1
5333   ac_status=$?
5334   grep -v '^ *+' conftest.er1 >conftest.err
5335   rm -f conftest.er1
5336   cat conftest.err >&5
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); } &&
5339          { ac_try='test -z "$ac_c_werror_flag"
5340                          || test ! -s conftest.err'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; } &&
5346          { ac_try='test -s conftest.$ac_objext'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; }; then
5352   ac_cv_header_stdc=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_cv_header_stdc=no
5358 fi
5359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360
5361 if test $ac_cv_header_stdc = yes; then
5362   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5363   cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 #include <string.h>
5370
5371 _ACEOF
5372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373   $EGREP "memchr" >/dev/null 2>&1; then
5374   :
5375 else
5376   ac_cv_header_stdc=no
5377 fi
5378 rm -f conftest*
5379
5380 fi
5381
5382 if test $ac_cv_header_stdc = yes; then
5383   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5384   cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 #include <stdlib.h>
5391
5392 _ACEOF
5393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5394   $EGREP "free" >/dev/null 2>&1; then
5395   :
5396 else
5397   ac_cv_header_stdc=no
5398 fi
5399 rm -f conftest*
5400
5401 fi
5402
5403 if test $ac_cv_header_stdc = yes; then
5404   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5405   if test "$cross_compiling" = yes; then
5406   :
5407 else
5408   cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414 #include <ctype.h>
5415 #if ((' ' & 0x0FF) == 0x020)
5416 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5417 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5418 #else
5419 # define ISLOWER(c) \
5420                    (('a' <= (c) && (c) <= 'i') \
5421                      || ('j' <= (c) && (c) <= 'r') \
5422                      || ('s' <= (c) && (c) <= 'z'))
5423 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5424 #endif
5425
5426 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5427 int
5428 main ()
5429 {
5430   int i;
5431   for (i = 0; i < 256; i++)
5432     if (XOR (islower (i), ISLOWER (i))
5433         || toupper (i) != TOUPPER (i))
5434       exit(2);
5435   exit (0);
5436 }
5437 _ACEOF
5438 rm -f conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440   (eval $ac_link) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445   (eval $ac_try) 2>&5
5446   ac_status=$?
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }; }; then
5449   :
5450 else
5451   echo "$as_me: program exited with status $ac_status" >&5
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ( exit $ac_status )
5456 ac_cv_header_stdc=no
5457 fi
5458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5459 fi
5460 fi
5461 fi
5462 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5463 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5464 if test $ac_cv_header_stdc = yes; then
5465
5466 cat >>confdefs.h <<\_ACEOF
5467 #define STDC_HEADERS 1
5468 _ACEOF
5469
5470 fi
5471
5472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5483                   inttypes.h stdint.h unistd.h
5484 do
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 $ac_includes_default
5498
5499 #include <$ac_header>
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503   (eval $ac_compile) 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } &&
5510          { ac_try='test -z "$ac_c_werror_flag"
5511                          || test ! -s conftest.err'
5512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513   (eval $ac_try) 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); }; } &&
5517          { ac_try='test -s conftest.$ac_objext'
5518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519   (eval $ac_try) 2>&5
5520   ac_status=$?
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); }; }; then
5523   eval "$as_ac_Header=yes"
5524 else
5525   echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528 eval "$as_ac_Header=no"
5529 fi
5530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 fi
5532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535   cat >>confdefs.h <<_ACEOF
5536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 _ACEOF
5538
5539 fi
5540
5541 done
5542
5543
5544
5545 for ac_header in dlfcn.h
5546 do
5547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5548 echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 $ac_includes_default
5560
5561 #include <$ac_header>
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565   (eval $ac_compile) 2>conftest.er1
5566   ac_status=$?
5567   grep -v '^ *+' conftest.er1 >conftest.err
5568   rm -f conftest.er1
5569   cat conftest.err >&5
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } &&
5572          { ac_try='test -z "$ac_c_werror_flag"
5573                          || test ! -s conftest.err'
5574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575   (eval $ac_try) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }; } &&
5579          { ac_try='test -s conftest.$ac_objext'
5580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581   (eval $ac_try) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; }; then
5585   eval "$as_ac_Header=yes"
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590 eval "$as_ac_Header=no"
5591 fi
5592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5593 fi
5594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5597   cat >>confdefs.h <<_ACEOF
5598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5599 _ACEOF
5600
5601 fi
5602
5603 done
5604
5605
5606
5607 # This can be used to rebuild libtool when needed
5608 LIBTOOL_DEPS="$ltmain"
5609
5610 # Always use our own libtool.
5611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 test -z "$LN_S" && LN_S="ln -s"
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 if test -n "${ZSH_VERSION+set}" ; then
5653    setopt NO_GLOB_SUBST
5654 fi
5655
5656 echo "$as_me:$LINENO: checking for objdir" >&5
5657 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5658 if test "${lt_cv_objdir+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   rm -f .libs 2>/dev/null
5662 mkdir .libs 2>/dev/null
5663 if test -d .libs; then
5664   lt_cv_objdir=.libs
5665 else
5666   # MS-DOS does not allow filenames that begin with a dot.
5667   lt_cv_objdir=_libs
5668 fi
5669 rmdir .libs 2>/dev/null
5670 fi
5671 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5672 echo "${ECHO_T}$lt_cv_objdir" >&6
5673 objdir=$lt_cv_objdir
5674
5675
5676
5677
5678
5679 cat >>confdefs.h <<_ACEOF
5680 #define LT_OBJDIR "$lt_cv_objdir/"
5681 _ACEOF
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 case $host_os in
5700 aix3*)
5701   # AIX sometimes has problems with the GCC collect2 program.  For some
5702   # reason, if we set the COLLECT_NAMES environment variable, the problems
5703   # vanish in a puff of smoke.
5704   if test "X${COLLECT_NAMES+set}" != Xset; then
5705     COLLECT_NAMES=
5706     export COLLECT_NAMES
5707   fi
5708   ;;
5709 esac
5710
5711 # Sed substitution that helps us do robust quoting.  It backslashifies
5712 # metacharacters that are still active within double-quoted strings.
5713 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5714
5715 # Same as above, but do not quote variable references.
5716 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5717
5718 # Sed substitution to delay expansion of an escaped shell variable in a
5719 # double_quote_subst'ed string.
5720 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721
5722 # Sed substitution to delay expansion of an escaped single quote.
5723 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5724
5725 # Sed substitution to avoid accidental globbing in evaled expressions
5726 no_glob_subst='s/\*/\\\*/g'
5727
5728 # Global variables:
5729 ofile=libtool
5730 can_build_shared=yes
5731
5732 # All known linkers require a `.a' archive for static linking (except MSVC,
5733 # which needs '.lib').
5734 libext=a
5735
5736 with_gnu_ld="$lt_cv_prog_gnu_ld"
5737
5738 old_CC="$CC"
5739 old_CFLAGS="$CFLAGS"
5740
5741 # Set sane defaults for various variables
5742 test -z "$CC" && CC=cc
5743 test -z "$LTCC" && LTCC=$CC
5744 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5745 test -z "$LD" && LD=ld
5746 test -z "$ac_objext" && ac_objext=o
5747
5748 for cc_temp in $compiler""; do
5749   case $cc_temp in
5750     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5751     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5752     \-*) ;;
5753     *) break;;
5754   esac
5755 done
5756 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5757
5758
5759 # Only perform the check for file, if the check method requires it
5760 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5761 case $deplibs_check_method in
5762 file_magic*)
5763   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5764     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5765 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5766 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   case $MAGIC_CMD in
5770 [\\/*] |  ?:[\\/]*)
5771   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5772   ;;
5773 *)
5774   lt_save_MAGIC_CMD="$MAGIC_CMD"
5775   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5776   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5777   for ac_dir in $ac_dummy; do
5778     IFS="$lt_save_ifs"
5779     test -z "$ac_dir" && ac_dir=.
5780     if test -f $ac_dir/${ac_tool_prefix}file; then
5781       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5782       if test -n "$file_magic_test_file"; then
5783         case $deplibs_check_method in
5784         "file_magic "*)
5785           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5786           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5787           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5788             $EGREP "$file_magic_regex" > /dev/null; then
5789             :
5790           else
5791             cat <<_LT_EOF 1>&2
5792
5793 *** Warning: the command libtool uses to detect shared libraries,
5794 *** $file_magic_cmd, produces output that libtool cannot recognize.
5795 *** The result is that libtool may fail to recognize shared libraries
5796 *** as such.  This will affect the creation of libtool libraries that
5797 *** depend on shared libraries, but programs linked with such libtool
5798 *** libraries will work regardless of this problem.  Nevertheless, you
5799 *** may want to report the problem to your system manager and/or to
5800 *** bug-libtool@gnu.org
5801
5802 _LT_EOF
5803           fi ;;
5804         esac
5805       fi
5806       break
5807     fi
5808   done
5809   IFS="$lt_save_ifs"
5810   MAGIC_CMD="$lt_save_MAGIC_CMD"
5811   ;;
5812 esac
5813 fi
5814
5815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5816 if test -n "$MAGIC_CMD"; then
5817   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5818 echo "${ECHO_T}$MAGIC_CMD" >&6
5819 else
5820   echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5822 fi
5823
5824
5825
5826
5827
5828 if test -z "$lt_cv_path_MAGIC_CMD"; then
5829   if test -n "$ac_tool_prefix"; then
5830     echo "$as_me:$LINENO: checking for file" >&5
5831 echo $ECHO_N "checking for file... $ECHO_C" >&6
5832 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   case $MAGIC_CMD in
5836 [\\/*] |  ?:[\\/]*)
5837   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5838   ;;
5839 *)
5840   lt_save_MAGIC_CMD="$MAGIC_CMD"
5841   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5842   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5843   for ac_dir in $ac_dummy; do
5844     IFS="$lt_save_ifs"
5845     test -z "$ac_dir" && ac_dir=.
5846     if test -f $ac_dir/file; then
5847       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5848       if test -n "$file_magic_test_file"; then
5849         case $deplibs_check_method in
5850         "file_magic "*)
5851           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5852           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5853           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5854             $EGREP "$file_magic_regex" > /dev/null; then
5855             :
5856           else
5857             cat <<_LT_EOF 1>&2
5858
5859 *** Warning: the command libtool uses to detect shared libraries,
5860 *** $file_magic_cmd, produces output that libtool cannot recognize.
5861 *** The result is that libtool may fail to recognize shared libraries
5862 *** as such.  This will affect the creation of libtool libraries that
5863 *** depend on shared libraries, but programs linked with such libtool
5864 *** libraries will work regardless of this problem.  Nevertheless, you
5865 *** may want to report the problem to your system manager and/or to
5866 *** bug-libtool@gnu.org
5867
5868 _LT_EOF
5869           fi ;;
5870         esac
5871       fi
5872       break
5873     fi
5874   done
5875   IFS="$lt_save_ifs"
5876   MAGIC_CMD="$lt_save_MAGIC_CMD"
5877   ;;
5878 esac
5879 fi
5880
5881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5882 if test -n "$MAGIC_CMD"; then
5883   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5884 echo "${ECHO_T}$MAGIC_CMD" >&6
5885 else
5886   echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5888 fi
5889
5890
5891   else
5892     MAGIC_CMD=:
5893   fi
5894 fi
5895
5896   fi
5897   ;;
5898 esac
5899
5900 # Use C for the default configuration in the libtool script
5901
5902 lt_save_CC="$CC"
5903 ac_ext=c
5904 ac_cpp='$CPP $CPPFLAGS'
5905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5908
5909
5910 # Source file extension for C test sources.
5911 ac_ext=c
5912
5913 # Object file extension for compiled C test sources.
5914 objext=o
5915 objext=$objext
5916
5917 # Code to be used in simple compile tests
5918 lt_simple_compile_test_code="int some_variable = 0;"
5919
5920 # Code to be used in simple link tests
5921 lt_simple_link_test_code='int main(){return(0);}'
5922
5923
5924
5925
5926
5927
5928
5929 # If no C compiler was specified, use CC.
5930 LTCC=${LTCC-"$CC"}
5931
5932 # If no C compiler flags were specified, use CFLAGS.
5933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5934
5935 # Allow CC to be a program name with arguments.
5936 compiler=$CC
5937
5938 # Save the default compiler, since it gets overwritten when the other
5939 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5940 compiler_DEFAULT=$CC
5941
5942 # save warnings/boilerplate of simple test code
5943 ac_outfile=conftest.$ac_objext
5944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5946 _lt_compiler_boilerplate=`cat conftest.err`
5947 $RM conftest*
5948
5949 ac_outfile=conftest.$ac_objext
5950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5952 _lt_linker_boilerplate=`cat conftest.err`
5953 $RM conftest*
5954
5955
5956 ## CAVEAT EMPTOR:
5957 ## There is no encapsulation within the following macros, do not change
5958 ## the running order or otherwise move them around unless you know exactly
5959 ## what you are doing...
5960 if test -n "$compiler"; then
5961
5962 lt_prog_compiler_no_builtin_flag=
5963
5964 if test "$GCC" = yes; then
5965   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5966
5967   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5968 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   lt_cv_prog_compiler_rtti_exceptions=no
5973    ac_outfile=conftest.$ac_objext
5974    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5975    lt_compiler_flag="-fno-rtti -fno-exceptions"
5976    # Insert the option either (1) after the last *FLAGS variable, or
5977    # (2) before a word containing "conftest.", or (3) at the end.
5978    # Note that $ac_compile itself does not contain backslashes and begins
5979    # with a dollar sign (not a hyphen), so the echo should work correctly.
5980    # The option is referenced via a variable to avoid confusing sed.
5981    lt_compile=`echo "$ac_compile" | $SED \
5982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5984    -e 's:$: $lt_compiler_flag:'`
5985    (eval echo "\"\$as_me:5985: $lt_compile\"" >&5)
5986    (eval "$lt_compile" 2>conftest.err)
5987    ac_status=$?
5988    cat conftest.err >&5
5989    echo "$as_me:5989: \$? = $ac_status" >&5
5990    if (exit $ac_status) && test -s "$ac_outfile"; then
5991      # The compiler can only warn and ignore the option if not recognized
5992      # So say no if there are warnings other than the usual output.
5993      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5994      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5995      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5996        lt_cv_prog_compiler_rtti_exceptions=yes
5997      fi
5998    fi
5999    $RM conftest*
6000
6001 fi
6002 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6004
6005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6006     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6007 else
6008     :
6009 fi
6010
6011 fi
6012
6013
6014
6015
6016
6017
6018   lt_prog_compiler_wl=
6019 lt_prog_compiler_pic=
6020 lt_prog_compiler_static=
6021
6022 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6023 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6024
6025   if test "$GCC" = yes; then
6026     lt_prog_compiler_wl='-Wl,'
6027     lt_prog_compiler_static='-static'
6028
6029     case $host_os in
6030       aix*)
6031       # All AIX code is PIC.
6032       if test "$host_cpu" = ia64; then
6033         # AIX 5 now supports IA64 processor
6034         lt_prog_compiler_static='-Bstatic'
6035       fi
6036       ;;
6037
6038     amigaos*)
6039       if test "$host_cpu" = m68k; then
6040         # FIXME: we need at least 68020 code to build shared libraries, but
6041         # adding the `-m68020' flag to GCC prevents building anything better,
6042         # like `-m68040'.
6043         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6044       fi
6045       ;;
6046
6047     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6048       # PIC is the default for these OSes.
6049       ;;
6050
6051     mingw* | cygwin* | pw32* | os2*)
6052       # This hack is so that the source file can tell whether it is being
6053       # built for inclusion in a dll (and should export symbols for example).
6054       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6055       # (--disable-auto-import) libraries
6056       lt_prog_compiler_pic='-DDLL_EXPORT'
6057       ;;
6058
6059     darwin* | rhapsody*)
6060       # PIC is the default on this platform
6061       # Common symbols not allowed in MH_DYLIB files
6062       lt_prog_compiler_pic='-fno-common'
6063       ;;
6064
6065     hpux*)
6066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6067       # not for PA HP-UX.
6068       case $host_cpu in
6069       hppa*64*|ia64*)
6070         # +Z the default
6071         ;;
6072       *)
6073         lt_prog_compiler_pic='-fPIC'
6074         ;;
6075       esac
6076       ;;
6077
6078     interix[3-9]*)
6079       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6080       # Instead, we relocate shared libraries at runtime.
6081       ;;
6082
6083     msdosdjgpp*)
6084       # Just because we use GCC doesn't mean we suddenly get shared libraries
6085       # on systems that don't support them.
6086       lt_prog_compiler_can_build_shared=no
6087       enable_shared=no
6088       ;;
6089
6090     *nto* | *qnx*)
6091       # QNX uses GNU C++, but need to define -shared option too, otherwise
6092       # it will coredump.
6093       lt_prog_compiler_pic='-fPIC -shared'
6094       ;;
6095
6096     sysv4*MP*)
6097       if test -d /usr/nec; then
6098         lt_prog_compiler_pic=-Kconform_pic
6099       fi
6100       ;;
6101
6102     *)
6103       lt_prog_compiler_pic='-fPIC'
6104       ;;
6105     esac
6106   else
6107     # PORTME Check for flag to pass linker flags through the system compiler.
6108     case $host_os in
6109     aix*)
6110       lt_prog_compiler_wl='-Wl,'
6111       if test "$host_cpu" = ia64; then
6112         # AIX 5 now supports IA64 processor
6113         lt_prog_compiler_static='-Bstatic'
6114       else
6115         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6116       fi
6117       ;;
6118     darwin*)
6119       # PIC is the default on this platform
6120       # Common symbols not allowed in MH_DYLIB files
6121       case $cc_basename in
6122       xlc*)
6123         lt_prog_compiler_pic='-qnocommon'
6124         lt_prog_compiler_wl='-Wl,'
6125         ;;
6126       esac
6127       ;;
6128
6129     mingw* | cygwin* | pw32* | os2*)
6130       # This hack is so that the source file can tell whether it is being
6131       # built for inclusion in a dll (and should export symbols for example).
6132       lt_prog_compiler_pic='-DDLL_EXPORT'
6133       ;;
6134
6135     hpux9* | hpux10* | hpux11*)
6136       lt_prog_compiler_wl='-Wl,'
6137       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6138       # not for PA HP-UX.
6139       case $host_cpu in
6140       hppa*64*|ia64*)
6141         # +Z the default
6142         ;;
6143       *)
6144         lt_prog_compiler_pic='+Z'
6145         ;;
6146       esac
6147       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6148       lt_prog_compiler_static='${wl}-a ${wl}archive'
6149       ;;
6150
6151     irix5* | irix6* | nonstopux*)
6152       lt_prog_compiler_wl='-Wl,'
6153       # PIC (with -KPIC) is the default.
6154       lt_prog_compiler_static='-non_shared'
6155       ;;
6156
6157     linux* | k*bsd*-gnu)
6158       case $cc_basename in
6159       icc* | ecc*)
6160         lt_prog_compiler_wl='-Wl,'
6161         lt_prog_compiler_pic='-KPIC'
6162         lt_prog_compiler_static='-static'
6163         ;;
6164       pgcc* | pgf77* | pgf90* | pgf95*)
6165         # Portland Group compilers (*not* the Pentium gcc compiler,
6166         # which looks to be a dead project)
6167         lt_prog_compiler_wl='-Wl,'
6168         lt_prog_compiler_pic='-fpic'
6169         lt_prog_compiler_static='-Bstatic'
6170         ;;
6171       ccc*)
6172         lt_prog_compiler_wl='-Wl,'
6173         # All Alpha code is PIC.
6174         lt_prog_compiler_static='-non_shared'
6175         ;;
6176       *)
6177         case `$CC -V 2>&1 | sed 5q` in
6178         *Sun\ C*)
6179           # Sun C 5.9
6180           lt_prog_compiler_pic='-KPIC'
6181           lt_prog_compiler_static='-Bstatic'
6182           lt_prog_compiler_wl='-Wl,'
6183           ;;
6184         *Sun\ F*)
6185           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6186           lt_prog_compiler_pic='-KPIC'
6187           lt_prog_compiler_static='-Bstatic'
6188           lt_prog_compiler_wl=''
6189           ;;
6190         esac
6191         ;;
6192       esac
6193       ;;
6194
6195     newsos6)
6196       lt_prog_compiler_pic='-KPIC'
6197       lt_prog_compiler_static='-Bstatic'
6198       ;;
6199
6200     *nto* | *qnx*)
6201       # QNX uses GNU C++, but need to define -shared option too, otherwise
6202       # it will coredump.
6203       lt_prog_compiler_pic='-fPIC -shared'
6204       ;;
6205
6206     osf3* | osf4* | osf5*)
6207       lt_prog_compiler_wl='-Wl,'
6208       # All OSF/1 code is PIC.
6209       lt_prog_compiler_static='-non_shared'
6210       ;;
6211
6212     rdos*)
6213       lt_prog_compiler_static='-non_shared'
6214       ;;
6215
6216     solaris*)
6217       lt_prog_compiler_pic='-KPIC'
6218       lt_prog_compiler_static='-Bstatic'
6219       case $cc_basename in
6220       f77* | f90* | f95*)
6221         lt_prog_compiler_wl='-Qoption ld ';;
6222       *)
6223         lt_prog_compiler_wl='-Wl,';;
6224       esac
6225       ;;
6226
6227     sunos4*)
6228       lt_prog_compiler_wl='-Qoption ld '
6229       lt_prog_compiler_pic='-PIC'
6230       lt_prog_compiler_static='-Bstatic'
6231       ;;
6232
6233     sysv4 | sysv4.2uw2* | sysv4.3*)
6234       lt_prog_compiler_wl='-Wl,'
6235       lt_prog_compiler_pic='-KPIC'
6236       lt_prog_compiler_static='-Bstatic'
6237       ;;
6238
6239     sysv4*MP*)
6240       if test -d /usr/nec ;then
6241         lt_prog_compiler_pic='-Kconform_pic'
6242         lt_prog_compiler_static='-Bstatic'
6243       fi
6244       ;;
6245
6246     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6247       lt_prog_compiler_wl='-Wl,'
6248       lt_prog_compiler_pic='-KPIC'
6249       lt_prog_compiler_static='-Bstatic'
6250       ;;
6251
6252     unicos*)
6253       lt_prog_compiler_wl='-Wl,'
6254       lt_prog_compiler_can_build_shared=no
6255       ;;
6256
6257     uts4*)
6258       lt_prog_compiler_pic='-pic'
6259       lt_prog_compiler_static='-Bstatic'
6260       ;;
6261
6262     *)
6263       lt_prog_compiler_can_build_shared=no
6264       ;;
6265     esac
6266   fi
6267
6268 case $host_os in
6269   # For platforms which do not support PIC, -DPIC is meaningless:
6270   *djgpp*)
6271     lt_prog_compiler_pic=
6272     ;;
6273   *)
6274     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6275     ;;
6276 esac
6277 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6278 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6279
6280
6281
6282
6283
6284
6285 #
6286 # Check to make sure the PIC flag actually works.
6287 #
6288 if test -n "$lt_prog_compiler_pic"; then
6289   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6290 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6291 if test "${lt_prog_compiler_pic_works+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   lt_prog_compiler_pic_works=no
6295    ac_outfile=conftest.$ac_objext
6296    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6297    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6298    # Insert the option either (1) after the last *FLAGS variable, or
6299    # (2) before a word containing "conftest.", or (3) at the end.
6300    # Note that $ac_compile itself does not contain backslashes and begins
6301    # with a dollar sign (not a hyphen), so the echo should work correctly.
6302    # The option is referenced via a variable to avoid confusing sed.
6303    lt_compile=`echo "$ac_compile" | $SED \
6304    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6306    -e 's:$: $lt_compiler_flag:'`
6307    (eval echo "\"\$as_me:6307: $lt_compile\"" >&5)
6308    (eval "$lt_compile" 2>conftest.err)
6309    ac_status=$?
6310    cat conftest.err >&5
6311    echo "$as_me:6311: \$? = $ac_status" >&5
6312    if (exit $ac_status) && test -s "$ac_outfile"; then
6313      # The compiler can only warn and ignore the option if not recognized
6314      # So say no if there are warnings other than the usual output.
6315      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6316      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6317      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6318        lt_prog_compiler_pic_works=yes
6319      fi
6320    fi
6321    $RM conftest*
6322
6323 fi
6324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6325 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6326
6327 if test x"$lt_prog_compiler_pic_works" = xyes; then
6328     case $lt_prog_compiler_pic in
6329      "" | " "*) ;;
6330      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6331      esac
6332 else
6333     lt_prog_compiler_pic=
6334      lt_prog_compiler_can_build_shared=no
6335 fi
6336
6337 fi
6338
6339
6340
6341
6342
6343
6344 #
6345 # Check to make sure the static flag actually works.
6346 #
6347 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6348 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6349 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6350 if test "${lt_prog_compiler_static_works+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   lt_prog_compiler_static_works=no
6354    save_LDFLAGS="$LDFLAGS"
6355    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6356    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6357    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6358      # The linker can only warn and ignore the option if not recognized
6359      # So say no if there are warnings
6360      if test -s conftest.err; then
6361        # Append any errors to the config.log.
6362        cat conftest.err 1>&5
6363        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6364        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6365        if diff conftest.exp conftest.er2 >/dev/null; then
6366          lt_prog_compiler_static_works=yes
6367        fi
6368      else
6369        lt_prog_compiler_static_works=yes
6370      fi
6371    fi
6372    $RM conftest*
6373    LDFLAGS="$save_LDFLAGS"
6374
6375 fi
6376 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6377 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6378
6379 if test x"$lt_prog_compiler_static_works" = xyes; then
6380     :
6381 else
6382     lt_prog_compiler_static=
6383 fi
6384
6385
6386
6387
6388
6389
6390
6391   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6392 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6393 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   lt_cv_prog_compiler_c_o=no
6397    $RM -r conftest 2>/dev/null
6398    mkdir conftest
6399    cd conftest
6400    mkdir out
6401    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6402
6403    lt_compiler_flag="-o out/conftest2.$ac_objext"
6404    # Insert the option either (1) after the last *FLAGS variable, or
6405    # (2) before a word containing "conftest.", or (3) at the end.
6406    # Note that $ac_compile itself does not contain backslashes and begins
6407    # with a dollar sign (not a hyphen), so the echo should work correctly.
6408    lt_compile=`echo "$ac_compile" | $SED \
6409    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6411    -e 's:$: $lt_compiler_flag:'`
6412    (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
6413    (eval "$lt_compile" 2>out/conftest.err)
6414    ac_status=$?
6415    cat out/conftest.err >&5
6416    echo "$as_me:6416: \$? = $ac_status" >&5
6417    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6418    then
6419      # The compiler can only warn and ignore the option if not recognized
6420      # So say no if there are warnings
6421      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6422      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6423      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6424        lt_cv_prog_compiler_c_o=yes
6425      fi
6426    fi
6427    chmod u+w . 2>&5
6428    $RM conftest*
6429    # SGI C++ compiler will create directory out/ii_files/ for
6430    # template instantiation
6431    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6432    $RM out/* && rmdir out
6433    cd ..
6434    $RM -r conftest
6435    $RM conftest*
6436
6437 fi
6438 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6439 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6440
6441
6442
6443
6444
6445
6446   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6447 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6448 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451   lt_cv_prog_compiler_c_o=no
6452    $RM -r conftest 2>/dev/null
6453    mkdir conftest
6454    cd conftest
6455    mkdir out
6456    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6457
6458    lt_compiler_flag="-o out/conftest2.$ac_objext"
6459    # Insert the option either (1) after the last *FLAGS variable, or
6460    # (2) before a word containing "conftest.", or (3) at the end.
6461    # Note that $ac_compile itself does not contain backslashes and begins
6462    # with a dollar sign (not a hyphen), so the echo should work correctly.
6463    lt_compile=`echo "$ac_compile" | $SED \
6464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6466    -e 's:$: $lt_compiler_flag:'`
6467    (eval echo "\"\$as_me:6467: $lt_compile\"" >&5)
6468    (eval "$lt_compile" 2>out/conftest.err)
6469    ac_status=$?
6470    cat out/conftest.err >&5
6471    echo "$as_me:6471: \$? = $ac_status" >&5
6472    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6473    then
6474      # The compiler can only warn and ignore the option if not recognized
6475      # So say no if there are warnings
6476      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6477      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6478      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6479        lt_cv_prog_compiler_c_o=yes
6480      fi
6481    fi
6482    chmod u+w . 2>&5
6483    $RM conftest*
6484    # SGI C++ compiler will create directory out/ii_files/ for
6485    # template instantiation
6486    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6487    $RM out/* && rmdir out
6488    cd ..
6489    $RM -r conftest
6490    $RM conftest*
6491
6492 fi
6493 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6494 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6495
6496
6497
6498
6499 hard_links="nottested"
6500 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6501   # do not overwrite the value of need_locks provided by the user
6502   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6503 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6504   hard_links=yes
6505   $RM conftest*
6506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6507   touch conftest.a
6508   ln conftest.a conftest.b 2>&5 || hard_links=no
6509   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6510   echo "$as_me:$LINENO: result: $hard_links" >&5
6511 echo "${ECHO_T}$hard_links" >&6
6512   if test "$hard_links" = no; then
6513     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6514 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6515     need_locks=warn
6516   fi
6517 else
6518   need_locks=no
6519 fi
6520
6521
6522
6523
6524
6525
6526   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6527 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6528
6529   runpath_var=
6530   allow_undefined_flag=
6531   always_export_symbols=no
6532   archive_cmds=
6533   archive_expsym_cmds=
6534   compiler_needs_object=no
6535   enable_shared_with_static_runtimes=no
6536   export_dynamic_flag_spec=
6537   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6538   hardcode_automatic=no
6539   hardcode_direct=no
6540   hardcode_direct_absolute=no
6541   hardcode_libdir_flag_spec=
6542   hardcode_libdir_flag_spec_ld=
6543   hardcode_libdir_separator=
6544   hardcode_minus_L=no
6545   hardcode_shlibpath_var=unsupported
6546   inherit_rpath=no
6547   link_all_deplibs=unknown
6548   module_cmds=
6549   module_expsym_cmds=
6550   old_archive_from_new_cmds=
6551   old_archive_from_expsyms_cmds=
6552   thread_safe_flag_spec=
6553   whole_archive_flag_spec=
6554   # include_expsyms should be a list of space-separated symbols to be *always*
6555   # included in the symbol list
6556   include_expsyms=
6557   # exclude_expsyms can be an extended regexp of symbols to exclude
6558   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6559   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6560   # as well as any symbol that contains `d'.
6561   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6562   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6563   # platforms (ab)use it in PIC code, but their linkers get confused if
6564   # the symbol is explicitly referenced.  Since portable code cannot
6565   # rely on this symbol name, it's probably fine to never include it in
6566   # preloaded symbol tables.
6567   extract_expsyms_cmds=
6568
6569   case $host_os in
6570   cygwin* | mingw* | pw32*)
6571     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6572     # When not using gcc, we currently assume that we are using
6573     # Microsoft Visual C++.
6574     if test "$GCC" != yes; then
6575       with_gnu_ld=no
6576     fi
6577     ;;
6578   interix*)
6579     # we just hope/assume this is gcc and not c89 (= MSVC++)
6580     with_gnu_ld=yes
6581     ;;
6582   openbsd*)
6583     with_gnu_ld=no
6584     ;;
6585   esac
6586
6587   ld_shlibs=yes
6588   if test "$with_gnu_ld" = yes; then
6589     # If archive_cmds runs LD, not CC, wlarc should be empty
6590     wlarc='${wl}'
6591
6592     # Set some defaults for GNU ld with shared library support. These
6593     # are reset later if shared libraries are not supported. Putting them
6594     # here allows them to be overridden if necessary.
6595     runpath_var=LD_RUN_PATH
6596     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6597     export_dynamic_flag_spec='${wl}--export-dynamic'
6598     # ancient GNU ld didn't support --whole-archive et. al.
6599     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6600       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6601     else
6602       whole_archive_flag_spec=
6603     fi
6604     supports_anon_versioning=no
6605     case `$LD -v 2>&1` in
6606       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6607       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6608       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6609       *\ 2.11.*) ;; # other 2.11 versions
6610       *) supports_anon_versioning=yes ;;
6611     esac
6612
6613     # See if GNU ld supports shared libraries.
6614     case $host_os in
6615     aix[3-9]*)
6616       # On AIX/PPC, the GNU linker is very broken
6617       if test "$host_cpu" != ia64; then
6618         ld_shlibs=no
6619         cat <<_LT_EOF 1>&2
6620
6621 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6622 *** to be unable to reliably create shared libraries on AIX.
6623 *** Therefore, libtool is disabling shared libraries support.  If you
6624 *** really care for shared libraries, you may want to modify your PATH
6625 *** so that a non-GNU linker is found, and then restart.
6626
6627 _LT_EOF
6628       fi
6629       ;;
6630
6631     amigaos*)
6632       if test "$host_cpu" = m68k; then
6633         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)'
6634         hardcode_libdir_flag_spec='-L$libdir'
6635         hardcode_minus_L=yes
6636       fi
6637
6638       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6639       # that the semantics of dynamic libraries on AmigaOS, at least up
6640       # to version 4, is to share data among multiple programs linked
6641       # with the same dynamic library.  Since this doesn't match the
6642       # behavior of shared libraries on other platforms, we can't use
6643       # them.
6644       ld_shlibs=no
6645       ;;
6646
6647     beos*)
6648       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6649         allow_undefined_flag=unsupported
6650         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6651         # support --undefined.  This deserves some investigation.  FIXME
6652         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6653       else
6654         ld_shlibs=no
6655       fi
6656       ;;
6657
6658     cygwin* | mingw* | pw32*)
6659       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6660       # as there is no search path for DLLs.
6661       hardcode_libdir_flag_spec='-L$libdir'
6662       allow_undefined_flag=unsupported
6663       always_export_symbols=no
6664       enable_shared_with_static_runtimes=yes
6665       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6666
6667       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6669         # If the export-symbols file already is a .def file (1st line
6670         # is EXPORTS), use it as is; otherwise, prepend...
6671         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6672           cp $export_symbols $output_objdir/$soname.def;
6673         else
6674           echo EXPORTS > $output_objdir/$soname.def;
6675           cat $export_symbols >> $output_objdir/$soname.def;
6676         fi~
6677         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6678       else
6679         ld_shlibs=no
6680       fi
6681       ;;
6682
6683     interix[3-9]*)
6684       hardcode_direct=no
6685       hardcode_shlibpath_var=no
6686       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6687       export_dynamic_flag_spec='${wl}-E'
6688       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6689       # Instead, shared libraries are loaded at an image base (0x10000000 by
6690       # default) and relocated if they conflict, which is a slow very memory
6691       # consuming and fragmenting process.  To avoid this, we pick a random,
6692       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6693       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6694       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6695       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6696       ;;
6697
6698     gnu* | linux* | tpf* | k*bsd*-gnu)
6699       tmp_diet=no
6700       if test "$host_os" = linux-dietlibc; then
6701         case $cc_basename in
6702           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6703         esac
6704       fi
6705       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6706          && test "$tmp_diet" = no
6707       then
6708         tmp_addflag=
6709         case $cc_basename,$host_cpu in
6710         pgcc*)                          # Portland Group C compiler
6711           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6712           tmp_addflag=' $pic_flag'
6713           ;;
6714         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6715           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6716           tmp_addflag=' $pic_flag -Mnomain' ;;
6717         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6718           tmp_addflag=' -i_dynamic' ;;
6719         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6720           tmp_addflag=' -i_dynamic -nofor_main' ;;
6721         ifc* | ifort*)                  # Intel Fortran compiler
6722           tmp_addflag=' -nofor_main' ;;
6723         esac
6724         case `$CC -V 2>&1 | sed 5q` in
6725         *Sun\ C*)                       # Sun C 5.9
6726           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6727           compiler_needs_object=yes
6728           tmp_sharedflag='-G' ;;
6729         *Sun\ F*)                       # Sun Fortran 8.3
6730           tmp_sharedflag='-G' ;;
6731         *)
6732           tmp_sharedflag='-shared' ;;
6733         esac
6734         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735
6736         if test "x$supports_anon_versioning" = xyes; then
6737           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6738             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6739             echo "local: *; };" >> $output_objdir/$libname.ver~
6740             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6741         fi
6742       else
6743         ld_shlibs=no
6744       fi
6745       ;;
6746
6747     netbsd*)
6748       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6749         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6750         wlarc=
6751       else
6752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754       fi
6755       ;;
6756
6757     solaris*)
6758       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6759         ld_shlibs=no
6760         cat <<_LT_EOF 1>&2
6761
6762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6763 *** create shared libraries on Solaris systems.  Therefore, libtool
6764 *** is disabling shared libraries support.  We urge you to upgrade GNU
6765 *** binutils to release 2.9.1 or newer.  Another option is to modify
6766 *** your PATH or compiler configuration so that the native linker is
6767 *** used, and then restart.
6768
6769 _LT_EOF
6770       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6771         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6772         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6773       else
6774         ld_shlibs=no
6775       fi
6776       ;;
6777
6778     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6779       case `$LD -v 2>&1` in
6780         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6781         ld_shlibs=no
6782         cat <<_LT_EOF 1>&2
6783
6784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6785 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6786 *** is disabling shared libraries support.  We urge you to upgrade GNU
6787 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6788 *** your PATH or compiler configuration so that the native linker is
6789 *** used, and then restart.
6790
6791 _LT_EOF
6792         ;;
6793         *)
6794           # For security reasons, it is highly recommended that you always
6795           # use absolute paths for naming shared libraries, and exclude the
6796           # DT_RUNPATH tag from executables and libraries.  But doing so
6797           # requires that you compile everything twice, which is a pain.
6798           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6799             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6800             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6801             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802           else
6803             ld_shlibs=no
6804           fi
6805         ;;
6806       esac
6807       ;;
6808
6809     sunos4*)
6810       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6811       wlarc=
6812       hardcode_direct=yes
6813       hardcode_shlibpath_var=no
6814       ;;
6815
6816     *)
6817       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6818         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6820       else
6821         ld_shlibs=no
6822       fi
6823       ;;
6824     esac
6825
6826     if test "$ld_shlibs" = no; then
6827       runpath_var=
6828       hardcode_libdir_flag_spec=
6829       export_dynamic_flag_spec=
6830       whole_archive_flag_spec=
6831     fi
6832   else
6833     # PORTME fill in a description of your system's linker (not GNU ld)
6834     case $host_os in
6835     aix3*)
6836       allow_undefined_flag=unsupported
6837       always_export_symbols=yes
6838       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'
6839       # Note: this linker hardcodes the directories in LIBPATH if there
6840       # are no directories specified by -L.
6841       hardcode_minus_L=yes
6842       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6843         # Neither direct hardcoding nor static linking is supported with a
6844         # broken collect2.
6845         hardcode_direct=unsupported
6846       fi
6847       ;;
6848
6849     aix[4-9]*)
6850       if test "$host_cpu" = ia64; then
6851         # On IA64, the linker does run time linking by default, so we don't
6852         # have to do anything special.
6853         aix_use_runtimelinking=no
6854         exp_sym_flag='-Bexport'
6855         no_entry_flag=""
6856       else
6857         # If we're using GNU nm, then we don't want the "-C" option.
6858         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6859         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6860           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'
6861         else
6862           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'
6863         fi
6864         aix_use_runtimelinking=no
6865
6866         # Test if we are trying to use run time linking or normal
6867         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6868         # need to do runtime linking.
6869         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6870           for ld_flag in $LDFLAGS; do
6871           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6872             aix_use_runtimelinking=yes
6873             break
6874           fi
6875           done
6876           ;;
6877         esac
6878
6879         exp_sym_flag='-bexport'
6880         no_entry_flag='-bnoentry'
6881       fi
6882
6883       # When large executables or shared objects are built, AIX ld can
6884       # have problems creating the table of contents.  If linking a library
6885       # or program results in "error TOC overflow" add -mminimal-toc to
6886       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6887       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6888
6889       archive_cmds=''
6890       hardcode_direct=yes
6891       hardcode_direct_absolute=yes
6892       hardcode_libdir_separator=':'
6893       link_all_deplibs=yes
6894       file_list_spec='${wl}-f,'
6895
6896       if test "$GCC" = yes; then
6897         case $host_os in aix4.[012]|aix4.[012].*)
6898         # We only want to do this on AIX 4.2 and lower, the check
6899         # below for broken collect2 doesn't work under 4.3+
6900           collect2name=`${CC} -print-prog-name=collect2`
6901           if test -f "$collect2name" &&
6902            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6903           then
6904           # We have reworked collect2
6905           :
6906           else
6907           # We have old collect2
6908           hardcode_direct=unsupported
6909           # It fails to find uninstalled libraries when the uninstalled
6910           # path is not listed in the libpath.  Setting hardcode_minus_L
6911           # to unsupported forces relinking
6912           hardcode_minus_L=yes
6913           hardcode_libdir_flag_spec='-L$libdir'
6914           hardcode_libdir_separator=
6915           fi
6916           ;;
6917         esac
6918         shared_flag='-shared'
6919         if test "$aix_use_runtimelinking" = yes; then
6920           shared_flag="$shared_flag "'${wl}-G'
6921         fi
6922       else
6923         # not using gcc
6924         if test "$host_cpu" = ia64; then
6925         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6926         # chokes on -Wl,-G. The following line is correct:
6927           shared_flag='-G'
6928         else
6929           if test "$aix_use_runtimelinking" = yes; then
6930             shared_flag='${wl}-G'
6931           else
6932             shared_flag='${wl}-bM:SRE'
6933           fi
6934         fi
6935       fi
6936
6937       # It seems that -bexpall does not export symbols beginning with
6938       # underscore (_), so it is better to generate a list of symbols to export.
6939       always_export_symbols=yes
6940       if test "$aix_use_runtimelinking" = yes; then
6941         # Warning - without using the other runtime loading flags (-brtl),
6942         # -berok will link without error, but may produce a broken library.
6943         allow_undefined_flag='-berok'
6944         # Determine the default libpath from the value encoded in an
6945         # empty executable.
6946         if test x$gcc_no_link = xyes; then
6947   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6949    { (exit 1); exit 1; }; }
6950 fi
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957
6958 int
6959 main ()
6960 {
6961
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968   (eval $ac_link) 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } &&
6975          { ac_try='test -z "$ac_c_werror_flag"
6976                          || test ! -s conftest.err'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; } &&
6982          { ac_try='test -s conftest$ac_exeext'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; }; then
6988
6989 lt_aix_libpath_sed='
6990     /Import File Strings/,/^$/ {
6991         /^0/ {
6992             s/^0  *\(.*\)$/\1/
6993             p
6994         }
6995     }'
6996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6997 # Check for a 64-bit object if we didn't find anything.
6998 if test -z "$aix_libpath"; then
6999   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7000 fi
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 fi
7006 rm -f conftest.err conftest.$ac_objext \
7007       conftest$ac_exeext conftest.$ac_ext
7008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7009
7010         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7011         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7012       else
7013         if test "$host_cpu" = ia64; then
7014           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7015           allow_undefined_flag="-z nodefs"
7016           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7017         else
7018          # Determine the default libpath from the value encoded in an
7019          # empty executable.
7020          if test x$gcc_no_link = xyes; then
7021   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7023    { (exit 1); exit 1; }; }
7024 fi
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031
7032 int
7033 main ()
7034 {
7035
7036   ;
7037   return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042   (eval $ac_link) 2>conftest.er1
7043   ac_status=$?
7044   grep -v '^ *+' conftest.er1 >conftest.err
7045   rm -f conftest.er1
7046   cat conftest.err >&5
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -z "$ac_c_werror_flag"
7050                          || test ! -s conftest.err'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; } &&
7056          { ac_try='test -s conftest$ac_exeext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062
7063 lt_aix_libpath_sed='
7064     /Import File Strings/,/^$/ {
7065         /^0/ {
7066             s/^0  *\(.*\)$/\1/
7067             p
7068         }
7069     }'
7070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7071 # Check for a 64-bit object if we didn't find anything.
7072 if test -z "$aix_libpath"; then
7073   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7074 fi
7075 else
7076   echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 fi
7080 rm -f conftest.err conftest.$ac_objext \
7081       conftest$ac_exeext conftest.$ac_ext
7082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7083
7084          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7085           # Warning - without using the other run time loading flags,
7086           # -berok will link without error, but may produce a broken library.
7087           no_undefined_flag=' ${wl}-bernotok'
7088           allow_undefined_flag=' ${wl}-berok'
7089           # Exported symbols can be pulled into shared objects from archives
7090           whole_archive_flag_spec='$convenience'
7091           archive_cmds_need_lc=yes
7092           # This is similar to how AIX traditionally builds its shared libraries.
7093           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7094         fi
7095       fi
7096       ;;
7097
7098     amigaos*)
7099       if test "$host_cpu" = m68k; then
7100         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)'
7101         hardcode_libdir_flag_spec='-L$libdir'
7102         hardcode_minus_L=yes
7103       fi
7104       # see comment about different semantics on the GNU ld section
7105       ld_shlibs=no
7106       ;;
7107
7108     bsdi[45]*)
7109       export_dynamic_flag_spec=-rdynamic
7110       ;;
7111
7112     cygwin* | mingw* | pw32*)
7113       # When not using gcc, we currently assume that we are using
7114       # Microsoft Visual C++.
7115       # hardcode_libdir_flag_spec is actually meaningless, as there is
7116       # no search path for DLLs.
7117       hardcode_libdir_flag_spec=' '
7118       allow_undefined_flag=unsupported
7119       # Tell ltmain to make .lib files, not .a files.
7120       libext=lib
7121       # Tell ltmain to make .dll files, not .so files.
7122       shrext_cmds=".dll"
7123       # FIXME: Setting linknames here is a bad hack.
7124       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7125       # The linker will automatically build a .lib file if we build a DLL.
7126       old_archive_from_new_cmds='true'
7127       # FIXME: Should let the user specify the lib program.
7128       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7129       fix_srcfile_path='`cygpath -w "$srcfile"`'
7130       enable_shared_with_static_runtimes=yes
7131       ;;
7132
7133     darwin* | rhapsody*)
7134       case $host_os in
7135       rhapsody* | darwin1.[012])
7136         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7137         ;;
7138       *) # Darwin 1.3 on
7139         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7140         10.[012])
7141           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7142           ;;
7143         10.*)
7144           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7145           ;;
7146         esac
7147         ;;
7148       esac
7149       archive_cmds_need_lc=no
7150       hardcode_direct=no
7151       hardcode_automatic=yes
7152       hardcode_shlibpath_var=unsupported
7153       whole_archive_flag_spec=''
7154       link_all_deplibs=yes
7155       if test "$GCC" = yes ; then
7156         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   lt_cv_apple_cc_single_mod=no
7160         if test -z "${LT_MULTI_MODULE}"; then
7161           # By default we will add the -single_module flag. You can override
7162           # by either setting the environment variable LT_MULTI_MODULE
7163           # non-empty at configure time, or by adding -multi-module to the
7164           # link flags.
7165           echo "int foo(void){return 1;}" > conftest.c
7166           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167               -dynamiclib ${wl}-single_module conftest.c
7168           if test -f libconftest.dylib; then
7169               lt_cv_apple_cc_single_mod=yes
7170               rm libconftest.dylib
7171           fi
7172           rm conftest.$ac_ext
7173         fi
7174 fi
7175
7176         output_verbose_link_cmd=echo
7177         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7178           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7179           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7180         else
7181           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7182           archive_expsym_cmds='sed "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}'
7183         fi
7184         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7185         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7186       else
7187         case $cc_basename in
7188         xlc*)
7189           output_verbose_link_cmd=echo
7190           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7191           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7192           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7193           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7194           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7195           ;;
7196         *)
7197           ld_shlibs=no
7198           ;;
7199         esac
7200       fi
7201       ;;
7202
7203     dgux*)
7204       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7205       hardcode_libdir_flag_spec='-L$libdir'
7206       hardcode_shlibpath_var=no
7207       ;;
7208
7209     freebsd1*)
7210       ld_shlibs=no
7211       ;;
7212
7213     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7214     # support.  Future versions do this automatically, but an explicit c++rt0.o
7215     # does not break anything, and helps significantly (at the cost of a little
7216     # extra space).
7217     freebsd2.2*)
7218       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7219       hardcode_libdir_flag_spec='-R$libdir'
7220       hardcode_direct=yes
7221       hardcode_shlibpath_var=no
7222       ;;
7223
7224     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7225     freebsd2*)
7226       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7227       hardcode_direct=yes
7228       hardcode_minus_L=yes
7229       hardcode_shlibpath_var=no
7230       ;;
7231
7232     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7233     freebsd* | dragonfly*)
7234       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7235       hardcode_libdir_flag_spec='-R$libdir'
7236       hardcode_direct=yes
7237       hardcode_shlibpath_var=no
7238       ;;
7239
7240     hpux9*)
7241       if test "$GCC" = yes; then
7242         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'
7243       else
7244         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'
7245       fi
7246       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7247       hardcode_libdir_separator=:
7248       hardcode_direct=yes
7249
7250       # hardcode_minus_L: Not really in the search PATH,
7251       # but as the default location of the library.
7252       hardcode_minus_L=yes
7253       export_dynamic_flag_spec='${wl}-E'
7254       ;;
7255
7256     hpux10*)
7257       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7258         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7259       else
7260         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7261       fi
7262       if test "$with_gnu_ld" = no; then
7263         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7264         hardcode_libdir_flag_spec_ld='+b $libdir'
7265         hardcode_libdir_separator=:
7266         hardcode_direct=yes
7267         hardcode_direct_absolute=yes
7268         export_dynamic_flag_spec='${wl}-E'
7269         # hardcode_minus_L: Not really in the search PATH,
7270         # but as the default location of the library.
7271         hardcode_minus_L=yes
7272       fi
7273       ;;
7274
7275     hpux11*)
7276       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7277         case $host_cpu in
7278         hppa*64*)
7279           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7280           ;;
7281         ia64*)
7282           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7283           ;;
7284         *)
7285           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7286           ;;
7287         esac
7288       else
7289         case $host_cpu in
7290         hppa*64*)
7291           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7292           ;;
7293         ia64*)
7294           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7295           ;;
7296         *)
7297           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7298           ;;
7299         esac
7300       fi
7301       if test "$with_gnu_ld" = no; then
7302         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7303         hardcode_libdir_separator=:
7304
7305         case $host_cpu in
7306         hppa*64*|ia64*)
7307           hardcode_direct=no
7308           hardcode_shlibpath_var=no
7309           ;;
7310         *)
7311           hardcode_direct=yes
7312           hardcode_direct_absolute=yes
7313           export_dynamic_flag_spec='${wl}-E'
7314
7315           # hardcode_minus_L: Not really in the search PATH,
7316           # but as the default location of the library.
7317           hardcode_minus_L=yes
7318           ;;
7319         esac
7320       fi
7321       ;;
7322
7323     irix5* | irix6* | nonstopux*)
7324       if test "$GCC" = yes; then
7325         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7326         # Try to use the -exported_symbol ld option, if it does not
7327         # work, assume that -exports_file does not work either and
7328         # implicitly export all symbols.
7329         save_LDFLAGS="$LDFLAGS"
7330         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7331         if test x$gcc_no_link = xyes; then
7332   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7334    { (exit 1); exit 1; }; }
7335 fi
7336 cat >conftest.$ac_ext <<_ACEOF
7337 int foo(void) {}
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341   (eval $ac_link) 2>conftest.er1
7342   ac_status=$?
7343   grep -v '^ *+' conftest.er1 >conftest.err
7344   rm -f conftest.er1
7345   cat conftest.err >&5
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } &&
7348          { ac_try='test -z "$ac_c_werror_flag"
7349                          || test ! -s conftest.err'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; } &&
7355          { ac_try='test -s conftest$ac_exeext'
7356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357   (eval $ac_try) 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; }; then
7361   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7362
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367 fi
7368 rm -f conftest.err conftest.$ac_objext \
7369       conftest$ac_exeext conftest.$ac_ext
7370         LDFLAGS="$save_LDFLAGS"
7371       else
7372         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7373         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7374       fi
7375       archive_cmds_need_lc='no'
7376       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7377       hardcode_libdir_separator=:
7378       inherit_rpath=yes
7379       link_all_deplibs=yes
7380       ;;
7381
7382     netbsd*)
7383       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7384         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7385       else
7386         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7387       fi
7388       hardcode_libdir_flag_spec='-R$libdir'
7389       hardcode_direct=yes
7390       hardcode_shlibpath_var=no
7391       ;;
7392
7393     newsos6)
7394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395       hardcode_direct=yes
7396       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7397       hardcode_libdir_separator=:
7398       hardcode_shlibpath_var=no
7399       ;;
7400
7401     *nto* | *qnx*)
7402       ;;
7403
7404     openbsd*)
7405       hardcode_direct=yes
7406       hardcode_shlibpath_var=no
7407       hardcode_direct_absolute=yes
7408       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7409         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7410         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7411         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7412         export_dynamic_flag_spec='${wl}-E'
7413       else
7414         case $host_os in
7415         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7416           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7417           hardcode_libdir_flag_spec='-R$libdir'
7418           ;;
7419         *)
7420           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7421           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7422           ;;
7423         esac
7424       fi
7425       ;;
7426
7427     os2*)
7428       hardcode_libdir_flag_spec='-L$libdir'
7429       hardcode_minus_L=yes
7430       allow_undefined_flag=unsupported
7431       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'
7432       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7433       ;;
7434
7435     osf3*)
7436       if test "$GCC" = yes; then
7437         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7438         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7439       else
7440         allow_undefined_flag=' -expect_unresolved \*'
7441         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7442       fi
7443       archive_cmds_need_lc='no'
7444       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7445       hardcode_libdir_separator=:
7446       ;;
7447
7448     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7449       if test "$GCC" = yes; then
7450         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7451         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7452         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7453       else
7454         allow_undefined_flag=' -expect_unresolved \*'
7455         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7456         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7457         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7458
7459         # Both c and cxx compiler support -rpath directly
7460         hardcode_libdir_flag_spec='-rpath $libdir'
7461       fi
7462       archive_cmds_need_lc='no'
7463       hardcode_libdir_separator=:
7464       ;;
7465
7466     solaris*)
7467       no_undefined_flag=' -z defs'
7468       if test "$GCC" = yes; then
7469         wlarc='${wl}'
7470         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7471         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7472           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7473       else
7474         case `$CC -V 2>&1` in
7475         *"Compilers 5.0"*)
7476           wlarc=''
7477           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7479           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7480           ;;
7481         *)
7482           wlarc='${wl}'
7483           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7484           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7485           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7486           ;;
7487         esac
7488       fi
7489       hardcode_libdir_flag_spec='-R$libdir'
7490       hardcode_shlibpath_var=no
7491       case $host_os in
7492       solaris2.[0-5] | solaris2.[0-5].*) ;;
7493       *)
7494         # The compiler driver will combine and reorder linker options,
7495         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7496         # but is careful enough not to reorder.
7497         # Supported since Solaris 2.6 (maybe 2.5.1?)
7498         if test "$GCC" = yes; then
7499           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7500         else
7501           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7502         fi
7503         ;;
7504       esac
7505       link_all_deplibs=yes
7506       ;;
7507
7508     sunos4*)
7509       if test "x$host_vendor" = xsequent; then
7510         # Use $CC to link under sequent, because it throws in some extra .o
7511         # files that make .init and .fini sections work.
7512         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7513       else
7514         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7515       fi
7516       hardcode_libdir_flag_spec='-L$libdir'
7517       hardcode_direct=yes
7518       hardcode_minus_L=yes
7519       hardcode_shlibpath_var=no
7520       ;;
7521
7522     sysv4)
7523       case $host_vendor in
7524         sni)
7525           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526           hardcode_direct=yes # is this really true???
7527         ;;
7528         siemens)
7529           ## LD is ld it makes a PLAMLIB
7530           ## CC just makes a GrossModule.
7531           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7532           reload_cmds='$CC -r -o $output$reload_objs'
7533           hardcode_direct=no
7534         ;;
7535         motorola)
7536           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7538         ;;
7539       esac
7540       runpath_var='LD_RUN_PATH'
7541       hardcode_shlibpath_var=no
7542       ;;
7543
7544     sysv4.3*)
7545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546       hardcode_shlibpath_var=no
7547       export_dynamic_flag_spec='-Bexport'
7548       ;;
7549
7550     sysv4*MP*)
7551       if test -d /usr/nec; then
7552         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7553         hardcode_shlibpath_var=no
7554         runpath_var=LD_RUN_PATH
7555         hardcode_runpath_var=yes
7556         ld_shlibs=yes
7557       fi
7558       ;;
7559
7560     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7561       no_undefined_flag='${wl}-z,text'
7562       archive_cmds_need_lc=no
7563       hardcode_shlibpath_var=no
7564       runpath_var='LD_RUN_PATH'
7565
7566       if test "$GCC" = yes; then
7567         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7568         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7569       else
7570         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7571         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7572       fi
7573       ;;
7574
7575     sysv5* | sco3.2v5* | sco5v6*)
7576       # Note: We can NOT use -z defs as we might desire, because we do not
7577       # link with -lc, and that would cause any symbols used from libc to
7578       # always be unresolved, which means just about no library would
7579       # ever link correctly.  If we're not using GNU ld we use -z text
7580       # though, which does catch some bad symbols but isn't as heavy-handed
7581       # as -z defs.
7582       no_undefined_flag='${wl}-z,text'
7583       allow_undefined_flag='${wl}-z,nodefs'
7584       archive_cmds_need_lc=no
7585       hardcode_shlibpath_var=no
7586       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7587       hardcode_libdir_separator=':'
7588       link_all_deplibs=yes
7589       export_dynamic_flag_spec='${wl}-Bexport'
7590       runpath_var='LD_RUN_PATH'
7591
7592       if test "$GCC" = yes; then
7593         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7594         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7595       else
7596         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7597         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7598       fi
7599       ;;
7600
7601     uts4*)
7602       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7603       hardcode_libdir_flag_spec='-L$libdir'
7604       hardcode_shlibpath_var=no
7605       ;;
7606
7607     *)
7608       ld_shlibs=no
7609       ;;
7610     esac
7611
7612     if test x$host_vendor = xsni; then
7613       case $host in
7614       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7615         export_dynamic_flag_spec='${wl}-Blargedynsym'
7616         ;;
7617       esac
7618     fi
7619   fi
7620
7621 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7622 echo "${ECHO_T}$ld_shlibs" >&6
7623 test "$ld_shlibs" = no && can_build_shared=no
7624
7625 with_gnu_ld=$with_gnu_ld
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641 #
7642 # Do we need to explicitly link libc?
7643 #
7644 case "x$archive_cmds_need_lc" in
7645 x|xyes)
7646   # Assume -lc should be added
7647   archive_cmds_need_lc=yes
7648
7649   if test "$enable_shared" = yes && test "$GCC" = yes; then
7650     case $archive_cmds in
7651     *'~'*)
7652       # FIXME: we may have to deal with multi-command sequences.
7653       ;;
7654     '$CC '*)
7655       # Test whether the compiler implicitly links with -lc since on some
7656       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7657       # to ld, don't add -lc before -lgcc.
7658       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7660       $RM conftest*
7661       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7662
7663       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7664   (eval $ac_compile) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } 2>conftest.err; then
7668         soname=conftest
7669         lib=conftest
7670         libobjs=conftest.$ac_objext
7671         deplibs=
7672         wl=$lt_prog_compiler_wl
7673         pic_flag=$lt_prog_compiler_pic
7674         compiler_flags=-v
7675         linker_flags=-v
7676         verstring=
7677         output_objdir=.
7678         libname=conftest
7679         lt_save_allow_undefined_flag=$allow_undefined_flag
7680         allow_undefined_flag=
7681         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7682   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }
7686         then
7687           archive_cmds_need_lc=no
7688         else
7689           archive_cmds_need_lc=yes
7690         fi
7691         allow_undefined_flag=$lt_save_allow_undefined_flag
7692       else
7693         cat conftest.err 1>&5
7694       fi
7695       $RM conftest*
7696       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7697 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7698       ;;
7699     esac
7700   fi
7701   ;;
7702 esac
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7862 withGCC=$GCC
7863 if test "$withGCC" = yes; then
7864   case $host_os in
7865     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7866     *) lt_awk_arg="/^libraries:/" ;;
7867   esac
7868   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7869   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7870     # if the path contains ";" then we assume it to be the separator
7871     # otherwise default to the standard path separator (i.e. ":") - it is
7872     # assumed that no part of a normal pathname contains ";" but that should
7873     # okay in the real world where ";" in dirpaths is itself problematic.
7874     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7875   else
7876     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7877   fi
7878   # Ok, now we have the path, separated by spaces, we can step through it
7879   # and add multilib dir if necessary.
7880   lt_tmp_lt_search_path_spec=
7881   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7882   for lt_sys_path in $lt_search_path_spec; do
7883     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7884       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7885     else
7886       test -d "$lt_sys_path" && \
7887         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7888     fi
7889   done
7890   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7891 BEGIN {RS=" "; FS="/|\n";} {
7892   lt_foo="";
7893   lt_count=0;
7894   for (lt_i = NF; lt_i > 0; lt_i--) {
7895     if ($lt_i != "" && $lt_i != ".") {
7896       if ($lt_i == "..") {
7897         lt_count++;
7898       } else {
7899         if (lt_count == 0) {
7900           lt_foo="/" $lt_i lt_foo;
7901         } else {
7902           lt_count--;
7903         }
7904       }
7905     }
7906   }
7907   if (lt_foo != "") { lt_freq[lt_foo]++; }
7908   if (lt_freq[lt_foo] == 1) { print lt_foo; }
7909 }'`
7910   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7911 else
7912   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7913 fi
7914 library_names_spec=
7915 libname_spec='lib$name'
7916 soname_spec=
7917 shrext_cmds=".so"
7918 postinstall_cmds=
7919 postuninstall_cmds=
7920 finish_cmds=
7921 finish_eval=
7922 shlibpath_var=
7923 shlibpath_overrides_runpath=unknown
7924 version_type=none
7925 dynamic_linker="$host_os ld.so"
7926 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7927 need_lib_prefix=unknown
7928 hardcode_into_libs=no
7929
7930 # when you set need_version to no, make sure it does not cause -set_version
7931 # flags to be left without arguments
7932 need_version=unknown
7933
7934 case $host_os in
7935 aix3*)
7936   version_type=linux
7937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7938   shlibpath_var=LIBPATH
7939
7940   # AIX 3 has no versioning support, so we append a major version to the name.
7941   soname_spec='${libname}${release}${shared_ext}$major'
7942   ;;
7943
7944 aix[4-9]*)
7945   version_type=linux
7946   need_lib_prefix=no
7947   need_version=no
7948   hardcode_into_libs=yes
7949   if test "$host_cpu" = ia64; then
7950     # AIX 5 supports IA64
7951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7952     shlibpath_var=LD_LIBRARY_PATH
7953   else
7954     # With GCC up to 2.95.x, collect2 would create an import file
7955     # for dependence libraries.  The import file would start with
7956     # the line `#! .'.  This would cause the generated library to
7957     # depend on `.', always an invalid library.  This was fixed in
7958     # development snapshots of GCC prior to 3.0.
7959     case $host_os in
7960       aix4 | aix4.[01] | aix4.[01].*)
7961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7962            echo ' yes '
7963            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7964         :
7965       else
7966         can_build_shared=no
7967       fi
7968       ;;
7969     esac
7970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7971     # soname into executable. Probably we can add versioning support to
7972     # collect2, so additional links can be useful in future.
7973     if test "$aix_use_runtimelinking" = yes; then
7974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7975       # instead of lib<name>.a to let people know that these are not
7976       # typical AIX shared libraries.
7977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978     else
7979       # We preserve .a as extension for shared libraries through AIX4.2
7980       # and later when we are not doing run time linking.
7981       library_names_spec='${libname}${release}.a $libname.a'
7982       soname_spec='${libname}${release}${shared_ext}$major'
7983     fi
7984     shlibpath_var=LIBPATH
7985   fi
7986   ;;
7987
7988 amigaos*)
7989   if test "$host_cpu" = m68k; then
7990     library_names_spec='$libname.ixlibrary $libname.a'
7991     # Create ${libname}_ixlibrary.a entries in /sys/libs.
7992     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'
7993   else
7994     dynamic_linker=no
7995   fi
7996   ;;
7997
7998 beos*)
7999   library_names_spec='${libname}${shared_ext}'
8000   dynamic_linker="$host_os ld.so"
8001   shlibpath_var=LIBRARY_PATH
8002   ;;
8003
8004 bsdi[45]*)
8005   version_type=linux
8006   need_version=no
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008   soname_spec='${libname}${release}${shared_ext}$major'
8009   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8010   shlibpath_var=LD_LIBRARY_PATH
8011   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8012   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8013   # the default ld.so.conf also contains /usr/contrib/lib and
8014   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8015   # libtool to hard-code these into programs
8016   ;;
8017
8018 cygwin* | mingw* | pw32*)
8019   version_type=windows
8020   shrext_cmds=".dll"
8021   need_version=no
8022   need_lib_prefix=no
8023
8024   case $withGCC,$host_os in
8025   yes,cygwin* | yes,mingw* | yes,pw32*)
8026     library_names_spec='$libname.dll.a'
8027     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8028     postinstall_cmds='base_file=`basename \${file}`~
8029       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8030       dldir=$destdir/`dirname \$dlpath`~
8031       test -d \$dldir || mkdir -p \$dldir~
8032       $install_prog $dir/$dlname \$dldir/$dlname~
8033       chmod a+x \$dldir/$dlname~
8034       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8035         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8036       fi'
8037     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8038       dlpath=$dir/\$dldll~
8039        $RM \$dlpath'
8040     shlibpath_overrides_runpath=yes
8041
8042     case $host_os in
8043     cygwin*)
8044       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8045       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8046       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8047       ;;
8048     mingw*)
8049       # MinGW DLLs use traditional 'lib' prefix
8050       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8051       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8052       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8053         # It is most probably a Windows format PATH printed by
8054         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8055         # path with ; separators, and with drive letters. We can handle the
8056         # drive letters (cygwin fileutils understands them), so leave them,
8057         # especially as we might pass files found there to a mingw objdump,
8058         # which wouldn't understand a cygwinified path. Ahh.
8059         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8060       else
8061         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8062       fi
8063       ;;
8064     pw32*)
8065       # pw32 DLLs use 'pw' prefix rather than 'lib'
8066       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8067       ;;
8068     esac
8069     ;;
8070
8071   *)
8072     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8073     ;;
8074   esac
8075   dynamic_linker='Win32 ld.exe'
8076   # FIXME: first we should search . and the directory the executable is in
8077   shlibpath_var=PATH
8078   ;;
8079
8080 darwin* | rhapsody*)
8081   dynamic_linker="$host_os dyld"
8082   version_type=darwin
8083   need_lib_prefix=no
8084   need_version=no
8085   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8086   soname_spec='${libname}${release}${major}$shared_ext'
8087   shlibpath_overrides_runpath=yes
8088   shlibpath_var=DYLD_LIBRARY_PATH
8089   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8090
8091   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8092   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8093   ;;
8094
8095 dgux*)
8096   version_type=linux
8097   need_lib_prefix=no
8098   need_version=no
8099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8100   soname_spec='${libname}${release}${shared_ext}$major'
8101   shlibpath_var=LD_LIBRARY_PATH
8102   ;;
8103
8104 freebsd1*)
8105   dynamic_linker=no
8106   ;;
8107
8108 freebsd* | dragonfly*)
8109   # DragonFly does not have aout.  When/if they implement a new
8110   # versioning mechanism, adjust this.
8111   if test -x /usr/bin/objformat; then
8112     objformat=`/usr/bin/objformat`
8113   else
8114     case $host_os in
8115     freebsd[123]*) objformat=aout ;;
8116     *) objformat=elf ;;
8117     esac
8118   fi
8119   version_type=freebsd-$objformat
8120   case $version_type in
8121     freebsd-elf*)
8122       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8123       need_version=no
8124       need_lib_prefix=no
8125       ;;
8126     freebsd-*)
8127       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8128       need_version=yes
8129       ;;
8130   esac
8131   shlibpath_var=LD_LIBRARY_PATH
8132   case $host_os in
8133   freebsd2*)
8134     shlibpath_overrides_runpath=yes
8135     ;;
8136   freebsd3.[01]* | freebsdelf3.[01]*)
8137     shlibpath_overrides_runpath=yes
8138     hardcode_into_libs=yes
8139     ;;
8140   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8141   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8142     shlibpath_overrides_runpath=no
8143     hardcode_into_libs=yes
8144     ;;
8145   *) # from 4.6 on, and DragonFly
8146     shlibpath_overrides_runpath=yes
8147     hardcode_into_libs=yes
8148     ;;
8149   esac
8150   ;;
8151
8152 gnu*)
8153   version_type=linux
8154   need_lib_prefix=no
8155   need_version=no
8156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8157   soname_spec='${libname}${release}${shared_ext}$major'
8158   shlibpath_var=LD_LIBRARY_PATH
8159   hardcode_into_libs=yes
8160   ;;
8161
8162 hpux9* | hpux10* | hpux11*)
8163   # Give a soname corresponding to the major version so that dld.sl refuses to
8164   # link against other versions.
8165   version_type=sunos
8166   need_lib_prefix=no
8167   need_version=no
8168   case $host_cpu in
8169   ia64*)
8170     shrext_cmds='.so'
8171     hardcode_into_libs=yes
8172     dynamic_linker="$host_os dld.so"
8173     shlibpath_var=LD_LIBRARY_PATH
8174     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8176     soname_spec='${libname}${release}${shared_ext}$major'
8177     if test "X$HPUX_IA64_MODE" = X32; then
8178       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8179     else
8180       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8181     fi
8182     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8183     ;;
8184   hppa*64*)
8185     shrext_cmds='.sl'
8186     hardcode_into_libs=yes
8187     dynamic_linker="$host_os dld.sl"
8188     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8189     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191     soname_spec='${libname}${release}${shared_ext}$major'
8192     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8193     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8194     ;;
8195   *)
8196     shrext_cmds='.sl'
8197     dynamic_linker="$host_os dld.sl"
8198     shlibpath_var=SHLIB_PATH
8199     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8201     soname_spec='${libname}${release}${shared_ext}$major'
8202     ;;
8203   esac
8204   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8205   postinstall_cmds='chmod 555 $lib'
8206   ;;
8207
8208 interix[3-9]*)
8209   version_type=linux
8210   need_lib_prefix=no
8211   need_version=no
8212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8213   soname_spec='${libname}${release}${shared_ext}$major'
8214   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8215   shlibpath_var=LD_LIBRARY_PATH
8216   shlibpath_overrides_runpath=no
8217   hardcode_into_libs=yes
8218   ;;
8219
8220 irix5* | irix6* | nonstopux*)
8221   case $host_os in
8222     nonstopux*) version_type=nonstopux ;;
8223     *)
8224         if test "$lt_cv_prog_gnu_ld" = yes; then
8225                 version_type=linux
8226         else
8227                 version_type=irix
8228         fi ;;
8229   esac
8230   need_lib_prefix=no
8231   need_version=no
8232   soname_spec='${libname}${release}${shared_ext}$major'
8233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8234   case $host_os in
8235   irix5* | nonstopux*)
8236     libsuff= shlibsuff=
8237     ;;
8238   *)
8239     case $LD in # libtool.m4 will add one of these switches to LD
8240     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8241       libsuff= shlibsuff= libmagic=32-bit;;
8242     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8243       libsuff=32 shlibsuff=N32 libmagic=N32;;
8244     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8245       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8246     *) libsuff= shlibsuff= libmagic=never-match;;
8247     esac
8248     ;;
8249   esac
8250   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8251   shlibpath_overrides_runpath=no
8252   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8253   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8254   hardcode_into_libs=yes
8255   ;;
8256
8257 # No shared lib support for Linux oldld, aout, or coff.
8258 linux*oldld* | linux*aout* | linux*coff*)
8259   dynamic_linker=no
8260   ;;
8261
8262 # This must be Linux ELF.
8263 linux* | k*bsd*-gnu)
8264   version_type=linux
8265   need_lib_prefix=no
8266   need_version=no
8267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268   soname_spec='${libname}${release}${shared_ext}$major'
8269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8270   shlibpath_var=LD_LIBRARY_PATH
8271   shlibpath_overrides_runpath=no
8272   # Some binutils ld are patched to set DT_RUNPATH
8273   save_LDFLAGS=$LDFLAGS
8274   save_libdir=$libdir
8275   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8276        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8277   if test x$gcc_no_link = xyes; then
8278   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8280    { (exit 1); exit 1; }; }
8281 fi
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288
8289 int
8290 main ()
8291 {
8292
8293   ;
8294   return 0;
8295 }
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } &&
8306          { ac_try='test -z "$ac_c_werror_flag"
8307                          || test ! -s conftest.err'
8308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309   (eval $ac_try) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; } &&
8313          { ac_try='test -s conftest$ac_exeext'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8320   shlibpath_overrides_runpath=yes
8321 fi
8322
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 fi
8328 rm -f conftest.err conftest.$ac_objext \
8329       conftest$ac_exeext conftest.$ac_ext
8330   LDFLAGS=$save_LDFLAGS
8331   libdir=$save_libdir
8332
8333   # This implies no fast_install, which is unacceptable.
8334   # Some rework will be needed to allow for fast_install
8335   # before this can be enabled.
8336   hardcode_into_libs=yes
8337
8338   # Append ld.so.conf contents to the search path
8339   if test -f /etc/ld.so.conf; then
8340     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8341     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8342   fi
8343
8344   # We used to test for /lib/ld.so.1 and disable shared libraries on
8345   # powerpc, because MkLinux only supported shared libraries with the
8346   # GNU dynamic linker.  Since this was broken with cross compilers,
8347   # most powerpc-linux boxes support dynamic linking these days and
8348   # people can always --disable-shared, the test was removed, and we
8349   # assume the GNU/Linux dynamic linker is in use.
8350   dynamic_linker='GNU/Linux ld.so'
8351   ;;
8352
8353 netbsd*)
8354   version_type=sunos
8355   need_lib_prefix=no
8356   need_version=no
8357   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8359     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8360     dynamic_linker='NetBSD (a.out) ld.so'
8361   else
8362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8363     soname_spec='${libname}${release}${shared_ext}$major'
8364     dynamic_linker='NetBSD ld.elf_so'
8365   fi
8366   shlibpath_var=LD_LIBRARY_PATH
8367   shlibpath_overrides_runpath=yes
8368   hardcode_into_libs=yes
8369   ;;
8370
8371 newsos6)
8372   version_type=linux
8373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374   shlibpath_var=LD_LIBRARY_PATH
8375   shlibpath_overrides_runpath=yes
8376   ;;
8377
8378 *nto* | *qnx*)
8379   version_type=qnx
8380   need_lib_prefix=no
8381   need_version=no
8382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383   soname_spec='${libname}${release}${shared_ext}$major'
8384   shlibpath_var=LD_LIBRARY_PATH
8385   shlibpath_overrides_runpath=no
8386   hardcode_into_libs=yes
8387   dynamic_linker='ldqnx.so'
8388   ;;
8389
8390 openbsd*)
8391   version_type=sunos
8392   sys_lib_dlsearch_path_spec="/usr/lib"
8393   need_lib_prefix=no
8394   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8395   case $host_os in
8396     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8397     *)                          need_version=no  ;;
8398   esac
8399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8400   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8401   shlibpath_var=LD_LIBRARY_PATH
8402   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8403     case $host_os in
8404       openbsd2.[89] | openbsd2.[89].*)
8405         shlibpath_overrides_runpath=no
8406         ;;
8407       *)
8408         shlibpath_overrides_runpath=yes
8409         ;;
8410       esac
8411   else
8412     shlibpath_overrides_runpath=yes
8413   fi
8414   ;;
8415
8416 os2*)
8417   libname_spec='$name'
8418   shrext_cmds=".dll"
8419   need_lib_prefix=no
8420   library_names_spec='$libname${shared_ext} $libname.a'
8421   dynamic_linker='OS/2 ld.exe'
8422   shlibpath_var=LIBPATH
8423   ;;
8424
8425 osf3* | osf4* | osf5*)
8426   version_type=osf
8427   need_lib_prefix=no
8428   need_version=no
8429   soname_spec='${libname}${release}${shared_ext}$major'
8430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8431   shlibpath_var=LD_LIBRARY_PATH
8432   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8433   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8434   ;;
8435
8436 rdos*)
8437   dynamic_linker=no
8438   ;;
8439
8440 solaris*)
8441   version_type=linux
8442   need_lib_prefix=no
8443   need_version=no
8444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445   soname_spec='${libname}${release}${shared_ext}$major'
8446   shlibpath_var=LD_LIBRARY_PATH
8447   shlibpath_overrides_runpath=yes
8448   hardcode_into_libs=yes
8449   # ldd complains unless libraries are executable
8450   postinstall_cmds='chmod +x $lib'
8451   ;;
8452
8453 sunos4*)
8454   version_type=sunos
8455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8456   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8457   shlibpath_var=LD_LIBRARY_PATH
8458   shlibpath_overrides_runpath=yes
8459   if test "$with_gnu_ld" = yes; then
8460     need_lib_prefix=no
8461   fi
8462   need_version=yes
8463   ;;
8464
8465 sysv4 | sysv4.3*)
8466   version_type=linux
8467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8468   soname_spec='${libname}${release}${shared_ext}$major'
8469   shlibpath_var=LD_LIBRARY_PATH
8470   case $host_vendor in
8471     sni)
8472       shlibpath_overrides_runpath=no
8473       need_lib_prefix=no
8474       runpath_var=LD_RUN_PATH
8475       ;;
8476     siemens)
8477       need_lib_prefix=no
8478       ;;
8479     motorola)
8480       need_lib_prefix=no
8481       need_version=no
8482       shlibpath_overrides_runpath=no
8483       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8484       ;;
8485   esac
8486   ;;
8487
8488 sysv4*MP*)
8489   if test -d /usr/nec ;then
8490     version_type=linux
8491     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8492     soname_spec='$libname${shared_ext}.$major'
8493     shlibpath_var=LD_LIBRARY_PATH
8494   fi
8495   ;;
8496
8497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8498   version_type=freebsd-elf
8499   need_lib_prefix=no
8500   need_version=no
8501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8502   soname_spec='${libname}${release}${shared_ext}$major'
8503   shlibpath_var=LD_LIBRARY_PATH
8504   shlibpath_overrides_runpath=yes
8505   hardcode_into_libs=yes
8506   if test "$with_gnu_ld" = yes; then
8507     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8508   else
8509     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8510     case $host_os in
8511       sco3.2v5*)
8512         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8513         ;;
8514     esac
8515   fi
8516   sys_lib_dlsearch_path_spec='/usr/lib'
8517   ;;
8518
8519 tpf*)
8520   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8521   version_type=linux
8522   need_lib_prefix=no
8523   need_version=no
8524   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525   shlibpath_var=LD_LIBRARY_PATH
8526   shlibpath_overrides_runpath=no
8527   hardcode_into_libs=yes
8528   ;;
8529
8530 uts4*)
8531   version_type=linux
8532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8533   soname_spec='${libname}${release}${shared_ext}$major'
8534   shlibpath_var=LD_LIBRARY_PATH
8535   ;;
8536
8537 *)
8538   dynamic_linker=no
8539   ;;
8540 esac
8541 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8542 echo "${ECHO_T}$dynamic_linker" >&6
8543 test "$dynamic_linker" = no && can_build_shared=no
8544
8545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8546 if test "$GCC" = yes; then
8547   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8548 fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8638 hardcode_action=
8639 if test -n "$hardcode_libdir_flag_spec" ||
8640    test -n "$runpath_var" ||
8641    test "X$hardcode_automatic" = "Xyes" ; then
8642
8643   # We can hardcode non-existent directories.
8644   if test "$hardcode_direct" != no &&
8645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8646      # have to relink, otherwise we might link with an installed library
8647      # when we should be linking with a yet-to-be-installed one
8648      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8649      test "$hardcode_minus_L" != no; then
8650     # Linking always hardcodes the temporary library directory.
8651     hardcode_action=relink
8652   else
8653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8654     hardcode_action=immediate
8655   fi
8656 else
8657   # We cannot hardcode anything, or else we can only hardcode existing
8658   # directories.
8659   hardcode_action=unsupported
8660 fi
8661 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8662 echo "${ECHO_T}$hardcode_action" >&6
8663
8664 if test "$hardcode_action" = relink ||
8665    test "$inherit_rpath" = yes; then
8666   # Fast installation is not supported
8667   enable_fast_install=no
8668 elif test "$shlibpath_overrides_runpath" = yes ||
8669      test "$enable_shared" = no; then
8670   # Fast installation is not necessary
8671   enable_fast_install=needless
8672 fi
8673
8674
8675
8676
8677
8678
8679   if test "x$enable_dlopen" != xyes; then
8680   enable_dlopen=unknown
8681   enable_dlopen_self=unknown
8682   enable_dlopen_self_static=unknown
8683 else
8684   lt_cv_dlopen=no
8685   lt_cv_dlopen_libs=
8686
8687   case $host_os in
8688   beos*)
8689     lt_cv_dlopen="load_add_on"
8690     lt_cv_dlopen_libs=
8691     lt_cv_dlopen_self=yes
8692     ;;
8693
8694   mingw* | pw32*)
8695     lt_cv_dlopen="LoadLibrary"
8696     lt_cv_dlopen_libs=
8697     ;;
8698
8699   cygwin*)
8700     lt_cv_dlopen="dlopen"
8701     lt_cv_dlopen_libs=
8702     ;;
8703
8704   darwin*)
8705   # if libdl is installed we need to link against it
8706     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711   ac_check_lib_save_LIBS=$LIBS
8712 LIBS="-ldl  $LIBS"
8713 if test x$gcc_no_link = xyes; then
8714   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8716    { (exit 1); exit 1; }; }
8717 fi
8718 cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724
8725 /* Override any gcc2 internal prototype to avoid an error.  */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 /* We use char because int might match the return type of a gcc2
8730    builtin and then its argument prototype would still apply.  */
8731 char dlopen ();
8732 int
8733 main ()
8734 {
8735 dlopen ();
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8742   (eval $ac_link) 2>conftest.er1
8743   ac_status=$?
8744   grep -v '^ *+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } &&
8749          { ac_try='test -z "$ac_c_werror_flag"
8750                          || test ! -s conftest.err'
8751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752   (eval $ac_try) 2>&5
8753   ac_status=$?
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); }; } &&
8756          { ac_try='test -s conftest$ac_exeext'
8757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758   (eval $ac_try) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; }; then
8762   ac_cv_lib_dl_dlopen=yes
8763 else
8764   echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_cv_lib_dl_dlopen=no
8768 fi
8769 rm -f conftest.err conftest.$ac_objext \
8770       conftest$ac_exeext conftest.$ac_ext
8771 LIBS=$ac_check_lib_save_LIBS
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8774 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8775 if test $ac_cv_lib_dl_dlopen = yes; then
8776   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8777 else
8778
8779     lt_cv_dlopen="dyld"
8780     lt_cv_dlopen_libs=
8781     lt_cv_dlopen_self=yes
8782
8783 fi
8784
8785     ;;
8786
8787   *)
8788     echo "$as_me:$LINENO: checking for shl_load" >&5
8789 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8790 if test "${ac_cv_func_shl_load+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   if test x$gcc_no_link = xyes; then
8794   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8795 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8796    { (exit 1); exit 1; }; }
8797 fi
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8806 #define shl_load innocuous_shl_load
8807
8808 /* System header to define __stub macros and hopefully few prototypes,
8809     which can conflict with char shl_load (); below.
8810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811     <limits.h> exists even on freestanding compilers.  */
8812
8813 #ifdef __STDC__
8814 # include <limits.h>
8815 #else
8816 # include <assert.h>
8817 #endif
8818
8819 #undef shl_load
8820
8821 /* Override any gcc2 internal prototype to avoid an error.  */
8822 #ifdef __cplusplus
8823 extern "C"
8824 {
8825 #endif
8826 /* We use char because int might match the return type of a gcc2
8827    builtin and then its argument prototype would still apply.  */
8828 char shl_load ();
8829 /* The GNU C library defines this for functions which it implements
8830     to always fail with ENOSYS.  Some functions are actually named
8831     something starting with __ and the normal name is an alias.  */
8832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8833 choke me
8834 #else
8835 char (*f) () = shl_load;
8836 #endif
8837 #ifdef __cplusplus
8838 }
8839 #endif
8840
8841 int
8842 main ()
8843 {
8844 return f != shl_load;
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851   (eval $ac_link) 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -z "$ac_c_werror_flag"
8859                          || test ! -s conftest.err'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_func_shl_load=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_cv_func_shl_load=no
8877 fi
8878 rm -f conftest.err conftest.$ac_objext \
8879       conftest$ac_exeext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8883 if test $ac_cv_func_shl_load = yes; then
8884   lt_cv_dlopen="shl_load"
8885 else
8886   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8889   echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891   ac_check_lib_save_LIBS=$LIBS
8892 LIBS="-ldld  $LIBS"
8893 if test x$gcc_no_link = xyes; then
8894   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8896    { (exit 1); exit 1; }; }
8897 fi
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910    builtin and then its argument prototype would still apply.  */
8911 char shl_load ();
8912 int
8913 main ()
8914 {
8915 shl_load ();
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag"
8930                          || test ! -s conftest.err'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_cv_lib_dld_shl_load=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_lib_dld_shl_load=no
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950       conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8952 fi
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8954 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8955 if test $ac_cv_lib_dld_shl_load = yes; then
8956   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8957 else
8958   echo "$as_me:$LINENO: checking for dlopen" >&5
8959 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8960 if test "${ac_cv_func_dlopen+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   if test x$gcc_no_link = xyes; then
8964   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8966    { (exit 1); exit 1; }; }
8967 fi
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h.  */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h.  */
8974 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8976 #define dlopen innocuous_dlopen
8977
8978 /* System header to define __stub macros and hopefully few prototypes,
8979     which can conflict with char dlopen (); below.
8980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8981     <limits.h> exists even on freestanding compilers.  */
8982
8983 #ifdef __STDC__
8984 # include <limits.h>
8985 #else
8986 # include <assert.h>
8987 #endif
8988
8989 #undef dlopen
8990
8991 /* Override any gcc2 internal prototype to avoid an error.  */
8992 #ifdef __cplusplus
8993 extern "C"
8994 {
8995 #endif
8996 /* We use char because int might match the return type of a gcc2
8997    builtin and then its argument prototype would still apply.  */
8998 char dlopen ();
8999 /* The GNU C library defines this for functions which it implements
9000     to always fail with ENOSYS.  Some functions are actually named
9001     something starting with __ and the normal name is an alias.  */
9002 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9003 choke me
9004 #else
9005 char (*f) () = dlopen;
9006 #endif
9007 #ifdef __cplusplus
9008 }
9009 #endif
9010
9011 int
9012 main ()
9013 {
9014 return f != dlopen;
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9021   (eval $ac_link) 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -z "$ac_c_werror_flag"
9029                          || test ! -s conftest.err'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest$ac_exeext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   ac_cv_func_dlopen=yes
9042 else
9043   echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046 ac_cv_func_dlopen=no
9047 fi
9048 rm -f conftest.err conftest.$ac_objext \
9049       conftest$ac_exeext conftest.$ac_ext
9050 fi
9051 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9052 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9053 if test $ac_cv_func_dlopen = yes; then
9054   lt_cv_dlopen="dlopen"
9055 else
9056   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9057 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9058 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   ac_check_lib_save_LIBS=$LIBS
9062 LIBS="-ldl  $LIBS"
9063 if test x$gcc_no_link = xyes; then
9064   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9066    { (exit 1); exit 1; }; }
9067 fi
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074
9075 /* Override any gcc2 internal prototype to avoid an error.  */
9076 #ifdef __cplusplus
9077 extern "C"
9078 #endif
9079 /* We use char because int might match the return type of a gcc2
9080    builtin and then its argument prototype would still apply.  */
9081 char dlopen ();
9082 int
9083 main ()
9084 {
9085 dlopen ();
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092   (eval $ac_link) 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } &&
9099          { ac_try='test -z "$ac_c_werror_flag"
9100                          || test ! -s conftest.err'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; } &&
9106          { ac_try='test -s conftest$ac_exeext'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; }; then
9112   ac_cv_lib_dl_dlopen=yes
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_cv_lib_dl_dlopen=no
9118 fi
9119 rm -f conftest.err conftest.$ac_objext \
9120       conftest$ac_exeext conftest.$ac_ext
9121 LIBS=$ac_check_lib_save_LIBS
9122 fi
9123 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9124 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9125 if test $ac_cv_lib_dl_dlopen = yes; then
9126   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9127 else
9128   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9129 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9130 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9131   echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133   ac_check_lib_save_LIBS=$LIBS
9134 LIBS="-lsvld  $LIBS"
9135 if test x$gcc_no_link = xyes; then
9136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9138    { (exit 1); exit 1; }; }
9139 fi
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146
9147 /* Override any gcc2 internal prototype to avoid an error.  */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 /* We use char because int might match the return type of a gcc2
9152    builtin and then its argument prototype would still apply.  */
9153 char dlopen ();
9154 int
9155 main ()
9156 {
9157 dlopen ();
9158   ;
9159   return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164   (eval $ac_link) 2>conftest.er1
9165   ac_status=$?
9166   grep -v '^ *+' conftest.er1 >conftest.err
9167   rm -f conftest.er1
9168   cat conftest.err >&5
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } &&
9171          { ac_try='test -z "$ac_c_werror_flag"
9172                          || test ! -s conftest.err'
9173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174   (eval $ac_try) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; } &&
9178          { ac_try='test -s conftest$ac_exeext'
9179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180   (eval $ac_try) 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   ac_cv_lib_svld_dlopen=yes
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 ac_cv_lib_svld_dlopen=no
9190 fi
9191 rm -f conftest.err conftest.$ac_objext \
9192       conftest$ac_exeext conftest.$ac_ext
9193 LIBS=$ac_check_lib_save_LIBS
9194 fi
9195 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9196 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9197 if test $ac_cv_lib_svld_dlopen = yes; then
9198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9199 else
9200   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9201 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-ldld  $LIBS"
9207 if test x$gcc_no_link = xyes; then
9208   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9210    { (exit 1); exit 1; }; }
9211 fi
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 /* Override any gcc2 internal prototype to avoid an error.  */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 /* We use char because int might match the return type of a gcc2
9224    builtin and then its argument prototype would still apply.  */
9225 char dld_link ();
9226 int
9227 main ()
9228 {
9229 dld_link ();
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"
9244                          || test ! -s conftest.err'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest$ac_exeext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_lib_dld_dld_link=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_cv_lib_dld_dld_link=no
9262 fi
9263 rm -f conftest.err conftest.$ac_objext \
9264       conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9266 fi
9267 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9269 if test $ac_cv_lib_dld_dld_link = yes; then
9270   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9271 fi
9272
9273
9274 fi
9275
9276
9277 fi
9278
9279
9280 fi
9281
9282
9283 fi
9284
9285
9286 fi
9287
9288     ;;
9289   esac
9290
9291   if test "x$lt_cv_dlopen" != xno; then
9292     enable_dlopen=yes
9293   else
9294     enable_dlopen=no
9295   fi
9296
9297   case $lt_cv_dlopen in
9298   dlopen)
9299     save_CPPFLAGS="$CPPFLAGS"
9300     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9301
9302     save_LDFLAGS="$LDFLAGS"
9303     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9304
9305     save_LIBS="$LIBS"
9306     LIBS="$lt_cv_dlopen_libs $LIBS"
9307
9308     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9309 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9310 if test "${lt_cv_dlopen_self+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313           if test "$cross_compiling" = yes; then :
9314   lt_cv_dlopen_self=cross
9315 else
9316   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9317   lt_status=$lt_dlunknown
9318   cat > conftest.$ac_ext <<_LT_EOF
9319 #line 9319 "configure"
9320 #include "confdefs.h"
9321
9322 #if HAVE_DLFCN_H
9323 #include <dlfcn.h>
9324 #endif
9325
9326 #include <stdio.h>
9327
9328 #ifdef RTLD_GLOBAL
9329 #  define LT_DLGLOBAL           RTLD_GLOBAL
9330 #else
9331 #  ifdef DL_GLOBAL
9332 #    define LT_DLGLOBAL         DL_GLOBAL
9333 #  else
9334 #    define LT_DLGLOBAL         0
9335 #  endif
9336 #endif
9337
9338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9339    find out it does not work in some platform. */
9340 #ifndef LT_DLLAZY_OR_NOW
9341 #  ifdef RTLD_LAZY
9342 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9343 #  else
9344 #    ifdef DL_LAZY
9345 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9346 #    else
9347 #      ifdef RTLD_NOW
9348 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9349 #      else
9350 #        ifdef DL_NOW
9351 #          define LT_DLLAZY_OR_NOW      DL_NOW
9352 #        else
9353 #          define LT_DLLAZY_OR_NOW      0
9354 #        endif
9355 #      endif
9356 #    endif
9357 #  endif
9358 #endif
9359
9360 #ifdef __cplusplus
9361 extern "C" void exit (int);
9362 #endif
9363
9364 void fnord() { int i=42;}
9365 int main ()
9366 {
9367   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9368   int status = $lt_dlunknown;
9369
9370   if (self)
9371     {
9372       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9373       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9374       /* dlclose (self); */
9375     }
9376   else
9377     puts (dlerror ());
9378
9379     exit (status);
9380 }
9381 _LT_EOF
9382   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383   (eval $ac_link) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9387     (./conftest; exit; ) >&5 2>/dev/null
9388     lt_status=$?
9389     case x$lt_status in
9390       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9391       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9392       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9393     esac
9394   else :
9395     # compilation failed
9396     lt_cv_dlopen_self=no
9397   fi
9398 fi
9399 rm -fr conftest*
9400
9401
9402 fi
9403 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9404 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9405
9406     if test "x$lt_cv_dlopen_self" = xyes; then
9407       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9408       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9409 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9410 if test "${lt_cv_dlopen_self_static+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413           if test "$cross_compiling" = yes; then :
9414   lt_cv_dlopen_self_static=cross
9415 else
9416   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9417   lt_status=$lt_dlunknown
9418   cat > conftest.$ac_ext <<_LT_EOF
9419 #line 9419 "configure"
9420 #include "confdefs.h"
9421
9422 #if HAVE_DLFCN_H
9423 #include <dlfcn.h>
9424 #endif
9425
9426 #include <stdio.h>
9427
9428 #ifdef RTLD_GLOBAL
9429 #  define LT_DLGLOBAL           RTLD_GLOBAL
9430 #else
9431 #  ifdef DL_GLOBAL
9432 #    define LT_DLGLOBAL         DL_GLOBAL
9433 #  else
9434 #    define LT_DLGLOBAL         0
9435 #  endif
9436 #endif
9437
9438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9439    find out it does not work in some platform. */
9440 #ifndef LT_DLLAZY_OR_NOW
9441 #  ifdef RTLD_LAZY
9442 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9443 #  else
9444 #    ifdef DL_LAZY
9445 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9446 #    else
9447 #      ifdef RTLD_NOW
9448 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9449 #      else
9450 #        ifdef DL_NOW
9451 #          define LT_DLLAZY_OR_NOW      DL_NOW
9452 #        else
9453 #          define LT_DLLAZY_OR_NOW      0
9454 #        endif
9455 #      endif
9456 #    endif
9457 #  endif
9458 #endif
9459
9460 #ifdef __cplusplus
9461 extern "C" void exit (int);
9462 #endif
9463
9464 void fnord() { int i=42;}
9465 int main ()
9466 {
9467   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9468   int status = $lt_dlunknown;
9469
9470   if (self)
9471     {
9472       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9473       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9474       /* dlclose (self); */
9475     }
9476   else
9477     puts (dlerror ());
9478
9479     exit (status);
9480 }
9481 _LT_EOF
9482   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483   (eval $ac_link) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9487     (./conftest; exit; ) >&5 2>/dev/null
9488     lt_status=$?
9489     case x$lt_status in
9490       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9491       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9492       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9493     esac
9494   else :
9495     # compilation failed
9496     lt_cv_dlopen_self_static=no
9497   fi
9498 fi
9499 rm -fr conftest*
9500
9501
9502 fi
9503 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9504 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9505     fi
9506
9507     CPPFLAGS="$save_CPPFLAGS"
9508     LDFLAGS="$save_LDFLAGS"
9509     LIBS="$save_LIBS"
9510     ;;
9511   esac
9512
9513   case $lt_cv_dlopen_self in
9514   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9515   *) enable_dlopen_self=unknown ;;
9516   esac
9517
9518   case $lt_cv_dlopen_self_static in
9519   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9520   *) enable_dlopen_self_static=unknown ;;
9521   esac
9522 fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540 striplib=
9541 old_striplib=
9542 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9543 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9545   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9546   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9547   echo "$as_me:$LINENO: result: yes" >&5
9548 echo "${ECHO_T}yes" >&6
9549 else
9550 # FIXME - insert some real tests, host_os isn't really good enough
9551   case $host_os in
9552   darwin*)
9553     if test -n "$STRIP" ; then
9554       striplib="$STRIP -x"
9555       old_striplib="$STRIP -S"
9556       echo "$as_me:$LINENO: result: yes" >&5
9557 echo "${ECHO_T}yes" >&6
9558     else
9559       echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6
9561     fi
9562     ;;
9563   *)
9564     echo "$as_me:$LINENO: result: no" >&5
9565 echo "${ECHO_T}no" >&6
9566     ;;
9567   esac
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581   # Report which library types will actually be built
9582   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9584   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9585 echo "${ECHO_T}$can_build_shared" >&6
9586
9587   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9589   test "$can_build_shared" = "no" && enable_shared=no
9590
9591   # On AIX, shared libraries and static libraries use the same namespace, and
9592   # are all built from PIC.
9593   case $host_os in
9594   aix3*)
9595     test "$enable_shared" = yes && enable_static=no
9596     if test -n "$RANLIB"; then
9597       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9598       postinstall_cmds='$RANLIB $lib'
9599     fi
9600     ;;
9601
9602   aix[4-9]*)
9603     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9604       test "$enable_shared" = yes && enable_static=no
9605     fi
9606     ;;
9607   esac
9608   echo "$as_me:$LINENO: result: $enable_shared" >&5
9609 echo "${ECHO_T}$enable_shared" >&6
9610
9611   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9612 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9613   # Make sure either enable_shared or enable_static is yes.
9614   test "$enable_shared" = yes || enable_static=yes
9615   echo "$as_me:$LINENO: result: $enable_static" >&5
9616 echo "${ECHO_T}$enable_static" >&6
9617
9618
9619
9620
9621 fi
9622 ac_ext=c
9623 ac_cpp='$CPP $CPPFLAGS'
9624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9627
9628 CC="$lt_save_CC"
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642                   ac_config_commands="$ac_config_commands libtool"
9643
9644
9645
9646
9647 # Only expand once:
9648
9649
9650
9651 # Find CPP now so that any conditional tests below won't do it and
9652 # thereby make the resulting definitions conditional.
9653 ac_ext=c
9654 ac_cpp='$CPP $CPPFLAGS'
9655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9658 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9659 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9660 # On Suns, sometimes $CPP names a directory.
9661 if test -n "$CPP" && test -d "$CPP"; then
9662   CPP=
9663 fi
9664 if test -z "$CPP"; then
9665   if test "${ac_cv_prog_CPP+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668       # Double quotes because CPP needs to be expanded
9669     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9670     do
9671       ac_preproc_ok=false
9672 for ac_c_preproc_warn_flag in '' yes
9673 do
9674   # Use a header file that comes with gcc, so configuring glibc
9675   # with a fresh cross-compiler works.
9676   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677   # <limits.h> exists even on freestanding compilers.
9678   # On the NeXT, cc -E runs the code through the compiler's parser,
9679   # not just through cpp. "Syntax error" is here to catch this case.
9680   cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 #ifdef __STDC__
9687 # include <limits.h>
9688 #else
9689 # include <assert.h>
9690 #endif
9691                      Syntax error
9692 _ACEOF
9693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } >/dev/null; then
9701   if test -s conftest.err; then
9702     ac_cpp_err=$ac_c_preproc_warn_flag
9703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9704   else
9705     ac_cpp_err=
9706   fi
9707 else
9708   ac_cpp_err=yes
9709 fi
9710 if test -z "$ac_cpp_err"; then
9711   :
9712 else
9713   echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716   # Broken: fails on valid input.
9717 continue
9718 fi
9719 rm -f conftest.err conftest.$ac_ext
9720
9721   # OK, works on sane cases.  Now check whether non-existent headers
9722   # can be detected and how.
9723   cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9729 #include <ac_nonexistent.h>
9730 _ACEOF
9731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } >/dev/null; then
9739   if test -s conftest.err; then
9740     ac_cpp_err=$ac_c_preproc_warn_flag
9741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9742   else
9743     ac_cpp_err=
9744   fi
9745 else
9746   ac_cpp_err=yes
9747 fi
9748 if test -z "$ac_cpp_err"; then
9749   # Broken: success on invalid input.
9750 continue
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755   # Passes both tests.
9756 ac_preproc_ok=:
9757 break
9758 fi
9759 rm -f conftest.err conftest.$ac_ext
9760
9761 done
9762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9763 rm -f conftest.err conftest.$ac_ext
9764 if $ac_preproc_ok; then
9765   break
9766 fi
9767
9768     done
9769     ac_cv_prog_CPP=$CPP
9770
9771 fi
9772   CPP=$ac_cv_prog_CPP
9773 else
9774   ac_cv_prog_CPP=$CPP
9775 fi
9776 echo "$as_me:$LINENO: result: $CPP" >&5
9777 echo "${ECHO_T}$CPP" >&6
9778 ac_preproc_ok=false
9779 for ac_c_preproc_warn_flag in '' yes
9780 do
9781   # Use a header file that comes with gcc, so configuring glibc
9782   # with a fresh cross-compiler works.
9783   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784   # <limits.h> exists even on freestanding compilers.
9785   # On the NeXT, cc -E runs the code through the compiler's parser,
9786   # not just through cpp. "Syntax error" is here to catch this case.
9787   cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 #ifdef __STDC__
9794 # include <limits.h>
9795 #else
9796 # include <assert.h>
9797 #endif
9798                      Syntax error
9799 _ACEOF
9800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } >/dev/null; then
9808   if test -s conftest.err; then
9809     ac_cpp_err=$ac_c_preproc_warn_flag
9810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9811   else
9812     ac_cpp_err=
9813   fi
9814 else
9815   ac_cpp_err=yes
9816 fi
9817 if test -z "$ac_cpp_err"; then
9818   :
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823   # Broken: fails on valid input.
9824 continue
9825 fi
9826 rm -f conftest.err conftest.$ac_ext
9827
9828   # OK, works on sane cases.  Now check whether non-existent headers
9829   # can be detected and how.
9830   cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <ac_nonexistent.h>
9837 _ACEOF
9838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } >/dev/null; then
9846   if test -s conftest.err; then
9847     ac_cpp_err=$ac_c_preproc_warn_flag
9848     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9849   else
9850     ac_cpp_err=
9851   fi
9852 else
9853   ac_cpp_err=yes
9854 fi
9855 if test -z "$ac_cpp_err"; then
9856   # Broken: success on invalid input.
9857 continue
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862   # Passes both tests.
9863 ac_preproc_ok=:
9864 break
9865 fi
9866 rm -f conftest.err conftest.$ac_ext
9867
9868 done
9869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9870 rm -f conftest.err conftest.$ac_ext
9871 if $ac_preproc_ok; then
9872   :
9873 else
9874   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9875 echo "$as_me: error: in \`$ac_pwd':" >&2;}
9876 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9877 See \`config.log' for more details." >&5
9878 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9879 See \`config.log' for more details." >&2;}
9880    { (exit 1); exit 1; }; }; }
9881 fi
9882
9883 ac_ext=c
9884 ac_cpp='$CPP $CPPFLAGS'
9885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9888
9889
9890 if test -n "$with_cross_host"; then
9891    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9892    # may not work correctly, because the compiler may not be able to
9893    # link executables.
9894
9895    # We assume newlib.  This lets us hard-code the functions we know
9896    # we'll have.
9897    cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_MEMCPY 1
9899 _ACEOF
9900
9901    cat >>confdefs.h <<\_ACEOF
9902 #define HAVE_STRERROR 1
9903 _ACEOF
9904
9905
9906    # We ignore --with-system-zlib in this case.
9907    target_all=libzgcj.la
9908 else
9909    if test x$gcc_no_link = xyes; then
9910   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
9911     ac_cv_func_mmap_fixed_mapped=no
9912   fi
9913 fi
9914 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
9915
9916
9917 for ac_header in stdlib.h unistd.h
9918 do
9919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9921   echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 fi
9926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9928 else
9929   # Is the header compilable?
9930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938 $ac_includes_default
9939 #include <$ac_header>
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943   (eval $ac_compile) 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -z "$ac_c_werror_flag"
9951                          || test ! -s conftest.err'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; } &&
9957          { ac_try='test -s conftest.$ac_objext'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   ac_header_compiler=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 ac_header_compiler=no
9969 fi
9970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9972 echo "${ECHO_T}$ac_header_compiler" >&6
9973
9974 # Is the header present?
9975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983 #include <$ac_header>
9984 _ACEOF
9985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9987   ac_status=$?
9988   grep -v '^ *+' conftest.er1 >conftest.err
9989   rm -f conftest.er1
9990   cat conftest.err >&5
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } >/dev/null; then
9993   if test -s conftest.err; then
9994     ac_cpp_err=$ac_c_preproc_warn_flag
9995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9996   else
9997     ac_cpp_err=
9998   fi
9999 else
10000   ac_cpp_err=yes
10001 fi
10002 if test -z "$ac_cpp_err"; then
10003   ac_header_preproc=yes
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008   ac_header_preproc=no
10009 fi
10010 rm -f conftest.err conftest.$ac_ext
10011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10012 echo "${ECHO_T}$ac_header_preproc" >&6
10013
10014 # So?  What about this header?
10015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10016   yes:no: )
10017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10021     ac_header_preproc=yes
10022     ;;
10023   no:yes:* )
10024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10036     (
10037       cat <<\_ASBOX
10038 ## ------------------------------------------ ##
10039 ## Report this to the AC_PACKAGE_NAME lists.  ##
10040 ## ------------------------------------------ ##
10041 _ASBOX
10042     ) |
10043       sed "s/^/$as_me: WARNING:     /" >&2
10044     ;;
10045 esac
10046 echo "$as_me:$LINENO: checking for $ac_header" >&5
10047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   eval "$as_ac_Header=\$ac_header_preproc"
10052 fi
10053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10055
10056 fi
10057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10058   cat >>confdefs.h <<_ACEOF
10059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10060 _ACEOF
10061
10062 fi
10063
10064 done
10065
10066
10067 for ac_func in getpagesize
10068 do
10069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10070 echo "$as_me:$LINENO: checking for $ac_func" >&5
10071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10072 if eval "test \"\${$as_ac_var+set}\" = set"; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   if test x$gcc_no_link = xyes; then
10076   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10078    { (exit 1); exit 1; }; }
10079 fi
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10088 #define $ac_func innocuous_$ac_func
10089
10090 /* System header to define __stub macros and hopefully few prototypes,
10091     which can conflict with char $ac_func (); below.
10092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10093     <limits.h> exists even on freestanding compilers.  */
10094
10095 #ifdef __STDC__
10096 # include <limits.h>
10097 #else
10098 # include <assert.h>
10099 #endif
10100
10101 #undef $ac_func
10102
10103 /* Override any gcc2 internal prototype to avoid an error.  */
10104 #ifdef __cplusplus
10105 extern "C"
10106 {
10107 #endif
10108 /* We use char because int might match the return type of a gcc2
10109    builtin and then its argument prototype would still apply.  */
10110 char $ac_func ();
10111 /* The GNU C library defines this for functions which it implements
10112     to always fail with ENOSYS.  Some functions are actually named
10113     something starting with __ and the normal name is an alias.  */
10114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10115 choke me
10116 #else
10117 char (*f) () = $ac_func;
10118 #endif
10119 #ifdef __cplusplus
10120 }
10121 #endif
10122
10123 int
10124 main ()
10125 {
10126 return f != $ac_func;
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133   (eval $ac_link) 2>conftest.er1
10134   ac_status=$?
10135   grep -v '^ *+' conftest.er1 >conftest.err
10136   rm -f conftest.er1
10137   cat conftest.err >&5
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } &&
10140          { ac_try='test -z "$ac_c_werror_flag"
10141                          || test ! -s conftest.err'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; } &&
10147          { ac_try='test -s conftest$ac_exeext'
10148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149   (eval $ac_try) 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; }; then
10153   eval "$as_ac_var=yes"
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 eval "$as_ac_var=no"
10159 fi
10160 rm -f conftest.err conftest.$ac_objext \
10161       conftest$ac_exeext conftest.$ac_ext
10162 fi
10163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10165 if test `eval echo '${'$as_ac_var'}'` = yes; then
10166   cat >>confdefs.h <<_ACEOF
10167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10168 _ACEOF
10169
10170 fi
10171 done
10172
10173 echo "$as_me:$LINENO: checking for working mmap" >&5
10174 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10175 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   if test "$cross_compiling" = yes; then
10179   ac_cv_func_mmap_fixed_mapped=no
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187 $ac_includes_default
10188 /* malloc might have been renamed as rpl_malloc. */
10189 #undef malloc
10190
10191 /* Thanks to Mike Haertel and Jim Avera for this test.
10192    Here is a matrix of mmap possibilities:
10193         mmap private not fixed
10194         mmap private fixed at somewhere currently unmapped
10195         mmap private fixed at somewhere already mapped
10196         mmap shared not fixed
10197         mmap shared fixed at somewhere currently unmapped
10198         mmap shared fixed at somewhere already mapped
10199    For private mappings, we should verify that changes cannot be read()
10200    back from the file, nor mmap's back from the file at a different
10201    address.  (There have been systems where private was not correctly
10202    implemented like the infamous i386 svr4.0, and systems where the
10203    VM page cache was not coherent with the file system buffer cache
10204    like early versions of FreeBSD and possibly contemporary NetBSD.)
10205    For shared mappings, we should conversely verify that changes get
10206    propagated back to all the places they're supposed to be.
10207
10208    Grep wants private fixed already mapped.
10209    The main things grep needs to know about mmap are:
10210    * does it exist and is it safe to write into the mmap'd area
10211    * how to use it (BSD variants)  */
10212
10213 #include <fcntl.h>
10214 #include <sys/mman.h>
10215
10216 #if !STDC_HEADERS && !HAVE_STDLIB_H
10217 char *malloc ();
10218 #endif
10219
10220 /* This mess was copied from the GNU getpagesize.h.  */
10221 #if !HAVE_GETPAGESIZE
10222 /* Assume that all systems that can run configure have sys/param.h.  */
10223 # if !HAVE_SYS_PARAM_H
10224 #  define HAVE_SYS_PARAM_H 1
10225 # endif
10226
10227 # ifdef _SC_PAGESIZE
10228 #  define getpagesize() sysconf(_SC_PAGESIZE)
10229 # else /* no _SC_PAGESIZE */
10230 #  if HAVE_SYS_PARAM_H
10231 #   include <sys/param.h>
10232 #   ifdef EXEC_PAGESIZE
10233 #    define getpagesize() EXEC_PAGESIZE
10234 #   else /* no EXEC_PAGESIZE */
10235 #    ifdef NBPG
10236 #     define getpagesize() NBPG * CLSIZE
10237 #     ifndef CLSIZE
10238 #      define CLSIZE 1
10239 #     endif /* no CLSIZE */
10240 #    else /* no NBPG */
10241 #     ifdef NBPC
10242 #      define getpagesize() NBPC
10243 #     else /* no NBPC */
10244 #      ifdef PAGESIZE
10245 #       define getpagesize() PAGESIZE
10246 #      endif /* PAGESIZE */
10247 #     endif /* no NBPC */
10248 #    endif /* no NBPG */
10249 #   endif /* no EXEC_PAGESIZE */
10250 #  else /* no HAVE_SYS_PARAM_H */
10251 #   define getpagesize() 8192   /* punt totally */
10252 #  endif /* no HAVE_SYS_PARAM_H */
10253 # endif /* no _SC_PAGESIZE */
10254
10255 #endif /* no HAVE_GETPAGESIZE */
10256
10257 int
10258 main ()
10259 {
10260   char *data, *data2, *data3;
10261   int i, pagesize;
10262   int fd;
10263
10264   pagesize = getpagesize ();
10265
10266   /* First, make a file with some known garbage in it. */
10267   data = (char *) malloc (pagesize);
10268   if (!data)
10269     exit (1);
10270   for (i = 0; i < pagesize; ++i)
10271     *(data + i) = rand ();
10272   umask (0);
10273   fd = creat ("conftest.mmap", 0600);
10274   if (fd < 0)
10275     exit (1);
10276   if (write (fd, data, pagesize) != pagesize)
10277     exit (1);
10278   close (fd);
10279
10280   /* Next, try to mmap the file at a fixed address which already has
10281      something else allocated at it.  If we can, also make sure that
10282      we see the same garbage.  */
10283   fd = open ("conftest.mmap", O_RDWR);
10284   if (fd < 0)
10285     exit (1);
10286   data2 = (char *) malloc (2 * pagesize);
10287   if (!data2)
10288     exit (1);
10289   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10290   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10291                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10292     exit (1);
10293   for (i = 0; i < pagesize; ++i)
10294     if (*(data + i) != *(data2 + i))
10295       exit (1);
10296
10297   /* Finally, make sure that changes to the mapped area do not
10298      percolate back to the file as seen by read().  (This is a bug on
10299      some variants of i386 svr4.0.)  */
10300   for (i = 0; i < pagesize; ++i)
10301     *(data2 + i) = *(data2 + i) + 1;
10302   data3 = (char *) malloc (pagesize);
10303   if (!data3)
10304     exit (1);
10305   if (read (fd, data3, pagesize) != pagesize)
10306     exit (1);
10307   for (i = 0; i < pagesize; ++i)
10308     if (*(data + i) != *(data3 + i))
10309       exit (1);
10310   close (fd);
10311   exit (0);
10312 }
10313 _ACEOF
10314 rm -f conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316   (eval $ac_link) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; }; then
10325   ac_cv_func_mmap_fixed_mapped=yes
10326 else
10327   echo "$as_me: program exited with status $ac_status" >&5
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ( exit $ac_status )
10332 ac_cv_func_mmap_fixed_mapped=no
10333 fi
10334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10335 fi
10336 fi
10337 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10338 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10340
10341 cat >>confdefs.h <<\_ACEOF
10342 #define HAVE_MMAP 1
10343 _ACEOF
10344
10345 fi
10346 rm -f conftest.mmap
10347
10348 fi
10349
10350
10351 for ac_func in memcpy strerror
10352 do
10353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10354 echo "$as_me:$LINENO: checking for $ac_func" >&5
10355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10356 if eval "test \"\${$as_ac_var+set}\" = set"; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   if test x$gcc_no_link = xyes; then
10360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10362    { (exit 1); exit 1; }; }
10363 fi
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10372 #define $ac_func innocuous_$ac_func
10373
10374 /* System header to define __stub macros and hopefully few prototypes,
10375     which can conflict with char $ac_func (); below.
10376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377     <limits.h> exists even on freestanding compilers.  */
10378
10379 #ifdef __STDC__
10380 # include <limits.h>
10381 #else
10382 # include <assert.h>
10383 #endif
10384
10385 #undef $ac_func
10386
10387 /* Override any gcc2 internal prototype to avoid an error.  */
10388 #ifdef __cplusplus
10389 extern "C"
10390 {
10391 #endif
10392 /* We use char because int might match the return type of a gcc2
10393    builtin and then its argument prototype would still apply.  */
10394 char $ac_func ();
10395 /* The GNU C library defines this for functions which it implements
10396     to always fail with ENOSYS.  Some functions are actually named
10397     something starting with __ and the normal name is an alias.  */
10398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10399 choke me
10400 #else
10401 char (*f) () = $ac_func;
10402 #endif
10403 #ifdef __cplusplus
10404 }
10405 #endif
10406
10407 int
10408 main ()
10409 {
10410 return f != $ac_func;
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417   (eval $ac_link) 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -z "$ac_c_werror_flag"
10425                          || test ! -s conftest.err'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; } &&
10431          { ac_try='test -s conftest$ac_exeext'
10432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433   (eval $ac_try) 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; }; then
10437   eval "$as_ac_var=yes"
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442 eval "$as_ac_var=no"
10443 fi
10444 rm -f conftest.err conftest.$ac_objext \
10445       conftest$ac_exeext conftest.$ac_ext
10446 fi
10447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10449 if test `eval echo '${'$as_ac_var'}'` = yes; then
10450   cat >>confdefs.h <<_ACEOF
10451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10452 _ACEOF
10453
10454 fi
10455 done
10456
10457
10458    if test "$with_system_zlib" = yes; then
10459       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10460 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
10461 if test "${ac_cv_lib_z_deflate+set}" = set; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464   ac_check_lib_save_LIBS=$LIBS
10465 LIBS="-lz  $LIBS"
10466 if test x$gcc_no_link = xyes; then
10467   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10469    { (exit 1); exit 1; }; }
10470 fi
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477
10478 /* Override any gcc2 internal prototype to avoid an error.  */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 /* We use char because int might match the return type of a gcc2
10483    builtin and then its argument prototype would still apply.  */
10484 char deflate ();
10485 int
10486 main ()
10487 {
10488 deflate ();
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495   (eval $ac_link) 2>conftest.er1
10496   ac_status=$?
10497   grep -v '^ *+' conftest.er1 >conftest.err
10498   rm -f conftest.er1
10499   cat conftest.err >&5
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } &&
10502          { ac_try='test -z "$ac_c_werror_flag"
10503                          || test ! -s conftest.err'
10504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505   (eval $ac_try) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; } &&
10509          { ac_try='test -s conftest$ac_exeext'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }; then
10515   ac_cv_lib_z_deflate=yes
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_lib_z_deflate=no
10521 fi
10522 rm -f conftest.err conftest.$ac_objext \
10523       conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10525 fi
10526 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10527 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
10528 if test $ac_cv_lib_z_deflate = yes; then
10529   target_all=
10530 else
10531   target_all=libzgcj.la
10532 fi
10533
10534    else
10535       target_all=libzgcj.la
10536    fi
10537 fi
10538
10539
10540
10541
10542 for ac_header in unistd.h
10543 do
10544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546   echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 fi
10551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10553 else
10554   # Is the header compilable?
10555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 $ac_includes_default
10564 #include <$ac_header>
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568   (eval $ac_compile) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -z "$ac_c_werror_flag"
10576                          || test ! -s conftest.err'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; } &&
10582          { ac_try='test -s conftest.$ac_objext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   ac_header_compiler=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 ac_header_compiler=no
10594 fi
10595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597 echo "${ECHO_T}$ac_header_compiler" >&6
10598
10599 # Is the header present?
10600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 #include <$ac_header>
10609 _ACEOF
10610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10612   ac_status=$?
10613   grep -v '^ *+' conftest.er1 >conftest.err
10614   rm -f conftest.er1
10615   cat conftest.err >&5
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } >/dev/null; then
10618   if test -s conftest.err; then
10619     ac_cpp_err=$ac_c_preproc_warn_flag
10620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10621   else
10622     ac_cpp_err=
10623   fi
10624 else
10625   ac_cpp_err=yes
10626 fi
10627 if test -z "$ac_cpp_err"; then
10628   ac_header_preproc=yes
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633   ac_header_preproc=no
10634 fi
10635 rm -f conftest.err conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637 echo "${ECHO_T}$ac_header_preproc" >&6
10638
10639 # So?  What about this header?
10640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641   yes:no: )
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10646     ac_header_preproc=yes
10647     ;;
10648   no:yes:* )
10649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10661     (
10662       cat <<\_ASBOX
10663 ## ------------------------------------------ ##
10664 ## Report this to the AC_PACKAGE_NAME lists.  ##
10665 ## ------------------------------------------ ##
10666 _ASBOX
10667     ) |
10668       sed "s/^/$as_me: WARNING:     /" >&2
10669     ;;
10670 esac
10671 echo "$as_me:$LINENO: checking for $ac_header" >&5
10672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674   echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676   eval "$as_ac_Header=\$ac_header_preproc"
10677 fi
10678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10680
10681 fi
10682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10683   cat >>confdefs.h <<_ACEOF
10684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10685 _ACEOF
10686
10687 fi
10688
10689 done
10690
10691
10692 if test -n "$with_cross_host" &&
10693    test x"$with_cross_host" != x"no"; then
10694   toolexecdir='$(exec_prefix)/$(target_alias)'
10695   toolexeclibdir='$(toolexecdir)/lib'
10696 else
10697   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10698   toolexeclibdir='$(libdir)'
10699 fi
10700 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
10701   multiosdir=/`$CC -print-multi-os-directory`
10702   case $multiosdir in
10703     /.) multiosdir= ;; # Avoid trailing /.
10704   esac
10705 else
10706   multiosdir=
10707 fi
10708 toolexeclibdir=${toolexeclibdir}${multiosdir}
10709
10710
10711
10712
10713
10714 if test -n "$with_target_subdir"; then
10715   TARGET_LIBRARY_TRUE=
10716   TARGET_LIBRARY_FALSE='#'
10717 else
10718   TARGET_LIBRARY_TRUE='#'
10719   TARGET_LIBRARY_FALSE=
10720 fi
10721
10722
10723 if test "${multilib}" = "yes"; then
10724   multilib_arg="--enable-multilib"
10725 else
10726   multilib_arg=
10727 fi
10728
10729           ac_config_files="$ac_config_files Makefile"
10730
10731 cat >confcache <<\_ACEOF
10732 # This file is a shell script that caches the results of configure
10733 # tests run on this system so they can be shared between configure
10734 # scripts and configure runs, see configure's option --config-cache.
10735 # It is not useful on other systems.  If it contains results you don't
10736 # want to keep, you may remove or edit it.
10737 #
10738 # config.status only pays attention to the cache file if you give it
10739 # the --recheck option to rerun configure.
10740 #
10741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10743 # following values.
10744
10745 _ACEOF
10746
10747 # The following way of writing the cache mishandles newlines in values,
10748 # but we know of no workaround that is simple, portable, and efficient.
10749 # So, don't put newlines in cache variables' values.
10750 # Ultrix sh set writes to stderr and can't be redirected directly,
10751 # and sets the high bit in the cache file unless we assign to the vars.
10752 {
10753   (set) 2>&1 |
10754     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10755     *ac_space=\ *)
10756       # `set' does not quote correctly, so add quotes (double-quote
10757       # substitution turns \\\\ into \\, and sed turns \\ into \).
10758       sed -n \
10759         "s/'/'\\\\''/g;
10760           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10761       ;;
10762     *)
10763       # `set' quotes correctly as required by POSIX, so do not add quotes.
10764       sed -n \
10765         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10766       ;;
10767     esac;
10768 } |
10769   sed '
10770      t clear
10771      : clear
10772      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10773      t end
10774      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10775      : end' >>confcache
10776 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10777   if test -w $cache_file; then
10778     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10779     cat confcache >$cache_file
10780   else
10781     echo "not updating unwritable cache $cache_file"
10782   fi
10783 fi
10784 rm -f confcache
10785
10786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10787 # Let make expand exec_prefix.
10788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10789
10790 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10791 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10792 # trailing colons and then remove the whole line if VPATH becomes empty
10793 # (actually we leave an empty line to preserve line numbers).
10794 if test "x$srcdir" = x.; then
10795   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10796 s/:*\$(srcdir):*/:/;
10797 s/:*\${srcdir}:*/:/;
10798 s/:*@srcdir@:*/:/;
10799 s/^\([^=]*=[     ]*\):*/\1/;
10800 s/:*$//;
10801 s/^[^=]*=[       ]*$//;
10802 }'
10803 fi
10804
10805 # Transform confdefs.h into DEFS.
10806 # Protect against shell expansion while executing Makefile rules.
10807 # Protect against Makefile macro expansion.
10808 #
10809 # If the first sed substitution is executed (which looks for macros that
10810 # take arguments), then we branch to the quote section.  Otherwise,
10811 # look for a macro that doesn't take arguments.
10812 cat >confdef2opt.sed <<\_ACEOF
10813 t clear
10814 : clear
10815 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
10816 t quote
10817 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
10818 t quote
10819 d
10820 : quote
10821 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
10822 s,\[,\\&,g
10823 s,\],\\&,g
10824 s,\$,$$,g
10825 p
10826 _ACEOF
10827 # We use echo to avoid assuming a particular line-breaking character.
10828 # The extra dot is to prevent the shell from consuming trailing
10829 # line-breaks from the sub-command output.  A line-break within
10830 # single-quotes doesn't work because, if this script is created in a
10831 # platform that uses two characters for line-breaks (e.g., DOS), tr
10832 # would break.
10833 ac_LF_and_DOT=`echo; echo .`
10834 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10835 rm -f confdef2opt.sed
10836
10837
10838 ac_libobjs=
10839 ac_ltlibobjs=
10840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10841   # 1. Remove the extension, and $U if already installed.
10842   ac_i=`echo "$ac_i" |
10843          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10844   # 2. Add them.
10845   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10846   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10847 done
10848 LIBOBJS=$ac_libobjs
10849
10850 LTLIBOBJS=$ac_ltlibobjs
10851
10852
10853 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10854   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10855 Usually this means the macro was only invoked conditionally." >&5
10856 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10857 Usually this means the macro was only invoked conditionally." >&2;}
10858    { (exit 1); exit 1; }; }
10859 fi
10860 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10861   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10862 Usually this means the macro was only invoked conditionally." >&5
10863 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10864 Usually this means the macro was only invoked conditionally." >&2;}
10865    { (exit 1); exit 1; }; }
10866 fi
10867 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10868   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10869 Usually this means the macro was only invoked conditionally." >&5
10870 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10871 Usually this means the macro was only invoked conditionally." >&2;}
10872    { (exit 1); exit 1; }; }
10873 fi
10874 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
10875   { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
10876 Usually this means the macro was only invoked conditionally." >&5
10877 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
10878 Usually this means the macro was only invoked conditionally." >&2;}
10879    { (exit 1); exit 1; }; }
10880 fi
10881
10882 : ${CONFIG_STATUS=./config.status}
10883 ac_clean_files_save=$ac_clean_files
10884 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10885 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10886 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10887 cat >$CONFIG_STATUS <<_ACEOF
10888 #! $SHELL
10889 # Generated by $as_me.
10890 # Run this file to recreate the current configuration.
10891 # Compiler output produced by configure, useful for debugging
10892 # configure, is in config.log if it exists.
10893
10894 debug=false
10895 ac_cs_recheck=false
10896 ac_cs_silent=false
10897 SHELL=\${CONFIG_SHELL-$SHELL}
10898 _ACEOF
10899
10900 cat >>$CONFIG_STATUS <<\_ACEOF
10901 ## --------------------- ##
10902 ## M4sh Initialization.  ##
10903 ## --------------------- ##
10904
10905 # Be Bourne compatible
10906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10907   emulate sh
10908   NULLCMD=:
10909   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10910   # is contrary to our usage.  Disable this feature.
10911   alias -g '${1+"$@"}'='"$@"'
10912 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10913   set -o posix
10914 fi
10915 DUALCASE=1; export DUALCASE # for MKS sh
10916
10917 # Support unset when possible.
10918 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10919   as_unset=unset
10920 else
10921   as_unset=false
10922 fi
10923
10924
10925 # Work around bugs in pre-3.0 UWIN ksh.
10926 $as_unset ENV MAIL MAILPATH
10927 PS1='$ '
10928 PS2='> '
10929 PS4='+ '
10930
10931 # NLS nuisances.
10932 for as_var in \
10933   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10934   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10935   LC_TELEPHONE LC_TIME
10936 do
10937   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10938     eval $as_var=C; export $as_var
10939   else
10940     $as_unset $as_var
10941   fi
10942 done
10943
10944 # Required to use basename.
10945 if expr a : '\(a\)' >/dev/null 2>&1; then
10946   as_expr=expr
10947 else
10948   as_expr=false
10949 fi
10950
10951 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10952   as_basename=basename
10953 else
10954   as_basename=false
10955 fi
10956
10957
10958 # Name of the executable.
10959 as_me=`$as_basename "$0" ||
10960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10961          X"$0" : 'X\(//\)$' \| \
10962          X"$0" : 'X\(/\)$' \| \
10963          .     : '\(.\)' 2>/dev/null ||
10964 echo X/"$0" |
10965     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10966           /^X\/\(\/\/\)$/{ s//\1/; q; }
10967           /^X\/\(\/\).*/{ s//\1/; q; }
10968           s/.*/./; q'`
10969
10970
10971 # PATH needs CR, and LINENO needs CR and PATH.
10972 # Avoid depending upon Character Ranges.
10973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10976 as_cr_digits='0123456789'
10977 as_cr_alnum=$as_cr_Letters$as_cr_digits
10978
10979 # The user is always right.
10980 if test "${PATH_SEPARATOR+set}" != set; then
10981   echo "#! /bin/sh" >conf$$.sh
10982   echo  "exit 0"   >>conf$$.sh
10983   chmod +x conf$$.sh
10984   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10985     PATH_SEPARATOR=';'
10986   else
10987     PATH_SEPARATOR=:
10988   fi
10989   rm -f conf$$.sh
10990 fi
10991
10992
10993   as_lineno_1=$LINENO
10994   as_lineno_2=$LINENO
10995   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10996   test "x$as_lineno_1" != "x$as_lineno_2" &&
10997   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10998   # Find who we are.  Look in the path if we contain no path at all
10999   # relative or not.
11000   case $0 in
11001     *[\\/]* ) as_myself=$0 ;;
11002     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005   IFS=$as_save_IFS
11006   test -z "$as_dir" && as_dir=.
11007   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11008 done
11009
11010        ;;
11011   esac
11012   # We did not find ourselves, most probably we were run as `sh COMMAND'
11013   # in which case we are not to be found in the path.
11014   if test "x$as_myself" = x; then
11015     as_myself=$0
11016   fi
11017   if test ! -f "$as_myself"; then
11018     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11019 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11020    { (exit 1); exit 1; }; }
11021   fi
11022   case $CONFIG_SHELL in
11023   '')
11024     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11026 do
11027   IFS=$as_save_IFS
11028   test -z "$as_dir" && as_dir=.
11029   for as_base in sh bash ksh sh5; do
11030          case $as_dir in
11031          /*)
11032            if ("$as_dir/$as_base" -c '
11033   as_lineno_1=$LINENO
11034   as_lineno_2=$LINENO
11035   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11036   test "x$as_lineno_1" != "x$as_lineno_2" &&
11037   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11038              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11039              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11040              CONFIG_SHELL=$as_dir/$as_base
11041              export CONFIG_SHELL
11042              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11043            fi;;
11044          esac
11045        done
11046 done
11047 ;;
11048   esac
11049
11050   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11051   # uniformly replaced by the line number.  The first 'sed' inserts a
11052   # line-number line before each line; the second 'sed' does the real
11053   # work.  The second script uses 'N' to pair each line-number line
11054   # with the numbered line, and appends trailing '-' during
11055   # substitution so that $LINENO is not a special case at line end.
11056   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11057   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11058   sed '=' <$as_myself |
11059     sed '
11060       N
11061       s,$,-,
11062       : loop
11063       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11064       t loop
11065       s,-$,,
11066       s,^['$as_cr_digits']*\n,,
11067     ' >$as_me.lineno &&
11068   chmod +x $as_me.lineno ||
11069     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11070 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11071    { (exit 1); exit 1; }; }
11072
11073   # Don't try to exec as it changes $[0], causing all sort of problems
11074   # (the dirname of $[0] is not the place where we might find the
11075   # original and so on.  Autoconf is especially sensible to this).
11076   . ./$as_me.lineno
11077   # Exit status is that of the last command.
11078   exit
11079 }
11080
11081
11082 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11083   *c*,-n*) ECHO_N= ECHO_C='
11084 ' ECHO_T='      ' ;;
11085   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11086   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11087 esac
11088
11089 if expr a : '\(a\)' >/dev/null 2>&1; then
11090   as_expr=expr
11091 else
11092   as_expr=false
11093 fi
11094
11095 rm -f conf$$ conf$$.exe conf$$.file
11096 echo >conf$$.file
11097 if ln -s conf$$.file conf$$ 2>/dev/null; then
11098   # We could just check for DJGPP; but this test a) works b) is more generic
11099   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11100   if test -f conf$$.exe; then
11101     # Don't use ln at all; we don't have any links
11102     as_ln_s='cp -p'
11103   else
11104     as_ln_s='ln -s'
11105   fi
11106 elif ln conf$$.file conf$$ 2>/dev/null; then
11107   as_ln_s=ln
11108 else
11109   as_ln_s='cp -p'
11110 fi
11111 rm -f conf$$ conf$$.exe conf$$.file
11112
11113 if mkdir -p . 2>/dev/null; then
11114   as_mkdir_p=:
11115 else
11116   test -d ./-p && rmdir ./-p
11117   as_mkdir_p=false
11118 fi
11119
11120 as_executable_p="test -f"
11121
11122 # Sed expression to map a string onto a valid CPP name.
11123 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11124
11125 # Sed expression to map a string onto a valid variable name.
11126 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11127
11128
11129 # IFS
11130 # We need space, tab and new line, in precisely that order.
11131 as_nl='
11132 '
11133 IFS="   $as_nl"
11134
11135 # CDPATH.
11136 $as_unset CDPATH
11137
11138 exec 6>&1
11139
11140 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11141 # report actual input values of CONFIG_FILES etc. instead of their
11142 # values after options handling.  Logging --version etc. is OK.
11143 exec 5>>config.log
11144 {
11145   echo
11146   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11147 ## Running $as_me. ##
11148 _ASBOX
11149 } >&5
11150 cat >&5 <<_CSEOF
11151
11152 This file was extended by $as_me, which was
11153 generated by GNU Autoconf 2.59.  Invocation command line was
11154
11155   CONFIG_FILES    = $CONFIG_FILES
11156   CONFIG_HEADERS  = $CONFIG_HEADERS
11157   CONFIG_LINKS    = $CONFIG_LINKS
11158   CONFIG_COMMANDS = $CONFIG_COMMANDS
11159   $ $0 $@
11160
11161 _CSEOF
11162 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11163 echo >&5
11164 _ACEOF
11165
11166 # Files that config.status was made for.
11167 if test -n "$ac_config_files"; then
11168   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11169 fi
11170
11171 if test -n "$ac_config_headers"; then
11172   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11173 fi
11174
11175 if test -n "$ac_config_links"; then
11176   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11177 fi
11178
11179 if test -n "$ac_config_commands"; then
11180   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11181 fi
11182
11183 cat >>$CONFIG_STATUS <<\_ACEOF
11184
11185 ac_cs_usage="\
11186 \`$as_me' instantiates files from templates according to the
11187 current configuration.
11188
11189 Usage: $0 [OPTIONS] [FILE]...
11190
11191   -h, --help       print this help, then exit
11192   -V, --version    print version number, then exit
11193   -q, --quiet      do not print progress messages
11194   -d, --debug      don't remove temporary files
11195       --recheck    update $as_me by reconfiguring in the same conditions
11196   --file=FILE[:TEMPLATE]
11197                    instantiate the configuration file FILE
11198
11199 Configuration files:
11200 $config_files
11201
11202 Configuration commands:
11203 $config_commands
11204
11205 Report bugs to <bug-autoconf@gnu.org>."
11206 _ACEOF
11207
11208 cat >>$CONFIG_STATUS <<_ACEOF
11209 ac_cs_version="\\
11210 config.status
11211 configured by $0, generated by GNU Autoconf 2.59,
11212   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11213
11214 Copyright (C) 2003 Free Software Foundation, Inc.
11215 This config.status script is free software; the Free Software Foundation
11216 gives unlimited permission to copy, distribute and modify it."
11217 srcdir=$srcdir
11218 INSTALL="$INSTALL"
11219 _ACEOF
11220
11221 cat >>$CONFIG_STATUS <<\_ACEOF
11222 # If no file are specified by the user, then we need to provide default
11223 # value.  By we need to know if files were specified by the user.
11224 ac_need_defaults=:
11225 while test $# != 0
11226 do
11227   case $1 in
11228   --*=*)
11229     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11230     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11231     ac_shift=:
11232     ;;
11233   -*)
11234     ac_option=$1
11235     ac_optarg=$2
11236     ac_shift=shift
11237     ;;
11238   *) # This is not an option, so the user has probably given explicit
11239      # arguments.
11240      ac_option=$1
11241      ac_need_defaults=false;;
11242   esac
11243
11244   case $ac_option in
11245   # Handling of the options.
11246 _ACEOF
11247 cat >>$CONFIG_STATUS <<\_ACEOF
11248   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11249     ac_cs_recheck=: ;;
11250   --version | --vers* | -V )
11251     echo "$ac_cs_version"; exit 0 ;;
11252   --he | --h)
11253     # Conflict between --help and --header
11254     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11255 Try \`$0 --help' for more information." >&5
11256 echo "$as_me: error: ambiguous option: $1
11257 Try \`$0 --help' for more information." >&2;}
11258    { (exit 1); exit 1; }; };;
11259   --help | --hel | -h )
11260     echo "$ac_cs_usage"; exit 0 ;;
11261   --debug | --d* | -d )
11262     debug=: ;;
11263   --file | --fil | --fi | --f )
11264     $ac_shift
11265     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11266     ac_need_defaults=false;;
11267   --header | --heade | --head | --hea )
11268     $ac_shift
11269     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11270     ac_need_defaults=false;;
11271   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11272   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11273     ac_cs_silent=: ;;
11274
11275   # This is an error.
11276   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11277 Try \`$0 --help' for more information." >&5
11278 echo "$as_me: error: unrecognized option: $1
11279 Try \`$0 --help' for more information." >&2;}
11280    { (exit 1); exit 1; }; } ;;
11281
11282   *) ac_config_targets="$ac_config_targets $1" ;;
11283
11284   esac
11285   shift
11286 done
11287
11288 ac_configure_extra_args=
11289
11290 if $ac_cs_silent; then
11291   exec 6>/dev/null
11292   ac_configure_extra_args="$ac_configure_extra_args --silent"
11293 fi
11294
11295 _ACEOF
11296 cat >>$CONFIG_STATUS <<_ACEOF
11297 if \$ac_cs_recheck; then
11298   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11299   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11300 fi
11301
11302 _ACEOF
11303
11304 cat >>$CONFIG_STATUS <<_ACEOF
11305 #
11306 # INIT-COMMANDS section.
11307 #
11308
11309
11310 srcdir="$srcdir"
11311 host="$host"
11312 target="$target"
11313 with_multisubdir="$with_multisubdir"
11314 with_multisrctop="$with_multisrctop"
11315 with_target_subdir="$with_target_subdir"
11316 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11317 multi_basedir="$multi_basedir"
11318 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11319 CC="$CC"
11320 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11321
11322
11323 # The HP-UX ksh and POSIX shell print the target directory to stdout
11324 # if CDPATH is set.
11325 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11326
11327 sed_quote_subst='$sed_quote_subst'
11328 double_quote_subst='$double_quote_subst'
11329 delay_variable_subst='$delay_variable_subst'
11330 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11331 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11332 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11333 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11334 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11335 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11336 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11337 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11338 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11339 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11340 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11341 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11342 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11343 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11344 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11345 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11346 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11347 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11348 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11349 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11350 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11351 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11352 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11353 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11354 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11355 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11356 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11357 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11358 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11359 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11360 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11361 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11362 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11363 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11364 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11365 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11366 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11367 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11368 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11369 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11370 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11371 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11372 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11373 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11374 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11375 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11376 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11377 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11378 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11379 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11380 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11381 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11382 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11383 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11384 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11385 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11386 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11387 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11388 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11389 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11390 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11391 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11392 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11393 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11394 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11395 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11396 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11397 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11398 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11399 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11400 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11401 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11402 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11403 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11404 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11405 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11406 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11407 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11408 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11409 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11410 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11411 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11412 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11413 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11414 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11415 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11416 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11417 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11418 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11419 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11420 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11421 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11422 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11423 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11424 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11425 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11426 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11427 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11428 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11429 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11430 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11431 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11432 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11433 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11434 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11435 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11436 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11437 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11438 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11439 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11440 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11441
11442 LTCC='$LTCC'
11443 LTCFLAGS='$LTCFLAGS'
11444 compiler='$compiler_DEFAULT'
11445
11446 # Quote evaled strings.
11447 for var in SED \
11448 GREP \
11449 EGREP \
11450 FGREP \
11451 LD \
11452 NM \
11453 LN_S \
11454 lt_SP2NL \
11455 lt_NL2SP \
11456 reload_flag \
11457 deplibs_check_method \
11458 file_magic_cmd \
11459 AR \
11460 AR_FLAGS \
11461 STRIP \
11462 RANLIB \
11463 CC \
11464 CFLAGS \
11465 compiler \
11466 lt_cv_sys_global_symbol_pipe \
11467 lt_cv_sys_global_symbol_to_cdecl \
11468 lt_cv_sys_global_symbol_to_c_name_address \
11469 SHELL \
11470 ECHO \
11471 lt_prog_compiler_no_builtin_flag \
11472 lt_prog_compiler_wl \
11473 lt_prog_compiler_pic \
11474 lt_prog_compiler_static \
11475 lt_cv_prog_compiler_c_o \
11476 need_locks \
11477 shrext_cmds \
11478 export_dynamic_flag_spec \
11479 whole_archive_flag_spec \
11480 compiler_needs_object \
11481 with_gnu_ld \
11482 allow_undefined_flag \
11483 no_undefined_flag \
11484 hardcode_libdir_flag_spec \
11485 hardcode_libdir_flag_spec_ld \
11486 hardcode_libdir_separator \
11487 fix_srcfile_path \
11488 exclude_expsyms \
11489 include_expsyms \
11490 file_list_spec \
11491 variables_saved_for_relink \
11492 libname_spec \
11493 library_names_spec \
11494 soname_spec \
11495 finish_eval \
11496 old_striplib \
11497 striplib; do
11498     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11499     *[\\\\\\\`\\"\\\$]*)
11500       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11501       ;;
11502     *)
11503       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11504       ;;
11505     esac
11506 done
11507
11508 # Double-quote double-evaled strings.
11509 for var in reload_cmds \
11510 old_postinstall_cmds \
11511 old_postuninstall_cmds \
11512 old_archive_cmds \
11513 extract_expsyms_cmds \
11514 old_archive_from_new_cmds \
11515 old_archive_from_expsyms_cmds \
11516 archive_cmds \
11517 archive_expsym_cmds \
11518 module_cmds \
11519 module_expsym_cmds \
11520 export_symbols_cmds \
11521 prelink_cmds \
11522 postinstall_cmds \
11523 postuninstall_cmds \
11524 finish_cmds \
11525 sys_lib_search_path_spec \
11526 sys_lib_dlsearch_path_spec; do
11527     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11528     *[\\\\\\\`\\"\\\$]*)
11529       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11530       ;;
11531     *)
11532       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11533       ;;
11534     esac
11535 done
11536
11537 # Fix-up fallback echo if it was mangled by the above quoting rules.
11538 case \$lt_ECHO in
11539 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11540   ;;
11541 esac
11542
11543 ac_aux_dir='$ac_aux_dir'
11544 xsi_shell='$xsi_shell'
11545 lt_shell_append='$lt_shell_append'
11546
11547 # See if we are running on zsh, and set the options which allow our
11548 # commands through without removal of \ escapes INIT.
11549 if test -n "\${ZSH_VERSION+set}" ; then
11550    setopt NO_GLOB_SUBST
11551 fi
11552
11553
11554     PACKAGE='$PACKAGE'
11555     VERSION='$VERSION'
11556     TIMESTAMP='$TIMESTAMP'
11557     RM='$RM'
11558     ofile='$ofile'
11559
11560
11561
11562
11563 _ACEOF
11564
11565
11566
11567 cat >>$CONFIG_STATUS <<\_ACEOF
11568 for ac_config_target in $ac_config_targets
11569 do
11570   case "$ac_config_target" in
11571   # Handling of arguments.
11572   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11573   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11574   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11575   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11576   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11578    { (exit 1); exit 1; }; };;
11579   esac
11580 done
11581
11582 # If the user did not use the arguments to specify the items to instantiate,
11583 # then the envvar interface is used.  Set only those that are not.
11584 # We use the long form for the default assignment because of an extremely
11585 # bizarre bug on SunOS 4.1.3.
11586 if $ac_need_defaults; then
11587   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11588   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11589 fi
11590
11591 # Have a temporary directory for convenience.  Make it in the build tree
11592 # simply because there is no reason to put it here, and in addition,
11593 # creating and moving files from /tmp can sometimes cause problems.
11594 # Create a temporary directory, and hook for its removal unless debugging.
11595 $debug ||
11596 {
11597   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11598   trap '{ (exit 1); exit 1; }' 1 2 13 15
11599 }
11600
11601 # Create a (secure) tmp directory for tmp files.
11602
11603 {
11604   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11605   test -n "$tmp" && test -d "$tmp"
11606 }  ||
11607 {
11608   tmp=./confstat$$-$RANDOM
11609   (umask 077 && mkdir $tmp)
11610 } ||
11611 {
11612    echo "$me: cannot create a temporary directory in ." >&2
11613    { (exit 1); exit 1; }
11614 }
11615
11616 _ACEOF
11617
11618 cat >>$CONFIG_STATUS <<_ACEOF
11619
11620 #
11621 # CONFIG_FILES section.
11622 #
11623
11624 # No need to generate the scripts if there are no CONFIG_FILES.
11625 # This happens for instance when ./config.status config.h
11626 if test -n "\$CONFIG_FILES"; then
11627   # Protect against being on the right side of a sed subst in config.status.
11628   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11629    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11630 s,@SHELL@,$SHELL,;t t
11631 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11632 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11633 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11634 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11635 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11636 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11637 s,@exec_prefix@,$exec_prefix,;t t
11638 s,@prefix@,$prefix,;t t
11639 s,@program_transform_name@,$program_transform_name,;t t
11640 s,@bindir@,$bindir,;t t
11641 s,@sbindir@,$sbindir,;t t
11642 s,@libexecdir@,$libexecdir,;t t
11643 s,@datadir@,$datadir,;t t
11644 s,@sysconfdir@,$sysconfdir,;t t
11645 s,@sharedstatedir@,$sharedstatedir,;t t
11646 s,@localstatedir@,$localstatedir,;t t
11647 s,@libdir@,$libdir,;t t
11648 s,@includedir@,$includedir,;t t
11649 s,@oldincludedir@,$oldincludedir,;t t
11650 s,@infodir@,$infodir,;t t
11651 s,@mandir@,$mandir,;t t
11652 s,@build_alias@,$build_alias,;t t
11653 s,@host_alias@,$host_alias,;t t
11654 s,@target_alias@,$target_alias,;t t
11655 s,@DEFS@,$DEFS,;t t
11656 s,@ECHO_C@,$ECHO_C,;t t
11657 s,@ECHO_N@,$ECHO_N,;t t
11658 s,@ECHO_T@,$ECHO_T,;t t
11659 s,@LIBS@,$LIBS,;t t
11660 s,@multi_basedir@,$multi_basedir,;t t
11661 s,@build@,$build,;t t
11662 s,@build_cpu@,$build_cpu,;t t
11663 s,@build_vendor@,$build_vendor,;t t
11664 s,@build_os@,$build_os,;t t
11665 s,@host@,$host,;t t
11666 s,@host_cpu@,$host_cpu,;t t
11667 s,@host_vendor@,$host_vendor,;t t
11668 s,@host_os@,$host_os,;t t
11669 s,@target@,$target,;t t
11670 s,@target_cpu@,$target_cpu,;t t
11671 s,@target_vendor@,$target_vendor,;t t
11672 s,@target_os@,$target_os,;t t
11673 s,@mkinstalldirs@,$mkinstalldirs,;t t
11674 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11675 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11676 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11677 s,@CYGPATH_W@,$CYGPATH_W,;t t
11678 s,@PACKAGE@,$PACKAGE,;t t
11679 s,@VERSION@,$VERSION,;t t
11680 s,@ACLOCAL@,$ACLOCAL,;t t
11681 s,@AUTOCONF@,$AUTOCONF,;t t
11682 s,@AUTOMAKE@,$AUTOMAKE,;t t
11683 s,@AUTOHEADER@,$AUTOHEADER,;t t
11684 s,@MAKEINFO@,$MAKEINFO,;t t
11685 s,@install_sh@,$install_sh,;t t
11686 s,@STRIP@,$STRIP,;t t
11687 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11688 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11689 s,@mkdir_p@,$mkdir_p,;t t
11690 s,@AWK@,$AWK,;t t
11691 s,@SET_MAKE@,$SET_MAKE,;t t
11692 s,@am__leading_dot@,$am__leading_dot,;t t
11693 s,@AMTAR@,$AMTAR,;t t
11694 s,@am__tar@,$am__tar,;t t
11695 s,@am__untar@,$am__untar,;t t
11696 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11697 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11698 s,@MAINT@,$MAINT,;t t
11699 s,@COMPPATH@,$COMPPATH,;t t
11700 s,@CC@,$CC,;t t
11701 s,@ac_ct_CC@,$ac_ct_CC,;t t
11702 s,@EXEEXT@,$EXEEXT,;t t
11703 s,@OBJEXT@,$OBJEXT,;t t
11704 s,@DEPDIR@,$DEPDIR,;t t
11705 s,@am__include@,$am__include,;t t
11706 s,@am__quote@,$am__quote,;t t
11707 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11708 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11709 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11710 s,@CCDEPMODE@,$CCDEPMODE,;t t
11711 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11712 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11713 s,@CFLAGS@,$CFLAGS,;t t
11714 s,@LIBTOOL@,$LIBTOOL,;t t
11715 s,@SED@,$SED,;t t
11716 s,@EGREP@,$EGREP,;t t
11717 s,@FGREP@,$FGREP,;t t
11718 s,@GREP@,$GREP,;t t
11719 s,@LD@,$LD,;t t
11720 s,@DUMPBIN@,$DUMPBIN,;t t
11721 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11722 s,@NM@,$NM,;t t
11723 s,@LN_S@,$LN_S,;t t
11724 s,@AR@,$AR,;t t
11725 s,@ac_ct_AR@,$ac_ct_AR,;t t
11726 s,@RANLIB@,$RANLIB,;t t
11727 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11728 s,@lt_ECHO@,$lt_ECHO,;t t
11729 s,@CPP@,$CPP,;t t
11730 s,@CPPFLAGS@,$CPPFLAGS,;t t
11731 s,@target_all@,$target_all,;t t
11732 s,@toolexecdir@,$toolexecdir,;t t
11733 s,@toolexeclibdir@,$toolexeclibdir,;t t
11734 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
11735 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
11736 s,@LIBOBJS@,$LIBOBJS,;t t
11737 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11738 CEOF
11739
11740 _ACEOF
11741
11742   cat >>$CONFIG_STATUS <<\_ACEOF
11743   # Split the substitutions into bite-sized pieces for seds with
11744   # small command number limits, like on Digital OSF/1 and HP-UX.
11745   ac_max_sed_lines=48
11746   ac_sed_frag=1 # Number of current file.
11747   ac_beg=1 # First line for current file.
11748   ac_end=$ac_max_sed_lines # Line after last line for current file.
11749   ac_more_lines=:
11750   ac_sed_cmds=
11751   while $ac_more_lines; do
11752     if test $ac_beg -gt 1; then
11753       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11754     else
11755       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11756     fi
11757     if test ! -s $tmp/subs.frag; then
11758       ac_more_lines=false
11759     else
11760       # The purpose of the label and of the branching condition is to
11761       # speed up the sed processing (if there are no `@' at all, there
11762       # is no need to browse any of the substitutions).
11763       # These are the two extra sed commands mentioned above.
11764       (echo ':t
11765   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11766       if test -z "$ac_sed_cmds"; then
11767         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11768       else
11769         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11770       fi
11771       ac_sed_frag=`expr $ac_sed_frag + 1`
11772       ac_beg=$ac_end
11773       ac_end=`expr $ac_end + $ac_max_sed_lines`
11774     fi
11775   done
11776   if test -z "$ac_sed_cmds"; then
11777     ac_sed_cmds=cat
11778   fi
11779 fi # test -n "$CONFIG_FILES"
11780
11781 _ACEOF
11782 cat >>$CONFIG_STATUS <<\_ACEOF
11783 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11784   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11785   case $ac_file in
11786   - | *:- | *:-:* ) # input from stdin
11787         cat >$tmp/stdin
11788         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11789         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11790   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11791         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11792   * )   ac_file_in=$ac_file.in ;;
11793   esac
11794
11795   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11796   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11798          X"$ac_file" : 'X\(//\)[^/]' \| \
11799          X"$ac_file" : 'X\(//\)$' \| \
11800          X"$ac_file" : 'X\(/\)' \| \
11801          .     : '\(.\)' 2>/dev/null ||
11802 echo X"$ac_file" |
11803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11805           /^X\(\/\/\)$/{ s//\1/; q; }
11806           /^X\(\/\).*/{ s//\1/; q; }
11807           s/.*/./; q'`
11808   { if $as_mkdir_p; then
11809     mkdir -p "$ac_dir"
11810   else
11811     as_dir="$ac_dir"
11812     as_dirs=
11813     while test ! -d "$as_dir"; do
11814       as_dirs="$as_dir $as_dirs"
11815       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11817          X"$as_dir" : 'X\(//\)[^/]' \| \
11818          X"$as_dir" : 'X\(//\)$' \| \
11819          X"$as_dir" : 'X\(/\)' \| \
11820          .     : '\(.\)' 2>/dev/null ||
11821 echo X"$as_dir" |
11822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11824           /^X\(\/\/\)$/{ s//\1/; q; }
11825           /^X\(\/\).*/{ s//\1/; q; }
11826           s/.*/./; q'`
11827     done
11828     test ! -n "$as_dirs" || mkdir $as_dirs
11829   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11831    { (exit 1); exit 1; }; }; }
11832
11833   ac_builddir=.
11834
11835 if test "$ac_dir" != .; then
11836   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11837   # A "../" for each directory in $ac_dir_suffix.
11838   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11839 else
11840   ac_dir_suffix= ac_top_builddir=
11841 fi
11842
11843 case $srcdir in
11844   .)  # No --srcdir option.  We are building in place.
11845     ac_srcdir=.
11846     if test -z "$ac_top_builddir"; then
11847        ac_top_srcdir=.
11848     else
11849        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11850     fi ;;
11851   [\\/]* | ?:[\\/]* )  # Absolute path.
11852     ac_srcdir=$srcdir$ac_dir_suffix;
11853     ac_top_srcdir=$srcdir ;;
11854   *) # Relative path.
11855     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11856     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11857 esac
11858
11859 # Do not use `cd foo && pwd` to compute absolute paths, because
11860 # the directories may not exist.
11861 case `pwd` in
11862 .) ac_abs_builddir="$ac_dir";;
11863 *)
11864   case "$ac_dir" in
11865   .) ac_abs_builddir=`pwd`;;
11866   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11867   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11868   esac;;
11869 esac
11870 case $ac_abs_builddir in
11871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11872 *)
11873   case ${ac_top_builddir}. in
11874   .) ac_abs_top_builddir=$ac_abs_builddir;;
11875   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11876   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11877   esac;;
11878 esac
11879 case $ac_abs_builddir in
11880 .) ac_abs_srcdir=$ac_srcdir;;
11881 *)
11882   case $ac_srcdir in
11883   .) ac_abs_srcdir=$ac_abs_builddir;;
11884   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11885   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11886   esac;;
11887 esac
11888 case $ac_abs_builddir in
11889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11890 *)
11891   case $ac_top_srcdir in
11892   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11893   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11894   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11895   esac;;
11896 esac
11897
11898
11899   case $INSTALL in
11900   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11901   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11902   esac
11903
11904   if test x"$ac_file" != x-; then
11905     { echo "$as_me:$LINENO: creating $ac_file" >&5
11906 echo "$as_me: creating $ac_file" >&6;}
11907     rm -f "$ac_file"
11908   fi
11909   # Let's still pretend it is `configure' which instantiates (i.e., don't
11910   # use $as_me), people would be surprised to read:
11911   #    /* config.h.  Generated by config.status.  */
11912   if test x"$ac_file" = x-; then
11913     configure_input=
11914   else
11915     configure_input="$ac_file.  "
11916   fi
11917   configure_input=$configure_input"Generated from `echo $ac_file_in |
11918                                      sed 's,.*/,,'` by configure."
11919
11920   # First look for the input files in the build tree, otherwise in the
11921   # src tree.
11922   ac_file_inputs=`IFS=:
11923     for f in $ac_file_in; do
11924       case $f in
11925       -) echo $tmp/stdin ;;
11926       [\\/$]*)
11927          # Absolute (can't be DOS-style, as IFS=:)
11928          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11929 echo "$as_me: error: cannot find input file: $f" >&2;}
11930    { (exit 1); exit 1; }; }
11931          echo "$f";;
11932       *) # Relative
11933          if test -f "$f"; then
11934            # Build tree
11935            echo "$f"
11936          elif test -f "$srcdir/$f"; then
11937            # Source tree
11938            echo "$srcdir/$f"
11939          else
11940            # /dev/null tree
11941            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11942 echo "$as_me: error: cannot find input file: $f" >&2;}
11943    { (exit 1); exit 1; }; }
11944          fi;;
11945       esac
11946     done` || { (exit 1); exit 1; }
11947 _ACEOF
11948 cat >>$CONFIG_STATUS <<_ACEOF
11949   sed "$ac_vpsub
11950 $extrasub
11951 _ACEOF
11952 cat >>$CONFIG_STATUS <<\_ACEOF
11953 :t
11954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11955 s,@configure_input@,$configure_input,;t t
11956 s,@srcdir@,$ac_srcdir,;t t
11957 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11958 s,@top_srcdir@,$ac_top_srcdir,;t t
11959 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11960 s,@builddir@,$ac_builddir,;t t
11961 s,@abs_builddir@,$ac_abs_builddir,;t t
11962 s,@top_builddir@,$ac_top_builddir,;t t
11963 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11964 s,@INSTALL@,$ac_INSTALL,;t t
11965 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11966   rm -f $tmp/stdin
11967   if test x"$ac_file" != x-; then
11968     mv $tmp/out $ac_file
11969   else
11970     cat $tmp/out
11971     rm -f $tmp/out
11972   fi
11973
11974 done
11975 _ACEOF
11976 cat >>$CONFIG_STATUS <<\_ACEOF
11977
11978 #
11979 # CONFIG_COMMANDS section.
11980 #
11981 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11982   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11983   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11984   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11985 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11986          X"$ac_dest" : 'X\(//\)[^/]' \| \
11987          X"$ac_dest" : 'X\(//\)$' \| \
11988          X"$ac_dest" : 'X\(/\)' \| \
11989          .     : '\(.\)' 2>/dev/null ||
11990 echo X"$ac_dest" |
11991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11993           /^X\(\/\/\)$/{ s//\1/; q; }
11994           /^X\(\/\).*/{ s//\1/; q; }
11995           s/.*/./; q'`
11996   { if $as_mkdir_p; then
11997     mkdir -p "$ac_dir"
11998   else
11999     as_dir="$ac_dir"
12000     as_dirs=
12001     while test ! -d "$as_dir"; do
12002       as_dirs="$as_dir $as_dirs"
12003       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005          X"$as_dir" : 'X\(//\)[^/]' \| \
12006          X"$as_dir" : 'X\(//\)$' \| \
12007          X"$as_dir" : 'X\(/\)' \| \
12008          .     : '\(.\)' 2>/dev/null ||
12009 echo X"$as_dir" |
12010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12011           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12012           /^X\(\/\/\)$/{ s//\1/; q; }
12013           /^X\(\/\).*/{ s//\1/; q; }
12014           s/.*/./; q'`
12015     done
12016     test ! -n "$as_dirs" || mkdir $as_dirs
12017   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12018 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12019    { (exit 1); exit 1; }; }; }
12020
12021   ac_builddir=.
12022
12023 if test "$ac_dir" != .; then
12024   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12025   # A "../" for each directory in $ac_dir_suffix.
12026   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12027 else
12028   ac_dir_suffix= ac_top_builddir=
12029 fi
12030
12031 case $srcdir in
12032   .)  # No --srcdir option.  We are building in place.
12033     ac_srcdir=.
12034     if test -z "$ac_top_builddir"; then
12035        ac_top_srcdir=.
12036     else
12037        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12038     fi ;;
12039   [\\/]* | ?:[\\/]* )  # Absolute path.
12040     ac_srcdir=$srcdir$ac_dir_suffix;
12041     ac_top_srcdir=$srcdir ;;
12042   *) # Relative path.
12043     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12044     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12045 esac
12046
12047 # Do not use `cd foo && pwd` to compute absolute paths, because
12048 # the directories may not exist.
12049 case `pwd` in
12050 .) ac_abs_builddir="$ac_dir";;
12051 *)
12052   case "$ac_dir" in
12053   .) ac_abs_builddir=`pwd`;;
12054   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12055   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12056   esac;;
12057 esac
12058 case $ac_abs_builddir in
12059 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12060 *)
12061   case ${ac_top_builddir}. in
12062   .) ac_abs_top_builddir=$ac_abs_builddir;;
12063   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12064   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12065   esac;;
12066 esac
12067 case $ac_abs_builddir in
12068 .) ac_abs_srcdir=$ac_srcdir;;
12069 *)
12070   case $ac_srcdir in
12071   .) ac_abs_srcdir=$ac_abs_builddir;;
12072   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12073   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12074   esac;;
12075 esac
12076 case $ac_abs_builddir in
12077 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12078 *)
12079   case $ac_top_srcdir in
12080   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12081   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12082   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12083   esac;;
12084 esac
12085
12086
12087   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12088 echo "$as_me: executing $ac_dest commands" >&6;}
12089   case $ac_dest in
12090     default-1 )
12091 # Only add multilib support code if we just rebuilt the top-level
12092 # Makefile.
12093 case " $CONFIG_FILES " in
12094  *" Makefile "*)
12095    ac_file=Makefile . ${multi_basedir}/config-ml.in
12096    ;;
12097 esac ;;
12098     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12099   # Strip MF so we end up with the name of the file.
12100   mf=`echo "$mf" | sed -e 's/:.*$//'`
12101   # Check whether this is an Automake generated Makefile or not.
12102   # We used to match only the files named `Makefile.in', but
12103   # some people rename them; so instead we look at the file content.
12104   # Grep'ing the first line is not enough: some people post-process
12105   # each Makefile.in and add a new line on top of each file to say so.
12106   # So let's grep whole file.
12107   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12108     dirpart=`(dirname "$mf") 2>/dev/null ||
12109 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12110          X"$mf" : 'X\(//\)[^/]' \| \
12111          X"$mf" : 'X\(//\)$' \| \
12112          X"$mf" : 'X\(/\)' \| \
12113          .     : '\(.\)' 2>/dev/null ||
12114 echo X"$mf" |
12115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12117           /^X\(\/\/\)$/{ s//\1/; q; }
12118           /^X\(\/\).*/{ s//\1/; q; }
12119           s/.*/./; q'`
12120   else
12121     continue
12122   fi
12123   # Extract the definition of DEPDIR, am__include, and am__quote
12124   # from the Makefile without running `make'.
12125   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12126   test -z "$DEPDIR" && continue
12127   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12128   test -z "am__include" && continue
12129   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12130   # When using ansi2knr, U may be empty or an underscore; expand it
12131   U=`sed -n 's/^U = //p' < "$mf"`
12132   # Find all dependency output files, they are included files with
12133   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12134   # simplest approach to changing $(DEPDIR) to its actual value in the
12135   # expansion.
12136   for file in `sed -n "
12137     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12138        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12139     # Make sure the directory exists.
12140     test -f "$dirpart/$file" && continue
12141     fdir=`(dirname "$file") 2>/dev/null ||
12142 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12143          X"$file" : 'X\(//\)[^/]' \| \
12144          X"$file" : 'X\(//\)$' \| \
12145          X"$file" : 'X\(/\)' \| \
12146          .     : '\(.\)' 2>/dev/null ||
12147 echo X"$file" |
12148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12149           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12150           /^X\(\/\/\)$/{ s//\1/; q; }
12151           /^X\(\/\).*/{ s//\1/; q; }
12152           s/.*/./; q'`
12153     { if $as_mkdir_p; then
12154     mkdir -p $dirpart/$fdir
12155   else
12156     as_dir=$dirpart/$fdir
12157     as_dirs=
12158     while test ! -d "$as_dir"; do
12159       as_dirs="$as_dir $as_dirs"
12160       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12162          X"$as_dir" : 'X\(//\)[^/]' \| \
12163          X"$as_dir" : 'X\(//\)$' \| \
12164          X"$as_dir" : 'X\(/\)' \| \
12165          .     : '\(.\)' 2>/dev/null ||
12166 echo X"$as_dir" |
12167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12168           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12169           /^X\(\/\/\)$/{ s//\1/; q; }
12170           /^X\(\/\).*/{ s//\1/; q; }
12171           s/.*/./; q'`
12172     done
12173     test ! -n "$as_dirs" || mkdir $as_dirs
12174   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12175 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12176    { (exit 1); exit 1; }; }; }
12177
12178     # echo "creating $dirpart/$file"
12179     echo '# dummy' > "$dirpart/$file"
12180   done
12181 done
12182  ;;
12183     libtool )
12184
12185     # See if we are running on zsh, and set the options which allow our
12186     # commands through without removal of \ escapes.
12187     if test -n "${ZSH_VERSION+set}" ; then
12188       setopt NO_GLOB_SUBST
12189     fi
12190
12191     cfgfile="${ofile}T"
12192     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12193     $RM "$cfgfile"
12194
12195     cat <<_LT_EOF >> "$cfgfile"
12196 #! $SHELL
12197
12198 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12199 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12201 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12202 #
12203 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12204 # 2006, 2007 Free Software Foundation, Inc.
12205 #
12206 # This file is part of GNU Libtool:
12207 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12208 #
12209 # This program is free software; you can redistribute it and/or modify
12210 # it under the terms of the GNU General Public License as published by
12211 # the Free Software Foundation; either version 2 of the License, or
12212 # (at your option) any later version.
12213 #
12214 # This program is distributed in the hope that it will be useful, but
12215 # WITHOUT ANY WARRANTY; without even the implied warranty of
12216 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12217 # General Public License for more details.
12218 #
12219 # You should have received a copy of the GNU General Public License
12220 # along with this program; if not, a copy can be downloaded from
12221 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12222 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12223 # MA 02110-1301, USA.
12224 #
12225 # As a special exception to the GNU General Public License, if you
12226 # distribute this file as part of a program that contains a
12227 # configuration script generated by Autoconf, you may include it under
12228 # the same distribution terms that you use for the rest of that program.
12229
12230
12231 # The names of the tagged configurations supported by this script.
12232 available_tags=""
12233
12234 # ### BEGIN LIBTOOL CONFIG
12235
12236 # Which release of libtool.m4 was used?
12237 macro_version=$macro_version
12238 macro_revision=$macro_revision
12239
12240 # Whether or not to build shared libraries.
12241 build_libtool_libs=$enable_shared
12242
12243 # Whether or not to build static libraries.
12244 build_old_libs=$enable_static
12245
12246 # What type of objects to build.
12247 pic_mode=$pic_mode
12248
12249 # Whether or not to optimize for fast installation.
12250 fast_install=$enable_fast_install
12251
12252 # The host system.
12253 host_alias=$host_alias
12254 host=$host
12255 host_os=$host_os
12256
12257 # The build system.
12258 build_alias=$build_alias
12259 build=$build
12260 build_os=$build_os
12261
12262 # A sed program that does not truncate output.
12263 SED=$lt_SED
12264
12265 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12266 Xsed="\$SED -e 1s/^X//"
12267
12268 # A grep program that handles long lines.
12269 GREP=$lt_GREP
12270
12271 # An ERE matcher.
12272 EGREP=$lt_EGREP
12273
12274 # A literal string matcher.
12275 FGREP=$lt_FGREP
12276
12277 # A BSD- or MS-compatible name lister.
12278 NM=$lt_NM
12279
12280 # Whether we need soft or hard links.
12281 LN_S=$lt_LN_S
12282
12283 # What is the maximum length of a command?
12284 max_cmd_len=$max_cmd_len
12285
12286 # Object file suffix (normally "o").
12287 objext=$ac_objext
12288
12289 # Executable file suffix (normally "").
12290 exeext=$exeext
12291
12292 # whether the shell understands "unset".
12293 lt_unset=$lt_unset
12294
12295 # turn spaces into newlines.
12296 SP2NL=$lt_lt_SP2NL
12297
12298 # turn newlines into spaces.
12299 NL2SP=$lt_lt_NL2SP
12300
12301 # How to create reloadable object files.
12302 reload_flag=$lt_reload_flag
12303 reload_cmds=$lt_reload_cmds
12304
12305 # Method to check whether dependent libraries are shared objects.
12306 deplibs_check_method=$lt_deplibs_check_method
12307
12308 # Command to use when deplibs_check_method == "file_magic".
12309 file_magic_cmd=$lt_file_magic_cmd
12310
12311 # The archiver.
12312 AR=$lt_AR
12313 AR_FLAGS=$lt_AR_FLAGS
12314
12315 # A symbol stripping program.
12316 STRIP=$lt_STRIP
12317
12318 # Commands used to install an old-style archive.
12319 RANLIB=$lt_RANLIB
12320 old_postinstall_cmds=$lt_old_postinstall_cmds
12321 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12322
12323 # A C compiler.
12324 LTCC=$lt_CC
12325
12326 # LTCC compiler flags.
12327 LTCFLAGS=$lt_CFLAGS
12328
12329 # Take the output of nm and produce a listing of raw symbols and C names.
12330 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12331
12332 # Transform the output of nm in a proper C declaration.
12333 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12334
12335 # Transform the output of nm in a C name address pair.
12336 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12337
12338 # The name of the directory that contains temporary libtool files.
12339 objdir=$objdir
12340
12341 # Shell to use when invoking shell scripts.
12342 SHELL=$lt_SHELL
12343
12344 # An echo program that does not interpret backslashes.
12345 ECHO=$lt_ECHO
12346
12347 # Used to examine libraries when file_magic_cmd begins with "file".
12348 MAGIC_CMD=$MAGIC_CMD
12349
12350 # Must we lock files when doing compilation?
12351 need_locks=$lt_need_locks
12352
12353 # Old archive suffix (normally "a").
12354 libext=$libext
12355
12356 # Shared library suffix (normally ".so").
12357 shrext_cmds=$lt_shrext_cmds
12358
12359 # The commands to extract the exported symbol list from a shared archive.
12360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12361
12362 # Variables whose values should be saved in libtool wrapper scripts and
12363 # restored at link time.
12364 variables_saved_for_relink=$lt_variables_saved_for_relink
12365
12366 # Do we need the "lib" prefix for modules?
12367 need_lib_prefix=$need_lib_prefix
12368
12369 # Do we need a version for libraries?
12370 need_version=$need_version
12371
12372 # Library versioning type.
12373 version_type=$version_type
12374
12375 # Shared library runtime path variable.
12376 runpath_var=$runpath_var
12377
12378 # Shared library path variable.
12379 shlibpath_var=$shlibpath_var
12380
12381 # Is shlibpath searched before the hard-coded library search path?
12382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12383
12384 # Format of library name prefix.
12385 libname_spec=$lt_libname_spec
12386
12387 # List of archive names.  First name is the real one, the rest are links.
12388 # The last name is the one that the linker finds with -lNAME
12389 library_names_spec=$lt_library_names_spec
12390
12391 # The coded name of the library, if different from the real name.
12392 soname_spec=$lt_soname_spec
12393
12394 # Command to use after installation of a shared archive.
12395 postinstall_cmds=$lt_postinstall_cmds
12396
12397 # Command to use after uninstallation of a shared archive.
12398 postuninstall_cmds=$lt_postuninstall_cmds
12399
12400 # Commands used to finish a libtool library installation in a directory.
12401 finish_cmds=$lt_finish_cmds
12402
12403 # As "finish_cmds", except a single script fragment to be evaled but
12404 # not shown.
12405 finish_eval=$lt_finish_eval
12406
12407 # Whether we should hardcode library paths into libraries.
12408 hardcode_into_libs=$hardcode_into_libs
12409
12410 # Compile-time system search path for libraries.
12411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12412
12413 # Run-time system search path for libraries.
12414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12415
12416 # Whether dlopen is supported.
12417 dlopen_support=$enable_dlopen
12418
12419 # Whether dlopen of programs is supported.
12420 dlopen_self=$enable_dlopen_self
12421
12422 # Whether dlopen of statically linked programs is supported.
12423 dlopen_self_static=$enable_dlopen_self_static
12424
12425 # Commands to strip libraries.
12426 old_striplib=$lt_old_striplib
12427 striplib=$lt_striplib
12428
12429
12430 # The linker used to build libraries.
12431 LD=$lt_LD
12432
12433 # Commands used to build an old-style archive.
12434 old_archive_cmds=$lt_old_archive_cmds
12435
12436 # A language specific compiler.
12437 CC=$lt_compiler
12438
12439 # Is the compiler the GNU compiler?
12440 with_gcc=$GCC
12441
12442 # Compiler flag to turn off builtin functions.
12443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12444
12445 # How to pass a linker flag through the compiler.
12446 wl=$lt_lt_prog_compiler_wl
12447
12448 # Additional compiler flags for building library objects.
12449 pic_flag=$lt_lt_prog_compiler_pic
12450
12451 # Compiler flag to prevent dynamic linking.
12452 link_static_flag=$lt_lt_prog_compiler_static
12453
12454 # Does compiler simultaneously support -c and -o options?
12455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12456
12457 # Whether or not to add -lc for building shared libraries.
12458 build_libtool_need_lc=$archive_cmds_need_lc
12459
12460 # Whether or not to disallow shared libs when runtime libs are static.
12461 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12462
12463 # Compiler flag to allow reflexive dlopens.
12464 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12465
12466 # Compiler flag to generate shared objects directly from archives.
12467 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12468
12469 # Whether the compiler copes with passing no objects directly.
12470 compiler_needs_object=$lt_compiler_needs_object
12471
12472 # Create an old-style archive from a shared archive.
12473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12474
12475 # Create a temporary old-style archive to link instead of a shared archive.
12476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12477
12478 # Commands used to build a shared archive.
12479 archive_cmds=$lt_archive_cmds
12480 archive_expsym_cmds=$lt_archive_expsym_cmds
12481
12482 # Commands used to build a loadable module if different from building
12483 # a shared archive.
12484 module_cmds=$lt_module_cmds
12485 module_expsym_cmds=$lt_module_expsym_cmds
12486
12487 # Whether we are building with GNU ld or not.
12488 with_gnu_ld=$lt_with_gnu_ld
12489
12490 # Flag that allows shared libraries with undefined symbols to be built.
12491 allow_undefined_flag=$lt_allow_undefined_flag
12492
12493 # Flag that enforces no undefined symbols.
12494 no_undefined_flag=$lt_no_undefined_flag
12495
12496 # Flag to hardcode \$libdir into a binary during linking.
12497 # This must work even if \$libdir does not exist
12498 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12499
12500 # If ld is used when linking, flag to hardcode \$libdir into a binary
12501 # during linking.  This must work even if \$libdir does not exist.
12502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12503
12504 # Whether we need a single "-rpath" flag with a separated argument.
12505 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12506
12507 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12508 # DIR into the resulting binary.
12509 hardcode_direct=$hardcode_direct
12510
12511 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12512 # DIR into the resulting binary and the resulting library dependency is
12513 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12514 # library is relocated.
12515 hardcode_direct_absolute=$hardcode_direct_absolute
12516
12517 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12518 # into the resulting binary.
12519 hardcode_minus_L=$hardcode_minus_L
12520
12521 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12522 # into the resulting binary.
12523 hardcode_shlibpath_var=$hardcode_shlibpath_var
12524
12525 # Set to "yes" if building a shared library automatically hardcodes DIR
12526 # into the library and all subsequent libraries and executables linked
12527 # against it.
12528 hardcode_automatic=$hardcode_automatic
12529
12530 # Set to yes if linker adds runtime paths of dependent libraries
12531 # to runtime path list.
12532 inherit_rpath=$inherit_rpath
12533
12534 # Whether libtool must link a program against all its dependency libraries.
12535 link_all_deplibs=$link_all_deplibs
12536
12537 # Fix the shell variable \$srcfile for the compiler.
12538 fix_srcfile_path=$lt_fix_srcfile_path
12539
12540 # Set to "yes" if exported symbols are required.
12541 always_export_symbols=$always_export_symbols
12542
12543 # The commands to list exported symbols.
12544 export_symbols_cmds=$lt_export_symbols_cmds
12545
12546 # Symbols that should not be listed in the preloaded symbols.
12547 exclude_expsyms=$lt_exclude_expsyms
12548
12549 # Symbols that must always be exported.
12550 include_expsyms=$lt_include_expsyms
12551
12552 # Commands necessary for linking programs (against libraries) with templates.
12553 prelink_cmds=$lt_prelink_cmds
12554
12555 # Specify filename containing input files.
12556 file_list_spec=$lt_file_list_spec
12557
12558 # How to hardcode a shared library path into an executable.
12559 hardcode_action=$hardcode_action
12560
12561 # ### END LIBTOOL CONFIG
12562
12563 _LT_EOF
12564
12565   case $host_os in
12566   aix3*)
12567     cat <<\_LT_EOF >> "$cfgfile"
12568 # AIX sometimes has problems with the GCC collect2 program.  For some
12569 # reason, if we set the COLLECT_NAMES environment variable, the problems
12570 # vanish in a puff of smoke.
12571 if test "X${COLLECT_NAMES+set}" != Xset; then
12572   COLLECT_NAMES=
12573   export COLLECT_NAMES
12574 fi
12575 _LT_EOF
12576     ;;
12577   esac
12578
12579
12580 ltmain="$ac_aux_dir/ltmain.sh"
12581
12582
12583   # We use sed instead of cat because bash on DJGPP gets confused if
12584   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12585   # text mode, it properly converts lines to CR/LF.  This bash problem
12586   # is reportedly fixed, but why not run on old versions too?
12587   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12588     || (rm -f "$cfgfile"; exit 1)
12589
12590   case $xsi_shell in
12591   yes)
12592     cat << \_LT_EOF >> "$cfgfile"
12593 # func_dirname file append nondir_replacement
12594 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12595 # otherwise set result to NONDIR_REPLACEMENT.
12596 func_dirname ()
12597 {
12598   case ${1} in
12599     */*) func_dirname_result="${1%/*}${2}" ;;
12600     *  ) func_dirname_result="${3}" ;;
12601   esac
12602 }
12603
12604 # func_basename file
12605 func_basename ()
12606 {
12607   func_basename_result="${1##*/}"
12608 }
12609
12610 # func_stripname prefix suffix name
12611 # strip PREFIX and SUFFIX off of NAME.
12612 # PREFIX and SUFFIX must not contain globbing or regex special
12613 # characters, hashes, percent signs, but SUFFIX may contain a leading
12614 # dot (in which case that matches only a dot).
12615 func_stripname ()
12616 {
12617   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12618   # positional parameters, so assign one to ordinary parameter first.
12619   func_stripname_result=${3}
12620   func_stripname_result=${func_stripname_result#"${1}"}
12621   func_stripname_result=${func_stripname_result%"${2}"}
12622 }
12623
12624 # func_opt_split
12625 func_opt_split ()
12626 {
12627   func_opt_split_opt=${1%%=*}
12628   func_opt_split_arg=${1#*=}
12629 }
12630
12631 # func_lo2o object
12632 func_lo2o ()
12633 {
12634   case ${1} in
12635     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12636     *)    func_lo2o_result=${1} ;;
12637   esac
12638 }
12639 _LT_EOF
12640     ;;
12641   *) # Bourne compatible functions.
12642     cat << \_LT_EOF >> "$cfgfile"
12643 # func_dirname file append nondir_replacement
12644 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12645 # otherwise set result to NONDIR_REPLACEMENT.
12646 func_dirname ()
12647 {
12648   # Extract subdirectory from the argument.
12649   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12650   if test "X$func_dirname_result" = "X${1}"; then
12651     func_dirname_result="${3}"
12652   else
12653     func_dirname_result="$func_dirname_result${2}"
12654   fi
12655 }
12656
12657 # func_basename file
12658 func_basename ()
12659 {
12660   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12661 }
12662
12663 # func_stripname prefix suffix name
12664 # strip PREFIX and SUFFIX off of NAME.
12665 # PREFIX and SUFFIX must not contain globbing or regex special
12666 # characters, hashes, percent signs, but SUFFIX may contain a leading
12667 # dot (in which case that matches only a dot).
12668 # func_strip_suffix prefix name
12669 func_stripname ()
12670 {
12671   case ${2} in
12672     .*) func_stripname_result=`$ECHO "X${3}" \
12673            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12674     *)  func_stripname_result=`$ECHO "X${3}" \
12675            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12676   esac
12677 }
12678
12679 # sed scripts:
12680 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12681 my_sed_long_arg='1s/^-[^=]*=//'
12682
12683 # func_opt_split
12684 func_opt_split ()
12685 {
12686   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12687   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12688 }
12689
12690 # func_lo2o object
12691 func_lo2o ()
12692 {
12693   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12694 }
12695 _LT_EOF
12696 esac
12697
12698 case $lt_shell_append in
12699   yes)
12700     cat << \_LT_EOF >> "$cfgfile"
12701
12702 # func_append var value
12703 # Append VALUE to the end of shell variable VAR.
12704 func_append ()
12705 {
12706   eval "$1+=\$2"
12707 }
12708 _LT_EOF
12709     ;;
12710   *)
12711     cat << \_LT_EOF >> "$cfgfile"
12712
12713 # func_append var value
12714 # Append VALUE to the end of shell variable VAR.
12715 func_append ()
12716 {
12717   eval "$1=\$$1\$2"
12718 }
12719 _LT_EOF
12720     ;;
12721   esac
12722
12723
12724   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12725     || (rm -f "$cfgfile"; exit 1)
12726
12727   mv -f "$cfgfile" "$ofile" ||
12728     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12729   chmod +x "$ofile"
12730
12731  ;;
12732   esac
12733 done
12734 _ACEOF
12735
12736 cat >>$CONFIG_STATUS <<\_ACEOF
12737
12738 { (exit 0); exit 0; }
12739 _ACEOF
12740 chmod +x $CONFIG_STATUS
12741 ac_clean_files=$ac_clean_files_save
12742
12743
12744 # configure is writing to config.log, and then calls config.status.
12745 # config.status does its own redirection, appending to config.log.
12746 # Unfortunately, on DOS this fails, as config.log is still kept open
12747 # by configure, so config.status won't be able to write to it; its
12748 # output is simply discarded.  So we exec the FD to /dev/null,
12749 # effectively closing config.log, so it can be properly (re)opened and
12750 # appended to by config.status.  When coming back to configure, we
12751 # need to make the FD available again.
12752 if test "$no_create" != yes; then
12753   ac_cs_success=:
12754   ac_config_status_args=
12755   test "$silent" = yes &&
12756     ac_config_status_args="$ac_config_status_args --quiet"
12757   exec 5>/dev/null
12758   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12759   exec 5>>config.log
12760   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12761   # would make configure fail if this is the last instruction.
12762   $ac_cs_success || { (exit 1); exit 1; }
12763 fi
12764