OSDN Git Service

* ltmain.sh: Update from GCC.
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / sys / linux / linuxthreads / machine / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for newlib 1.15.0.
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='newlib'
418 PACKAGE_TARNAME='newlib'
419 PACKAGE_VERSION='1.15.0'
420 PACKAGE_STRING='newlib 1.15.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="i386"
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_subdirs_all="$ac_subdirs_all i386"
462 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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP subdirs HAVE_MACHINE_DIR_TRUE HAVE_MACHINE_DIR_FALSE LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
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_CCAS_set=${CCAS+set}
904 ac_env_CCAS_value=$CCAS
905 ac_cv_env_CCAS_set=${CCAS+set}
906 ac_cv_env_CCAS_value=$CCAS
907 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908 ac_env_CCASFLAGS_value=$CCASFLAGS
909 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures newlib 1.15.0 to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 Program names:
993   --program-prefix=PREFIX            prepend PREFIX to installed program names
994   --program-suffix=SUFFIX            append SUFFIX to installed program names
995   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000 _ACEOF
1001 fi
1002
1003 if test -n "$ac_init_help"; then
1004   case $ac_init_help in
1005      short | recursive ) echo "Configuration of newlib 1.15.0:";;
1006    esac
1007   cat <<\_ACEOF
1008
1009 Optional Features:
1010   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1011   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1012   --enable-multilib         build many library versions (default)
1013   --enable-target-optspace  optimize for space
1014   --enable-malloc-debugging indicate malloc debugging requested
1015   --enable-newlib-multithread        enable support for multiple threads
1016   --enable-newlib-iconv     enable iconv library support
1017   --enable-newlib-elix-level         supply desired elix library level (1-4)
1018   --disable-newlib-io-float disable printf/scanf family float support
1019   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1020   --disable-dependency-tracking  speeds up one-time build
1021   --enable-dependency-tracking   do not reject slow dependency extractors
1022   --enable-maintainer-mode  enable make rules and dependencies not useful
1023                           (and sometimes confusing) to the casual installer
1024   --enable-shared[=PKGS]
1025                           build shared libraries [default=yes]
1026   --enable-static[=PKGS]
1027                           build static libraries [default=yes]
1028   --enable-fast-install[=PKGS]
1029                           optimize for fast installation [default=yes]
1030   --disable-libtool-lock  avoid locking (might break parallel builds)
1031
1032 Optional Packages:
1033   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035   --with-pic              try to use only PIC/non-PIC objects [default=use
1036                           both]
1037   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1038
1039 Some influential environment variables:
1040   CCAS        assembler compiler command (defaults to CC)
1041   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1042   CC          C compiler command
1043   CFLAGS      C compiler flags
1044   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1045               nonstandard directory <lib dir>
1046   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047               headers in a nonstandard directory <include dir>
1048   CPP         C preprocessor
1049
1050 Use these variables to override the choices made by `configure' or to help
1051 it to find libraries and programs with nonstandard names/locations.
1052
1053 _ACEOF
1054 fi
1055
1056 if test "$ac_init_help" = "recursive"; then
1057   # If there are subdirs, report their specific --help.
1058   ac_popdir=`pwd`
1059   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1060     test -d $ac_dir || continue
1061     ac_builddir=.
1062
1063 if test "$ac_dir" != .; then
1064   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1065   # A "../" for each directory in $ac_dir_suffix.
1066   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1067 else
1068   ac_dir_suffix= ac_top_builddir=
1069 fi
1070
1071 case $srcdir in
1072   .)  # No --srcdir option.  We are building in place.
1073     ac_srcdir=.
1074     if test -z "$ac_top_builddir"; then
1075        ac_top_srcdir=.
1076     else
1077        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1078     fi ;;
1079   [\\/]* | ?:[\\/]* )  # Absolute path.
1080     ac_srcdir=$srcdir$ac_dir_suffix;
1081     ac_top_srcdir=$srcdir ;;
1082   *) # Relative path.
1083     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1084     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085 esac
1086
1087 # Do not use `cd foo && pwd` to compute absolute paths, because
1088 # the directories may not exist.
1089 case `pwd` in
1090 .) ac_abs_builddir="$ac_dir";;
1091 *)
1092   case "$ac_dir" in
1093   .) ac_abs_builddir=`pwd`;;
1094   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1095   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1096   esac;;
1097 esac
1098 case $ac_abs_builddir in
1099 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *)
1101   case ${ac_top_builddir}. in
1102   .) ac_abs_top_builddir=$ac_abs_builddir;;
1103   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1104   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1105   esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_srcdir=$ac_srcdir;;
1109 *)
1110   case $ac_srcdir in
1111   .) ac_abs_srcdir=$ac_abs_builddir;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1113   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1114   esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *)
1119   case $ac_top_srcdir in
1120   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1122   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1123   esac;;
1124 esac
1125
1126     cd $ac_dir
1127     # Check for guested configure; otherwise get Cygnus style configure.
1128     if test -f $ac_srcdir/configure.gnu; then
1129       echo
1130       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1131     elif test -f $ac_srcdir/configure; then
1132       echo
1133       $SHELL $ac_srcdir/configure  --help=recursive
1134     elif test -f $ac_srcdir/configure.ac ||
1135            test -f $ac_srcdir/configure.in; then
1136       echo
1137       $ac_configure --help
1138     else
1139       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140     fi
1141     cd $ac_popdir
1142   done
1143 fi
1144
1145 test -n "$ac_init_help" && exit 0
1146 if $ac_init_version; then
1147   cat <<\_ACEOF
1148 newlib configure 1.15.0
1149 generated by GNU Autoconf 2.59
1150
1151 Copyright (C) 2003 Free Software Foundation, Inc.
1152 This configure script is free software; the Free Software Foundation
1153 gives unlimited permission to copy, distribute and modify it.
1154 _ACEOF
1155   exit 0
1156 fi
1157 exec 5>config.log
1158 cat >&5 <<_ACEOF
1159 This file contains any messages produced by compilers while
1160 running configure, to aid debugging if configure makes a mistake.
1161
1162 It was created by newlib $as_me 1.15.0, which was
1163 generated by GNU Autoconf 2.59.  Invocation command line was
1164
1165   $ $0 $@
1166
1167 _ACEOF
1168 {
1169 cat <<_ASUNAME
1170 ## --------- ##
1171 ## Platform. ##
1172 ## --------- ##
1173
1174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
1180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1182
1183 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1184 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1187 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1188 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1189 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1190
1191 _ASUNAME
1192
1193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194 for as_dir in $PATH
1195 do
1196   IFS=$as_save_IFS
1197   test -z "$as_dir" && as_dir=.
1198   echo "PATH: $as_dir"
1199 done
1200
1201 } >&5
1202
1203 cat >&5 <<_ACEOF
1204
1205
1206 ## ----------- ##
1207 ## Core tests. ##
1208 ## ----------- ##
1209
1210 _ACEOF
1211
1212
1213 # Keep a trace of the command line.
1214 # Strip out --no-create and --no-recursion so they do not pile up.
1215 # Strip out --silent because we don't want to record it for future runs.
1216 # Also quote any args containing shell meta-characters.
1217 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_configure_args=
1219 ac_configure_args0=
1220 ac_configure_args1=
1221 ac_sep=
1222 ac_must_keep_next=false
1223 for ac_pass in 1 2
1224 do
1225   for ac_arg
1226   do
1227     case $ac_arg in
1228     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230     | -silent | --silent | --silen | --sile | --sil)
1231       continue ;;
1232     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234     esac
1235     case $ac_pass in
1236     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237     2)
1238       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239       if test $ac_must_keep_next = true; then
1240         ac_must_keep_next=false # Got value, back to normal.
1241       else
1242         case $ac_arg in
1243           *=* | --config-cache | -C | -disable-* | --disable-* \
1244           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246           | -with-* | --with-* | -without-* | --without-* | --x)
1247             case "$ac_configure_args0 " in
1248               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249             esac
1250             ;;
1251           -* ) ac_must_keep_next=true ;;
1252         esac
1253       fi
1254       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255       # Get rid of the leading space.
1256       ac_sep=" "
1257       ;;
1258     esac
1259   done
1260 done
1261 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
1264 # When interrupted or exit'd, cleanup temporary files, and complete
1265 # config.log.  We remove comments because anyway the quotes in there
1266 # would cause problems or look ugly.
1267 # WARNING: Be sure not to use single quotes in there, as some shells,
1268 # such as our DU 5.0 friend, will then `close' the trap.
1269 trap 'exit_status=$?
1270   # Save into config.log some information that might help in debugging.
1271   {
1272     echo
1273
1274     cat <<\_ASBOX
1275 ## ---------------- ##
1276 ## Cache variables. ##
1277 ## ---------------- ##
1278 _ASBOX
1279     echo
1280     # The following way of writing the cache mishandles newlines in values,
1281 {
1282   (set) 2>&1 |
1283     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284     *ac_space=\ *)
1285       sed -n \
1286         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1288       ;;
1289     *)
1290       sed -n \
1291         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1292       ;;
1293     esac;
1294 }
1295     echo
1296
1297     cat <<\_ASBOX
1298 ## ----------------- ##
1299 ## Output variables. ##
1300 ## ----------------- ##
1301 _ASBOX
1302     echo
1303     for ac_var in $ac_subst_vars
1304     do
1305       eval ac_val=$`echo $ac_var`
1306       echo "$ac_var='"'"'$ac_val'"'"'"
1307     done | sort
1308     echo
1309
1310     if test -n "$ac_subst_files"; then
1311       cat <<\_ASBOX
1312 ## ------------- ##
1313 ## Output files. ##
1314 ## ------------- ##
1315 _ASBOX
1316       echo
1317       for ac_var in $ac_subst_files
1318       do
1319         eval ac_val=$`echo $ac_var`
1320         echo "$ac_var='"'"'$ac_val'"'"'"
1321       done | sort
1322       echo
1323     fi
1324
1325     if test -s confdefs.h; then
1326       cat <<\_ASBOX
1327 ## ----------- ##
1328 ## confdefs.h. ##
1329 ## ----------- ##
1330 _ASBOX
1331       echo
1332       sed "/^$/d" confdefs.h | sort
1333       echo
1334     fi
1335     test "$ac_signal" != 0 &&
1336       echo "$as_me: caught signal $ac_signal"
1337     echo "$as_me: exit $exit_status"
1338   } >&5
1339   rm -f core *.core &&
1340   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341     exit $exit_status
1342      ' 0
1343 for ac_signal in 1 2 13 15; do
1344   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345 done
1346 ac_signal=0
1347
1348 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1349 rm -rf conftest* confdefs.h
1350 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351 echo >confdefs.h
1352
1353 # Predefined preprocessor variables.
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_NAME "$PACKAGE_NAME"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_STRING "$PACKAGE_STRING"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377 _ACEOF
1378
1379
1380 # Let the site file select an alternate cache file if it wants to.
1381 # Prefer explicitly selected file to automatically selected ones.
1382 if test -z "$CONFIG_SITE"; then
1383   if test "x$prefix" != xNONE; then
1384     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385   else
1386     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387   fi
1388 fi
1389 for ac_site_file in $CONFIG_SITE; do
1390   if test -r "$ac_site_file"; then
1391     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392 echo "$as_me: loading site script $ac_site_file" >&6;}
1393     sed 's/^/| /' "$ac_site_file" >&5
1394     . "$ac_site_file"
1395   fi
1396 done
1397
1398 if test -r "$cache_file"; then
1399   # Some versions of bash will fail to source /dev/null (special
1400   # files actually), so we avoid doing that.
1401   if test -f "$cache_file"; then
1402     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403 echo "$as_me: loading cache $cache_file" >&6;}
1404     case $cache_file in
1405       [\\/]* | ?:[\\/]* ) . $cache_file;;
1406       *)                      . ./$cache_file;;
1407     esac
1408   fi
1409 else
1410   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411 echo "$as_me: creating cache $cache_file" >&6;}
1412   >$cache_file
1413 fi
1414
1415 # Check that the precious variables saved in the cache have kept the same
1416 # value.
1417 ac_cache_corrupted=false
1418 for ac_var in `(set) 2>&1 |
1419                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1420   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421   eval ac_new_set=\$ac_env_${ac_var}_set
1422   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423   eval ac_new_val="\$ac_env_${ac_var}_value"
1424   case $ac_old_set,$ac_new_set in
1425     set,)
1426       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428       ac_cache_corrupted=: ;;
1429     ,set)
1430       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432       ac_cache_corrupted=: ;;
1433     ,);;
1434     *)
1435       if test "x$ac_old_val" != "x$ac_new_val"; then
1436         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1439 echo "$as_me:   former value:  $ac_old_val" >&2;}
1440         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1441 echo "$as_me:   current value: $ac_new_val" >&2;}
1442         ac_cache_corrupted=:
1443       fi;;
1444   esac
1445   # Pass precious variables to config.status.
1446   if test "$ac_new_set" = set; then
1447     case $ac_new_val in
1448     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450     *) ac_arg=$ac_var=$ac_new_val ;;
1451     esac
1452     case " $ac_configure_args " in
1453       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1454       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455     esac
1456   fi
1457 done
1458 if $ac_cache_corrupted; then
1459   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463    { (exit 1); exit 1; }; }
1464 fi
1465
1466 ac_ext=c
1467 ac_cpp='$CPP $CPPFLAGS'
1468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500 ac_aux_dir=
1501 for ac_dir in ../../../../../.. $srcdir/../../../../../..; do
1502   if test -f $ac_dir/install-sh; then
1503     ac_aux_dir=$ac_dir
1504     ac_install_sh="$ac_aux_dir/install-sh -c"
1505     break
1506   elif test -f $ac_dir/install.sh; then
1507     ac_aux_dir=$ac_dir
1508     ac_install_sh="$ac_aux_dir/install.sh -c"
1509     break
1510   elif test -f $ac_dir/shtool; then
1511     ac_aux_dir=$ac_dir
1512     ac_install_sh="$ac_aux_dir/shtool install -c"
1513     break
1514   fi
1515 done
1516 if test -z "$ac_aux_dir"; then
1517   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&5
1518 echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&2;}
1519    { (exit 1); exit 1; }; }
1520 fi
1521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1524
1525
1526
1527 # Make sure we can run config.sub.
1528 $ac_config_sub sun4 >/dev/null 2>&1 ||
1529   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531    { (exit 1); exit 1; }; }
1532
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536   echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538   ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540   ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544    { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1553 build=$ac_cv_build
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 am__api_version="1.9"
1560 # Find a good install program.  We prefer a C program (faster),
1561 # so one script is as good as another.  But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1566 # AIX /bin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # OS/2's system install, which has a completely different semantic
1572 # ./install, which can be erroneously created by make from ./install.sh.
1573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575 if test -z "$INSTALL"; then
1576 if test "${ac_cv_path_install+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   # Account for people who put trailing slashes in PATH elements.
1585 case $as_dir/ in
1586   ./ | .// | /cC/* | \
1587   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589   /usr/ucb/* ) ;;
1590   *)
1591     # OSF1 and SCO ODT 3.0 have their own names for install.
1592     # Don't use installbsd from OSF since it installs stuff as root
1593     # by default.
1594     for ac_prog in ginstall scoinst install; do
1595       for ac_exec_ext in '' $ac_executable_extensions; do
1596         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597           if test $ac_prog = install &&
1598             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # AIX install.  It has an incompatible calling convention.
1600             :
1601           elif test $ac_prog = install &&
1602             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603             # program-specific install script used by HP pwplus--don't use.
1604             :
1605           else
1606             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1607             break 3
1608           fi
1609         fi
1610       done
1611     done
1612     ;;
1613 esac
1614 done
1615
1616
1617 fi
1618   if test "${ac_cv_path_install+set}" = set; then
1619     INSTALL=$ac_cv_path_install
1620   else
1621     # As a last resort, use the slow shell script.  We don't cache a
1622     # path for INSTALL within a source directory, because that will
1623     # break other packages using the cache if that directory is
1624     # removed, or if the path is relative.
1625     INSTALL=$ac_install_sh
1626   fi
1627 fi
1628 echo "$as_me:$LINENO: result: $INSTALL" >&5
1629 echo "${ECHO_T}$INSTALL" >&6
1630
1631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632 # It thinks the first close brace ends the variable substitution.
1633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
1635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
1637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
1639 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641 # Just in case
1642 sleep 1
1643 echo timestamp > conftest.file
1644 # Do `set' in a subshell so we don't clobber the current shell's
1645 # arguments.  Must try -L first in case configure is actually a
1646 # symlink; some systems play weird games with the mod time of symlinks
1647 # (eg FreeBSD returns the mod time of the symlink's containing
1648 # directory).
1649 if (
1650    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651    if test "$*" = "X"; then
1652       # -L didn't work.
1653       set X `ls -t $srcdir/configure conftest.file`
1654    fi
1655    rm -f conftest.file
1656    if test "$*" != "X $srcdir/configure conftest.file" \
1657       && test "$*" != "X conftest.file $srcdir/configure"; then
1658
1659       # If neither matched, then we have a broken ls.  This can happen
1660       # if, for instance, CONFIG_SHELL is bash and it inherits a
1661       # broken ls alias from the environment.  This has actually
1662       # happened.  Such a system could not be considered "sane".
1663       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1664 alias in your environment" >&5
1665 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1666 alias in your environment" >&2;}
1667    { (exit 1); exit 1; }; }
1668    fi
1669
1670    test "$2" = conftest.file
1671    )
1672 then
1673    # Ok.
1674    :
1675 else
1676    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677 Check your system clock" >&5
1678 echo "$as_me: error: newly created file is older than distributed files!
1679 Check your system clock" >&2;}
1680    { (exit 1); exit 1; }; }
1681 fi
1682 echo "$as_me:$LINENO: result: yes" >&5
1683 echo "${ECHO_T}yes" >&6
1684 test "$program_prefix" != NONE &&
1685   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686 # Use a double $ so make ignores it.
1687 test "$program_suffix" != NONE &&
1688   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689 # Double any \ or $.  echo might interpret backslashes.
1690 # By default was `s,x,x', remove it if useless.
1691 cat <<\_ACEOF >conftest.sed
1692 s/[\\$]/&&/g;s/;s,x,x,$//
1693 _ACEOF
1694 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695 rm conftest.sed
1696
1697 # expand $ac_aux_dir to an absolute path
1698 am_aux_dir=`cd $ac_aux_dir && pwd`
1699
1700 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701 # Use eval to expand $SHELL
1702 if eval "$MISSING --run true"; then
1703   am_missing_run="$MISSING --run "
1704 else
1705   am_missing_run=
1706   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1708 fi
1709
1710 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711   # We used to keeping the `.' as first argument, in order to
1712   # allow $(mkdir_p) to be used without argument.  As in
1713   #   $(mkdir_p) $(somedir)
1714   # where $(somedir) is conditionally defined.  However this is wrong
1715   # for two reasons:
1716   #  1. if the package is installed by a user who cannot write `.'
1717   #     make install will fail,
1718   #  2. the above comment should most certainly read
1719   #     $(mkdir_p) $(DESTDIR)$(somedir)
1720   #     so it does not work when $(somedir) is undefined and
1721   #     $(DESTDIR) is not.
1722   #  To support the latter case, we have to write
1723   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724   #  so the `.' trick is pointless.
1725   mkdir_p='mkdir -p --'
1726 else
1727   # On NextStep and OpenStep, the `mkdir' command does not
1728   # recognize any option.  It will interpret all options as
1729   # directories to create, and then abort because `.' already
1730   # exists.
1731   for d in ./-p ./--version;
1732   do
1733     test -d $d && rmdir $d
1734   done
1735   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736   if test -f "$ac_aux_dir/mkinstalldirs"; then
1737     mkdir_p='$(mkinstalldirs)'
1738   else
1739     mkdir_p='$(install_sh) -d'
1740   fi
1741 fi
1742
1743 for ac_prog in gawk mawk nawk awk
1744 do
1745   # Extract the first word of "$ac_prog", so it can be a program name with args.
1746 set dummy $ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_AWK+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$AWK"; then
1753   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_AWK="$ac_prog"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 AWK=$ac_cv_prog_AWK
1772 if test -n "$AWK"; then
1773   echo "$as_me:$LINENO: result: $AWK" >&5
1774 echo "${ECHO_T}$AWK" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780   test -n "$AWK" && break
1781 done
1782
1783 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   cat >conftest.make <<\_ACEOF
1790 all:
1791         @echo 'ac_maketemp="$(MAKE)"'
1792 _ACEOF
1793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795 if test -n "$ac_maketemp"; then
1796   eval ac_cv_prog_make_${ac_make}_set=yes
1797 else
1798   eval ac_cv_prog_make_${ac_make}_set=no
1799 fi
1800 rm -f conftest.make
1801 fi
1802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803   echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1805   SET_MAKE=
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809   SET_MAKE="MAKE=${MAKE-make}"
1810 fi
1811
1812 rm -rf .tst 2>/dev/null
1813 mkdir .tst 2>/dev/null
1814 if test -d .tst; then
1815   am__leading_dot=.
1816 else
1817   am__leading_dot=_
1818 fi
1819 rmdir .tst 2>/dev/null
1820
1821 DEPDIR="${am__leading_dot}deps"
1822
1823           ac_config_commands="$ac_config_commands depfiles"
1824
1825
1826 am_make=${MAKE-make}
1827 cat > confinc << 'END'
1828 am__doit:
1829         @echo done
1830 .PHONY: am__doit
1831 END
1832 # If we don't find an include directive, just comment out the code.
1833 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1834 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1835 am__include="#"
1836 am__quote=
1837 _am_result=none
1838 # First try GNU make style include.
1839 echo "include confinc" > confmf
1840 # We grep out `Entering directory' and `Leaving directory'
1841 # messages which can occur if `w' ends up in MAKEFLAGS.
1842 # In particular we don't look at `^make:' because GNU make might
1843 # be invoked under some other name (usually "gmake"), in which
1844 # case it prints its new name instead of `make'.
1845 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1846    am__include=include
1847    am__quote=
1848    _am_result=GNU
1849 fi
1850 # Now try BSD make style include.
1851 if test "$am__include" = "#"; then
1852    echo '.include "confinc"' > confmf
1853    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1854       am__include=.include
1855       am__quote="\""
1856       _am_result=BSD
1857    fi
1858 fi
1859
1860
1861 echo "$as_me:$LINENO: result: $_am_result" >&5
1862 echo "${ECHO_T}$_am_result" >&6
1863 rm -f confinc confmf
1864
1865 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1866 if test "${enable_dependency_tracking+set}" = set; then
1867   enableval="$enable_dependency_tracking"
1868
1869 fi;
1870 if test "x$enable_dependency_tracking" != xno; then
1871   am_depcomp="$ac_aux_dir/depcomp"
1872   AMDEPBACKSLASH='\'
1873 fi
1874
1875
1876 if test "x$enable_dependency_tracking" != xno; then
1877   AMDEP_TRUE=
1878   AMDEP_FALSE='#'
1879 else
1880   AMDEP_TRUE='#'
1881   AMDEP_FALSE=
1882 fi
1883
1884
1885
1886
1887 # Check whether --enable-multilib or --disable-multilib was given.
1888 if test "${enable_multilib+set}" = set; then
1889   enableval="$enable_multilib"
1890   case "${enableval}" in
1891   yes) multilib=yes ;;
1892   no)  multilib=no ;;
1893   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1894 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1895    { (exit 1); exit 1; }; } ;;
1896  esac
1897 else
1898   multilib=yes
1899 fi;
1900 # Check whether --enable-target-optspace or --disable-target-optspace was given.
1901 if test "${enable_target_optspace+set}" = set; then
1902   enableval="$enable_target_optspace"
1903   case "${enableval}" in
1904   yes) target_optspace=yes ;;
1905   no)  target_optspace=no ;;
1906   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1907 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1908    { (exit 1); exit 1; }; } ;;
1909  esac
1910 else
1911   target_optspace=
1912 fi;
1913 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1914 if test "${enable_malloc_debugging+set}" = set; then
1915   enableval="$enable_malloc_debugging"
1916   case "${enableval}" in
1917   yes) malloc_debugging=yes ;;
1918   no)  malloc_debugging=no ;;
1919   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1920 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1921    { (exit 1); exit 1; }; } ;;
1922  esac
1923 else
1924   malloc_debugging=
1925 fi;
1926 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1927 if test "${enable_newlib_multithread+set}" = set; then
1928   enableval="$enable_newlib_multithread"
1929   case "${enableval}" in
1930   yes) newlib_multithread=yes ;;
1931   no)  newlib_multithread=no ;;
1932   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1933 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1934    { (exit 1); exit 1; }; } ;;
1935  esac
1936 else
1937   newlib_multithread=yes
1938 fi;
1939 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1940 if test "${enable_newlib_iconv+set}" = set; then
1941   enableval="$enable_newlib_iconv"
1942   if test "${newlib_iconv+set}" != set; then
1943    case "${enableval}" in
1944      yes) newlib_iconv=yes ;;
1945      no)  newlib_iconv=no ;;
1946      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1947 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1948    { (exit 1); exit 1; }; } ;;
1949    esac
1950  fi
1951 else
1952   newlib_iconv=${newlib_iconv}
1953 fi;
1954 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1955 if test "${enable_newlib_elix_level+set}" = set; then
1956   enableval="$enable_newlib_elix_level"
1957   case "${enableval}" in
1958   0)   newlib_elix_level=0 ;;
1959   1)   newlib_elix_level=1 ;;
1960   2)   newlib_elix_level=2 ;;
1961   3)   newlib_elix_level=3 ;;
1962   4)   newlib_elix_level=4 ;;
1963   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1964 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1965    { (exit 1); exit 1; }; } ;;
1966  esac
1967 else
1968   newlib_elix_level=0
1969 fi;
1970 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1971 if test "${enable_newlib_io_float+set}" = set; then
1972   enableval="$enable_newlib_io_float"
1973   case "${enableval}" in
1974   yes) newlib_io_float=yes ;;
1975   no)  newlib_io_float=no ;;
1976   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1977 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1978    { (exit 1); exit 1; }; } ;;
1979  esac
1980 else
1981   newlib_io_float=yes
1982 fi;
1983 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1984 if test "${enable_newlib_supplied_syscalls+set}" = set; then
1985   enableval="$enable_newlib_supplied_syscalls"
1986   case "${enableval}" in
1987   yes) newlib_may_supply_syscalls=yes ;;
1988   no)  newlib_may_supply_syscalls=no ;;
1989   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1990 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1991    { (exit 1); exit 1; }; } ;;
1992  esac
1993 else
1994   newlib_may_supply_syscalls=yes
1995 fi;
1996
1997
1998 if test x${newlib_may_supply_syscalls} = xyes; then
1999   MAY_SUPPLY_SYSCALLS_TRUE=
2000   MAY_SUPPLY_SYSCALLS_FALSE='#'
2001 else
2002   MAY_SUPPLY_SYSCALLS_TRUE='#'
2003   MAY_SUPPLY_SYSCALLS_FALSE=
2004 fi
2005
2006
2007
2008 test -z "${with_target_subdir}" && with_target_subdir=.
2009
2010 if test "${srcdir}" = "."; then
2011   if test "${with_target_subdir}" != "."; then
2012     newlib_basedir="${srcdir}/${with_multisrctop}../../../../../.."
2013   else
2014     newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2015   fi
2016 else
2017   newlib_basedir="${srcdir}/../../../../.."
2018 fi
2019
2020
2021 echo "$as_me:$LINENO: checking host system type" >&5
2022 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2023 if test "${ac_cv_host+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_cv_host_alias=$host_alias
2027 test -z "$ac_cv_host_alias" &&
2028   ac_cv_host_alias=$ac_cv_build_alias
2029 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2030   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2031 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2032    { (exit 1); exit 1; }; }
2033
2034 fi
2035 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2036 echo "${ECHO_T}$ac_cv_host" >&6
2037 host=$ac_cv_host
2038 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2039 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2040 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2041
2042
2043
2044 # test to see if srcdir already configured
2045 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2046    test -f $srcdir/config.status; then
2047   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2048 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 # test whether we have cygpath
2053 if test -z "$CYGPATH_W"; then
2054   if (cygpath --version) >/dev/null 2>/dev/null; then
2055     CYGPATH_W='cygpath -w'
2056   else
2057     CYGPATH_W=echo
2058   fi
2059 fi
2060
2061
2062 # Define the identity of the package.
2063  PACKAGE='newlib'
2064  VERSION='1.15.0'
2065
2066
2067 # Some tools Automake needs.
2068
2069 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2070
2071
2072 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2073
2074
2075 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2076
2077
2078 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2079
2080
2081 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2082
2083 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2084
2085 # Installed binaries are usually stripped using `strip' when the user
2086 # run `make install-strip'.  However `strip' might not be the right
2087 # tool to use in cross-compilation environments, therefore Automake
2088 # will honor the `STRIP' environment variable to overrule this program.
2089 if test "$cross_compiling" != no; then
2090   if test -n "$ac_tool_prefix"; then
2091   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}strip; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_STRIP+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$STRIP"; then
2099   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114
2115 fi
2116 fi
2117 STRIP=$ac_cv_prog_STRIP
2118 if test -n "$STRIP"; then
2119   echo "$as_me:$LINENO: result: $STRIP" >&5
2120 echo "${ECHO_T}$STRIP" >&6
2121 else
2122   echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126 fi
2127 if test -z "$ac_cv_prog_STRIP"; then
2128   ac_ct_STRIP=$STRIP
2129   # Extract the first word of "strip", so it can be a program name with args.
2130 set dummy strip; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$ac_ct_STRIP"; then
2137   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_ac_ct_STRIP="strip"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2154 fi
2155 fi
2156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2157 if test -n "$ac_ct_STRIP"; then
2158   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2159 echo "${ECHO_T}$ac_ct_STRIP" >&6
2160 else
2161   echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165   STRIP=$ac_ct_STRIP
2166 else
2167   STRIP="$ac_cv_prog_STRIP"
2168 fi
2169
2170 fi
2171 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2172
2173 # We need awk for the "check" target.  The system "awk" is bad on
2174 # some platforms.
2175 # Always define AMTAR for backward compatibility.
2176
2177 AMTAR=${AMTAR-"${am_missing_run}tar"}
2178
2179 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2180
2181
2182
2183
2184
2185
2186 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2187 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2188 # are probably using a cross compiler, which will not be able to fully
2189 # link an executable.  This should really be fixed in autoconf
2190 # itself.
2191
2192
2193
2194
2195
2196
2197
2198 # Extract the first word of "gcc", so it can be a program name with args.
2199 set dummy gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test -n "$CC"; then
2206   ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215     ac_cv_prog_CC="gcc"
2216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226   echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229   echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233
2234 depcc="$CC"   am_compiler_list=
2235
2236 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2237 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2238 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2242   # We make a subdir and do the tests there.  Otherwise we can end up
2243   # making bogus files that we don't know about and never remove.  For
2244   # instance it was reported that on HP-UX the gcc test will end up
2245   # making a dummy file named `D' -- because `-MD' means `put the output
2246   # in D'.
2247   mkdir conftest.dir
2248   # Copy depcomp to subdir because otherwise we won't find it if we're
2249   # using a relative directory.
2250   cp "$am_depcomp" conftest.dir
2251   cd conftest.dir
2252   # We will build objects and dependencies in a subdirectory because
2253   # it helps to detect inapplicable dependency modes.  For instance
2254   # both Tru64's cc and ICC support -MD to output dependencies as a
2255   # side effect of compilation, but ICC will put the dependencies in
2256   # the current directory while Tru64 will put them in the object
2257   # directory.
2258   mkdir sub
2259
2260   am_cv_CC_dependencies_compiler_type=none
2261   if test "$am_compiler_list" = ""; then
2262      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2263   fi
2264   for depmode in $am_compiler_list; do
2265     # Setup a source with many dependencies, because some compilers
2266     # like to wrap large dependency lists on column 80 (with \), and
2267     # we should not choose a depcomp mode which is confused by this.
2268     #
2269     # We need to recreate these files for each test, as the compiler may
2270     # overwrite some of them when testing with obscure command lines.
2271     # This happens at least with the AIX C compiler.
2272     : > sub/conftest.c
2273     for i in 1 2 3 4 5 6; do
2274       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2275       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2276       # Solaris 8's {/usr,}/bin/sh.
2277       touch sub/conftst$i.h
2278     done
2279     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2280
2281     case $depmode in
2282     nosideeffect)
2283       # after this tag, mechanisms are not by side-effect, so they'll
2284       # only be used when explicitly requested
2285       if test "x$enable_dependency_tracking" = xyes; then
2286         continue
2287       else
2288         break
2289       fi
2290       ;;
2291     none) break ;;
2292     esac
2293     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2294     # mode.  It turns out that the SunPro C++ compiler does not properly
2295     # handle `-M -o', and we need to detect this.
2296     if depmode=$depmode \
2297        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2298        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2299        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2300          >/dev/null 2>conftest.err &&
2301        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2302        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2303        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2304       # icc doesn't choke on unknown options, it will just issue warnings
2305       # or remarks (even with -Werror).  So we grep stderr for any message
2306       # that says an option was ignored or not supported.
2307       # When given -MP, icc 7.0 and 7.1 complain thusly:
2308       #   icc: Command line warning: ignoring option '-M'; no argument required
2309       # The diagnosis changed in icc 8.0:
2310       #   icc: Command line remark: option '-MP' not supported
2311       if (grep 'ignoring option' conftest.err ||
2312           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2313         am_cv_CC_dependencies_compiler_type=$depmode
2314         break
2315       fi
2316     fi
2317   done
2318
2319   cd ..
2320   rm -rf conftest.dir
2321 else
2322   am_cv_CC_dependencies_compiler_type=none
2323 fi
2324
2325 fi
2326 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2327 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2328 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2329
2330
2331
2332 if
2333   test "x$enable_dependency_tracking" != xno \
2334   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2335   am__fastdepCC_TRUE=
2336   am__fastdepCC_FALSE='#'
2337 else
2338   am__fastdepCC_TRUE='#'
2339   am__fastdepCC_FALSE=
2340 fi
2341
2342
2343 if test -z "$CC"; then
2344   # Extract the first word of "cc", so it can be a program name with args.
2345 set dummy cc; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CC+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CC"; then
2352   ac_cv_prog_CC="$CC" # Let the user override the test.
2353 else
2354   ac_prog_rejected=no
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2363        ac_prog_rejected=yes
2364        continue
2365      fi
2366     ac_cv_prog_CC="cc"
2367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368     break 2
2369   fi
2370 done
2371 done
2372
2373 if test $ac_prog_rejected = yes; then
2374   # We found a bogon in the path, so make sure we never use it.
2375   set dummy $ac_cv_prog_CC
2376   shift
2377   if test $# != 0; then
2378     # We chose a different compiler from the bogus one.
2379     # However, it has the same basename, so the bogon will be chosen
2380     # first if we set CC to just the basename; use the full file name.
2381     shift
2382     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2383   fi
2384 fi
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6
2391 else
2392   echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2394 fi
2395
2396   test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2397 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2398    { (exit 1); exit 1; }; }
2399 fi
2400
2401 echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2402 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   cat > conftest.c <<EOF
2407 #ifdef __GNUC__
2408   yes;
2409 #endif
2410 EOF
2411 if { ac_try='${CC-cc} -E conftest.c'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2417   ac_cv_c_compiler_gnu=yes
2418 else
2419   ac_cv_c_compiler_gnu=no
2420 fi
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424
2425 if test $ac_cv_c_compiler_gnu = yes; then
2426   GCC=yes
2427   ac_test_CFLAGS="${CFLAGS+set}"
2428   ac_save_CFLAGS="$CFLAGS"
2429   CFLAGS=
2430   ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 CFLAGS="-g"
2433 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h.  */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h.  */
2444
2445 int
2446 main ()
2447 {
2448
2449   ;
2450   return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455   (eval $ac_compile) 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } &&
2462          { ac_try='test -z "$ac_c_werror_flag"
2463                          || test ! -s conftest.err'
2464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465   (eval $ac_try) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; } &&
2469          { ac_try='test -s conftest.$ac_objext'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   ac_cv_prog_cc_g=yes
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 ac_cv_prog_cc_g=no
2481 fi
2482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483 fi
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2486 if test "$ac_test_CFLAGS" = set; then
2487   CFLAGS=$ac_save_CFLAGS
2488 elif test $ac_cv_prog_cc_g = yes; then
2489   if test "$GCC" = yes; then
2490     CFLAGS="-g -O2"
2491   else
2492     CFLAGS="-g"
2493   fi
2494 else
2495   if test "$GCC" = yes; then
2496     CFLAGS="-O2"
2497   else
2498     CFLAGS=
2499   fi
2500 fi
2501   if test "$ac_test_CFLAGS" = set; then
2502     CFLAGS="$ac_save_CFLAGS"
2503   elif test $ac_cv_prog_cc_g = yes; then
2504     CFLAGS="-g -O2"
2505   else
2506     CFLAGS="-O2"
2507   fi
2508 else
2509   GCC=
2510   test "${CFLAGS+set}" = set || CFLAGS="-g"
2511 fi
2512
2513
2514 if test -n "$ac_tool_prefix"; then
2515   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2516 set dummy ${ac_tool_prefix}as; ac_word=$2
2517 echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519 if test "${ac_cv_prog_AS+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   if test -n "$AS"; then
2523   ac_cv_prog_AS="$AS" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532     ac_cv_prog_AS="${ac_tool_prefix}as"
2533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538
2539 fi
2540 fi
2541 AS=$ac_cv_prog_AS
2542 if test -n "$AS"; then
2543   echo "$as_me:$LINENO: result: $AS" >&5
2544 echo "${ECHO_T}$AS" >&6
2545 else
2546   echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548 fi
2549
2550 fi
2551 if test -z "$ac_cv_prog_AS"; then
2552   ac_ct_AS=$AS
2553   # Extract the first word of "as", so it can be a program name with args.
2554 set dummy as; ac_word=$2
2555 echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$ac_ct_AS"; then
2561   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570     ac_cv_prog_ac_ct_AS="as"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576
2577 fi
2578 fi
2579 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2580 if test -n "$ac_ct_AS"; then
2581   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2582 echo "${ECHO_T}$ac_ct_AS" >&6
2583 else
2584   echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2586 fi
2587
2588   AS=$ac_ct_AS
2589 else
2590   AS="$ac_cv_prog_AS"
2591 fi
2592
2593 if test -n "$ac_tool_prefix"; then
2594   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}ar; ac_word=$2
2596 echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598 if test "${ac_cv_prog_AR+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$AR"; then
2602   ac_cv_prog_AR="$AR" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611     ac_cv_prog_AR="${ac_tool_prefix}ar"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617
2618 fi
2619 fi
2620 AR=$ac_cv_prog_AR
2621 if test -n "$AR"; then
2622   echo "$as_me:$LINENO: result: $AR" >&5
2623 echo "${ECHO_T}$AR" >&6
2624 else
2625   echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2627 fi
2628
2629 fi
2630 if test -z "$ac_cv_prog_AR"; then
2631   ac_ct_AR=$AR
2632   # Extract the first word of "ar", so it can be a program name with args.
2633 set dummy ar; ac_word=$2
2634 echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$ac_ct_AR"; then
2640   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649     ac_cv_prog_ac_ct_AR="ar"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655
2656 fi
2657 fi
2658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2659 if test -n "$ac_ct_AR"; then
2660   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2661 echo "${ECHO_T}$ac_ct_AR" >&6
2662 else
2663   echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6
2665 fi
2666
2667   AR=$ac_ct_AR
2668 else
2669   AR="$ac_cv_prog_AR"
2670 fi
2671
2672 if test -n "$ac_tool_prefix"; then
2673   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2674 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2675 echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677 if test "${ac_cv_prog_RANLIB+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   if test -n "$RANLIB"; then
2681   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688   for ac_exec_ext in '' $ac_executable_extensions; do
2689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695 done
2696
2697 fi
2698 fi
2699 RANLIB=$ac_cv_prog_RANLIB
2700 if test -n "$RANLIB"; then
2701   echo "$as_me:$LINENO: result: $RANLIB" >&5
2702 echo "${ECHO_T}$RANLIB" >&6
2703 else
2704   echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2706 fi
2707
2708 fi
2709 if test -z "$ac_cv_prog_RANLIB"; then
2710   ac_ct_RANLIB=$RANLIB
2711   # Extract the first word of "ranlib", so it can be a program name with args.
2712 set dummy ranlib; ac_word=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   if test -n "$ac_ct_RANLIB"; then
2719   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726   for ac_exec_ext in '' $ac_executable_extensions; do
2727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728     ac_cv_prog_ac_ct_RANLIB="ranlib"
2729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730     break 2
2731   fi
2732 done
2733 done
2734
2735   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2736 fi
2737 fi
2738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2739 if test -n "$ac_ct_RANLIB"; then
2740   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2741 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2742 else
2743   echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 fi
2746
2747   RANLIB=$ac_ct_RANLIB
2748 else
2749   RANLIB="$ac_cv_prog_RANLIB"
2750 fi
2751
2752 if test -n "$ac_tool_prefix"; then
2753   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2755 echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757 if test "${ac_cv_prog_READELF+set}" = set; then
2758   echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760   if test -n "$READELF"; then
2761   ac_cv_prog_READELF="$READELF" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768   for ac_exec_ext in '' $ac_executable_extensions; do
2769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772     break 2
2773   fi
2774 done
2775 done
2776
2777 fi
2778 fi
2779 READELF=$ac_cv_prog_READELF
2780 if test -n "$READELF"; then
2781   echo "$as_me:$LINENO: result: $READELF" >&5
2782 echo "${ECHO_T}$READELF" >&6
2783 else
2784   echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2786 fi
2787
2788 fi
2789 if test -z "$ac_cv_prog_READELF"; then
2790   ac_ct_READELF=$READELF
2791   # Extract the first word of "readelf", so it can be a program name with args.
2792 set dummy readelf; ac_word=$2
2793 echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   if test -n "$ac_ct_READELF"; then
2799   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   for ac_exec_ext in '' $ac_executable_extensions; do
2807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808     ac_cv_prog_ac_ct_READELF="readelf"
2809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813 done
2814
2815   test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2816 fi
2817 fi
2818 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2819 if test -n "$ac_ct_READELF"; then
2820   echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2821 echo "${ECHO_T}$ac_ct_READELF" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 fi
2826
2827   READELF=$ac_ct_READELF
2828 else
2829   READELF="$ac_cv_prog_READELF"
2830 fi
2831
2832
2833 # Find a good install program.  We prefer a C program (faster),
2834 # so one script is as good as another.  But avoid the broken or
2835 # incompatible versions:
2836 # SysV /etc/install, /usr/sbin/install
2837 # SunOS /usr/etc/install
2838 # IRIX /sbin/install
2839 # AIX /bin/install
2840 # AmigaOS /C/install, which installs bootblocks on floppy discs
2841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844 # OS/2's system install, which has a completely different semantic
2845 # ./install, which can be erroneously created by make from ./install.sh.
2846 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2847 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2848 if test -z "$INSTALL"; then
2849 if test "${ac_cv_path_install+set}" = set; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857   # Account for people who put trailing slashes in PATH elements.
2858 case $as_dir/ in
2859   ./ | .// | /cC/* | \
2860   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2861   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2862   /usr/ucb/* ) ;;
2863   *)
2864     # OSF1 and SCO ODT 3.0 have their own names for install.
2865     # Don't use installbsd from OSF since it installs stuff as root
2866     # by default.
2867     for ac_prog in ginstall scoinst install; do
2868       for ac_exec_ext in '' $ac_executable_extensions; do
2869         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2870           if test $ac_prog = install &&
2871             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872             # AIX install.  It has an incompatible calling convention.
2873             :
2874           elif test $ac_prog = install &&
2875             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876             # program-specific install script used by HP pwplus--don't use.
2877             :
2878           else
2879             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2880             break 3
2881           fi
2882         fi
2883       done
2884     done
2885     ;;
2886 esac
2887 done
2888
2889
2890 fi
2891   if test "${ac_cv_path_install+set}" = set; then
2892     INSTALL=$ac_cv_path_install
2893   else
2894     # As a last resort, use the slow shell script.  We don't cache a
2895     # path for INSTALL within a source directory, because that will
2896     # break other packages using the cache if that directory is
2897     # removed, or if the path is relative.
2898     INSTALL=$ac_install_sh
2899   fi
2900 fi
2901 echo "$as_me:$LINENO: result: $INSTALL" >&5
2902 echo "${ECHO_T}$INSTALL" >&6
2903
2904 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2905 # It thinks the first close brace ends the variable substitution.
2906 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2907
2908 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2909
2910 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2911
2912
2913 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2914 ac_given_INSTALL=$INSTALL
2915
2916 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2917 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2918     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2919 if test "${enable_maintainer_mode+set}" = set; then
2920   enableval="$enable_maintainer_mode"
2921   USE_MAINTAINER_MODE=$enableval
2922 else
2923   USE_MAINTAINER_MODE=no
2924 fi;
2925   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2926 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2927
2928
2929 if test $USE_MAINTAINER_MODE = yes; then
2930   MAINTAINER_MODE_TRUE=
2931   MAINTAINER_MODE_FALSE='#'
2932 else
2933   MAINTAINER_MODE_TRUE='#'
2934   MAINTAINER_MODE_FALSE=
2935 fi
2936
2937   MAINT=$MAINTAINER_MODE_TRUE
2938
2939
2940 # By default we simply use the C compiler to build assembly code.
2941
2942 test "${CCAS+set}" = set || CCAS=$CC
2943 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2944
2945
2946
2947
2948 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2949 # at least currently, we never actually build a program, so we never
2950 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2951 # fails, because we are probably configuring with a cross compiler
2952 # which can't create executables.  So we include AC_EXEEXT to keep
2953 # automake happy, but we don't execute it, since we don't care about
2954 # the result.
2955 if false; then
2956
2957   dummy_var=1
2958 fi
2959
2960 . ${newlib_basedir}/configure.host
2961
2962 newlib_cflags="${newlib_cflags} -fno-builtin"
2963
2964 NEWLIB_CFLAGS=${newlib_cflags}
2965
2966
2967 LDFLAGS=${ldflags}
2968
2969
2970
2971
2972 if test x${newlib_elix_level} = x0; then
2973   ELIX_LEVEL_0_TRUE=
2974   ELIX_LEVEL_0_FALSE='#'
2975 else
2976   ELIX_LEVEL_0_TRUE='#'
2977   ELIX_LEVEL_0_FALSE=
2978 fi
2979
2980
2981
2982 if test x${newlib_elix_level} = x1; then
2983   ELIX_LEVEL_1_TRUE=
2984   ELIX_LEVEL_1_FALSE='#'
2985 else
2986   ELIX_LEVEL_1_TRUE='#'
2987   ELIX_LEVEL_1_FALSE=
2988 fi
2989
2990
2991
2992 if test x${newlib_elix_level} = x2; then
2993   ELIX_LEVEL_2_TRUE=
2994   ELIX_LEVEL_2_FALSE='#'
2995 else
2996   ELIX_LEVEL_2_TRUE='#'
2997   ELIX_LEVEL_2_FALSE=
2998 fi
2999
3000
3001
3002 if test x${newlib_elix_level} = x3; then
3003   ELIX_LEVEL_3_TRUE=
3004   ELIX_LEVEL_3_FALSE='#'
3005 else
3006   ELIX_LEVEL_3_TRUE='#'
3007   ELIX_LEVEL_3_FALSE=
3008 fi
3009
3010
3011
3012 if test x${newlib_elix_level} = x4; then
3013   ELIX_LEVEL_4_TRUE=
3014   ELIX_LEVEL_4_FALSE='#'
3015 else
3016   ELIX_LEVEL_4_TRUE='#'
3017   ELIX_LEVEL_4_FALSE=
3018 fi
3019
3020
3021
3022
3023 if test x${use_libtool} = xyes; then
3024   USE_LIBTOOL_TRUE=
3025   USE_LIBTOOL_FALSE='#'
3026 else
3027   USE_LIBTOOL_TRUE='#'
3028   USE_LIBTOOL_FALSE=
3029 fi
3030
3031
3032 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3033 # use oext, which is set in configure.host based on the target platform.
3034 OBJEXT=${oext}
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3047 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3048 if test "${lt_cv_path_SED+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   # Loop through the user's path and test for sed and gsed.
3052 # Then use that list of sed's as ones to test for truncation.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for lt_ac_prog in sed gsed; do
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3061         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3062       fi
3063     done
3064   done
3065 done
3066 IFS=$as_save_IFS
3067 lt_ac_max=0
3068 lt_ac_count=0
3069 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3070 # along with /bin/sed that truncates output.
3071 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3072   test ! -f $lt_ac_sed && continue
3073   cat /dev/null > conftest.in
3074   lt_ac_count=0
3075   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3076   # Check for GNU sed and select it if it is found.
3077   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3078     lt_cv_path_SED=$lt_ac_sed
3079     break
3080   fi
3081   while true; do
3082     cat conftest.in conftest.in >conftest.tmp
3083     mv conftest.tmp conftest.in
3084     cp conftest.in conftest.nl
3085     echo >>conftest.nl
3086     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3087     cmp -s conftest.out conftest.nl || break
3088     # 10000 chars as input seems more than enough
3089     test $lt_ac_count -gt 10 && break
3090     lt_ac_count=`expr $lt_ac_count + 1`
3091     if test $lt_ac_count -gt $lt_ac_max; then
3092       lt_ac_max=$lt_ac_count
3093       lt_cv_path_SED=$lt_ac_sed
3094     fi
3095   done
3096 done
3097
3098 fi
3099
3100 SED=$lt_cv_path_SED
3101
3102 echo "$as_me:$LINENO: result: $SED" >&5
3103 echo "${ECHO_T}$SED" >&6
3104
3105 test -z "$SED" && SED=sed
3106 Xsed="$SED -e 1s/^X//"
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118 if test "${use_libtool}" = "yes"; then
3119 enable_win32_dll=yes
3120
3121 case $host in
3122 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3123   if test -n "$ac_tool_prefix"; then
3124   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}as; ac_word=$2
3126 echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 if test "${ac_cv_prog_AS+set}" = set; then
3129   echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131   if test -n "$AS"; then
3132   ac_cv_prog_AS="$AS" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139   for ac_exec_ext in '' $ac_executable_extensions; do
3140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141     ac_cv_prog_AS="${ac_tool_prefix}as"
3142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146 done
3147
3148 fi
3149 fi
3150 AS=$ac_cv_prog_AS
3151 if test -n "$AS"; then
3152   echo "$as_me:$LINENO: result: $AS" >&5
3153 echo "${ECHO_T}$AS" >&6
3154 else
3155   echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3157 fi
3158
3159 fi
3160 if test -z "$ac_cv_prog_AS"; then
3161   ac_ct_AS=$AS
3162   # Extract the first word of "as", so it can be a program name with args.
3163 set dummy as; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   if test -n "$ac_ct_AS"; then
3170   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177   for ac_exec_ext in '' $ac_executable_extensions; do
3178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179     ac_cv_prog_ac_ct_AS="as"
3180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184 done
3185
3186   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3187 fi
3188 fi
3189 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3190 if test -n "$ac_ct_AS"; then
3191   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3192 echo "${ECHO_T}$ac_ct_AS" >&6
3193 else
3194   echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197
3198   AS=$ac_ct_AS
3199 else
3200   AS="$ac_cv_prog_AS"
3201 fi
3202
3203   if test -n "$ac_tool_prefix"; then
3204   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   if test -n "$DLLTOOL"; then
3212   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217   IFS=$as_save_IFS
3218   test -z "$as_dir" && as_dir=.
3219   for ac_exec_ext in '' $ac_executable_extensions; do
3220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223     break 2
3224   fi
3225 done
3226 done
3227
3228 fi
3229 fi
3230 DLLTOOL=$ac_cv_prog_DLLTOOL
3231 if test -n "$DLLTOOL"; then
3232   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3233 echo "${ECHO_T}$DLLTOOL" >&6
3234 else
3235   echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237 fi
3238
3239 fi
3240 if test -z "$ac_cv_prog_DLLTOOL"; then
3241   ac_ct_DLLTOOL=$DLLTOOL
3242   # Extract the first word of "dlltool", so it can be a program name with args.
3243 set dummy dlltool; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   if test -n "$ac_ct_DLLTOOL"; then
3250   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257   for ac_exec_ext in '' $ac_executable_extensions; do
3258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264 done
3265
3266   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3267 fi
3268 fi
3269 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3270 if test -n "$ac_ct_DLLTOOL"; then
3271   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3272 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3273 else
3274   echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3276 fi
3277
3278   DLLTOOL=$ac_ct_DLLTOOL
3279 else
3280   DLLTOOL="$ac_cv_prog_DLLTOOL"
3281 fi
3282
3283   if test -n "$ac_tool_prefix"; then
3284   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$OBJDUMP"; then
3292   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307
3308 fi
3309 fi
3310 OBJDUMP=$ac_cv_prog_OBJDUMP
3311 if test -n "$OBJDUMP"; then
3312   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3313 echo "${ECHO_T}$OBJDUMP" >&6
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 fi
3318
3319 fi
3320 if test -z "$ac_cv_prog_OBJDUMP"; then
3321   ac_ct_OBJDUMP=$OBJDUMP
3322   # Extract the first word of "objdump", so it can be a program name with args.
3323 set dummy objdump; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$ac_ct_OBJDUMP"; then
3330   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345
3346   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3347 fi
3348 fi
3349 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3350 if test -n "$ac_ct_OBJDUMP"; then
3351   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3352 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3353 else
3354   echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 fi
3357
3358   OBJDUMP=$ac_ct_OBJDUMP
3359 else
3360   OBJDUMP="$ac_cv_prog_OBJDUMP"
3361 fi
3362
3363   ;;
3364 esac
3365
3366 test -z "$AS" && AS=as
3367
3368
3369
3370
3371
3372 test -z "$DLLTOOL" && DLLTOOL=dlltool
3373
3374
3375
3376
3377
3378 test -z "$OBJDUMP" && OBJDUMP=objdump
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388 macro_version='2.1a'
3389 macro_revision='1.2435'
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402 ltmain="$ac_aux_dir/ltmain.sh"
3403
3404 # Set options
3405
3406 enable_dlopen=no
3407
3408
3409
3410 # Check whether --enable-shared or --disable-shared was given.
3411 if test "${enable_shared+set}" = set; then
3412   enableval="$enable_shared"
3413   p=${PACKAGE-default}
3414     case $enableval in
3415     yes) enable_shared=yes ;;
3416     no) enable_shared=no ;;
3417     *)
3418       enable_shared=no
3419       # Look at the argument we got.  We use all the common list separators.
3420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3421       for pkg in $enableval; do
3422         IFS="$lt_save_ifs"
3423         if test "X$pkg" = "X$p"; then
3424           enable_shared=yes
3425         fi
3426       done
3427       IFS="$lt_save_ifs"
3428       ;;
3429     esac
3430 else
3431   enable_shared=yes
3432 fi;
3433
3434
3435
3436
3437
3438
3439
3440
3441 # Check whether --enable-static or --disable-static was given.
3442 if test "${enable_static+set}" = set; then
3443   enableval="$enable_static"
3444   p=${PACKAGE-default}
3445     case $enableval in
3446     yes) enable_static=yes ;;
3447     no) enable_static=no ;;
3448     *)
3449      enable_static=no
3450       # Look at the argument we got.  We use all the common list separators.
3451       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3452       for pkg in $enableval; do
3453         IFS="$lt_save_ifs"
3454         if test "X$pkg" = "X$p"; then
3455           enable_static=yes
3456         fi
3457       done
3458       IFS="$lt_save_ifs"
3459       ;;
3460     esac
3461 else
3462   enable_static=yes
3463 fi;
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473 # Check whether --with-pic or --without-pic was given.
3474 if test "${with_pic+set}" = set; then
3475   withval="$with_pic"
3476   pic_mode="$withval"
3477 else
3478   pic_mode=default
3479 fi;
3480
3481 test -z "$pic_mode" && pic_mode=default
3482
3483
3484
3485
3486
3487
3488
3489 # Check whether --enable-fast-install or --disable-fast-install was given.
3490 if test "${enable_fast_install+set}" = set; then
3491   enableval="$enable_fast_install"
3492   p=${PACKAGE-default}
3493     case $enableval in
3494     yes) enable_fast_install=yes ;;
3495     no) enable_fast_install=no ;;
3496     *)
3497       enable_fast_install=no
3498       # Look at the argument we got.  We use all the common list separators.
3499       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3500       for pkg in $enableval; do
3501         IFS="$lt_save_ifs"
3502         if test "X$pkg" = "X$p"; then
3503           enable_fast_install=yes
3504         fi
3505       done
3506       IFS="$lt_save_ifs"
3507       ;;
3508     esac
3509 else
3510   enable_fast_install=yes
3511 fi;
3512
3513
3514
3515
3516
3517
3518
3519
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 if test -n "$ac_tool_prefix"; then
3526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3528 echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_CC+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   if test -n "$CC"; then
3534   ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541   for ac_exec_ext in '' $ac_executable_extensions; do
3542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548 done
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554   echo "$as_me:$LINENO: result: $CC" >&5
3555 echo "${ECHO_T}$CC" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561 fi
3562 if test -z "$ac_cv_prog_CC"; then
3563   ac_ct_CC=$CC
3564   # Extract the first word of "gcc", so it can be a program name with args.
3565 set dummy gcc; ac_word=$2
3566 echo "$as_me:$LINENO: checking for $ac_word" >&5
3567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   if test -n "$ac_ct_CC"; then
3572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579   for ac_exec_ext in '' $ac_executable_extensions; do
3580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581     ac_cv_prog_ac_ct_CC="gcc"
3582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583     break 2
3584   fi
3585 done
3586 done
3587
3588 fi
3589 fi
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3593 echo "${ECHO_T}$ac_ct_CC" >&6
3594 else
3595   echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3597 fi
3598
3599   CC=$ac_ct_CC
3600 else
3601   CC="$ac_cv_prog_CC"
3602 fi
3603
3604 if test -z "$CC"; then
3605   if test -n "$ac_tool_prefix"; then
3606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}cc; ac_word=$2
3608 echo "$as_me:$LINENO: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_prog_CC+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   if test -n "$CC"; then
3614   ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619   IFS=$as_save_IFS
3620   test -z "$as_dir" && as_dir=.
3621   for ac_exec_ext in '' $ac_executable_extensions; do
3622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623     ac_cv_prog_CC="${ac_tool_prefix}cc"
3624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625     break 2
3626   fi
3627 done
3628 done
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634   echo "$as_me:$LINENO: result: $CC" >&5
3635 echo "${ECHO_T}$CC" >&6
3636 else
3637   echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3639 fi
3640
3641 fi
3642 if test -z "$ac_cv_prog_CC"; then
3643   ac_ct_CC=$CC
3644   # Extract the first word of "cc", so it can be a program name with args.
3645 set dummy cc; ac_word=$2
3646 echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   if test -n "$ac_ct_CC"; then
3652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_exec_ext in '' $ac_executable_extensions; do
3660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661     ac_cv_prog_ac_ct_CC="cc"
3662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666 done
3667
3668 fi
3669 fi
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673 echo "${ECHO_T}$ac_ct_CC" >&6
3674 else
3675   echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677 fi
3678
3679   CC=$ac_ct_CC
3680 else
3681   CC="$ac_cv_prog_CC"
3682 fi
3683
3684 fi
3685 if test -z "$CC"; then
3686   # Extract the first word of "cc", so it can be a program name with args.
3687 set dummy cc; ac_word=$2
3688 echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690 if test "${ac_cv_prog_CC+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   if test -n "$CC"; then
3694   ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696   ac_prog_rejected=no
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702   for ac_exec_ext in '' $ac_executable_extensions; do
3703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705        ac_prog_rejected=yes
3706        continue
3707      fi
3708     ac_cv_prog_CC="cc"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715 if test $ac_prog_rejected = yes; then
3716   # We found a bogon in the path, so make sure we never use it.
3717   set dummy $ac_cv_prog_CC
3718   shift
3719   if test $# != 0; then
3720     # We chose a different compiler from the bogus one.
3721     # However, it has the same basename, so the bogon will be chosen
3722     # first if we set CC to just the basename; use the full file name.
3723     shift
3724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3725   fi
3726 fi
3727 fi
3728 fi
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731   echo "$as_me:$LINENO: result: $CC" >&5
3732 echo "${ECHO_T}$CC" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 fi
3739 if test -z "$CC"; then
3740   if test -n "$ac_tool_prefix"; then
3741   for ac_prog in cl
3742   do
3743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_CC+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   if test -n "$CC"; then
3751   ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758   for ac_exec_ext in '' $ac_executable_extensions; do
3759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765 done
3766
3767 fi
3768 fi
3769 CC=$ac_cv_prog_CC
3770 if test -n "$CC"; then
3771   echo "$as_me:$LINENO: result: $CC" >&5
3772 echo "${ECHO_T}$CC" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778     test -n "$CC" && break
3779   done
3780 fi
3781 if test -z "$CC"; then
3782   ac_ct_CC=$CC
3783   for ac_prog in cl
3784 do
3785   # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -n "$ac_ct_CC"; then
3793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_ac_ct_CC="$ac_prog"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809 fi
3810 fi
3811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3814 echo "${ECHO_T}$ac_ct_CC" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820   test -n "$ac_ct_CC" && break
3821 done
3822
3823   CC=$ac_ct_CC
3824 fi
3825
3826 fi
3827
3828
3829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." >&5
3831 echo "$as_me: error: no acceptable C compiler found in \$PATH
3832 See \`config.log' for more details." >&2;}
3833    { (exit 1); exit 1; }; }
3834
3835 # Provide some information about the compiler.
3836 echo "$as_me:$LINENO:" \
3837      "checking for C compiler version" >&5
3838 ac_compiler=`set X $ac_compile; echo $2`
3839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3840   (eval $ac_compiler --version </dev/null >&5) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); }
3844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3845   (eval $ac_compiler -v </dev/null >&5) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }
3849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3850   (eval $ac_compiler -V </dev/null >&5) 2>&5
3851   ac_status=$?
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); }
3854
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 ac_clean_files_save=$ac_clean_files
3871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3872 # Try to create an executable without -o first, disregard a.out.
3873 # It will help us diagnose broken compilers, and finding out an intuition
3874 # of exeext.
3875 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3876 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3879   (eval $ac_link_default) 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; then
3883   # Find the output, starting from the most likely.  This scheme is
3884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3885 # resort.
3886
3887 # Be careful to initialize this variable, since it used to be cached.
3888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3889 ac_cv_exeext=
3890 # b.out is created by i960 compilers.
3891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3892 do
3893   test -f "$ac_file" || continue
3894   case $ac_file in
3895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3896         ;;
3897     conftest.$ac_ext )
3898         # This is the source file.
3899         ;;
3900     [ab].out )
3901         # We found the default executable, but exeext='' is most
3902         # certainly right.
3903         break;;
3904     *.* )
3905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3906         # FIXME: I believe we export ac_cv_exeext for Libtool,
3907         # but it would be cool to find out if it's true.  Does anybody
3908         # maintain Libtool? --akim.
3909         export ac_cv_exeext
3910         break;;
3911     * )
3912         break;;
3913   esac
3914 done
3915 else
3916   echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3920 See \`config.log' for more details." >&5
3921 echo "$as_me: error: C compiler cannot create executables
3922 See \`config.log' for more details." >&2;}
3923    { (exit 77); exit 77; }; }
3924 fi
3925
3926 ac_exeext=$ac_cv_exeext
3927 echo "$as_me:$LINENO: result: $ac_file" >&5
3928 echo "${ECHO_T}$ac_file" >&6
3929
3930 # Check the compiler produces executables we can run.  If not, either
3931 # the compiler is broken, or we cross compile.
3932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3935 # If not cross compiling, check that we can run a simple program.
3936 if test "$cross_compiling" != yes; then
3937   if { ac_try='./$ac_file'
3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943     cross_compiling=no
3944   else
3945     if test "$cross_compiling" = maybe; then
3946         cross_compiling=yes
3947     else
3948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3949 If you meant to cross compile, use \`--host'.
3950 See \`config.log' for more details." >&5
3951 echo "$as_me: error: cannot run C compiled programs.
3952 If you meant to cross compile, use \`--host'.
3953 See \`config.log' for more details." >&2;}
3954    { (exit 1); exit 1; }; }
3955     fi
3956   fi
3957 fi
3958 echo "$as_me:$LINENO: result: yes" >&5
3959 echo "${ECHO_T}yes" >&6
3960
3961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3962 ac_clean_files=$ac_clean_files_save
3963 # Check the compiler produces executables we can run.  If not, either
3964 # the compiler is broken, or we cross compile.
3965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3968 echo "${ECHO_T}$cross_compiling" >&6
3969
3970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3973   (eval $ac_link) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; then
3977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3979 # work properly (i.e., refer to `conftest.exe'), while it won't with
3980 # `rm'.
3981 for ac_file in conftest.exe conftest conftest.*; do
3982   test -f "$ac_file" || continue
3983   case $ac_file in
3984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986           export ac_cv_exeext
3987           break;;
3988     * ) break;;
3989   esac
3990 done
3991 else
3992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details." >&5
3994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3995 See \`config.log' for more details." >&2;}
3996    { (exit 1); exit 1; }; }
3997 fi
3998
3999 rm -f conftest$ac_cv_exeext
4000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4001 echo "${ECHO_T}$ac_cv_exeext" >&6
4002
4003 rm -f conftest.$ac_ext
4004 EXEEXT=$ac_cv_exeext
4005 ac_exeext=$EXEEXT
4006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4008 if test "${ac_cv_objext+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h.  */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h.  */
4017
4018 int
4019 main ()
4020 {
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.o conftest.obj
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028   (eval $ac_compile) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; then
4032   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4033   case $ac_file in
4034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036        break;;
4037   esac
4038 done
4039 else
4040   echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4046 See \`config.log' for more details." >&2;}
4047    { (exit 1); exit 1; }; }
4048 fi
4049
4050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4051 fi
4052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4053 echo "${ECHO_T}$ac_cv_objext" >&6
4054 OBJEXT=$ac_cv_objext
4055 ac_objext=$OBJEXT
4056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071 #ifndef __GNUC__
4072        choke me
4073 #endif
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081   (eval $ac_compile) 2>conftest.er1
4082   ac_status=$?
4083   grep -v '^ *+' conftest.er1 >conftest.err
4084   rm -f conftest.er1
4085   cat conftest.err >&5
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); } &&
4088          { ac_try='test -z "$ac_c_werror_flag"
4089                          || test ! -s conftest.err'
4090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; } &&
4095          { ac_try='test -s conftest.$ac_objext'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_compiler_gnu=yes
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ac_compiler_gnu=no
4107 fi
4108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110
4111 fi
4112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4114 GCC=`test $ac_compiler_gnu = yes && echo yes`
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 CFLAGS="-g"
4118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4120 if test "${ac_cv_prog_cc_g+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag"
4148                          || test ! -s conftest.err'
4149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150   (eval $ac_try) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; } &&
4154          { ac_try='test -s conftest.$ac_objext'
4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156   (eval $ac_try) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; }; then
4160   ac_cv_prog_cc_g=yes
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 ac_cv_prog_cc_g=no
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 fi
4169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4170 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4171 if test "$ac_test_CFLAGS" = set; then
4172   CFLAGS=$ac_save_CFLAGS
4173 elif test $ac_cv_prog_cc_g = yes; then
4174   if test "$GCC" = yes; then
4175     CFLAGS="-g -O2"
4176   else
4177     CFLAGS="-g"
4178   fi
4179 else
4180   if test "$GCC" = yes; then
4181     CFLAGS="-O2"
4182   else
4183     CFLAGS=
4184   fi
4185 fi
4186 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4187 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4188 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   ac_cv_prog_cc_stdc=no
4192 ac_save_CC=$CC
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <stdarg.h>
4200 #include <stdio.h>
4201 #include <sys/types.h>
4202 #include <sys/stat.h>
4203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4204 struct buf { int x; };
4205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4206 static char *e (p, i)
4207      char **p;
4208      int i;
4209 {
4210   return p[i];
4211 }
4212 static char *f (char * (*g) (char **, int), char **p, ...)
4213 {
4214   char *s;
4215   va_list v;
4216   va_start (v,p);
4217   s = g (p, va_arg (v,int));
4218   va_end (v);
4219   return s;
4220 }
4221
4222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4223    function prototypes and stuff, but not '\xHH' hex character constants.
4224    These don't provoke an error unfortunately, instead are silently treated
4225    as 'x'.  The following induces an error, until -std1 is added to get
4226    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4227    array size at least.  It's necessary to write '\x00'==0 to get something
4228    that's true only with -std1.  */
4229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235 int argc;
4236 char **argv;
4237 int
4238 main ()
4239 {
4240 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 # Don't try gcc -ansi; that turns off useful extensions and
4246 # breaks some systems' header files.
4247 # AIX                   -qlanglvl=ansi
4248 # Ultrix and OSF/1      -std1
4249 # HP-UX 10.20 and later -Ae
4250 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4251 # SVR4                  -Xc -D__EXTENSIONS__
4252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4253 do
4254   CC="$ac_save_CC $ac_arg"
4255   rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257   (eval $ac_compile) 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag"
4265                          || test ! -s conftest.err'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; } &&
4271          { ac_try='test -s conftest.$ac_objext'
4272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   ac_cv_prog_cc_stdc=$ac_arg
4278 break
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 fi
4284 rm -f conftest.err conftest.$ac_objext
4285 done
4286 rm -f conftest.$ac_ext conftest.$ac_objext
4287 CC=$ac_save_CC
4288
4289 fi
4290
4291 case "x$ac_cv_prog_cc_stdc" in
4292   x|xno)
4293     echo "$as_me:$LINENO: result: none needed" >&5
4294 echo "${ECHO_T}none needed" >&6 ;;
4295   *)
4296     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4298     CC="$CC $ac_cv_prog_cc_stdc" ;;
4299 esac
4300
4301 # Some people use a C++ compiler to compile C.  Since we use `exit',
4302 # in C++ we need to declare it.  In case someone uses the same compiler
4303 # for both compiling C and C++ we need to have the C++ compiler decide
4304 # the declaration of exit, since it's the most demanding environment.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #ifndef __cplusplus
4307   choke me
4308 #endif
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312   (eval $ac_compile) 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag"
4320                          || test ! -s conftest.err'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; } &&
4326          { ac_try='test -s conftest.$ac_objext'
4327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328   (eval $ac_try) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); }; }; then
4332   for ac_declaration in \
4333    '' \
4334    'extern "C" void std::exit (int) throw (); using std::exit;' \
4335    'extern "C" void std::exit (int); using std::exit;' \
4336    'extern "C" void exit (int) throw ();' \
4337    'extern "C" void exit (int);' \
4338    'void exit (int);'
4339 do
4340   cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 $ac_declaration
4347 #include <stdlib.h>
4348 int
4349 main ()
4350 {
4351 exit (42);
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358   (eval $ac_compile) 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } &&
4365          { ac_try='test -z "$ac_c_werror_flag"
4366                          || test ! -s conftest.err'
4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368   (eval $ac_try) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; } &&
4372          { ac_try='test -s conftest.$ac_objext'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   :
4379 else
4380   echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 continue
4384 fi
4385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386   cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 $ac_declaration
4393 int
4394 main ()
4395 {
4396 exit (42);
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 rm -f conftest.$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403   (eval $ac_compile) 2>conftest.er1
4404   ac_status=$?
4405   grep -v '^ *+' conftest.er1 >conftest.err
4406   rm -f conftest.er1
4407   cat conftest.err >&5
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); } &&
4410          { ac_try='test -z "$ac_c_werror_flag"
4411                          || test ! -s conftest.err'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; } &&
4417          { ac_try='test -s conftest.$ac_objext'
4418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419   (eval $ac_try) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; }; then
4423   break
4424 else
4425   echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 fi
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 done
4431 rm -f conftest*
4432 if test -n "$ac_declaration"; then
4433   echo '#ifdef __cplusplus' >>confdefs.h
4434   echo $ac_declaration      >>confdefs.h
4435   echo '#endif'             >>confdefs.h
4436 fi
4437
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 fi
4443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450 depcc="$CC"   am_compiler_list=
4451
4452 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4453 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4454 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458   # We make a subdir and do the tests there.  Otherwise we can end up
4459   # making bogus files that we don't know about and never remove.  For
4460   # instance it was reported that on HP-UX the gcc test will end up
4461   # making a dummy file named `D' -- because `-MD' means `put the output
4462   # in D'.
4463   mkdir conftest.dir
4464   # Copy depcomp to subdir because otherwise we won't find it if we're
4465   # using a relative directory.
4466   cp "$am_depcomp" conftest.dir
4467   cd conftest.dir
4468   # We will build objects and dependencies in a subdirectory because
4469   # it helps to detect inapplicable dependency modes.  For instance
4470   # both Tru64's cc and ICC support -MD to output dependencies as a
4471   # side effect of compilation, but ICC will put the dependencies in
4472   # the current directory while Tru64 will put them in the object
4473   # directory.
4474   mkdir sub
4475
4476   am_cv_CC_dependencies_compiler_type=none
4477   if test "$am_compiler_list" = ""; then
4478      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4479   fi
4480   for depmode in $am_compiler_list; do
4481     # Setup a source with many dependencies, because some compilers
4482     # like to wrap large dependency lists on column 80 (with \), and
4483     # we should not choose a depcomp mode which is confused by this.
4484     #
4485     # We need to recreate these files for each test, as the compiler may
4486     # overwrite some of them when testing with obscure command lines.
4487     # This happens at least with the AIX C compiler.
4488     : > sub/conftest.c
4489     for i in 1 2 3 4 5 6; do
4490       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4491       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4492       # Solaris 8's {/usr,}/bin/sh.
4493       touch sub/conftst$i.h
4494     done
4495     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4496
4497     case $depmode in
4498     nosideeffect)
4499       # after this tag, mechanisms are not by side-effect, so they'll
4500       # only be used when explicitly requested
4501       if test "x$enable_dependency_tracking" = xyes; then
4502         continue
4503       else
4504         break
4505       fi
4506       ;;
4507     none) break ;;
4508     esac
4509     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4510     # mode.  It turns out that the SunPro C++ compiler does not properly
4511     # handle `-M -o', and we need to detect this.
4512     if depmode=$depmode \
4513        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4514        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4515        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4516          >/dev/null 2>conftest.err &&
4517        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4518        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4519        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4520       # icc doesn't choke on unknown options, it will just issue warnings
4521       # or remarks (even with -Werror).  So we grep stderr for any message
4522       # that says an option was ignored or not supported.
4523       # When given -MP, icc 7.0 and 7.1 complain thusly:
4524       #   icc: Command line warning: ignoring option '-M'; no argument required
4525       # The diagnosis changed in icc 8.0:
4526       #   icc: Command line remark: option '-MP' not supported
4527       if (grep 'ignoring option' conftest.err ||
4528           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4529         am_cv_CC_dependencies_compiler_type=$depmode
4530         break
4531       fi
4532     fi
4533   done
4534
4535   cd ..
4536   rm -rf conftest.dir
4537 else
4538   am_cv_CC_dependencies_compiler_type=none
4539 fi
4540
4541 fi
4542 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4543 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4544 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4545
4546
4547
4548 if
4549   test "x$enable_dependency_tracking" != xno \
4550   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4551   am__fastdepCC_TRUE=
4552   am__fastdepCC_FALSE='#'
4553 else
4554   am__fastdepCC_TRUE='#'
4555   am__fastdepCC_FALSE=
4556 fi
4557
4558
4559 echo "$as_me:$LINENO: checking for egrep" >&5
4560 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4561 if test "${ac_cv_prog_egrep+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4565     then ac_cv_prog_egrep='grep -E'
4566     else ac_cv_prog_egrep='egrep'
4567     fi
4568 fi
4569 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4570 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4571  EGREP=$ac_cv_prog_egrep
4572
4573
4574 echo "$as_me:$LINENO: checking for fgrep" >&5
4575 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4576 if test "${ac_cv_prog_fgrep+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4580     then ac_cv_prog_fgrep='grep -F'
4581     else ac_cv_prog_fgrep='fgrep'
4582     fi
4583 fi
4584 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4585 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4586  FGREP=$ac_cv_prog_fgrep
4587
4588
4589 test -z "$GREP" && GREP=grep
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4610 if test "${with_gnu_ld+set}" = set; then
4611   withval="$with_gnu_ld"
4612   test "$withval" = no || with_gnu_ld=yes
4613 else
4614   with_gnu_ld=no
4615 fi;
4616 ac_prog=ld
4617 if test "$GCC" = yes; then
4618   # Check if gcc -print-prog-name=ld gives a path.
4619   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4620 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4621   case $host in
4622   *-*-mingw*)
4623     # gcc leaves a trailing carriage return which upsets mingw
4624     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4625   *)
4626     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4627   esac
4628   case $ac_prog in
4629     # Accept absolute paths.
4630     [\\/]* | ?:[\\/]*)
4631       re_direlt='/[^/][^/]*/\.\./'
4632       # Canonicalize the pathname of ld
4633       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4634       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4635         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4636       done
4637       test -z "$LD" && LD="$ac_prog"
4638       ;;
4639   "")
4640     # If it fails, then pretend we aren't using GCC.
4641     ac_prog=ld
4642     ;;
4643   *)
4644     # If it is relative, then search for the first ld in PATH.
4645     with_gnu_ld=unknown
4646     ;;
4647   esac
4648 elif test "$with_gnu_ld" = yes; then
4649   echo "$as_me:$LINENO: checking for GNU ld" >&5
4650 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4651 else
4652   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4653 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4654 fi
4655 if test "${lt_cv_path_LD+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test -z "$LD"; then
4659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4660   for ac_dir in $PATH; do
4661     IFS="$lt_save_ifs"
4662     test -z "$ac_dir" && ac_dir=.
4663     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4664       lt_cv_path_LD="$ac_dir/$ac_prog"
4665       # Check to see if the program is GNU ld.  I'd rather use --version,
4666       # but apparently some variants of GNU ld only accept -v.
4667       # Break only if it was the GNU/non-GNU ld that we prefer.
4668       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4669       *GNU* | *'with BFD'*)
4670         test "$with_gnu_ld" != no && break
4671         ;;
4672       *)
4673         test "$with_gnu_ld" != yes && break
4674         ;;
4675       esac
4676     fi
4677   done
4678   IFS="$lt_save_ifs"
4679 else
4680   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4681 fi
4682 fi
4683
4684 LD="$lt_cv_path_LD"
4685 if test -n "$LD"; then
4686   echo "$as_me:$LINENO: result: $LD" >&5
4687 echo "${ECHO_T}$LD" >&6
4688 else
4689   echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4691 fi
4692 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4693 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4694    { (exit 1); exit 1; }; }
4695 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4696 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4697 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4701 case `$LD -v 2>&1 </dev/null` in
4702 *GNU* | *'with BFD'*)
4703   lt_cv_prog_gnu_ld=yes
4704   ;;
4705 *)
4706   lt_cv_prog_gnu_ld=no
4707   ;;
4708 esac
4709 fi
4710 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4711 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4712 with_gnu_ld=$lt_cv_prog_gnu_ld
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4724 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4725 if test "${lt_cv_path_NM+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   if test -n "$NM"; then
4729   # Let the user override the test.
4730   lt_cv_path_NM="$NM"
4731 else
4732   lt_nm_to_check="${ac_tool_prefix}nm"
4733   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4734     lt_nm_to_check="$lt_nm_to_check nm"
4735   fi
4736   for lt_tmp_nm in $lt_nm_to_check; do
4737     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4738     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4739       IFS="$lt_save_ifs"
4740       test -z "$ac_dir" && ac_dir=.
4741       tmp_nm="$ac_dir/$lt_tmp_nm"
4742       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4743         # Check to see if the nm accepts a BSD-compat flag.
4744         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4745         #   nm: unknown option "B" ignored
4746         # Tru64's nm complains that /dev/null is an invalid object file
4747         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4748         */dev/null* | *'Invalid file or object type'*)
4749           lt_cv_path_NM="$tmp_nm -B"
4750           break
4751           ;;
4752         *)
4753           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4754           */dev/null*)
4755             lt_cv_path_NM="$tmp_nm -p"
4756             break
4757             ;;
4758           *)
4759             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4760             continue # so that we can try to find one that supports BSD flags
4761             ;;
4762           esac
4763           ;;
4764         esac
4765       fi
4766     done
4767     IFS="$lt_save_ifs"
4768   done
4769   : ${lt_cv_path_NM=no}
4770 fi
4771 fi
4772 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4773 echo "${ECHO_T}$lt_cv_path_NM" >&6
4774 if test "$lt_cv_path_NM" != "no"; then
4775   NM="$lt_cv_path_NM"
4776 else
4777   # Didn't find any BSD compatible name lister, look for dumpbin.
4778   if test -n "$ac_tool_prefix"; then
4779   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4780   do
4781     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783 echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   if test -n "$DUMPBIN"; then
4789   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796   for ac_exec_ext in '' $ac_executable_extensions; do
4797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803 done
4804
4805 fi
4806 fi
4807 DUMPBIN=$ac_cv_prog_DUMPBIN
4808 if test -n "$DUMPBIN"; then
4809   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4810 echo "${ECHO_T}$DUMPBIN" >&6
4811 else
4812   echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6
4814 fi
4815
4816     test -n "$DUMPBIN" && break
4817   done
4818 fi
4819 if test -z "$DUMPBIN"; then
4820   ac_ct_DUMPBIN=$DUMPBIN
4821   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4822 do
4823   # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4827 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test -n "$ac_ct_DUMPBIN"; then
4831   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846
4847 fi
4848 fi
4849 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4850 if test -n "$ac_ct_DUMPBIN"; then
4851   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4852 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4853 else
4854   echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 fi
4857
4858   test -n "$ac_ct_DUMPBIN" && break
4859 done
4860 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4861
4862   DUMPBIN=$ac_ct_DUMPBIN
4863 fi
4864
4865
4866   if test "$DUMPBIN" != ":"; then
4867     NM="$DUMPBIN"
4868   fi
4869 fi
4870 test -z "$NM" && NM=nm
4871
4872
4873
4874
4875
4876
4877 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4878 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4879 if test "${lt_cv_nm_interface+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   lt_cv_nm_interface="BSD nm"
4883   echo "int some_variable = 0;" > conftest.$ac_ext
4884   (eval echo "\"\$as_me:4884: $ac_compile\"" >&5)
4885   (eval "$ac_compile" 2>conftest.err)
4886   cat conftest.err >&5
4887   (eval echo "\"\$as_me:4887: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4888   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4889   cat conftest.err >&5
4890   (eval echo "\"\$as_me:4890: output\"" >&5)
4891   cat conftest.out >&5
4892   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4893     lt_cv_nm_interface="MS dumpbin"
4894   fi
4895   rm -f conftest*
4896 fi
4897 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4898 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4899
4900 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4902 LN_S=$as_ln_s
4903 if test "$LN_S" = "ln -s"; then
4904   echo "$as_me:$LINENO: result: yes" >&5
4905 echo "${ECHO_T}yes" >&6
4906 else
4907   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4908 echo "${ECHO_T}no, using $LN_S" >&6
4909 fi
4910
4911 # find the maximum length of command line arguments
4912 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4913 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4914 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917     i=0
4918   teststring="ABCD"
4919
4920   case $build_os in
4921   msdosdjgpp*)
4922     # On DJGPP, this test can blow up pretty badly due to problems in libc
4923     # (any single argument exceeding 2000 bytes causes a buffer overrun
4924     # during glob expansion).  Even if it were fixed, the result of this
4925     # check would be larger than it should be.
4926     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4927     ;;
4928
4929   gnu*)
4930     # Under GNU Hurd, this test is not required because there is
4931     # no limit to the length of command line arguments.
4932     # Libtool will interpret -1 as no limit whatsoever
4933     lt_cv_sys_max_cmd_len=-1;
4934     ;;
4935
4936   cygwin* | mingw*)
4937     # On Win9x/ME, this test blows up -- it succeeds, but takes
4938     # about 5 minutes as the teststring grows exponentially.
4939     # Worse, since 9x/ME are not pre-emptively multitasking,
4940     # you end up with a "frozen" computer, even though with patience
4941     # the test eventually succeeds (with a max line length of 256k).
4942     # Instead, let's just punt: use the minimum linelength reported by
4943     # all of the supported platforms: 8192 (on NT/2K/XP).
4944     lt_cv_sys_max_cmd_len=8192;
4945     ;;
4946
4947   amigaos*)
4948     # On AmigaOS with pdksh, this test takes hours, literally.
4949     # So we just punt and use a minimum line length of 8192.
4950     lt_cv_sys_max_cmd_len=8192;
4951     ;;
4952
4953   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4954     # This has been around since 386BSD, at least.  Likely further.
4955     if test -x /sbin/sysctl; then
4956       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4957     elif test -x /usr/sbin/sysctl; then
4958       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4959     else
4960       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4961     fi
4962     # And add a safety zone
4963     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4964     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4965     ;;
4966
4967   interix*)
4968     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4969     lt_cv_sys_max_cmd_len=196608
4970     ;;
4971
4972   osf*)
4973     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4974     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4975     # nice to cause kernel panics so lets avoid the loop below.
4976     # First set a reasonable default.
4977     lt_cv_sys_max_cmd_len=16384
4978     #
4979     if test -x /sbin/sysconfig; then
4980       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4981         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4982       esac
4983     fi
4984     ;;
4985   sco3.2v5*)
4986     lt_cv_sys_max_cmd_len=102400
4987     ;;
4988   sysv5* | sco5v6* | sysv4.2uw2*)
4989     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4990     if test -n "$kargmax"; then
4991       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4992     else
4993       lt_cv_sys_max_cmd_len=32768
4994     fi
4995     ;;
4996   *)
4997     # Make teststring a little bigger before we do anything with it.
4998     # a 1K string should be a reasonable start.
4999     for i in 1 2 3 4 5 6 7 8 ; do
5000       teststring=$teststring$teststring
5001     done
5002     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5003     # If test is not a shell built-in, we'll probably end up computing a
5004     # maximum length that is only half of the actual maximum length, but
5005     # we can't tell.
5006     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5007                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5008             test $i != 17 # 1/2 MB should be enough
5009     do
5010       i=`expr $i + 1`
5011       teststring=$teststring$teststring
5012     done
5013     # Only check the string length outside the loop.
5014     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5015     teststring=
5016     # Add a significant safety factor because C++ compilers can tack on massive
5017     # amounts of additional arguments before passing them to the linker.
5018     # It appears as though 1/2 is a usable value.
5019     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5020     ;;
5021   esac
5022
5023 fi
5024
5025 if test -n $lt_cv_sys_max_cmd_len ; then
5026   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5027 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5028 else
5029   echo "$as_me:$LINENO: result: none" >&5
5030 echo "${ECHO_T}none" >&6
5031 fi
5032 max_cmd_len=$lt_cv_sys_max_cmd_len
5033
5034
5035
5036
5037
5038
5039 : ${CP="cp -f"}
5040 : ${MV="mv -f"}
5041 : ${RM="rm -f"}
5042
5043 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5044 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5045 # Try some XSI features
5046 xsi_shell=no
5047 ( _lt_dummy="a/b/c"
5048   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5049       = c,a/b,, ) >/dev/null 2>&1 \
5050   && xsi_shell=yes
5051 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5052 echo "${ECHO_T}$xsi_shell" >&6
5053
5054
5055 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5056 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5057 lt_shell_append=no
5058 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5059     >/dev/null 2>&1 \
5060   && lt_shell_append=yes
5061 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5062 echo "${ECHO_T}$lt_shell_append" >&6
5063
5064
5065 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5066   lt_unset=unset
5067 else
5068   lt_unset=false
5069 fi
5070
5071
5072
5073
5074
5075 # test EBCDIC or ASCII
5076 case `echo X|tr X '\101'` in
5077  A) # ASCII based system
5078     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5079   lt_SP2NL='tr \040 \012'
5080   lt_NL2SP='tr \015\012 \040\040'
5081   ;;
5082  *) # EBCDIC based system
5083   lt_SP2NL='tr \100 \n'
5084   lt_NL2SP='tr \r\n \100\100'
5085   ;;
5086 esac
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5097 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5098 if test "${lt_cv_ld_reload_flag+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   lt_cv_ld_reload_flag='-r'
5102 fi
5103 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5104 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5105 reload_flag=$lt_cv_ld_reload_flag
5106 case $reload_flag in
5107 "" | " "*) ;;
5108 *) reload_flag=" $reload_flag" ;;
5109 esac
5110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5111 case $host_os in
5112   darwin*)
5113     if test "$GCC" = yes; then
5114       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5115     else
5116       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5117     fi
5118     ;;
5119 esac
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5131 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5132 if test "${lt_cv_deplibs_check_method+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   lt_cv_file_magic_cmd='$MAGIC_CMD'
5136 lt_cv_file_magic_test_file=
5137 lt_cv_deplibs_check_method='unknown'
5138 # Need to set the preceding variable on all platforms that support
5139 # interlibrary dependencies.
5140 # 'none' -- dependencies not supported.
5141 # `unknown' -- same as none, but documents that we really don't know.
5142 # 'pass_all' -- all dependencies passed with no checks.
5143 # 'test_compile' -- check by making test program.
5144 # 'file_magic [[regex]]' -- check by looking for files in library path
5145 # which responds to the $file_magic_cmd with a given extended regex.
5146 # If you have `file' or equivalent on your system and you're not sure
5147 # whether `pass_all' will *always* work, you probably want this one.
5148
5149 case $host_os in
5150 aix4* | aix5*)
5151   lt_cv_deplibs_check_method=pass_all
5152   ;;
5153
5154 beos*)
5155   lt_cv_deplibs_check_method=pass_all
5156   ;;
5157
5158 bsdi[45]*)
5159   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5160   lt_cv_file_magic_cmd='/usr/bin/file -L'
5161   lt_cv_file_magic_test_file=/shlib/libc.so
5162   ;;
5163
5164 cygwin*)
5165   # func_win32_libid is a shell function defined in ltmain.sh
5166   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5167   lt_cv_file_magic_cmd='func_win32_libid'
5168   ;;
5169
5170 mingw* | pw32*)
5171   # Base MSYS/MinGW do not provide the 'file' command needed by
5172   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5173   # unless we find 'file', for example because we are cross-compiling.
5174   if ( file / ) >/dev/null 2>&1; then
5175     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5176     lt_cv_file_magic_cmd='func_win32_libid'
5177   else
5178     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5179     lt_cv_file_magic_cmd='$OBJDUMP -f'
5180   fi
5181   ;;
5182
5183 darwin* | rhapsody*)
5184   lt_cv_deplibs_check_method=pass_all
5185   ;;
5186
5187 freebsd* | dragonfly*)
5188   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5189     case $host_cpu in
5190     i*86 )
5191       # Not sure whether the presence of OpenBSD here was a mistake.
5192       # Let's accept both of them until this is cleared up.
5193       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5194       lt_cv_file_magic_cmd=/usr/bin/file
5195       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5196       ;;
5197     esac
5198   else
5199     lt_cv_deplibs_check_method=pass_all
5200   fi
5201   ;;
5202
5203 gnu*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 hpux10.20* | hpux11*)
5208   lt_cv_file_magic_cmd=/usr/bin/file
5209   case $host_cpu in
5210   ia64*)
5211     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5212     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5213     ;;
5214   hppa*64*)
5215     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]'
5216     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5217     ;;
5218   *)
5219     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5220     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5221     ;;
5222   esac
5223   ;;
5224
5225 interix[3-9]*)
5226   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5227   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5228   ;;
5229
5230 irix5* | irix6* | nonstopux*)
5231   case $LD in
5232   *-32|*"-32 ") libmagic=32-bit;;
5233   *-n32|*"-n32 ") libmagic=N32;;
5234   *-64|*"-64 ") libmagic=64-bit;;
5235   *) libmagic=never-match;;
5236   esac
5237   lt_cv_deplibs_check_method=pass_all
5238   ;;
5239
5240 # This must be Linux ELF.
5241 linux* | k*bsd*-gnu)
5242   lt_cv_deplibs_check_method=pass_all
5243   ;;
5244
5245 netbsd*)
5246   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5247     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5248   else
5249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5250   fi
5251   ;;
5252
5253 newos6*)
5254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5255   lt_cv_file_magic_cmd=/usr/bin/file
5256   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5257   ;;
5258
5259 *nto* | *qnx*)
5260   lt_cv_deplibs_check_method=pass_all
5261   ;;
5262
5263 openbsd*)
5264   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5266   else
5267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268   fi
5269   ;;
5270
5271 osf3* | osf4* | osf5*)
5272   lt_cv_deplibs_check_method=pass_all
5273   ;;
5274
5275 rdos*)
5276   lt_cv_deplibs_check_method=pass_all
5277   ;;
5278
5279 solaris*)
5280   lt_cv_deplibs_check_method=pass_all
5281   ;;
5282
5283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5284   lt_cv_deplibs_check_method=pass_all
5285   ;;
5286
5287 sysv4 | sysv4.3*)
5288   case $host_vendor in
5289   motorola)
5290     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]'
5291     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5292     ;;
5293   ncr)
5294     lt_cv_deplibs_check_method=pass_all
5295     ;;
5296   sequent)
5297     lt_cv_file_magic_cmd='/bin/file'
5298     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5299     ;;
5300   sni)
5301     lt_cv_file_magic_cmd='/bin/file'
5302     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5303     lt_cv_file_magic_test_file=/lib/libc.so
5304     ;;
5305   siemens)
5306     lt_cv_deplibs_check_method=pass_all
5307     ;;
5308   pc)
5309     lt_cv_deplibs_check_method=pass_all
5310     ;;
5311   esac
5312   ;;
5313
5314 tpf*)
5315   lt_cv_deplibs_check_method=pass_all
5316   ;;
5317 esac
5318
5319 fi
5320 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5321 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5322 file_magic_cmd=$lt_cv_file_magic_cmd
5323 deplibs_check_method=$lt_cv_deplibs_check_method
5324 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 if test -n "$ac_tool_prefix"; then
5338   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5339 set dummy ${ac_tool_prefix}ar; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_AR+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$AR"; then
5346   ac_cv_prog_AR="$AR" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_AR="${ac_tool_prefix}ar"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361
5362 fi
5363 fi
5364 AR=$ac_cv_prog_AR
5365 if test -n "$AR"; then
5366   echo "$as_me:$LINENO: result: $AR" >&5
5367 echo "${ECHO_T}$AR" >&6
5368 else
5369   echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6
5371 fi
5372
5373 fi
5374 if test -z "$ac_cv_prog_AR"; then
5375   ac_ct_AR=$AR
5376   # Extract the first word of "ar", so it can be a program name with args.
5377 set dummy ar; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   if test -n "$ac_ct_AR"; then
5384   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391   for ac_exec_ext in '' $ac_executable_extensions; do
5392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393     ac_cv_prog_ac_ct_AR="ar"
5394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398 done
5399
5400   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5401 fi
5402 fi
5403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5404 if test -n "$ac_ct_AR"; then
5405   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5406 echo "${ECHO_T}$ac_ct_AR" >&6
5407 else
5408   echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410 fi
5411
5412   AR=$ac_ct_AR
5413 else
5414   AR="$ac_cv_prog_AR"
5415 fi
5416
5417 test -z "$AR" && AR=ar
5418 test -z "$AR_FLAGS" && AR_FLAGS=cru
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 if test -n "$ac_tool_prefix"; then
5431   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}strip; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_prog_STRIP+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   if test -n "$STRIP"; then
5439   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446   for ac_exec_ext in '' $ac_executable_extensions; do
5447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453 done
5454
5455 fi
5456 fi
5457 STRIP=$ac_cv_prog_STRIP
5458 if test -n "$STRIP"; then
5459   echo "$as_me:$LINENO: result: $STRIP" >&5
5460 echo "${ECHO_T}$STRIP" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 fi
5467 if test -z "$ac_cv_prog_STRIP"; then
5468   ac_ct_STRIP=$STRIP
5469   # Extract the first word of "strip", so it can be a program name with args.
5470 set dummy strip; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -n "$ac_ct_STRIP"; then
5477   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484   for ac_exec_ext in '' $ac_executable_extensions; do
5485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486     ac_cv_prog_ac_ct_STRIP="strip"
5487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491 done
5492
5493   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5494 fi
5495 fi
5496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5497 if test -n "$ac_ct_STRIP"; then
5498   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5499 echo "${ECHO_T}$ac_ct_STRIP" >&6
5500 else
5501   echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5503 fi
5504
5505   STRIP=$ac_ct_STRIP
5506 else
5507   STRIP="$ac_cv_prog_STRIP"
5508 fi
5509
5510 test -z "$STRIP" && STRIP=:
5511
5512
5513
5514
5515
5516
5517 if test -n "$ac_tool_prefix"; then
5518   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522 if test "${ac_cv_prog_RANLIB+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   if test -n "$RANLIB"; then
5526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533   for ac_exec_ext in '' $ac_executable_extensions; do
5534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540 done
5541
5542 fi
5543 fi
5544 RANLIB=$ac_cv_prog_RANLIB
5545 if test -n "$RANLIB"; then
5546   echo "$as_me:$LINENO: result: $RANLIB" >&5
5547 echo "${ECHO_T}$RANLIB" >&6
5548 else
5549   echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551 fi
5552
5553 fi
5554 if test -z "$ac_cv_prog_RANLIB"; then
5555   ac_ct_RANLIB=$RANLIB
5556   # Extract the first word of "ranlib", so it can be a program name with args.
5557 set dummy ranlib; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   if test -n "$ac_ct_RANLIB"; then
5564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571   for ac_exec_ext in '' $ac_executable_extensions; do
5572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_ac_ct_RANLIB="ranlib"
5574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578 done
5579
5580   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5581 fi
5582 fi
5583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5584 if test -n "$ac_ct_RANLIB"; then
5585   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5586 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5587 else
5588   echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592   RANLIB=$ac_ct_RANLIB
5593 else
5594   RANLIB="$ac_cv_prog_RANLIB"
5595 fi
5596
5597 test -z "$RANLIB" && RANLIB=:
5598
5599
5600
5601
5602
5603
5604 # Determine commands to create old-style static archives.
5605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5606 old_postinstall_cmds='chmod 644 $oldlib'
5607 old_postuninstall_cmds=
5608
5609 if test -n "$RANLIB"; then
5610   case $host_os in
5611   openbsd*)
5612     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5613     ;;
5614   *)
5615     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5616     ;;
5617   esac
5618   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5619 fi
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 # If no C compiler was specified, use CC.
5655 LTCC=${LTCC-"$CC"}
5656
5657 # If no C compiler flags were specified, use CFLAGS.
5658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5659
5660 # Allow CC to be a program name with arguments.
5661 compiler=$CC
5662
5663
5664 # Check for command to grab the raw symbol name followed by C symbol from nm.
5665 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5666 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5667 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670
5671 # These are sane defaults that work on at least a few old systems.
5672 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5673
5674 # Character class describing NM global symbol codes.
5675 symcode='[BCDEGRST]'
5676
5677 # Regexp to match symbols that can be accessed directly from C.
5678 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5679
5680 # Define system-specific variables.
5681 case $host_os in
5682 aix*)
5683   symcode='[BCDT]'
5684   ;;
5685 cygwin* | mingw* | pw32*)
5686   symcode='[ABCDGISTW]'
5687   ;;
5688 hpux*)
5689   if test "$host_cpu" = ia64; then
5690     symcode='[ABCDEGRST]'
5691   fi
5692   ;;
5693 irix* | nonstopux*)
5694   symcode='[BCDEGRST]'
5695   ;;
5696 osf*)
5697   symcode='[BCDEGQRST]'
5698   ;;
5699 solaris*)
5700   symcode='[BDRT]'
5701   ;;
5702 sco3.2v5*)
5703   symcode='[DT]'
5704   ;;
5705 sysv4.2uw2*)
5706   symcode='[DT]'
5707   ;;
5708 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5709   symcode='[ABDT]'
5710   ;;
5711 sysv4)
5712   symcode='[DFNSTU]'
5713   ;;
5714 esac
5715
5716 # If we're using GNU nm, then use its standard symbol codes.
5717 case `$NM -V 2>&1` in
5718 *GNU* | *'with BFD'*)
5719   symcode='[ABCDGIRSTW]' ;;
5720 esac
5721
5722 # Transform an extracted symbol line into a proper C declaration.
5723 # Some systems (esp. on ia64) link data and code symbols differently,
5724 # so use this general approach.
5725 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5726
5727 # Transform an extracted symbol line into symbol name and symbol address
5728 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5729
5730 # Handle CRLF in mingw tool chain
5731 opt_cr=
5732 case $build_os in
5733 mingw*)
5734   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5735   ;;
5736 esac
5737
5738 # Try without a prefix underscore, then with it.
5739 for ac_symprfx in "" "_"; do
5740
5741   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5742   symxfrm="\\1 $ac_symprfx\\2 \\2"
5743
5744   # Write the raw and C identifiers.
5745   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5746     # Fake it for dumpbin and say T for any non-static function
5747     # and D for any global variable.
5748     # Also find C++ and __fastcall symbols from MSVC++,
5749     # which start with @ or ?.
5750     lt_cv_sys_global_symbol_pipe="$AWK '"\
5751 "     {last_section=section; section=\$ 3};"\
5752 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5753 "     \$ 0!~/External *\|/{next};"\
5754 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5755 "     {if(hide[section]) next};"\
5756 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5757 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5758 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5759 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5760 "     ' prfx=^$ac_symprfx"
5761   else
5762     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5763   fi
5764
5765   # Check to see that the pipe works correctly.
5766   pipe_works=no
5767
5768   rm -f conftest*
5769   cat > conftest.$ac_ext <<_LT_EOF
5770 #ifdef __cplusplus
5771 extern "C" {
5772 #endif
5773 char nm_test_var;
5774 void nm_test_func(void);
5775 void nm_test_func(void){}
5776 #ifdef __cplusplus
5777 }
5778 #endif
5779 int main(){nm_test_var='a';nm_test_func();return(0);}
5780 _LT_EOF
5781
5782   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783   (eval $ac_compile) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }; then
5787     # Now try to grab the symbols.
5788     nlist=conftest.nm
5789     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5790   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } && test -s "$nlist"; then
5794       # Try sorting and uniquifying the output.
5795       if sort "$nlist" | uniq > "$nlist"T; then
5796         mv -f "$nlist"T "$nlist"
5797       else
5798         rm -f "$nlist"T
5799       fi
5800
5801       # Make sure that we snagged all the symbols we need.
5802       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5803         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5804           cat <<_LT_EOF > conftest.$ac_ext
5805 #ifdef __cplusplus
5806 extern "C" {
5807 #endif
5808
5809 _LT_EOF
5810           # Now generate the symbol file.
5811           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5812
5813           cat <<_LT_EOF >> conftest.$ac_ext
5814
5815 /* The mapping between symbol names and symbols.  */
5816 const struct {
5817   const char *name;
5818   void       *address;
5819 }
5820 lt__PROGRAM__LTX_preloaded_symbols[] =
5821 {
5822   { "@PROGRAM@", (void *) 0 },
5823 _LT_EOF
5824           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5825           cat <<\_LT_EOF >> conftest.$ac_ext
5826   {0, (void *) 0}
5827 };
5828
5829 /* This works around a problem in FreeBSD linker */
5830 #ifdef FREEBSD_WORKAROUND
5831 static const void *lt_preloaded_setup() {
5832   return lt__PROGRAM__LTX_preloaded_symbols;
5833 }
5834 #endif
5835
5836 #ifdef __cplusplus
5837 }
5838 #endif
5839 _LT_EOF
5840           # Now try linking the two files.
5841           mv conftest.$ac_objext conftstm.$ac_objext
5842           lt_save_LIBS="$LIBS"
5843           lt_save_CFLAGS="$CFLAGS"
5844           LIBS="conftstm.$ac_objext"
5845           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5846           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847   (eval $ac_link) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5851             pipe_works=yes
5852           fi
5853           LIBS="$lt_save_LIBS"
5854           CFLAGS="$lt_save_CFLAGS"
5855         else
5856           echo "cannot find nm_test_func in $nlist" >&5
5857         fi
5858       else
5859         echo "cannot find nm_test_var in $nlist" >&5
5860       fi
5861     else
5862       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5863     fi
5864   else
5865     echo "$progname: failed program was:" >&5
5866     cat conftest.$ac_ext >&5
5867   fi
5868   rm -f conftest* conftst*
5869
5870   # Do not use the global_symbol_pipe unless it works.
5871   if test "$pipe_works" = yes; then
5872     break
5873   else
5874     lt_cv_sys_global_symbol_pipe=
5875   fi
5876 done
5877
5878 fi
5879
5880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5881   lt_cv_sys_global_symbol_to_cdecl=
5882 fi
5883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5884   echo "$as_me:$LINENO: result: failed" >&5
5885 echo "${ECHO_T}failed" >&6
5886 else
5887   echo "$as_me:$LINENO: result: ok" >&5
5888 echo "${ECHO_T}ok" >&6
5889 fi
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5909 if test "${enable_libtool_lock+set}" = set; then
5910   enableval="$enable_libtool_lock"
5911
5912 fi;
5913 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5914
5915 # Some flags need to be propagated to the compiler or linker for good
5916 # libtool support.
5917 case $host in
5918 ia64-*-hpux*)
5919   # Find out which ABI we are using.
5920   echo 'int i;' > conftest.$ac_ext
5921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922   (eval $ac_compile) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; then
5926     case `/usr/bin/file conftest.$ac_objext` in
5927       *ELF-32*)
5928         HPUX_IA64_MODE="32"
5929         ;;
5930       *ELF-64*)
5931         HPUX_IA64_MODE="64"
5932         ;;
5933     esac
5934   fi
5935   rm -rf conftest*
5936   ;;
5937 *-*-irix6*)
5938   # Find out which ABI we are using.
5939   echo '#line 5939 "configure"' > conftest.$ac_ext
5940   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941   (eval $ac_compile) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; then
5945     if test "$lt_cv_prog_gnu_ld" = yes; then
5946       case `/usr/bin/file conftest.$ac_objext` in
5947         *32-bit*)
5948           LD="${LD-ld} -melf32bsmip"
5949           ;;
5950         *N32*)
5951           LD="${LD-ld} -melf32bmipn32"
5952           ;;
5953         *64-bit*)
5954           LD="${LD-ld} -melf64bmip"
5955         ;;
5956       esac
5957     else
5958       case `/usr/bin/file conftest.$ac_objext` in
5959         *32-bit*)
5960           LD="${LD-ld} -32"
5961           ;;
5962         *N32*)
5963           LD="${LD-ld} -n32"
5964           ;;
5965         *64-bit*)
5966           LD="${LD-ld} -64"
5967           ;;
5968       esac
5969     fi
5970   fi
5971   rm -rf conftest*
5972   ;;
5973
5974 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5975 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5976   # Find out which ABI we are using.
5977   echo 'int i;' > conftest.$ac_ext
5978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979   (eval $ac_compile) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; then
5983     case `/usr/bin/file conftest.o` in
5984       *32-bit*)
5985         case $host in
5986           x86_64-*kfreebsd*-gnu)
5987             LD="${LD-ld} -m elf_i386_fbsd"
5988             ;;
5989           x86_64-*linux*)
5990             LD="${LD-ld} -m elf_i386"
5991             ;;
5992           ppc64-*linux*|powerpc64-*linux*)
5993             LD="${LD-ld} -m elf32ppclinux"
5994             ;;
5995           s390x-*linux*)
5996             LD="${LD-ld} -m elf_s390"
5997             ;;
5998           sparc64-*linux*)
5999             LD="${LD-ld} -m elf32_sparc"
6000             ;;
6001         esac
6002         ;;
6003       *64-bit*)
6004         case $host in
6005           x86_64-*kfreebsd*-gnu)
6006             LD="${LD-ld} -m elf_x86_64_fbsd"
6007             ;;
6008           x86_64-*linux*)
6009             LD="${LD-ld} -m elf_x86_64"
6010             ;;
6011           ppc*-*linux*|powerpc*-*linux*)
6012             LD="${LD-ld} -m elf64ppc"
6013             ;;
6014           s390*-*linux*|s390*-*tpf*)
6015             LD="${LD-ld} -m elf64_s390"
6016             ;;
6017           sparc*-*linux*)
6018             LD="${LD-ld} -m elf64_sparc"
6019             ;;
6020         esac
6021         ;;
6022     esac
6023   fi
6024   rm -rf conftest*
6025   ;;
6026
6027 *-*-sco3.2v5*)
6028   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6029   SAVE_CFLAGS="$CFLAGS"
6030   CFLAGS="$CFLAGS -belf"
6031   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6032 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6033 if test "${lt_cv_cc_needs_belf+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   ac_ext=c
6037 ac_cpp='$CPP $CPPFLAGS'
6038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041
6042      cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h.  */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h.  */
6048
6049 int
6050 main ()
6051 {
6052
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext conftest$ac_exeext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6059   (eval $ac_link) 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -z "$ac_c_werror_flag"
6067                          || test ! -s conftest.err'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; } &&
6073          { ac_try='test -s conftest$ac_exeext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   lt_cv_cc_needs_belf=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 lt_cv_cc_needs_belf=no
6085 fi
6086 rm -f conftest.err conftest.$ac_objext \
6087       conftest$ac_exeext conftest.$ac_ext
6088      ac_ext=c
6089 ac_cpp='$CPP $CPPFLAGS'
6090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6093
6094 fi
6095 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6096 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6097   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6098     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6099     CFLAGS="$SAVE_CFLAGS"
6100   fi
6101   ;;
6102 sparc*-*solaris*)
6103   # Find out which ABI we are using.
6104   echo 'int i;' > conftest.$ac_ext
6105   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106   (eval $ac_compile) 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }; then
6110     case `/usr/bin/file conftest.o` in
6111     *64-bit*)
6112       case $lt_cv_prog_gnu_ld in
6113       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6114       *)    LD="${LD-ld} -64" ;;
6115       esac
6116       ;;
6117     esac
6118   fi
6119   rm -rf conftest*
6120   ;;
6121 esac
6122
6123 need_locks="$enable_libtool_lock"
6124
6125 ac_ext=c
6126 ac_cpp='$CPP $CPPFLAGS'
6127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6131 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6132 # On Suns, sometimes $CPP names a directory.
6133 if test -n "$CPP" && test -d "$CPP"; then
6134   CPP=
6135 fi
6136 if test -z "$CPP"; then
6137   if test "${ac_cv_prog_CPP+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140       # Double quotes because CPP needs to be expanded
6141     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6142     do
6143       ac_preproc_ok=false
6144 for ac_c_preproc_warn_flag in '' yes
6145 do
6146   # Use a header file that comes with gcc, so configuring glibc
6147   # with a fresh cross-compiler works.
6148   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149   # <limits.h> exists even on freestanding compilers.
6150   # On the NeXT, cc -E runs the code through the compiler's parser,
6151   # not just through cpp. "Syntax error" is here to catch this case.
6152   cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h.  */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h.  */
6158 #ifdef __STDC__
6159 # include <limits.h>
6160 #else
6161 # include <assert.h>
6162 #endif
6163                      Syntax error
6164 _ACEOF
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } >/dev/null; then
6173   if test -s conftest.err; then
6174     ac_cpp_err=$ac_c_preproc_warn_flag
6175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176   else
6177     ac_cpp_err=
6178   fi
6179 else
6180   ac_cpp_err=yes
6181 fi
6182 if test -z "$ac_cpp_err"; then
6183   :
6184 else
6185   echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188   # Broken: fails on valid input.
6189 continue
6190 fi
6191 rm -f conftest.err conftest.$ac_ext
6192
6193   # OK, works on sane cases.  Now check whether non-existent headers
6194   # can be detected and how.
6195   cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201 #include <ac_nonexistent.h>
6202 _ACEOF
6203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } >/dev/null; then
6211   if test -s conftest.err; then
6212     ac_cpp_err=$ac_c_preproc_warn_flag
6213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6214   else
6215     ac_cpp_err=
6216   fi
6217 else
6218   ac_cpp_err=yes
6219 fi
6220 if test -z "$ac_cpp_err"; then
6221   # Broken: success on invalid input.
6222 continue
6223 else
6224   echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227   # Passes both tests.
6228 ac_preproc_ok=:
6229 break
6230 fi
6231 rm -f conftest.err conftest.$ac_ext
6232
6233 done
6234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6235 rm -f conftest.err conftest.$ac_ext
6236 if $ac_preproc_ok; then
6237   break
6238 fi
6239
6240     done
6241     ac_cv_prog_CPP=$CPP
6242
6243 fi
6244   CPP=$ac_cv_prog_CPP
6245 else
6246   ac_cv_prog_CPP=$CPP
6247 fi
6248 echo "$as_me:$LINENO: result: $CPP" >&5
6249 echo "${ECHO_T}$CPP" >&6
6250 ac_preproc_ok=false
6251 for ac_c_preproc_warn_flag in '' yes
6252 do
6253   # Use a header file that comes with gcc, so configuring glibc
6254   # with a fresh cross-compiler works.
6255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6256   # <limits.h> exists even on freestanding compilers.
6257   # On the NeXT, cc -E runs the code through the compiler's parser,
6258   # not just through cpp. "Syntax error" is here to catch this case.
6259   cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 #ifdef __STDC__
6266 # include <limits.h>
6267 #else
6268 # include <assert.h>
6269 #endif
6270                      Syntax error
6271 _ACEOF
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274   ac_status=$?
6275   grep -v '^ *+' conftest.er1 >conftest.err
6276   rm -f conftest.er1
6277   cat conftest.err >&5
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); } >/dev/null; then
6280   if test -s conftest.err; then
6281     ac_cpp_err=$ac_c_preproc_warn_flag
6282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283   else
6284     ac_cpp_err=
6285   fi
6286 else
6287   ac_cpp_err=yes
6288 fi
6289 if test -z "$ac_cpp_err"; then
6290   :
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295   # Broken: fails on valid input.
6296 continue
6297 fi
6298 rm -f conftest.err conftest.$ac_ext
6299
6300   # OK, works on sane cases.  Now check whether non-existent headers
6301   # can be detected and how.
6302   cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308 #include <ac_nonexistent.h>
6309 _ACEOF
6310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } >/dev/null; then
6318   if test -s conftest.err; then
6319     ac_cpp_err=$ac_c_preproc_warn_flag
6320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6321   else
6322     ac_cpp_err=
6323   fi
6324 else
6325   ac_cpp_err=yes
6326 fi
6327 if test -z "$ac_cpp_err"; then
6328   # Broken: success on invalid input.
6329 continue
6330 else
6331   echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334   # Passes both tests.
6335 ac_preproc_ok=:
6336 break
6337 fi
6338 rm -f conftest.err conftest.$ac_ext
6339
6340 done
6341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6342 rm -f conftest.err conftest.$ac_ext
6343 if $ac_preproc_ok; then
6344   :
6345 else
6346   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6347 See \`config.log' for more details." >&5
6348 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6349 See \`config.log' for more details." >&2;}
6350    { (exit 1); exit 1; }; }
6351 fi
6352
6353 ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359
6360 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6362 if test "${ac_cv_header_stdc+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371 #include <stdlib.h>
6372 #include <stdarg.h>
6373 #include <string.h>
6374 #include <float.h>
6375
6376 int
6377 main ()
6378 {
6379
6380   ;
6381   return 0;
6382 }
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386   (eval $ac_compile) 2>conftest.er1
6387   ac_status=$?
6388   grep -v '^ *+' conftest.er1 >conftest.err
6389   rm -f conftest.er1
6390   cat conftest.err >&5
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); } &&
6393          { ac_try='test -z "$ac_c_werror_flag"
6394                          || test ! -s conftest.err'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; } &&
6400          { ac_try='test -s conftest.$ac_objext'
6401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402   (eval $ac_try) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; }; then
6406   ac_cv_header_stdc=yes
6407 else
6408   echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 ac_cv_header_stdc=no
6412 fi
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414
6415 if test $ac_cv_header_stdc = yes; then
6416   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6417   cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423 #include <string.h>
6424
6425 _ACEOF
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427   $EGREP "memchr" >/dev/null 2>&1; then
6428   :
6429 else
6430   ac_cv_header_stdc=no
6431 fi
6432 rm -f conftest*
6433
6434 fi
6435
6436 if test $ac_cv_header_stdc = yes; then
6437   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6438   cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 #include <stdlib.h>
6445
6446 _ACEOF
6447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6448   $EGREP "free" >/dev/null 2>&1; then
6449   :
6450 else
6451   ac_cv_header_stdc=no
6452 fi
6453 rm -f conftest*
6454
6455 fi
6456
6457 if test $ac_cv_header_stdc = yes; then
6458   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6459   if test "$cross_compiling" = yes; then
6460   :
6461 else
6462   cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 #include <ctype.h>
6469 #if ((' ' & 0x0FF) == 0x020)
6470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6472 #else
6473 # define ISLOWER(c) \
6474                    (('a' <= (c) && (c) <= 'i') \
6475                      || ('j' <= (c) && (c) <= 'r') \
6476                      || ('s' <= (c) && (c) <= 'z'))
6477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6478 #endif
6479
6480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6481 int
6482 main ()
6483 {
6484   int i;
6485   for (i = 0; i < 256; i++)
6486     if (XOR (islower (i), ISLOWER (i))
6487         || toupper (i) != TOUPPER (i))
6488       exit(2);
6489   exit (0);
6490 }
6491 _ACEOF
6492 rm -f conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494   (eval $ac_link) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; }; then
6503   :
6504 else
6505   echo "$as_me: program exited with status $ac_status" >&5
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 ( exit $ac_status )
6510 ac_cv_header_stdc=no
6511 fi
6512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6513 fi
6514 fi
6515 fi
6516 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6517 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6518 if test $ac_cv_header_stdc = yes; then
6519
6520 cat >>confdefs.h <<\_ACEOF
6521 #define STDC_HEADERS 1
6522 _ACEOF
6523
6524 fi
6525
6526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6537                   inttypes.h stdint.h unistd.h
6538 do
6539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6540 echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h.  */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h.  */
6551 $ac_includes_default
6552
6553 #include <$ac_header>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest.$ac_objext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   eval "$as_ac_Header=yes"
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 eval "$as_ac_Header=no"
6583 fi
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 fi
6586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589   cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6592
6593 fi
6594
6595 done
6596
6597
6598
6599 for ac_header in dlfcn.h
6600 do
6601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6602 echo "$as_me:$LINENO: checking for $ac_header" >&5
6603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613 $ac_includes_default
6614
6615 #include <$ac_header>
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619   (eval $ac_compile) 2>conftest.er1
6620   ac_status=$?
6621   grep -v '^ *+' conftest.er1 >conftest.err
6622   rm -f conftest.er1
6623   cat conftest.err >&5
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } &&
6626          { ac_try='test -z "$ac_c_werror_flag"
6627                          || test ! -s conftest.err'
6628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629   (eval $ac_try) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; } &&
6633          { ac_try='test -s conftest.$ac_objext'
6634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635   (eval $ac_try) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; }; then
6639   eval "$as_ac_Header=yes"
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 eval "$as_ac_Header=no"
6645 fi
6646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6647 fi
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651   cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6653 _ACEOF
6654
6655 fi
6656
6657 done
6658
6659
6660
6661 # This can be used to rebuild libtool when needed
6662 LIBTOOL_DEPS="$ltmain"
6663
6664 # Always use our own libtool.
6665 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 test -z "$LN_S" && LN_S="ln -s"
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 if test -n "${ZSH_VERSION+set}" ; then
6707    setopt NO_GLOB_SUBST
6708 fi
6709
6710 echo "$as_me:$LINENO: checking for objdir" >&5
6711 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6712 if test "${lt_cv_objdir+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   rm -f .libs 2>/dev/null
6716 mkdir .libs 2>/dev/null
6717 if test -d .libs; then
6718   lt_cv_objdir=.libs
6719 else
6720   # MS-DOS does not allow filenames that begin with a dot.
6721   lt_cv_objdir=_libs
6722 fi
6723 rmdir .libs 2>/dev/null
6724 fi
6725 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6726 echo "${ECHO_T}$lt_cv_objdir" >&6
6727 objdir=$lt_cv_objdir
6728
6729
6730
6731
6732
6733 cat >>confdefs.h <<_ACEOF
6734 #define LT_OBJDIR "$lt_cv_objdir/"
6735 _ACEOF
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 case $host_os in
6754 aix3*)
6755   # AIX sometimes has problems with the GCC collect2 program.  For some
6756   # reason, if we set the COLLECT_NAMES environment variable, the problems
6757   # vanish in a puff of smoke.
6758   if test "X${COLLECT_NAMES+set}" != Xset; then
6759     COLLECT_NAMES=
6760     export COLLECT_NAMES
6761   fi
6762   ;;
6763 esac
6764
6765 # Sed substitution that helps us do robust quoting.  It backslashifies
6766 # metacharacters that are still active within double-quoted strings.
6767 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6768
6769 # Same as above, but do not quote variable references.
6770 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6771
6772 # Sed substitution to delay expansion of an escaped shell variable in a
6773 # double_quote_subst'ed string.
6774 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6775
6776 # Sed substitution to delay expansion of an escaped single quote.
6777 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6778
6779 # Sed substitution to avoid accidental globbing in evaled expressions
6780 no_glob_subst='s/\*/\\\*/g'
6781
6782 # Global variables:
6783 ofile=libtool
6784 can_build_shared=yes
6785
6786 # All known linkers require a `.a' archive for static linking (except MSVC,
6787 # which needs '.lib').
6788 libext=a
6789
6790 with_gnu_ld="$lt_cv_prog_gnu_ld"
6791
6792 old_CC="$CC"
6793 old_CFLAGS="$CFLAGS"
6794
6795 # Set sane defaults for various variables
6796 test -z "$CC" && CC=cc
6797 test -z "$LTCC" && LTCC=$CC
6798 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6799 test -z "$LD" && LD=ld
6800 test -z "$ac_objext" && ac_objext=o
6801
6802 for cc_temp in $compiler""; do
6803   case $cc_temp in
6804     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6805     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6806     \-*) ;;
6807     *) break;;
6808   esac
6809 done
6810 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6811
6812
6813 # Only perform the check for file, if the check method requires it
6814 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6815 case $deplibs_check_method in
6816 file_magic*)
6817   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6818     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6819 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $MAGIC_CMD in
6824 [\\/*] |  ?:[\\/]*)
6825   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6826   ;;
6827 *)
6828   lt_save_MAGIC_CMD="$MAGIC_CMD"
6829   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6831   for ac_dir in $ac_dummy; do
6832     IFS="$lt_save_ifs"
6833     test -z "$ac_dir" && ac_dir=.
6834     if test -f $ac_dir/${ac_tool_prefix}file; then
6835       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6836       if test -n "$file_magic_test_file"; then
6837         case $deplibs_check_method in
6838         "file_magic "*)
6839           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6840           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6842             $EGREP "$file_magic_regex" > /dev/null; then
6843             :
6844           else
6845             cat <<_LT_EOF 1>&2
6846
6847 *** Warning: the command libtool uses to detect shared libraries,
6848 *** $file_magic_cmd, produces output that libtool cannot recognize.
6849 *** The result is that libtool may fail to recognize shared libraries
6850 *** as such.  This will affect the creation of libtool libraries that
6851 *** depend on shared libraries, but programs linked with such libtool
6852 *** libraries will work regardless of this problem.  Nevertheless, you
6853 *** may want to report the problem to your system manager and/or to
6854 *** bug-libtool@gnu.org
6855
6856 _LT_EOF
6857           fi ;;
6858         esac
6859       fi
6860       break
6861     fi
6862   done
6863   IFS="$lt_save_ifs"
6864   MAGIC_CMD="$lt_save_MAGIC_CMD"
6865   ;;
6866 esac
6867 fi
6868
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if test -n "$MAGIC_CMD"; then
6871   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6872 echo "${ECHO_T}$MAGIC_CMD" >&6
6873 else
6874   echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6
6876 fi
6877
6878
6879
6880
6881
6882 if test -z "$lt_cv_path_MAGIC_CMD"; then
6883   if test -n "$ac_tool_prefix"; then
6884     echo "$as_me:$LINENO: checking for file" >&5
6885 echo $ECHO_N "checking for file... $ECHO_C" >&6
6886 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $MAGIC_CMD in
6890 [\\/*] |  ?:[\\/]*)
6891   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6892   ;;
6893 *)
6894   lt_save_MAGIC_CMD="$MAGIC_CMD"
6895   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6896   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6897   for ac_dir in $ac_dummy; do
6898     IFS="$lt_save_ifs"
6899     test -z "$ac_dir" && ac_dir=.
6900     if test -f $ac_dir/file; then
6901       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6902       if test -n "$file_magic_test_file"; then
6903         case $deplibs_check_method in
6904         "file_magic "*)
6905           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6906           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6907           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6908             $EGREP "$file_magic_regex" > /dev/null; then
6909             :
6910           else
6911             cat <<_LT_EOF 1>&2
6912
6913 *** Warning: the command libtool uses to detect shared libraries,
6914 *** $file_magic_cmd, produces output that libtool cannot recognize.
6915 *** The result is that libtool may fail to recognize shared libraries
6916 *** as such.  This will affect the creation of libtool libraries that
6917 *** depend on shared libraries, but programs linked with such libtool
6918 *** libraries will work regardless of this problem.  Nevertheless, you
6919 *** may want to report the problem to your system manager and/or to
6920 *** bug-libtool@gnu.org
6921
6922 _LT_EOF
6923           fi ;;
6924         esac
6925       fi
6926       break
6927     fi
6928   done
6929   IFS="$lt_save_ifs"
6930   MAGIC_CMD="$lt_save_MAGIC_CMD"
6931   ;;
6932 esac
6933 fi
6934
6935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6936 if test -n "$MAGIC_CMD"; then
6937   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6938 echo "${ECHO_T}$MAGIC_CMD" >&6
6939 else
6940   echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6
6942 fi
6943
6944
6945   else
6946     MAGIC_CMD=:
6947   fi
6948 fi
6949
6950   fi
6951   ;;
6952 esac
6953
6954 # Use C for the default configuration in the libtool script
6955
6956 lt_save_CC="$CC"
6957 ac_ext=c
6958 ac_cpp='$CPP $CPPFLAGS'
6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963
6964 # Source file extension for C test sources.
6965 ac_ext=c
6966
6967 # Object file extension for compiled C test sources.
6968 objext=o
6969 objext=$objext
6970
6971 # Code to be used in simple compile tests
6972 lt_simple_compile_test_code="int some_variable = 0;"
6973
6974 # Code to be used in simple link tests
6975 lt_simple_link_test_code='int main(){return(0);}'
6976
6977
6978
6979
6980
6981
6982
6983 # If no C compiler was specified, use CC.
6984 LTCC=${LTCC-"$CC"}
6985
6986 # If no C compiler flags were specified, use CFLAGS.
6987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6988
6989 # Allow CC to be a program name with arguments.
6990 compiler=$CC
6991
6992 # Save the default compiler, since it gets overwritten when the other
6993 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6994 compiler_DEFAULT=$CC
6995
6996 # save warnings/boilerplate of simple test code
6997 ac_outfile=conftest.$ac_objext
6998 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7000 _lt_compiler_boilerplate=`cat conftest.err`
7001 $RM conftest*
7002
7003 ac_outfile=conftest.$ac_objext
7004 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7006 _lt_linker_boilerplate=`cat conftest.err`
7007 $RM conftest*
7008
7009
7010 ## CAVEAT EMPTOR:
7011 ## There is no encapsulation within the following macros, do not change
7012 ## the running order or otherwise move them around unless you know exactly
7013 ## what you are doing...
7014 if test -n "$compiler"; then
7015
7016 lt_prog_compiler_no_builtin_flag=
7017
7018 if test "$GCC" = yes; then
7019   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7020
7021   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   lt_cv_prog_compiler_rtti_exceptions=no
7027    ac_outfile=conftest.$ac_objext
7028    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7029    lt_compiler_flag="-fno-rtti -fno-exceptions"
7030    # Insert the option either (1) after the last *FLAGS variable, or
7031    # (2) before a word containing "conftest.", or (3) at the end.
7032    # Note that $ac_compile itself does not contain backslashes and begins
7033    # with a dollar sign (not a hyphen), so the echo should work correctly.
7034    # The option is referenced via a variable to avoid confusing sed.
7035    lt_compile=`echo "$ac_compile" | $SED \
7036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038    -e 's:$: $lt_compiler_flag:'`
7039    (eval echo "\"\$as_me:7039: $lt_compile\"" >&5)
7040    (eval "$lt_compile" 2>conftest.err)
7041    ac_status=$?
7042    cat conftest.err >&5
7043    echo "$as_me:7043: \$? = $ac_status" >&5
7044    if (exit $ac_status) && test -s "$ac_outfile"; then
7045      # The compiler can only warn and ignore the option if not recognized
7046      # So say no if there are warnings other than the usual output.
7047      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7048      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7049      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7050        lt_cv_prog_compiler_rtti_exceptions=yes
7051      fi
7052    fi
7053    $RM conftest*
7054
7055 fi
7056 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7057 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7058
7059 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7060     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7061 else
7062     :
7063 fi
7064
7065 fi
7066
7067
7068
7069
7070
7071
7072   lt_prog_compiler_wl=
7073 lt_prog_compiler_pic=
7074 lt_prog_compiler_static=
7075
7076 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7077 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7078
7079   if test "$GCC" = yes; then
7080     lt_prog_compiler_wl='-Wl,'
7081     lt_prog_compiler_static='-static'
7082
7083     case $host_os in
7084       aix*)
7085       # All AIX code is PIC.
7086       if test "$host_cpu" = ia64; then
7087         # AIX 5 now supports IA64 processor
7088         lt_prog_compiler_static='-Bstatic'
7089       fi
7090       ;;
7091
7092     amigaos*)
7093       if test "$host_cpu" = m68k; then
7094         # FIXME: we need at least 68020 code to build shared libraries, but
7095         # adding the `-m68020' flag to GCC prevents building anything better,
7096         # like `-m68040'.
7097         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7098       fi
7099       ;;
7100
7101     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7102       # PIC is the default for these OSes.
7103       ;;
7104
7105     mingw* | cygwin* | pw32* | os2*)
7106       # This hack is so that the source file can tell whether it is being
7107       # built for inclusion in a dll (and should export symbols for example).
7108       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7109       # (--disable-auto-import) libraries
7110       lt_prog_compiler_pic='-DDLL_EXPORT'
7111       ;;
7112
7113     darwin* | rhapsody*)
7114       # PIC is the default on this platform
7115       # Common symbols not allowed in MH_DYLIB files
7116       lt_prog_compiler_pic='-fno-common'
7117       ;;
7118
7119     hpux*)
7120       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7121       # not for PA HP-UX.
7122       case $host_cpu in
7123       hppa*64*|ia64*)
7124         # +Z the default
7125         ;;
7126       *)
7127         lt_prog_compiler_pic='-fPIC'
7128         ;;
7129       esac
7130       ;;
7131
7132     interix[3-9]*)
7133       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7134       # Instead, we relocate shared libraries at runtime.
7135       ;;
7136
7137     msdosdjgpp*)
7138       # Just because we use GCC doesn't mean we suddenly get shared libraries
7139       # on systems that don't support them.
7140       lt_prog_compiler_can_build_shared=no
7141       enable_shared=no
7142       ;;
7143
7144     *nto* | *qnx*)
7145       # QNX uses GNU C++, but need to define -shared option too, otherwise
7146       # it will coredump.
7147       lt_prog_compiler_pic='-fPIC -shared'
7148       ;;
7149
7150     sysv4*MP*)
7151       if test -d /usr/nec; then
7152         lt_prog_compiler_pic=-Kconform_pic
7153       fi
7154       ;;
7155
7156     *)
7157       lt_prog_compiler_pic='-fPIC'
7158       ;;
7159     esac
7160   else
7161     # PORTME Check for flag to pass linker flags through the system compiler.
7162     case $host_os in
7163     aix*)
7164       lt_prog_compiler_wl='-Wl,'
7165       if test "$host_cpu" = ia64; then
7166         # AIX 5 now supports IA64 processor
7167         lt_prog_compiler_static='-Bstatic'
7168       else
7169         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7170       fi
7171       ;;
7172     darwin*)
7173       # PIC is the default on this platform
7174       # Common symbols not allowed in MH_DYLIB files
7175       case $cc_basename in
7176       xlc*)
7177         lt_prog_compiler_pic='-qnocommon'
7178         lt_prog_compiler_wl='-Wl,'
7179         ;;
7180       esac
7181       ;;
7182
7183     mingw* | cygwin* | pw32* | os2*)
7184       # This hack is so that the source file can tell whether it is being
7185       # built for inclusion in a dll (and should export symbols for example).
7186       lt_prog_compiler_pic='-DDLL_EXPORT'
7187       ;;
7188
7189     hpux9* | hpux10* | hpux11*)
7190       lt_prog_compiler_wl='-Wl,'
7191       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7192       # not for PA HP-UX.
7193       case $host_cpu in
7194       hppa*64*|ia64*)
7195         # +Z the default
7196         ;;
7197       *)
7198         lt_prog_compiler_pic='+Z'
7199         ;;
7200       esac
7201       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7202       lt_prog_compiler_static='${wl}-a ${wl}archive'
7203       ;;
7204
7205     irix5* | irix6* | nonstopux*)
7206       lt_prog_compiler_wl='-Wl,'
7207       # PIC (with -KPIC) is the default.
7208       lt_prog_compiler_static='-non_shared'
7209       ;;
7210
7211     linux* | k*bsd*-gnu)
7212       case $cc_basename in
7213       icc* | ecc*)
7214         lt_prog_compiler_wl='-Wl,'
7215         lt_prog_compiler_pic='-KPIC'
7216         lt_prog_compiler_static='-static'
7217         ;;
7218       pgcc* | pgf77* | pgf90* | pgf95*)
7219         # Portland Group compilers (*not* the Pentium gcc compiler,
7220         # which looks to be a dead project)
7221         lt_prog_compiler_wl='-Wl,'
7222         lt_prog_compiler_pic='-fpic'
7223         lt_prog_compiler_static='-Bstatic'
7224         ;;
7225       ccc*)
7226         lt_prog_compiler_wl='-Wl,'
7227         # All Alpha code is PIC.
7228         lt_prog_compiler_static='-non_shared'
7229         ;;
7230       *)
7231         case `$CC -V 2>&1 | sed 5q` in
7232         *Sun\ C*)
7233           # Sun C 5.9
7234           lt_prog_compiler_pic='-KPIC'
7235           lt_prog_compiler_static='-Bstatic'
7236           lt_prog_compiler_wl='-Wl,'
7237           ;;
7238         *Sun\ F*)
7239           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7240           lt_prog_compiler_pic='-KPIC'
7241           lt_prog_compiler_static='-Bstatic'
7242           lt_prog_compiler_wl=''
7243           ;;
7244         esac
7245         ;;
7246       esac
7247       ;;
7248
7249     newsos6)
7250       lt_prog_compiler_pic='-KPIC'
7251       lt_prog_compiler_static='-Bstatic'
7252       ;;
7253
7254     *nto* | *qnx*)
7255       # QNX uses GNU C++, but need to define -shared option too, otherwise
7256       # it will coredump.
7257       lt_prog_compiler_pic='-fPIC -shared'
7258       ;;
7259
7260     osf3* | osf4* | osf5*)
7261       lt_prog_compiler_wl='-Wl,'
7262       # All OSF/1 code is PIC.
7263       lt_prog_compiler_static='-non_shared'
7264       ;;
7265
7266     rdos*)
7267       lt_prog_compiler_static='-non_shared'
7268       ;;
7269
7270     solaris*)
7271       lt_prog_compiler_pic='-KPIC'
7272       lt_prog_compiler_static='-Bstatic'
7273       case $cc_basename in
7274       f77* | f90* | f95*)
7275         lt_prog_compiler_wl='-Qoption ld ';;
7276       *)
7277         lt_prog_compiler_wl='-Wl,';;
7278       esac
7279       ;;
7280
7281     sunos4*)
7282       lt_prog_compiler_wl='-Qoption ld '
7283       lt_prog_compiler_pic='-PIC'
7284       lt_prog_compiler_static='-Bstatic'
7285       ;;
7286
7287     sysv4 | sysv4.2uw2* | sysv4.3*)
7288       lt_prog_compiler_wl='-Wl,'
7289       lt_prog_compiler_pic='-KPIC'
7290       lt_prog_compiler_static='-Bstatic'
7291       ;;
7292
7293     sysv4*MP*)
7294       if test -d /usr/nec ;then
7295         lt_prog_compiler_pic='-Kconform_pic'
7296         lt_prog_compiler_static='-Bstatic'
7297       fi
7298       ;;
7299
7300     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7301       lt_prog_compiler_wl='-Wl,'
7302       lt_prog_compiler_pic='-KPIC'
7303       lt_prog_compiler_static='-Bstatic'
7304       ;;
7305
7306     unicos*)
7307       lt_prog_compiler_wl='-Wl,'
7308       lt_prog_compiler_can_build_shared=no
7309       ;;
7310
7311     uts4*)
7312       lt_prog_compiler_pic='-pic'
7313       lt_prog_compiler_static='-Bstatic'
7314       ;;
7315
7316     *)
7317       lt_prog_compiler_can_build_shared=no
7318       ;;
7319     esac
7320   fi
7321
7322 case $host_os in
7323   # For platforms which do not support PIC, -DPIC is meaningless:
7324   *djgpp*)
7325     lt_prog_compiler_pic=
7326     ;;
7327   *)
7328     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7329     ;;
7330 esac
7331 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7332 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7333
7334
7335
7336
7337
7338
7339 #
7340 # Check to make sure the PIC flag actually works.
7341 #
7342 if test -n "$lt_prog_compiler_pic"; then
7343   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7345 if test "${lt_prog_compiler_pic_works+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   lt_prog_compiler_pic_works=no
7349    ac_outfile=conftest.$ac_objext
7350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7351    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7352    # Insert the option either (1) after the last *FLAGS variable, or
7353    # (2) before a word containing "conftest.", or (3) at the end.
7354    # Note that $ac_compile itself does not contain backslashes and begins
7355    # with a dollar sign (not a hyphen), so the echo should work correctly.
7356    # The option is referenced via a variable to avoid confusing sed.
7357    lt_compile=`echo "$ac_compile" | $SED \
7358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7360    -e 's:$: $lt_compiler_flag:'`
7361    (eval echo "\"\$as_me:7361: $lt_compile\"" >&5)
7362    (eval "$lt_compile" 2>conftest.err)
7363    ac_status=$?
7364    cat conftest.err >&5
7365    echo "$as_me:7365: \$? = $ac_status" >&5
7366    if (exit $ac_status) && test -s "$ac_outfile"; then
7367      # The compiler can only warn and ignore the option if not recognized
7368      # So say no if there are warnings other than the usual output.
7369      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7372        lt_prog_compiler_pic_works=yes
7373      fi
7374    fi
7375    $RM conftest*
7376
7377 fi
7378 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7379 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7380
7381 if test x"$lt_prog_compiler_pic_works" = xyes; then
7382     case $lt_prog_compiler_pic in
7383      "" | " "*) ;;
7384      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7385      esac
7386 else
7387     lt_prog_compiler_pic=
7388      lt_prog_compiler_can_build_shared=no
7389 fi
7390
7391 fi
7392
7393
7394
7395
7396
7397
7398 #
7399 # Check to make sure the static flag actually works.
7400 #
7401 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7402 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7403 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7404 if test "${lt_prog_compiler_static_works+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   lt_prog_compiler_static_works=no
7408    save_LDFLAGS="$LDFLAGS"
7409    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7410    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7411    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7412      # The linker can only warn and ignore the option if not recognized
7413      # So say no if there are warnings
7414      if test -s conftest.err; then
7415        # Append any errors to the config.log.
7416        cat conftest.err 1>&5
7417        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7418        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7419        if diff conftest.exp conftest.er2 >/dev/null; then
7420          lt_prog_compiler_static_works=yes
7421        fi
7422      else
7423        lt_prog_compiler_static_works=yes
7424      fi
7425    fi
7426    $RM conftest*
7427    LDFLAGS="$save_LDFLAGS"
7428
7429 fi
7430 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7431 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7432
7433 if test x"$lt_prog_compiler_static_works" = xyes; then
7434     :
7435 else
7436     lt_prog_compiler_static=
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7446 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   lt_cv_prog_compiler_c_o=no
7451    $RM -r conftest 2>/dev/null
7452    mkdir conftest
7453    cd conftest
7454    mkdir out
7455    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7456
7457    lt_compiler_flag="-o out/conftest2.$ac_objext"
7458    # Insert the option either (1) after the last *FLAGS variable, or
7459    # (2) before a word containing "conftest.", or (3) at the end.
7460    # Note that $ac_compile itself does not contain backslashes and begins
7461    # with a dollar sign (not a hyphen), so the echo should work correctly.
7462    lt_compile=`echo "$ac_compile" | $SED \
7463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465    -e 's:$: $lt_compiler_flag:'`
7466    (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
7467    (eval "$lt_compile" 2>out/conftest.err)
7468    ac_status=$?
7469    cat out/conftest.err >&5
7470    echo "$as_me:7470: \$? = $ac_status" >&5
7471    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7472    then
7473      # The compiler can only warn and ignore the option if not recognized
7474      # So say no if there are warnings
7475      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7476      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7477      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7478        lt_cv_prog_compiler_c_o=yes
7479      fi
7480    fi
7481    chmod u+w . 2>&5
7482    $RM conftest*
7483    # SGI C++ compiler will create directory out/ii_files/ for
7484    # template instantiation
7485    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7486    $RM out/* && rmdir out
7487    cd ..
7488    $RM -r conftest
7489    $RM conftest*
7490
7491 fi
7492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7493 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7494
7495
7496
7497
7498
7499
7500   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7501 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   lt_cv_prog_compiler_c_o=no
7506    $RM -r conftest 2>/dev/null
7507    mkdir conftest
7508    cd conftest
7509    mkdir out
7510    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7511
7512    lt_compiler_flag="-o out/conftest2.$ac_objext"
7513    # Insert the option either (1) after the last *FLAGS variable, or
7514    # (2) before a word containing "conftest.", or (3) at the end.
7515    # Note that $ac_compile itself does not contain backslashes and begins
7516    # with a dollar sign (not a hyphen), so the echo should work correctly.
7517    lt_compile=`echo "$ac_compile" | $SED \
7518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7520    -e 's:$: $lt_compiler_flag:'`
7521    (eval echo "\"\$as_me:7521: $lt_compile\"" >&5)
7522    (eval "$lt_compile" 2>out/conftest.err)
7523    ac_status=$?
7524    cat out/conftest.err >&5
7525    echo "$as_me:7525: \$? = $ac_status" >&5
7526    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7527    then
7528      # The compiler can only warn and ignore the option if not recognized
7529      # So say no if there are warnings
7530      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7531      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7532      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7533        lt_cv_prog_compiler_c_o=yes
7534      fi
7535    fi
7536    chmod u+w . 2>&5
7537    $RM conftest*
7538    # SGI C++ compiler will create directory out/ii_files/ for
7539    # template instantiation
7540    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7541    $RM out/* && rmdir out
7542    cd ..
7543    $RM -r conftest
7544    $RM conftest*
7545
7546 fi
7547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7548 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7549
7550
7551
7552
7553 hard_links="nottested"
7554 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7555   # do not overwrite the value of need_locks provided by the user
7556   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7558   hard_links=yes
7559   $RM conftest*
7560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7561   touch conftest.a
7562   ln conftest.a conftest.b 2>&5 || hard_links=no
7563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7564   echo "$as_me:$LINENO: result: $hard_links" >&5
7565 echo "${ECHO_T}$hard_links" >&6
7566   if test "$hard_links" = no; then
7567     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7569     need_locks=warn
7570   fi
7571 else
7572   need_locks=no
7573 fi
7574
7575
7576
7577
7578
7579
7580   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7581 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7582
7583   runpath_var=
7584   allow_undefined_flag=
7585   always_export_symbols=no
7586   archive_cmds=
7587   archive_expsym_cmds=
7588   compiler_needs_object=no
7589   enable_shared_with_static_runtimes=no
7590   export_dynamic_flag_spec=
7591   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7592   hardcode_automatic=no
7593   hardcode_direct=no
7594   hardcode_direct_absolute=no
7595   hardcode_libdir_flag_spec=
7596   hardcode_libdir_flag_spec_ld=
7597   hardcode_libdir_separator=
7598   hardcode_minus_L=no
7599   hardcode_shlibpath_var=unsupported
7600   inherit_rpath=no
7601   link_all_deplibs=unknown
7602   module_cmds=
7603   module_expsym_cmds=
7604   old_archive_from_new_cmds=
7605   old_archive_from_expsyms_cmds=
7606   thread_safe_flag_spec=
7607   whole_archive_flag_spec=
7608   # include_expsyms should be a list of space-separated symbols to be *always*
7609   # included in the symbol list
7610   include_expsyms=
7611   # exclude_expsyms can be an extended regexp of symbols to exclude
7612   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7613   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7614   # as well as any symbol that contains `d'.
7615   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7616   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7617   # platforms (ab)use it in PIC code, but their linkers get confused if
7618   # the symbol is explicitly referenced.  Since portable code cannot
7619   # rely on this symbol name, it's probably fine to never include it in
7620   # preloaded symbol tables.
7621   extract_expsyms_cmds=
7622
7623   case $host_os in
7624   cygwin* | mingw* | pw32*)
7625     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7626     # When not using gcc, we currently assume that we are using
7627     # Microsoft Visual C++.
7628     if test "$GCC" != yes; then
7629       with_gnu_ld=no
7630     fi
7631     ;;
7632   interix*)
7633     # we just hope/assume this is gcc and not c89 (= MSVC++)
7634     with_gnu_ld=yes
7635     ;;
7636   openbsd*)
7637     with_gnu_ld=no
7638     ;;
7639   esac
7640
7641   ld_shlibs=yes
7642   if test "$with_gnu_ld" = yes; then
7643     # If archive_cmds runs LD, not CC, wlarc should be empty
7644     wlarc='${wl}'
7645
7646     # Set some defaults for GNU ld with shared library support. These
7647     # are reset later if shared libraries are not supported. Putting them
7648     # here allows them to be overridden if necessary.
7649     runpath_var=LD_RUN_PATH
7650     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7651     export_dynamic_flag_spec='${wl}--export-dynamic'
7652     # ancient GNU ld didn't support --whole-archive et. al.
7653     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7654       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7655     else
7656       whole_archive_flag_spec=
7657     fi
7658     supports_anon_versioning=no
7659     case `$LD -v 2>&1` in
7660       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7661       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7662       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7663       *\ 2.11.*) ;; # other 2.11 versions
7664       *) supports_anon_versioning=yes ;;
7665     esac
7666
7667     # See if GNU ld supports shared libraries.
7668     case $host_os in
7669     aix3* | aix4* | aix5*)
7670       # On AIX/PPC, the GNU linker is very broken
7671       if test "$host_cpu" != ia64; then
7672         ld_shlibs=no
7673         cat <<_LT_EOF 1>&2
7674
7675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7676 *** to be unable to reliably create shared libraries on AIX.
7677 *** Therefore, libtool is disabling shared libraries support.  If you
7678 *** really care for shared libraries, you may want to modify your PATH
7679 *** so that a non-GNU linker is found, and then restart.
7680
7681 _LT_EOF
7682       fi
7683       ;;
7684
7685     amigaos*)
7686       if test "$host_cpu" = m68k; then
7687         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)'
7688         hardcode_libdir_flag_spec='-L$libdir'
7689         hardcode_minus_L=yes
7690       fi
7691
7692       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7693       # that the semantics of dynamic libraries on AmigaOS, at least up
7694       # to version 4, is to share data among multiple programs linked
7695       # with the same dynamic library.  Since this doesn't match the
7696       # behavior of shared libraries on other platforms, we can't use
7697       # them.
7698       ld_shlibs=no
7699       ;;
7700
7701     beos*)
7702       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7703         allow_undefined_flag=unsupported
7704         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7705         # support --undefined.  This deserves some investigation.  FIXME
7706         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7707       else
7708         ld_shlibs=no
7709       fi
7710       ;;
7711
7712     cygwin* | mingw* | pw32*)
7713       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7714       # as there is no search path for DLLs.
7715       hardcode_libdir_flag_spec='-L$libdir'
7716       allow_undefined_flag=unsupported
7717       always_export_symbols=no
7718       enable_shared_with_static_runtimes=yes
7719       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7720
7721       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7723         # If the export-symbols file already is a .def file (1st line
7724         # is EXPORTS), use it as is; otherwise, prepend...
7725         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7726           cp $export_symbols $output_objdir/$soname.def;
7727         else
7728           echo EXPORTS > $output_objdir/$soname.def;
7729           cat $export_symbols >> $output_objdir/$soname.def;
7730         fi~
7731         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7732       else
7733         ld_shlibs=no
7734       fi
7735       ;;
7736
7737     interix[3-9]*)
7738       hardcode_direct=no
7739       hardcode_shlibpath_var=no
7740       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7741       export_dynamic_flag_spec='${wl}-E'
7742       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7743       # Instead, shared libraries are loaded at an image base (0x10000000 by
7744       # default) and relocated if they conflict, which is a slow very memory
7745       # consuming and fragmenting process.  To avoid this, we pick a random,
7746       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7747       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7748       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7749       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'
7750       ;;
7751
7752     gnu* | linux* | tpf* | k*bsd*-gnu)
7753       tmp_diet=no
7754       if test "$host_os" = linux-dietlibc; then
7755         case $cc_basename in
7756           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7757         esac
7758       fi
7759       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7760          && test "$tmp_diet" = no
7761       then
7762         tmp_addflag=
7763         case $cc_basename,$host_cpu in
7764         pgcc*)                          # Portland Group C compiler
7765           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'
7766           tmp_addflag=' $pic_flag'
7767           ;;
7768         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7769           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'
7770           tmp_addflag=' $pic_flag -Mnomain' ;;
7771         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7772           tmp_addflag=' -i_dynamic' ;;
7773         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7774           tmp_addflag=' -i_dynamic -nofor_main' ;;
7775         ifc* | ifort*)                  # Intel Fortran compiler
7776           tmp_addflag=' -nofor_main' ;;
7777         esac
7778         case `$CC -V 2>&1 | sed 5q` in
7779         *Sun\ C*)                       # Sun C 5.9
7780           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'
7781           compiler_needs_object=yes
7782           tmp_sharedflag='-G' ;;
7783         *Sun\ F*)                       # Sun Fortran 8.3
7784           tmp_sharedflag='-G' ;;
7785         *)
7786           tmp_sharedflag='-shared' ;;
7787         esac
7788         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789
7790         if test "x$supports_anon_versioning" = xyes; then
7791           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7792             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7793             echo "local: *; };" >> $output_objdir/$libname.ver~
7794             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7795         fi
7796       else
7797         ld_shlibs=no
7798       fi
7799       ;;
7800
7801     netbsd*)
7802       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7803         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7804         wlarc=
7805       else
7806         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7808       fi
7809       ;;
7810
7811     solaris*)
7812       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7813         ld_shlibs=no
7814         cat <<_LT_EOF 1>&2
7815
7816 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7817 *** create shared libraries on Solaris systems.  Therefore, libtool
7818 *** is disabling shared libraries support.  We urge you to upgrade GNU
7819 *** binutils to release 2.9.1 or newer.  Another option is to modify
7820 *** your PATH or compiler configuration so that the native linker is
7821 *** used, and then restart.
7822
7823 _LT_EOF
7824       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7825         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7826         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7827       else
7828         ld_shlibs=no
7829       fi
7830       ;;
7831
7832     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7833       case `$LD -v 2>&1` in
7834         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7835         ld_shlibs=no
7836         cat <<_LT_EOF 1>&2
7837
7838 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7839 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7840 *** is disabling shared libraries support.  We urge you to upgrade GNU
7841 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7842 *** your PATH or compiler configuration so that the native linker is
7843 *** used, and then restart.
7844
7845 _LT_EOF
7846         ;;
7847         *)
7848           # For security reasons, it is highly recommended that you always
7849           # use absolute paths for naming shared libraries, and exclude the
7850           # DT_RUNPATH tag from executables and libraries.  But doing so
7851           # requires that you compile everything twice, which is a pain.
7852           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7853             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7854             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7855             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7856           else
7857             ld_shlibs=no
7858           fi
7859         ;;
7860       esac
7861       ;;
7862
7863     sunos4*)
7864       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7865       wlarc=
7866       hardcode_direct=yes
7867       hardcode_shlibpath_var=no
7868       ;;
7869
7870     *)
7871       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7872         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7873         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7874       else
7875         ld_shlibs=no
7876       fi
7877       ;;
7878     esac
7879
7880     if test "$ld_shlibs" = no; then
7881       runpath_var=
7882       hardcode_libdir_flag_spec=
7883       export_dynamic_flag_spec=
7884       whole_archive_flag_spec=
7885     fi
7886   else
7887     # PORTME fill in a description of your system's linker (not GNU ld)
7888     case $host_os in
7889     aix3*)
7890       allow_undefined_flag=unsupported
7891       always_export_symbols=yes
7892       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'
7893       # Note: this linker hardcodes the directories in LIBPATH if there
7894       # are no directories specified by -L.
7895       hardcode_minus_L=yes
7896       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7897         # Neither direct hardcoding nor static linking is supported with a
7898         # broken collect2.
7899         hardcode_direct=unsupported
7900       fi
7901       ;;
7902
7903     aix4* | aix5*)
7904       if test "$host_cpu" = ia64; then
7905         # On IA64, the linker does run time linking by default, so we don't
7906         # have to do anything special.
7907         aix_use_runtimelinking=no
7908         exp_sym_flag='-Bexport'
7909         no_entry_flag=""
7910       else
7911         # If we're using GNU nm, then we don't want the "-C" option.
7912         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7913         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7914           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'
7915         else
7916           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'
7917         fi
7918         aix_use_runtimelinking=no
7919
7920         # Test if we are trying to use run time linking or normal
7921         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7922         # need to do runtime linking.
7923         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7924           for ld_flag in $LDFLAGS; do
7925           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7926             aix_use_runtimelinking=yes
7927             break
7928           fi
7929           done
7930           ;;
7931         esac
7932
7933         exp_sym_flag='-bexport'
7934         no_entry_flag='-bnoentry'
7935       fi
7936
7937       # When large executables or shared objects are built, AIX ld can
7938       # have problems creating the table of contents.  If linking a library
7939       # or program results in "error TOC overflow" add -mminimal-toc to
7940       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7941       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7942
7943       archive_cmds=''
7944       hardcode_direct=yes
7945       hardcode_direct_absolute=yes
7946       hardcode_libdir_separator=':'
7947       link_all_deplibs=yes
7948       file_list_spec='${wl}-f,'
7949
7950       if test "$GCC" = yes; then
7951         case $host_os in aix4.[012]|aix4.[012].*)
7952         # We only want to do this on AIX 4.2 and lower, the check
7953         # below for broken collect2 doesn't work under 4.3+
7954           collect2name=`${CC} -print-prog-name=collect2`
7955           if test -f "$collect2name" &&
7956            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7957           then
7958           # We have reworked collect2
7959           :
7960           else
7961           # We have old collect2
7962           hardcode_direct=unsupported
7963           # It fails to find uninstalled libraries when the uninstalled
7964           # path is not listed in the libpath.  Setting hardcode_minus_L
7965           # to unsupported forces relinking
7966           hardcode_minus_L=yes
7967           hardcode_libdir_flag_spec='-L$libdir'
7968           hardcode_libdir_separator=
7969           fi
7970           ;;
7971         esac
7972         shared_flag='-shared'
7973         if test "$aix_use_runtimelinking" = yes; then
7974           shared_flag="$shared_flag "'${wl}-G'
7975         fi
7976       else
7977         # not using gcc
7978         if test "$host_cpu" = ia64; then
7979         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7980         # chokes on -Wl,-G. The following line is correct:
7981           shared_flag='-G'
7982         else
7983           if test "$aix_use_runtimelinking" = yes; then
7984             shared_flag='${wl}-G'
7985           else
7986             shared_flag='${wl}-bM:SRE'
7987           fi
7988         fi
7989       fi
7990
7991       # It seems that -bexpall does not export symbols beginning with
7992       # underscore (_), so it is better to generate a list of symbols to export.
7993       always_export_symbols=yes
7994       if test "$aix_use_runtimelinking" = yes; then
7995         # Warning - without using the other runtime loading flags (-brtl),
7996         # -berok will link without error, but may produce a broken library.
7997         allow_undefined_flag='-berok'
7998         # Determine the default libpath from the value encoded in an
7999         # empty executable.
8000         cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h.  */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h.  */
8006
8007 int
8008 main ()
8009 {
8010
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017   (eval $ac_link) 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
8021   cat conftest.err >&5
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } &&
8024          { ac_try='test -z "$ac_c_werror_flag"
8025                          || test ! -s conftest.err'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; } &&
8031          { ac_try='test -s conftest$ac_exeext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037
8038 lt_aix_libpath_sed='
8039     /Import File Strings/,/^$/ {
8040         /^0/ {
8041             s/^0  *\(.*\)$/\1/
8042             p
8043         }
8044     }'
8045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8046 # Check for a 64-bit object if we didn't find anything.
8047 if test -z "$aix_libpath"; then
8048   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8049 fi
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 fi
8055 rm -f conftest.err conftest.$ac_objext \
8056       conftest$ac_exeext conftest.$ac_ext
8057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8058
8059         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8060         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"
8061       else
8062         if test "$host_cpu" = ia64; then
8063           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8064           allow_undefined_flag="-z nodefs"
8065           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"
8066         else
8067          # Determine the default libpath from the value encoded in an
8068          # empty executable.
8069          cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075
8076 int
8077 main ()
8078 {
8079
8080   ;
8081   return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext conftest$ac_exeext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086   (eval $ac_link) 2>conftest.er1
8087   ac_status=$?
8088   grep -v '^ *+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -z "$ac_c_werror_flag"
8094                          || test ! -s conftest.err'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; } &&
8100          { ac_try='test -s conftest$ac_exeext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106
8107 lt_aix_libpath_sed='
8108     /Import File Strings/,/^$/ {
8109         /^0/ {
8110             s/^0  *\(.*\)$/\1/
8111             p
8112         }
8113     }'
8114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8115 # Check for a 64-bit object if we didn't find anything.
8116 if test -z "$aix_libpath"; then
8117   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8118 fi
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 fi
8124 rm -f conftest.err conftest.$ac_objext \
8125       conftest$ac_exeext conftest.$ac_ext
8126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8127
8128          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8129           # Warning - without using the other run time loading flags,
8130           # -berok will link without error, but may produce a broken library.
8131           no_undefined_flag=' ${wl}-bernotok'
8132           allow_undefined_flag=' ${wl}-berok'
8133           # Exported symbols can be pulled into shared objects from archives
8134           whole_archive_flag_spec='$convenience'
8135           archive_cmds_need_lc=yes
8136           # This is similar to how AIX traditionally builds its shared libraries.
8137           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'
8138         fi
8139       fi
8140       ;;
8141
8142     amigaos*)
8143       if test "$host_cpu" = m68k; then
8144         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)'
8145         hardcode_libdir_flag_spec='-L$libdir'
8146         hardcode_minus_L=yes
8147       fi
8148       # see comment about different semantics on the GNU ld section
8149       ld_shlibs=no
8150       ;;
8151
8152     bsdi[45]*)
8153       export_dynamic_flag_spec=-rdynamic
8154       ;;
8155
8156     cygwin* | mingw* | pw32*)
8157       # When not using gcc, we currently assume that we are using
8158       # Microsoft Visual C++.
8159       # hardcode_libdir_flag_spec is actually meaningless, as there is
8160       # no search path for DLLs.
8161       hardcode_libdir_flag_spec=' '
8162       allow_undefined_flag=unsupported
8163       # Tell ltmain to make .lib files, not .a files.
8164       libext=lib
8165       # Tell ltmain to make .dll files, not .so files.
8166       shrext_cmds=".dll"
8167       # FIXME: Setting linknames here is a bad hack.
8168       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8169       # The linker will automatically build a .lib file if we build a DLL.
8170       old_archive_from_new_cmds='true'
8171       # FIXME: Should let the user specify the lib program.
8172       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8173       fix_srcfile_path='`cygpath -w "$srcfile"`'
8174       enable_shared_with_static_runtimes=yes
8175       ;;
8176
8177     darwin* | rhapsody*)
8178       case $host_os in
8179       rhapsody* | darwin1.[012])
8180         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8181         ;;
8182       *) # Darwin 1.3 on
8183         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8184         10.[012])
8185           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8186           ;;
8187         10.*)
8188           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8189           ;;
8190         esac
8191         ;;
8192       esac
8193       archive_cmds_need_lc=no
8194       hardcode_direct=no
8195       hardcode_automatic=yes
8196       hardcode_shlibpath_var=unsupported
8197       whole_archive_flag_spec=''
8198       link_all_deplibs=yes
8199       if test "$GCC" = yes ; then
8200         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   lt_cv_apple_cc_single_mod=no
8204         if test -z "${LT_MULTI_MODULE}"; then
8205           # By default we will add the -single_module flag. You can override
8206           # by either setting the environment variable LT_MULTI_MODULE
8207           # non-empty at configure time, or by adding -multi-module to the
8208           # link flags.
8209           echo "int foo(void){return 1;}" > conftest.c
8210           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8211               -dynamiclib ${wl}-single_module conftest.c
8212           if test -f libconftest.dylib; then
8213               lt_cv_apple_cc_single_mod=yes
8214               rm libconftest.dylib
8215           fi
8216           rm conftest.$ac_ext
8217         fi
8218 fi
8219
8220         output_verbose_link_cmd=echo
8221         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8222           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8223           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}'
8224         else
8225           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8226           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}'
8227         fi
8228         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8229         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}'
8230       else
8231         case $cc_basename in
8232         xlc*)
8233           output_verbose_link_cmd=echo
8234           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8235           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8236           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8237           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}'
8238           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}'
8239           ;;
8240         *)
8241           ld_shlibs=no
8242           ;;
8243         esac
8244       fi
8245       ;;
8246
8247     dgux*)
8248       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249       hardcode_libdir_flag_spec='-L$libdir'
8250       hardcode_shlibpath_var=no
8251       ;;
8252
8253     freebsd1*)
8254       ld_shlibs=no
8255       ;;
8256
8257     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8258     # support.  Future versions do this automatically, but an explicit c++rt0.o
8259     # does not break anything, and helps significantly (at the cost of a little
8260     # extra space).
8261     freebsd2.2*)
8262       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8263       hardcode_libdir_flag_spec='-R$libdir'
8264       hardcode_direct=yes
8265       hardcode_shlibpath_var=no
8266       ;;
8267
8268     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8269     freebsd2*)
8270       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8271       hardcode_direct=yes
8272       hardcode_minus_L=yes
8273       hardcode_shlibpath_var=no
8274       ;;
8275
8276     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8277     freebsd* | dragonfly*)
8278       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8279       hardcode_libdir_flag_spec='-R$libdir'
8280       hardcode_direct=yes
8281       hardcode_shlibpath_var=no
8282       ;;
8283
8284     hpux9*)
8285       if test "$GCC" = yes; then
8286         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'
8287       else
8288         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'
8289       fi
8290       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8291       hardcode_libdir_separator=:
8292       hardcode_direct=yes
8293
8294       # hardcode_minus_L: Not really in the search PATH,
8295       # but as the default location of the library.
8296       hardcode_minus_L=yes
8297       export_dynamic_flag_spec='${wl}-E'
8298       ;;
8299
8300     hpux10*)
8301       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8302         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8303       else
8304         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8305       fi
8306       if test "$with_gnu_ld" = no; then
8307         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8308         hardcode_libdir_flag_spec_ld='+b $libdir'
8309         hardcode_libdir_separator=:
8310         hardcode_direct=yes
8311         hardcode_direct_absolute=yes
8312         export_dynamic_flag_spec='${wl}-E'
8313         # hardcode_minus_L: Not really in the search PATH,
8314         # but as the default location of the library.
8315         hardcode_minus_L=yes
8316       fi
8317       ;;
8318
8319     hpux11*)
8320       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8321         case $host_cpu in
8322         hppa*64*)
8323           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8324           ;;
8325         ia64*)
8326           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8327           ;;
8328         *)
8329           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8330           ;;
8331         esac
8332       else
8333         case $host_cpu in
8334         hppa*64*)
8335           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8336           ;;
8337         ia64*)
8338           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8339           ;;
8340         *)
8341           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8342           ;;
8343         esac
8344       fi
8345       if test "$with_gnu_ld" = no; then
8346         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8347         hardcode_libdir_separator=:
8348
8349         case $host_cpu in
8350         hppa*64*|ia64*)
8351           hardcode_direct=no
8352           hardcode_shlibpath_var=no
8353           ;;
8354         *)
8355           hardcode_direct=yes
8356           hardcode_direct_absolute=yes
8357           export_dynamic_flag_spec='${wl}-E'
8358
8359           # hardcode_minus_L: Not really in the search PATH,
8360           # but as the default location of the library.
8361           hardcode_minus_L=yes
8362           ;;
8363         esac
8364       fi
8365       ;;
8366
8367     irix5* | irix6* | nonstopux*)
8368       if test "$GCC" = yes; then
8369         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'
8370         # Try to use the -exported_symbol ld option, if it does not
8371         # work, assume that -exports_file does not work either and
8372         # implicitly export all symbols.
8373         save_LDFLAGS="$LDFLAGS"
8374         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8375         cat >conftest.$ac_ext <<_ACEOF
8376 int foo(void) {}
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag"
8388                          || test ! -s conftest.err'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   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'
8401
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408       conftest$ac_exeext conftest.$ac_ext
8409         LDFLAGS="$save_LDFLAGS"
8410       else
8411         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'
8412         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'
8413       fi
8414       archive_cmds_need_lc='no'
8415       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416       hardcode_libdir_separator=:
8417       inherit_rpath=yes
8418       link_all_deplibs=yes
8419       ;;
8420
8421     netbsd*)
8422       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8423         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8424       else
8425         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8426       fi
8427       hardcode_libdir_flag_spec='-R$libdir'
8428       hardcode_direct=yes
8429       hardcode_shlibpath_var=no
8430       ;;
8431
8432     newsos6)
8433       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8434       hardcode_direct=yes
8435       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436       hardcode_libdir_separator=:
8437       hardcode_shlibpath_var=no
8438       ;;
8439
8440     *nto* | *qnx*)
8441       ;;
8442
8443     openbsd*)
8444       hardcode_direct=yes
8445       hardcode_shlibpath_var=no
8446       hardcode_direct_absolute=yes
8447       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8448         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8449         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8450         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8451         export_dynamic_flag_spec='${wl}-E'
8452       else
8453         case $host_os in
8454         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8455           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8456           hardcode_libdir_flag_spec='-R$libdir'
8457           ;;
8458         *)
8459           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8460           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461           ;;
8462         esac
8463       fi
8464       ;;
8465
8466     os2*)
8467       hardcode_libdir_flag_spec='-L$libdir'
8468       hardcode_minus_L=yes
8469       allow_undefined_flag=unsupported
8470       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'
8471       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8472       ;;
8473
8474     osf3*)
8475       if test "$GCC" = yes; then
8476         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8477         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'
8478       else
8479         allow_undefined_flag=' -expect_unresolved \*'
8480         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'
8481       fi
8482       archive_cmds_need_lc='no'
8483       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484       hardcode_libdir_separator=:
8485       ;;
8486
8487     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8488       if test "$GCC" = yes; then
8489         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8490         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'
8491         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8492       else
8493         allow_undefined_flag=' -expect_unresolved \*'
8494         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'
8495         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~
8496         $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'
8497
8498         # Both c and cxx compiler support -rpath directly
8499         hardcode_libdir_flag_spec='-rpath $libdir'
8500       fi
8501       archive_cmds_need_lc='no'
8502       hardcode_libdir_separator=:
8503       ;;
8504
8505     solaris*)
8506       no_undefined_flag=' -z defs'
8507       if test "$GCC" = yes; then
8508         wlarc='${wl}'
8509         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8510         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8511           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8512       else
8513         case `$CC -V 2>&1` in
8514         *"Compilers 5.0"*)
8515           wlarc=''
8516           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8518           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8519           ;;
8520         *)
8521           wlarc='${wl}'
8522           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8523           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8524           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8525           ;;
8526         esac
8527       fi
8528       hardcode_libdir_flag_spec='-R$libdir'
8529       hardcode_shlibpath_var=no
8530       case $host_os in
8531       solaris2.[0-5] | solaris2.[0-5].*) ;;
8532       *)
8533         # The compiler driver will combine and reorder linker options,
8534         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8535         # but is careful enough not to reorder.
8536         # Supported since Solaris 2.6 (maybe 2.5.1?)
8537         if test "$GCC" = yes; then
8538           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8539         else
8540           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8541         fi
8542         ;;
8543       esac
8544       link_all_deplibs=yes
8545       ;;
8546
8547     sunos4*)
8548       if test "x$host_vendor" = xsequent; then
8549         # Use $CC to link under sequent, because it throws in some extra .o
8550         # files that make .init and .fini sections work.
8551         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8552       else
8553         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8554       fi
8555       hardcode_libdir_flag_spec='-L$libdir'
8556       hardcode_direct=yes
8557       hardcode_minus_L=yes
8558       hardcode_shlibpath_var=no
8559       ;;
8560
8561     sysv4)
8562       case $host_vendor in
8563         sni)
8564           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565           hardcode_direct=yes # is this really true???
8566         ;;
8567         siemens)
8568           ## LD is ld it makes a PLAMLIB
8569           ## CC just makes a GrossModule.
8570           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8571           reload_cmds='$CC -r -o $output$reload_objs'
8572           hardcode_direct=no
8573         ;;
8574         motorola)
8575           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8577         ;;
8578       esac
8579       runpath_var='LD_RUN_PATH'
8580       hardcode_shlibpath_var=no
8581       ;;
8582
8583     sysv4.3*)
8584       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8585       hardcode_shlibpath_var=no
8586       export_dynamic_flag_spec='-Bexport'
8587       ;;
8588
8589     sysv4*MP*)
8590       if test -d /usr/nec; then
8591         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592         hardcode_shlibpath_var=no
8593         runpath_var=LD_RUN_PATH
8594         hardcode_runpath_var=yes
8595         ld_shlibs=yes
8596       fi
8597       ;;
8598
8599     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8600       no_undefined_flag='${wl}-z,text'
8601       archive_cmds_need_lc=no
8602       hardcode_shlibpath_var=no
8603       runpath_var='LD_RUN_PATH'
8604
8605       if test "$GCC" = yes; then
8606         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8607         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8608       else
8609         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8610         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8611       fi
8612       ;;
8613
8614     sysv5* | sco3.2v5* | sco5v6*)
8615       # Note: We can NOT use -z defs as we might desire, because we do not
8616       # link with -lc, and that would cause any symbols used from libc to
8617       # always be unresolved, which means just about no library would
8618       # ever link correctly.  If we're not using GNU ld we use -z text
8619       # though, which does catch some bad symbols but isn't as heavy-handed
8620       # as -z defs.
8621       no_undefined_flag='${wl}-z,text'
8622       allow_undefined_flag='${wl}-z,nodefs'
8623       archive_cmds_need_lc=no
8624       hardcode_shlibpath_var=no
8625       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8626       hardcode_libdir_separator=':'
8627       link_all_deplibs=yes
8628       export_dynamic_flag_spec='${wl}-Bexport'
8629       runpath_var='LD_RUN_PATH'
8630
8631       if test "$GCC" = yes; then
8632         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8633         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8634       else
8635         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8636         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8637       fi
8638       ;;
8639
8640     uts4*)
8641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8642       hardcode_libdir_flag_spec='-L$libdir'
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     *)
8647       ld_shlibs=no
8648       ;;
8649     esac
8650
8651     if test x$host_vendor = xsni; then
8652       case $host in
8653       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8654         export_dynamic_flag_spec='${wl}-Blargedynsym'
8655         ;;
8656       esac
8657     fi
8658   fi
8659
8660 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8661 echo "${ECHO_T}$ld_shlibs" >&6
8662 test "$ld_shlibs" = no && can_build_shared=no
8663
8664 with_gnu_ld=$with_gnu_ld
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 #
8681 # Do we need to explicitly link libc?
8682 #
8683 case "x$archive_cmds_need_lc" in
8684 x|xyes)
8685   # Assume -lc should be added
8686   archive_cmds_need_lc=yes
8687
8688   if test "$enable_shared" = yes && test "$GCC" = yes; then
8689     case $archive_cmds in
8690     *'~'*)
8691       # FIXME: we may have to deal with multi-command sequences.
8692       ;;
8693     '$CC '*)
8694       # Test whether the compiler implicitly links with -lc since on some
8695       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8696       # to ld, don't add -lc before -lgcc.
8697       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8698 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8699       $RM conftest*
8700       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8701
8702       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703   (eval $ac_compile) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } 2>conftest.err; then
8707         soname=conftest
8708         lib=conftest
8709         libobjs=conftest.$ac_objext
8710         deplibs=
8711         wl=$lt_prog_compiler_wl
8712         pic_flag=$lt_prog_compiler_pic
8713         compiler_flags=-v
8714         linker_flags=-v
8715         verstring=
8716         output_objdir=.
8717         libname=conftest
8718         lt_save_allow_undefined_flag=$allow_undefined_flag
8719         allow_undefined_flag=
8720         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8721   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }
8725         then
8726           archive_cmds_need_lc=no
8727         else
8728           archive_cmds_need_lc=yes
8729         fi
8730         allow_undefined_flag=$lt_save_allow_undefined_flag
8731       else
8732         cat conftest.err 1>&5
8733       fi
8734       $RM conftest*
8735       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8736 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8737       ;;
8738     esac
8739   fi
8740   ;;
8741 esac
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8900 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8901 withGCC=$GCC
8902 if test "$withGCC" = yes; then
8903   case $host_os in
8904     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8905     *) lt_awk_arg="/^libraries:/" ;;
8906   esac
8907   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8908   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8909     # if the path contains ";" then we assume it to be the separator
8910     # otherwise default to the standard path separator (i.e. ":") - it is
8911     # assumed that no part of a normal pathname contains ";" but that should
8912     # okay in the real world where ";" in dirpaths is itself problematic.
8913     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8914   else
8915     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8916   fi
8917   # Ok, now we have the path, separated by spaces, we can step through it
8918   # and add multilib dir if necessary.
8919   lt_tmp_lt_search_path_spec=
8920   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8921   for lt_sys_path in $lt_search_path_spec; do
8922     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8923       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8924     else
8925       test -d "$lt_sys_path" && \
8926         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8927     fi
8928   done
8929   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8930 BEGIN {RS=" "; FS="/|\n";} {
8931   lt_foo="";
8932   lt_count=0;
8933   for (lt_i = NF; lt_i > 0; lt_i--) {
8934     if ($lt_i != "" && $lt_i != ".") {
8935       if ($lt_i == "..") {
8936         lt_count++;
8937       } else {
8938         if (lt_count == 0) {
8939           lt_foo="/" $lt_i lt_foo;
8940         } else {
8941           lt_count--;
8942         }
8943       }
8944     }
8945   }
8946   if (lt_foo != "") { lt_freq[lt_foo]++; }
8947   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8948 }'`
8949   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8950 else
8951   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8952 fi
8953 library_names_spec=
8954 libname_spec='lib$name'
8955 soname_spec=
8956 shrext_cmds=".so"
8957 postinstall_cmds=
8958 postuninstall_cmds=
8959 finish_cmds=
8960 finish_eval=
8961 shlibpath_var=
8962 shlibpath_overrides_runpath=unknown
8963 version_type=none
8964 dynamic_linker="$host_os ld.so"
8965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8966 need_lib_prefix=unknown
8967 hardcode_into_libs=no
8968
8969 # when you set need_version to no, make sure it does not cause -set_version
8970 # flags to be left without arguments
8971 need_version=unknown
8972
8973 case $host_os in
8974 aix3*)
8975   version_type=linux
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8977   shlibpath_var=LIBPATH
8978
8979   # AIX 3 has no versioning support, so we append a major version to the name.
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   ;;
8982
8983 aix4* | aix5*)
8984   version_type=linux
8985   need_lib_prefix=no
8986   need_version=no
8987   hardcode_into_libs=yes
8988   if test "$host_cpu" = ia64; then
8989     # AIX 5 supports IA64
8990     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8991     shlibpath_var=LD_LIBRARY_PATH
8992   else
8993     # With GCC up to 2.95.x, collect2 would create an import file
8994     # for dependence libraries.  The import file would start with
8995     # the line `#! .'.  This would cause the generated library to
8996     # depend on `.', always an invalid library.  This was fixed in
8997     # development snapshots of GCC prior to 3.0.
8998     case $host_os in
8999       aix4 | aix4.[01] | aix4.[01].*)
9000       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9001            echo ' yes '
9002            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9003         :
9004       else
9005         can_build_shared=no
9006       fi
9007       ;;
9008     esac
9009     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9010     # soname into executable. Probably we can add versioning support to
9011     # collect2, so additional links can be useful in future.
9012     if test "$aix_use_runtimelinking" = yes; then
9013       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9014       # instead of lib<name>.a to let people know that these are not
9015       # typical AIX shared libraries.
9016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017     else
9018       # We preserve .a as extension for shared libraries through AIX4.2
9019       # and later when we are not doing run time linking.
9020       library_names_spec='${libname}${release}.a $libname.a'
9021       soname_spec='${libname}${release}${shared_ext}$major'
9022     fi
9023     shlibpath_var=LIBPATH
9024   fi
9025   ;;
9026
9027 amigaos*)
9028   if test "$host_cpu" = m68k; then
9029     library_names_spec='$libname.ixlibrary $libname.a'
9030     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9031     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'
9032   else
9033     dynamic_linker=no
9034   fi
9035   ;;
9036
9037 beos*)
9038   library_names_spec='${libname}${shared_ext}'
9039   dynamic_linker="$host_os ld.so"
9040   shlibpath_var=LIBRARY_PATH
9041   ;;
9042
9043 bsdi[45]*)
9044   version_type=linux
9045   need_version=no
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9051   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9052   # the default ld.so.conf also contains /usr/contrib/lib and
9053   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9054   # libtool to hard-code these into programs
9055   ;;
9056
9057 cygwin* | mingw* | pw32*)
9058   version_type=windows
9059   shrext_cmds=".dll"
9060   need_version=no
9061   need_lib_prefix=no
9062
9063   case $withGCC,$host_os in
9064   yes,cygwin* | yes,mingw* | yes,pw32*)
9065     library_names_spec='$libname.dll.a'
9066     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9067     postinstall_cmds='base_file=`basename \${file}`~
9068       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9069       dldir=$destdir/`dirname \$dlpath`~
9070       test -d \$dldir || mkdir -p \$dldir~
9071       $install_prog $dir/$dlname \$dldir/$dlname~
9072       chmod a+x \$dldir/$dlname~
9073       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9074         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9075       fi'
9076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9077       dlpath=$dir/\$dldll~
9078        $RM \$dlpath'
9079     shlibpath_overrides_runpath=yes
9080
9081     case $host_os in
9082     cygwin*)
9083       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9084       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9085       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9086       ;;
9087     mingw*)
9088       # MinGW DLLs use traditional 'lib' prefix
9089       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9091       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9092         # It is most probably a Windows format PATH printed by
9093         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9094         # path with ; separators, and with drive letters. We can handle the
9095         # drive letters (cygwin fileutils understands them), so leave them,
9096         # especially as we might pass files found there to a mingw objdump,
9097         # which wouldn't understand a cygwinified path. Ahh.
9098         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9099       else
9100         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9101       fi
9102       ;;
9103     pw32*)
9104       # pw32 DLLs use 'pw' prefix rather than 'lib'
9105       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9106       ;;
9107     esac
9108     ;;
9109
9110   *)
9111     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9112     ;;
9113   esac
9114   dynamic_linker='Win32 ld.exe'
9115   # FIXME: first we should search . and the directory the executable is in
9116   shlibpath_var=PATH
9117   ;;
9118
9119 darwin* | rhapsody*)
9120   dynamic_linker="$host_os dyld"
9121   version_type=darwin
9122   need_lib_prefix=no
9123   need_version=no
9124   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9125   soname_spec='${libname}${release}${major}$shared_ext'
9126   shlibpath_overrides_runpath=yes
9127   shlibpath_var=DYLD_LIBRARY_PATH
9128   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9129
9130   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9131   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9132   ;;
9133
9134 dgux*)
9135   version_type=linux
9136   need_lib_prefix=no
9137   need_version=no
9138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9139   soname_spec='${libname}${release}${shared_ext}$major'
9140   shlibpath_var=LD_LIBRARY_PATH
9141   ;;
9142
9143 freebsd1*)
9144   dynamic_linker=no
9145   ;;
9146
9147 freebsd* | dragonfly*)
9148   # DragonFly does not have aout.  When/if they implement a new
9149   # versioning mechanism, adjust this.
9150   if test -x /usr/bin/objformat; then
9151     objformat=`/usr/bin/objformat`
9152   else
9153     case $host_os in
9154     freebsd[123]*) objformat=aout ;;
9155     *) objformat=elf ;;
9156     esac
9157   fi
9158   version_type=freebsd-$objformat
9159   case $version_type in
9160     freebsd-elf*)
9161       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9162       need_version=no
9163       need_lib_prefix=no
9164       ;;
9165     freebsd-*)
9166       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9167       need_version=yes
9168       ;;
9169   esac
9170   shlibpath_var=LD_LIBRARY_PATH
9171   case $host_os in
9172   freebsd2*)
9173     shlibpath_overrides_runpath=yes
9174     ;;
9175   freebsd3.[01]* | freebsdelf3.[01]*)
9176     shlibpath_overrides_runpath=yes
9177     hardcode_into_libs=yes
9178     ;;
9179   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9180   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9181     shlibpath_overrides_runpath=no
9182     hardcode_into_libs=yes
9183     ;;
9184   *) # from 4.6 on, and DragonFly
9185     shlibpath_overrides_runpath=yes
9186     hardcode_into_libs=yes
9187     ;;
9188   esac
9189   ;;
9190
9191 gnu*)
9192   version_type=linux
9193   need_lib_prefix=no
9194   need_version=no
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9196   soname_spec='${libname}${release}${shared_ext}$major'
9197   shlibpath_var=LD_LIBRARY_PATH
9198   hardcode_into_libs=yes
9199   ;;
9200
9201 hpux9* | hpux10* | hpux11*)
9202   # Give a soname corresponding to the major version so that dld.sl refuses to
9203   # link against other versions.
9204   version_type=sunos
9205   need_lib_prefix=no
9206   need_version=no
9207   case $host_cpu in
9208   ia64*)
9209     shrext_cmds='.so'
9210     hardcode_into_libs=yes
9211     dynamic_linker="$host_os dld.so"
9212     shlibpath_var=LD_LIBRARY_PATH
9213     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215     soname_spec='${libname}${release}${shared_ext}$major'
9216     if test "X$HPUX_IA64_MODE" = X32; then
9217       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9218     else
9219       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9220     fi
9221     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9222     ;;
9223   hppa*64*)
9224     shrext_cmds='.sl'
9225     hardcode_into_libs=yes
9226     dynamic_linker="$host_os dld.sl"
9227     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9228     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230     soname_spec='${libname}${release}${shared_ext}$major'
9231     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9232     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9233     ;;
9234   *)
9235     shrext_cmds='.sl'
9236     dynamic_linker="$host_os dld.sl"
9237     shlibpath_var=SHLIB_PATH
9238     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240     soname_spec='${libname}${release}${shared_ext}$major'
9241     ;;
9242   esac
9243   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9244   postinstall_cmds='chmod 555 $lib'
9245   ;;
9246
9247 interix[3-9]*)
9248   version_type=linux
9249   need_lib_prefix=no
9250   need_version=no
9251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9252   soname_spec='${libname}${release}${shared_ext}$major'
9253   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9254   shlibpath_var=LD_LIBRARY_PATH
9255   shlibpath_overrides_runpath=no
9256   hardcode_into_libs=yes
9257   ;;
9258
9259 irix5* | irix6* | nonstopux*)
9260   case $host_os in
9261     nonstopux*) version_type=nonstopux ;;
9262     *)
9263         if test "$lt_cv_prog_gnu_ld" = yes; then
9264                 version_type=linux
9265         else
9266                 version_type=irix
9267         fi ;;
9268   esac
9269   need_lib_prefix=no
9270   need_version=no
9271   soname_spec='${libname}${release}${shared_ext}$major'
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9273   case $host_os in
9274   irix5* | nonstopux*)
9275     libsuff= shlibsuff=
9276     ;;
9277   *)
9278     case $LD in # libtool.m4 will add one of these switches to LD
9279     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9280       libsuff= shlibsuff= libmagic=32-bit;;
9281     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9282       libsuff=32 shlibsuff=N32 libmagic=N32;;
9283     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9284       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9285     *) libsuff= shlibsuff= libmagic=never-match;;
9286     esac
9287     ;;
9288   esac
9289   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9290   shlibpath_overrides_runpath=no
9291   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9292   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9293   hardcode_into_libs=yes
9294   ;;
9295
9296 # No shared lib support for Linux oldld, aout, or coff.
9297 linux*oldld* | linux*aout* | linux*coff*)
9298   dynamic_linker=no
9299   ;;
9300
9301 # This must be Linux ELF.
9302 linux* | k*bsd*-gnu)
9303   version_type=linux
9304   need_lib_prefix=no
9305   need_version=no
9306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307   soname_spec='${libname}${release}${shared_ext}$major'
9308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   shlibpath_overrides_runpath=no
9311   # Some binutils ld are patched to set DT_RUNPATH
9312   save_LDFLAGS=$LDFLAGS
9313   save_libdir=$libdir
9314   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9315        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9316   cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322
9323 int
9324 main ()
9325 {
9326
9327   ;
9328   return 0;
9329 }
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9333   (eval $ac_link) 2>conftest.er1
9334   ac_status=$?
9335   grep -v '^ *+' conftest.er1 >conftest.err
9336   rm -f conftest.er1
9337   cat conftest.err >&5
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } &&
9340          { ac_try='test -z "$ac_c_werror_flag"
9341                          || test ! -s conftest.err'
9342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343   (eval $ac_try) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; } &&
9347          { ac_try='test -s conftest$ac_exeext'
9348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; }; then
9353   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9354   shlibpath_overrides_runpath=yes
9355 fi
9356
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 fi
9362 rm -f conftest.err conftest.$ac_objext \
9363       conftest$ac_exeext conftest.$ac_ext
9364   LDFLAGS=$save_LDFLAGS
9365   libdir=$save_libdir
9366
9367   # This implies no fast_install, which is unacceptable.
9368   # Some rework will be needed to allow for fast_install
9369   # before this can be enabled.
9370   hardcode_into_libs=yes
9371
9372   # Append ld.so.conf contents to the search path
9373   if test -f /etc/ld.so.conf; then
9374     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' ' '`
9375     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9376   fi
9377
9378   # We used to test for /lib/ld.so.1 and disable shared libraries on
9379   # powerpc, because MkLinux only supported shared libraries with the
9380   # GNU dynamic linker.  Since this was broken with cross compilers,
9381   # most powerpc-linux boxes support dynamic linking these days and
9382   # people can always --disable-shared, the test was removed, and we
9383   # assume the GNU/Linux dynamic linker is in use.
9384   dynamic_linker='GNU/Linux ld.so'
9385   ;;
9386
9387 netbsd*)
9388   version_type=sunos
9389   need_lib_prefix=no
9390   need_version=no
9391   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394     dynamic_linker='NetBSD (a.out) ld.so'
9395   else
9396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9397     soname_spec='${libname}${release}${shared_ext}$major'
9398     dynamic_linker='NetBSD ld.elf_so'
9399   fi
9400   shlibpath_var=LD_LIBRARY_PATH
9401   shlibpath_overrides_runpath=yes
9402   hardcode_into_libs=yes
9403   ;;
9404
9405 newsos6)
9406   version_type=linux
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   shlibpath_overrides_runpath=yes
9410   ;;
9411
9412 *nto* | *qnx*)
9413   version_type=qnx
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   shlibpath_var=LD_LIBRARY_PATH
9419   shlibpath_overrides_runpath=no
9420   hardcode_into_libs=yes
9421   dynamic_linker='ldqnx.so'
9422   ;;
9423
9424 openbsd*)
9425   version_type=sunos
9426   sys_lib_dlsearch_path_spec="/usr/lib"
9427   need_lib_prefix=no
9428   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9429   case $host_os in
9430     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9431     *)                          need_version=no  ;;
9432   esac
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9435   shlibpath_var=LD_LIBRARY_PATH
9436   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9437     case $host_os in
9438       openbsd2.[89] | openbsd2.[89].*)
9439         shlibpath_overrides_runpath=no
9440         ;;
9441       *)
9442         shlibpath_overrides_runpath=yes
9443         ;;
9444       esac
9445   else
9446     shlibpath_overrides_runpath=yes
9447   fi
9448   ;;
9449
9450 os2*)
9451   libname_spec='$name'
9452   shrext_cmds=".dll"
9453   need_lib_prefix=no
9454   library_names_spec='$libname${shared_ext} $libname.a'
9455   dynamic_linker='OS/2 ld.exe'
9456   shlibpath_var=LIBPATH
9457   ;;
9458
9459 osf3* | osf4* | osf5*)
9460   version_type=osf
9461   need_lib_prefix=no
9462   need_version=no
9463   soname_spec='${libname}${release}${shared_ext}$major'
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465   shlibpath_var=LD_LIBRARY_PATH
9466   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9467   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9468   ;;
9469
9470 rdos*)
9471   dynamic_linker=no
9472   ;;
9473
9474 solaris*)
9475   version_type=linux
9476   need_lib_prefix=no
9477   need_version=no
9478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479   soname_spec='${libname}${release}${shared_ext}$major'
9480   shlibpath_var=LD_LIBRARY_PATH
9481   shlibpath_overrides_runpath=yes
9482   hardcode_into_libs=yes
9483   # ldd complains unless libraries are executable
9484   postinstall_cmds='chmod +x $lib'
9485   ;;
9486
9487 sunos4*)
9488   version_type=sunos
9489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9490   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9491   shlibpath_var=LD_LIBRARY_PATH
9492   shlibpath_overrides_runpath=yes
9493   if test "$with_gnu_ld" = yes; then
9494     need_lib_prefix=no
9495   fi
9496   need_version=yes
9497   ;;
9498
9499 sysv4 | sysv4.3*)
9500   version_type=linux
9501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502   soname_spec='${libname}${release}${shared_ext}$major'
9503   shlibpath_var=LD_LIBRARY_PATH
9504   case $host_vendor in
9505     sni)
9506       shlibpath_overrides_runpath=no
9507       need_lib_prefix=no
9508       runpath_var=LD_RUN_PATH
9509       ;;
9510     siemens)
9511       need_lib_prefix=no
9512       ;;
9513     motorola)
9514       need_lib_prefix=no
9515       need_version=no
9516       shlibpath_overrides_runpath=no
9517       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9518       ;;
9519   esac
9520   ;;
9521
9522 sysv4*MP*)
9523   if test -d /usr/nec ;then
9524     version_type=linux
9525     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9526     soname_spec='$libname${shared_ext}.$major'
9527     shlibpath_var=LD_LIBRARY_PATH
9528   fi
9529   ;;
9530
9531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9532   version_type=freebsd-elf
9533   need_lib_prefix=no
9534   need_version=no
9535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9536   soname_spec='${libname}${release}${shared_ext}$major'
9537   shlibpath_var=LD_LIBRARY_PATH
9538   shlibpath_overrides_runpath=yes
9539   hardcode_into_libs=yes
9540   if test "$with_gnu_ld" = yes; then
9541     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9542   else
9543     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9544     case $host_os in
9545       sco3.2v5*)
9546         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9547         ;;
9548     esac
9549   fi
9550   sys_lib_dlsearch_path_spec='/usr/lib'
9551   ;;
9552
9553 tpf*)
9554   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9555   version_type=linux
9556   need_lib_prefix=no
9557   need_version=no
9558   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   shlibpath_overrides_runpath=no
9561   hardcode_into_libs=yes
9562   ;;
9563
9564 uts4*)
9565   version_type=linux
9566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567   soname_spec='${libname}${release}${shared_ext}$major'
9568   shlibpath_var=LD_LIBRARY_PATH
9569   ;;
9570
9571 *)
9572   dynamic_linker=no
9573   ;;
9574 esac
9575 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9576 echo "${ECHO_T}$dynamic_linker" >&6
9577 test "$dynamic_linker" = no && can_build_shared=no
9578
9579 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9580 if test "$GCC" = yes; then
9581   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9582 fi
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9671 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9672 hardcode_action=
9673 if test -n "$hardcode_libdir_flag_spec" ||
9674    test -n "$runpath_var" ||
9675    test "X$hardcode_automatic" = "Xyes" ; then
9676
9677   # We can hardcode non-existent directories.
9678   if test "$hardcode_direct" != no &&
9679      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9680      # have to relink, otherwise we might link with an installed library
9681      # when we should be linking with a yet-to-be-installed one
9682      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9683      test "$hardcode_minus_L" != no; then
9684     # Linking always hardcodes the temporary library directory.
9685     hardcode_action=relink
9686   else
9687     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9688     hardcode_action=immediate
9689   fi
9690 else
9691   # We cannot hardcode anything, or else we can only hardcode existing
9692   # directories.
9693   hardcode_action=unsupported
9694 fi
9695 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9696 echo "${ECHO_T}$hardcode_action" >&6
9697
9698 if test "$hardcode_action" = relink ||
9699    test "$inherit_rpath" = yes; then
9700   # Fast installation is not supported
9701   enable_fast_install=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703      test "$enable_shared" = no; then
9704   # Fast installation is not necessary
9705   enable_fast_install=needless
9706 fi
9707
9708
9709
9710
9711
9712
9713   if test "x$enable_dlopen" != xyes; then
9714   enable_dlopen=unknown
9715   enable_dlopen_self=unknown
9716   enable_dlopen_self_static=unknown
9717 else
9718   lt_cv_dlopen=no
9719   lt_cv_dlopen_libs=
9720
9721   case $host_os in
9722   beos*)
9723     lt_cv_dlopen="load_add_on"
9724     lt_cv_dlopen_libs=
9725     lt_cv_dlopen_self=yes
9726     ;;
9727
9728   mingw* | pw32*)
9729     lt_cv_dlopen="LoadLibrary"
9730     lt_cv_dlopen_libs=
9731     ;;
9732
9733   cygwin*)
9734     lt_cv_dlopen="dlopen"
9735     lt_cv_dlopen_libs=
9736     ;;
9737
9738   darwin*)
9739   # if libdl is installed we need to link against it
9740     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-ldl  $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753
9754 /* Override any gcc2 internal prototype to avoid an error.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 /* We use char because int might match the return type of a gcc2
9759    builtin and then its argument prototype would still apply.  */
9760 char dlopen ();
9761 int
9762 main ()
9763 {
9764 dlopen ();
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771   (eval $ac_link) 2>conftest.er1
9772   ac_status=$?
9773   grep -v '^ *+' conftest.er1 >conftest.err
9774   rm -f conftest.er1
9775   cat conftest.err >&5
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } &&
9778          { ac_try='test -z "$ac_c_werror_flag"
9779                          || test ! -s conftest.err'
9780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781   (eval $ac_try) 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787   (eval $ac_try) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; }; then
9791   ac_cv_lib_dl_dlopen=yes
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_cv_lib_dl_dlopen=no
9797 fi
9798 rm -f conftest.err conftest.$ac_objext \
9799       conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9801 fi
9802 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9804 if test $ac_cv_lib_dl_dlopen = yes; then
9805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9806 else
9807
9808     lt_cv_dlopen="dyld"
9809     lt_cv_dlopen_libs=
9810     lt_cv_dlopen_self=yes
9811
9812 fi
9813
9814     ;;
9815
9816   *)
9817     echo "$as_me:$LINENO: checking for shl_load" >&5
9818 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9819 if test "${ac_cv_func_shl_load+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9830 #define shl_load innocuous_shl_load
9831
9832 /* System header to define __stub macros and hopefully few prototypes,
9833     which can conflict with char shl_load (); below.
9834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9835     <limits.h> exists even on freestanding compilers.  */
9836
9837 #ifdef __STDC__
9838 # include <limits.h>
9839 #else
9840 # include <assert.h>
9841 #endif
9842
9843 #undef shl_load
9844
9845 /* Override any gcc2 internal prototype to avoid an error.  */
9846 #ifdef __cplusplus
9847 extern "C"
9848 {
9849 #endif
9850 /* We use char because int might match the return type of a gcc2
9851    builtin and then its argument prototype would still apply.  */
9852 char shl_load ();
9853 /* The GNU C library defines this for functions which it implements
9854     to always fail with ENOSYS.  Some functions are actually named
9855     something starting with __ and the normal name is an alias.  */
9856 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9857 choke me
9858 #else
9859 char (*f) () = shl_load;
9860 #endif
9861 #ifdef __cplusplus
9862 }
9863 #endif
9864
9865 int
9866 main ()
9867 {
9868 return f != shl_load;
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875   (eval $ac_link) 2>conftest.er1
9876   ac_status=$?
9877   grep -v '^ *+' conftest.er1 >conftest.err
9878   rm -f conftest.er1
9879   cat conftest.err >&5
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -z "$ac_c_werror_flag"
9883                          || test ! -s conftest.err'
9884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885   (eval $ac_try) 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; } &&
9889          { ac_try='test -s conftest$ac_exeext'
9890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891   (eval $ac_try) 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; }; then
9895   ac_cv_func_shl_load=yes
9896 else
9897   echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900 ac_cv_func_shl_load=no
9901 fi
9902 rm -f conftest.err conftest.$ac_objext \
9903       conftest$ac_exeext conftest.$ac_ext
9904 fi
9905 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9906 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9907 if test $ac_cv_func_shl_load = yes; then
9908   lt_cv_dlopen="shl_load"
9909 else
9910   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9911 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9912 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-ldld  $LIBS"
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923
9924 /* Override any gcc2 internal prototype to avoid an error.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 /* We use char because int might match the return type of a gcc2
9929    builtin and then its argument prototype would still apply.  */
9930 char shl_load ();
9931 int
9932 main ()
9933 {
9934 shl_load ();
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941   (eval $ac_link) 2>conftest.er1
9942   ac_status=$?
9943   grep -v '^ *+' conftest.er1 >conftest.err
9944   rm -f conftest.er1
9945   cat conftest.err >&5
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); } &&
9948          { ac_try='test -z "$ac_c_werror_flag"
9949                          || test ! -s conftest.err'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest$ac_exeext'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961   ac_cv_lib_dld_shl_load=yes
9962 else
9963   echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 ac_cv_lib_dld_shl_load=no
9967 fi
9968 rm -f conftest.err conftest.$ac_objext \
9969       conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9971 fi
9972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9973 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9974 if test $ac_cv_lib_dld_shl_load = yes; then
9975   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9976 else
9977   echo "$as_me:$LINENO: checking for dlopen" >&5
9978 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9979 if test "${ac_cv_func_dlopen+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9990 #define dlopen innocuous_dlopen
9991
9992 /* System header to define __stub macros and hopefully few prototypes,
9993     which can conflict with char dlopen (); below.
9994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995     <limits.h> exists even on freestanding compilers.  */
9996
9997 #ifdef __STDC__
9998 # include <limits.h>
9999 #else
10000 # include <assert.h>
10001 #endif
10002
10003 #undef dlopen
10004
10005 /* Override any gcc2 internal prototype to avoid an error.  */
10006 #ifdef __cplusplus
10007 extern "C"
10008 {
10009 #endif
10010 /* We use char because int might match the return type of a gcc2
10011    builtin and then its argument prototype would still apply.  */
10012 char dlopen ();
10013 /* The GNU C library defines this for functions which it implements
10014     to always fail with ENOSYS.  Some functions are actually named
10015     something starting with __ and the normal name is an alias.  */
10016 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10017 choke me
10018 #else
10019 char (*f) () = dlopen;
10020 #endif
10021 #ifdef __cplusplus
10022 }
10023 #endif
10024
10025 int
10026 main ()
10027 {
10028 return f != dlopen;
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035   (eval $ac_link) 2>conftest.er1
10036   ac_status=$?
10037   grep -v '^ *+' conftest.er1 >conftest.err
10038   rm -f conftest.er1
10039   cat conftest.err >&5
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); } &&
10042          { ac_try='test -z "$ac_c_werror_flag"
10043                          || test ! -s conftest.err'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; } &&
10049          { ac_try='test -s conftest$ac_exeext'
10050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051   (eval $ac_try) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); }; }; then
10055   ac_cv_func_dlopen=yes
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_func_dlopen=no
10061 fi
10062 rm -f conftest.err conftest.$ac_objext \
10063       conftest$ac_exeext conftest.$ac_ext
10064 fi
10065 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10066 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10067 if test $ac_cv_func_dlopen = yes; then
10068   lt_cv_dlopen="dlopen"
10069 else
10070   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10071 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10072 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   ac_check_lib_save_LIBS=$LIBS
10076 LIBS="-ldl  $LIBS"
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083
10084 /* Override any gcc2 internal prototype to avoid an error.  */
10085 #ifdef __cplusplus
10086 extern "C"
10087 #endif
10088 /* We use char because int might match the return type of a gcc2
10089    builtin and then its argument prototype would still apply.  */
10090 char dlopen ();
10091 int
10092 main ()
10093 {
10094 dlopen ();
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101   (eval $ac_link) 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -z "$ac_c_werror_flag"
10109                          || test ! -s conftest.err'
10110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111   (eval $ac_try) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; } &&
10115          { ac_try='test -s conftest$ac_exeext'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; }; then
10121   ac_cv_lib_dl_dlopen=yes
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126 ac_cv_lib_dl_dlopen=no
10127 fi
10128 rm -f conftest.err conftest.$ac_objext \
10129       conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_lib_save_LIBS
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10133 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10134 if test $ac_cv_lib_dl_dlopen = yes; then
10135   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10136 else
10137   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10138 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10139 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10140   echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142   ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-lsvld  $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h.  */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h.  */
10150
10151 /* Override any gcc2 internal prototype to avoid an error.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 /* We use char because int might match the return type of a gcc2
10156    builtin and then its argument prototype would still apply.  */
10157 char dlopen ();
10158 int
10159 main ()
10160 {
10161 dlopen ();
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168   (eval $ac_link) 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -z "$ac_c_werror_flag"
10176                          || test ! -s conftest.err'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; } &&
10182          { ac_try='test -s conftest$ac_exeext'
10183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184   (eval $ac_try) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; }; then
10188   ac_cv_lib_svld_dlopen=yes
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 ac_cv_lib_svld_dlopen=no
10194 fi
10195 rm -f conftest.err conftest.$ac_objext \
10196       conftest$ac_exeext conftest.$ac_ext
10197 LIBS=$ac_check_lib_save_LIBS
10198 fi
10199 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10200 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10201 if test $ac_cv_lib_svld_dlopen = yes; then
10202   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10203 else
10204   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10205 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10206 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   ac_check_lib_save_LIBS=$LIBS
10210 LIBS="-ldld  $LIBS"
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217
10218 /* Override any gcc2 internal prototype to avoid an error.  */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 /* We use char because int might match the return type of a gcc2
10223    builtin and then its argument prototype would still apply.  */
10224 char dld_link ();
10225 int
10226 main ()
10227 {
10228 dld_link ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235   (eval $ac_link) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest$ac_exeext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_cv_lib_dld_dld_link=yes
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_cv_lib_dld_dld_link=no
10261 fi
10262 rm -f conftest.err conftest.$ac_objext \
10263       conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10268 if test $ac_cv_lib_dld_dld_link = yes; then
10269   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10270 fi
10271
10272
10273 fi
10274
10275
10276 fi
10277
10278
10279 fi
10280
10281
10282 fi
10283
10284
10285 fi
10286
10287     ;;
10288   esac
10289
10290   if test "x$lt_cv_dlopen" != xno; then
10291     enable_dlopen=yes
10292   else
10293     enable_dlopen=no
10294   fi
10295
10296   case $lt_cv_dlopen in
10297   dlopen)
10298     save_CPPFLAGS="$CPPFLAGS"
10299     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10300
10301     save_LDFLAGS="$LDFLAGS"
10302     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10303
10304     save_LIBS="$LIBS"
10305     LIBS="$lt_cv_dlopen_libs $LIBS"
10306
10307     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10308 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10309 if test "${lt_cv_dlopen_self+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312           if test "$cross_compiling" = yes; then :
10313   lt_cv_dlopen_self=cross
10314 else
10315   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316   lt_status=$lt_dlunknown
10317   cat > conftest.$ac_ext <<_LT_EOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10320
10321 #if HAVE_DLFCN_H
10322 #include <dlfcn.h>
10323 #endif
10324
10325 #include <stdio.h>
10326
10327 #ifdef RTLD_GLOBAL
10328 #  define LT_DLGLOBAL           RTLD_GLOBAL
10329 #else
10330 #  ifdef DL_GLOBAL
10331 #    define LT_DLGLOBAL         DL_GLOBAL
10332 #  else
10333 #    define LT_DLGLOBAL         0
10334 #  endif
10335 #endif
10336
10337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338    find out it does not work in some platform. */
10339 #ifndef LT_DLLAZY_OR_NOW
10340 #  ifdef RTLD_LAZY
10341 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10342 #  else
10343 #    ifdef DL_LAZY
10344 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10345 #    else
10346 #      ifdef RTLD_NOW
10347 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10348 #      else
10349 #        ifdef DL_NOW
10350 #          define LT_DLLAZY_OR_NOW      DL_NOW
10351 #        else
10352 #          define LT_DLLAZY_OR_NOW      0
10353 #        endif
10354 #      endif
10355 #    endif
10356 #  endif
10357 #endif
10358
10359 #ifdef __cplusplus
10360 extern "C" void exit (int);
10361 #endif
10362
10363 void fnord() { int i=42;}
10364 int main ()
10365 {
10366   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10367   int status = $lt_dlunknown;
10368
10369   if (self)
10370     {
10371       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10372       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10373       /* dlclose (self); */
10374     }
10375   else
10376     puts (dlerror ());
10377
10378     exit (status);
10379 }
10380 _LT_EOF
10381   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382   (eval $ac_link) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10386     (./conftest; exit; ) >&5 2>/dev/null
10387     lt_status=$?
10388     case x$lt_status in
10389       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10390       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10391       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10392     esac
10393   else :
10394     # compilation failed
10395     lt_cv_dlopen_self=no
10396   fi
10397 fi
10398 rm -fr conftest*
10399
10400
10401 fi
10402 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10403 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10404
10405     if test "x$lt_cv_dlopen_self" = xyes; then
10406       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10407       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10408 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10409 if test "${lt_cv_dlopen_self_static+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412           if test "$cross_compiling" = yes; then :
10413   lt_cv_dlopen_self_static=cross
10414 else
10415   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416   lt_status=$lt_dlunknown
10417   cat > conftest.$ac_ext <<_LT_EOF
10418 #line 10418 "configure"
10419 #include "confdefs.h"
10420
10421 #if HAVE_DLFCN_H
10422 #include <dlfcn.h>
10423 #endif
10424
10425 #include <stdio.h>
10426
10427 #ifdef RTLD_GLOBAL
10428 #  define LT_DLGLOBAL           RTLD_GLOBAL
10429 #else
10430 #  ifdef DL_GLOBAL
10431 #    define LT_DLGLOBAL         DL_GLOBAL
10432 #  else
10433 #    define LT_DLGLOBAL         0
10434 #  endif
10435 #endif
10436
10437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438    find out it does not work in some platform. */
10439 #ifndef LT_DLLAZY_OR_NOW
10440 #  ifdef RTLD_LAZY
10441 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10442 #  else
10443 #    ifdef DL_LAZY
10444 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10445 #    else
10446 #      ifdef RTLD_NOW
10447 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10448 #      else
10449 #        ifdef DL_NOW
10450 #          define LT_DLLAZY_OR_NOW      DL_NOW
10451 #        else
10452 #          define LT_DLLAZY_OR_NOW      0
10453 #        endif
10454 #      endif
10455 #    endif
10456 #  endif
10457 #endif
10458
10459 #ifdef __cplusplus
10460 extern "C" void exit (int);
10461 #endif
10462
10463 void fnord() { int i=42;}
10464 int main ()
10465 {
10466   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467   int status = $lt_dlunknown;
10468
10469   if (self)
10470     {
10471       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10472       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473       /* dlclose (self); */
10474     }
10475   else
10476     puts (dlerror ());
10477
10478     exit (status);
10479 }
10480 _LT_EOF
10481   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10486     (./conftest; exit; ) >&5 2>/dev/null
10487     lt_status=$?
10488     case x$lt_status in
10489       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10490       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10491       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10492     esac
10493   else :
10494     # compilation failed
10495     lt_cv_dlopen_self_static=no
10496   fi
10497 fi
10498 rm -fr conftest*
10499
10500
10501 fi
10502 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10503 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10504     fi
10505
10506     CPPFLAGS="$save_CPPFLAGS"
10507     LDFLAGS="$save_LDFLAGS"
10508     LIBS="$save_LIBS"
10509     ;;
10510   esac
10511
10512   case $lt_cv_dlopen_self in
10513   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10514   *) enable_dlopen_self=unknown ;;
10515   esac
10516
10517   case $lt_cv_dlopen_self_static in
10518   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10519   *) enable_dlopen_self_static=unknown ;;
10520   esac
10521 fi
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539 striplib=
10540 old_striplib=
10541 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10542 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10543 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10544   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10545   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10546   echo "$as_me:$LINENO: result: yes" >&5
10547 echo "${ECHO_T}yes" >&6
10548 else
10549 # FIXME - insert some real tests, host_os isn't really good enough
10550   case $host_os in
10551   darwin*)
10552     if test -n "$STRIP" ; then
10553       striplib="$STRIP -x"
10554       old_striplib="$STRIP -S"
10555       echo "$as_me:$LINENO: result: yes" >&5
10556 echo "${ECHO_T}yes" >&6
10557     else
10558       echo "$as_me:$LINENO: result: no" >&5
10559 echo "${ECHO_T}no" >&6
10560     fi
10561     ;;
10562   *)
10563     echo "$as_me:$LINENO: result: no" >&5
10564 echo "${ECHO_T}no" >&6
10565     ;;
10566   esac
10567 fi
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580   # Report which library types will actually be built
10581   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10582 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10583   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10584 echo "${ECHO_T}$can_build_shared" >&6
10585
10586   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10587 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10588   test "$can_build_shared" = "no" && enable_shared=no
10589
10590   # On AIX, shared libraries and static libraries use the same namespace, and
10591   # are all built from PIC.
10592   case $host_os in
10593   aix3*)
10594     test "$enable_shared" = yes && enable_static=no
10595     if test -n "$RANLIB"; then
10596       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10597       postinstall_cmds='$RANLIB $lib'
10598     fi
10599     ;;
10600
10601   aix4* | aix5*)
10602     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10603       test "$enable_shared" = yes && enable_static=no
10604     fi
10605     ;;
10606   esac
10607   echo "$as_me:$LINENO: result: $enable_shared" >&5
10608 echo "${ECHO_T}$enable_shared" >&6
10609
10610   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10611 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10612   # Make sure either enable_shared or enable_static is yes.
10613   test "$enable_shared" = yes || enable_static=yes
10614   echo "$as_me:$LINENO: result: $enable_static" >&5
10615 echo "${ECHO_T}$enable_static" >&6
10616
10617
10618
10619
10620 fi
10621 ac_ext=c
10622 ac_cpp='$CPP $CPPFLAGS'
10623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10626
10627 CC="$lt_save_CC"
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641                   ac_config_commands="$ac_config_commands libtool"
10642
10643
10644
10645
10646 # Only expand once:
10647
10648
10649 fi
10650
10651 if test -n "${machine_dir}"; then
10652   case ${machine_dir} in
10653         i386)
10654
10655 subdirs="$subdirs i386"
10656  ;;
10657   esac;
10658 fi
10659
10660
10661
10662 if test x${machine_dir} != x; then
10663   HAVE_MACHINE_DIR_TRUE=
10664   HAVE_MACHINE_DIR_FALSE='#'
10665 else
10666   HAVE_MACHINE_DIR_TRUE='#'
10667   HAVE_MACHINE_DIR_FALSE=
10668 fi
10669
10670
10671           ac_config_files="$ac_config_files Makefile"
10672
10673 cat >confcache <<\_ACEOF
10674 # This file is a shell script that caches the results of configure
10675 # tests run on this system so they can be shared between configure
10676 # scripts and configure runs, see configure's option --config-cache.
10677 # It is not useful on other systems.  If it contains results you don't
10678 # want to keep, you may remove or edit it.
10679 #
10680 # config.status only pays attention to the cache file if you give it
10681 # the --recheck option to rerun configure.
10682 #
10683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10685 # following values.
10686
10687 _ACEOF
10688
10689 # The following way of writing the cache mishandles newlines in values,
10690 # but we know of no workaround that is simple, portable, and efficient.
10691 # So, don't put newlines in cache variables' values.
10692 # Ultrix sh set writes to stderr and can't be redirected directly,
10693 # and sets the high bit in the cache file unless we assign to the vars.
10694 {
10695   (set) 2>&1 |
10696     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10697     *ac_space=\ *)
10698       # `set' does not quote correctly, so add quotes (double-quote
10699       # substitution turns \\\\ into \\, and sed turns \\ into \).
10700       sed -n \
10701         "s/'/'\\\\''/g;
10702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10703       ;;
10704     *)
10705       # `set' quotes correctly as required by POSIX, so do not add quotes.
10706       sed -n \
10707         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10708       ;;
10709     esac;
10710 } |
10711   sed '
10712      t clear
10713      : clear
10714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10715      t end
10716      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10717      : end' >>confcache
10718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10719   if test -w $cache_file; then
10720     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10721     cat confcache >$cache_file
10722   else
10723     echo "not updating unwritable cache $cache_file"
10724   fi
10725 fi
10726 rm -f confcache
10727
10728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10729 # Let make expand exec_prefix.
10730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10731
10732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10734 # trailing colons and then remove the whole line if VPATH becomes empty
10735 # (actually we leave an empty line to preserve line numbers).
10736 if test "x$srcdir" = x.; then
10737   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10738 s/:*\$(srcdir):*/:/;
10739 s/:*\${srcdir}:*/:/;
10740 s/:*@srcdir@:*/:/;
10741 s/^\([^=]*=[     ]*\):*/\1/;
10742 s/:*$//;
10743 s/^[^=]*=[       ]*$//;
10744 }'
10745 fi
10746
10747 # Transform confdefs.h into DEFS.
10748 # Protect against shell expansion while executing Makefile rules.
10749 # Protect against Makefile macro expansion.
10750 #
10751 # If the first sed substitution is executed (which looks for macros that
10752 # take arguments), then we branch to the quote section.  Otherwise,
10753 # look for a macro that doesn't take arguments.
10754 cat >confdef2opt.sed <<\_ACEOF
10755 t clear
10756 : clear
10757 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
10758 t quote
10759 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
10760 t quote
10761 d
10762 : quote
10763 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
10764 s,\[,\\&,g
10765 s,\],\\&,g
10766 s,\$,$$,g
10767 p
10768 _ACEOF
10769 # We use echo to avoid assuming a particular line-breaking character.
10770 # The extra dot is to prevent the shell from consuming trailing
10771 # line-breaks from the sub-command output.  A line-break within
10772 # single-quotes doesn't work because, if this script is created in a
10773 # platform that uses two characters for line-breaks (e.g., DOS), tr
10774 # would break.
10775 ac_LF_and_DOT=`echo; echo .`
10776 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10777 rm -f confdef2opt.sed
10778
10779
10780 ac_libobjs=
10781 ac_ltlibobjs=
10782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10783   # 1. Remove the extension, and $U if already installed.
10784   ac_i=`echo "$ac_i" |
10785          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10786   # 2. Add them.
10787   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10788   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10789 done
10790 LIBOBJS=$ac_libobjs
10791
10792 LTLIBOBJS=$ac_ltlibobjs
10793
10794
10795 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
10796   { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
10797 Usually this means the macro was only invoked conditionally." >&5
10798 echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
10799 Usually this means the macro was only invoked conditionally." >&2;}
10800    { (exit 1); exit 1; }; }
10801 fi
10802 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10803   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10804 Usually this means the macro was only invoked conditionally." >&5
10805 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10806 Usually this means the macro was only invoked conditionally." >&2;}
10807    { (exit 1); exit 1; }; }
10808 fi
10809 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10810   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10811 Usually this means the macro was only invoked conditionally." >&5
10812 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10813 Usually this means the macro was only invoked conditionally." >&2;}
10814    { (exit 1); exit 1; }; }
10815 fi
10816 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10817   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10818 Usually this means the macro was only invoked conditionally." >&5
10819 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10820 Usually this means the macro was only invoked conditionally." >&2;}
10821    { (exit 1); exit 1; }; }
10822 fi
10823 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
10824   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
10825 Usually this means the macro was only invoked conditionally." >&5
10826 echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
10827 Usually this means the macro was only invoked conditionally." >&2;}
10828    { (exit 1); exit 1; }; }
10829 fi
10830 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
10831   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
10832 Usually this means the macro was only invoked conditionally." >&5
10833 echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
10834 Usually this means the macro was only invoked conditionally." >&2;}
10835    { (exit 1); exit 1; }; }
10836 fi
10837 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
10838   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
10839 Usually this means the macro was only invoked conditionally." >&5
10840 echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
10841 Usually this means the macro was only invoked conditionally." >&2;}
10842    { (exit 1); exit 1; }; }
10843 fi
10844 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
10845   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
10846 Usually this means the macro was only invoked conditionally." >&5
10847 echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
10848 Usually this means the macro was only invoked conditionally." >&2;}
10849    { (exit 1); exit 1; }; }
10850 fi
10851 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
10852   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
10853 Usually this means the macro was only invoked conditionally." >&5
10854 echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
10855 Usually this means the macro was only invoked conditionally." >&2;}
10856    { (exit 1); exit 1; }; }
10857 fi
10858 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
10859   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
10860 Usually this means the macro was only invoked conditionally." >&5
10861 echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
10862 Usually this means the macro was only invoked conditionally." >&2;}
10863    { (exit 1); exit 1; }; }
10864 fi
10865 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10866   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10867 Usually this means the macro was only invoked conditionally." >&5
10868 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10869 Usually this means the macro was only invoked conditionally." >&2;}
10870    { (exit 1); exit 1; }; }
10871 fi
10872 if test -z "${HAVE_MACHINE_DIR_TRUE}" && test -z "${HAVE_MACHINE_DIR_FALSE}"; then
10873   { { echo "$as_me:$LINENO: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
10874 Usually this means the macro was only invoked conditionally." >&5
10875 echo "$as_me: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
10876 Usually this means the macro was only invoked conditionally." >&2;}
10877    { (exit 1); exit 1; }; }
10878 fi
10879
10880 : ${CONFIG_STATUS=./config.status}
10881 ac_clean_files_save=$ac_clean_files
10882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10885 cat >$CONFIG_STATUS <<_ACEOF
10886 #! $SHELL
10887 # Generated by $as_me.
10888 # Run this file to recreate the current configuration.
10889 # Compiler output produced by configure, useful for debugging
10890 # configure, is in config.log if it exists.
10891
10892 debug=false
10893 ac_cs_recheck=false
10894 ac_cs_silent=false
10895 SHELL=\${CONFIG_SHELL-$SHELL}
10896 _ACEOF
10897
10898 cat >>$CONFIG_STATUS <<\_ACEOF
10899 ## --------------------- ##
10900 ## M4sh Initialization.  ##
10901 ## --------------------- ##
10902
10903 # Be Bourne compatible
10904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10905   emulate sh
10906   NULLCMD=:
10907   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10908   # is contrary to our usage.  Disable this feature.
10909   alias -g '${1+"$@"}'='"$@"'
10910 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10911   set -o posix
10912 fi
10913 DUALCASE=1; export DUALCASE # for MKS sh
10914
10915 # Support unset when possible.
10916 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10917   as_unset=unset
10918 else
10919   as_unset=false
10920 fi
10921
10922
10923 # Work around bugs in pre-3.0 UWIN ksh.
10924 $as_unset ENV MAIL MAILPATH
10925 PS1='$ '
10926 PS2='> '
10927 PS4='+ '
10928
10929 # NLS nuisances.
10930 for as_var in \
10931   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10932   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10933   LC_TELEPHONE LC_TIME
10934 do
10935   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10936     eval $as_var=C; export $as_var
10937   else
10938     $as_unset $as_var
10939   fi
10940 done
10941
10942 # Required to use basename.
10943 if expr a : '\(a\)' >/dev/null 2>&1; then
10944   as_expr=expr
10945 else
10946   as_expr=false
10947 fi
10948
10949 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10950   as_basename=basename
10951 else
10952   as_basename=false
10953 fi
10954
10955
10956 # Name of the executable.
10957 as_me=`$as_basename "$0" ||
10958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10959          X"$0" : 'X\(//\)$' \| \
10960          X"$0" : 'X\(/\)$' \| \
10961          .     : '\(.\)' 2>/dev/null ||
10962 echo X/"$0" |
10963     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10964           /^X\/\(\/\/\)$/{ s//\1/; q; }
10965           /^X\/\(\/\).*/{ s//\1/; q; }
10966           s/.*/./; q'`
10967
10968
10969 # PATH needs CR, and LINENO needs CR and PATH.
10970 # Avoid depending upon Character Ranges.
10971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10974 as_cr_digits='0123456789'
10975 as_cr_alnum=$as_cr_Letters$as_cr_digits
10976
10977 # The user is always right.
10978 if test "${PATH_SEPARATOR+set}" != set; then
10979   echo "#! /bin/sh" >conf$$.sh
10980   echo  "exit 0"   >>conf$$.sh
10981   chmod +x conf$$.sh
10982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10983     PATH_SEPARATOR=';'
10984   else
10985     PATH_SEPARATOR=:
10986   fi
10987   rm -f conf$$.sh
10988 fi
10989
10990
10991   as_lineno_1=$LINENO
10992   as_lineno_2=$LINENO
10993   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10994   test "x$as_lineno_1" != "x$as_lineno_2" &&
10995   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10996   # Find who we are.  Look in the path if we contain no path at all
10997   # relative or not.
10998   case $0 in
10999     *[\\/]* ) as_myself=$0 ;;
11000     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003   IFS=$as_save_IFS
11004   test -z "$as_dir" && as_dir=.
11005   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11006 done
11007
11008        ;;
11009   esac
11010   # We did not find ourselves, most probably we were run as `sh COMMAND'
11011   # in which case we are not to be found in the path.
11012   if test "x$as_myself" = x; then
11013     as_myself=$0
11014   fi
11015   if test ! -f "$as_myself"; then
11016     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11017 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11018    { (exit 1); exit 1; }; }
11019   fi
11020   case $CONFIG_SHELL in
11021   '')
11022     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11024 do
11025   IFS=$as_save_IFS
11026   test -z "$as_dir" && as_dir=.
11027   for as_base in sh bash ksh sh5; do
11028          case $as_dir in
11029          /*)
11030            if ("$as_dir/$as_base" -c '
11031   as_lineno_1=$LINENO
11032   as_lineno_2=$LINENO
11033   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11034   test "x$as_lineno_1" != "x$as_lineno_2" &&
11035   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11036              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11037              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11038              CONFIG_SHELL=$as_dir/$as_base
11039              export CONFIG_SHELL
11040              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11041            fi;;
11042          esac
11043        done
11044 done
11045 ;;
11046   esac
11047
11048   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11049   # uniformly replaced by the line number.  The first 'sed' inserts a
11050   # line-number line before each line; the second 'sed' does the real
11051   # work.  The second script uses 'N' to pair each line-number line
11052   # with the numbered line, and appends trailing '-' during
11053   # substitution so that $LINENO is not a special case at line end.
11054   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11055   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11056   sed '=' <$as_myself |
11057     sed '
11058       N
11059       s,$,-,
11060       : loop
11061       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11062       t loop
11063       s,-$,,
11064       s,^['$as_cr_digits']*\n,,
11065     ' >$as_me.lineno &&
11066   chmod +x $as_me.lineno ||
11067     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11068 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11069    { (exit 1); exit 1; }; }
11070
11071   # Don't try to exec as it changes $[0], causing all sort of problems
11072   # (the dirname of $[0] is not the place where we might find the
11073   # original and so on.  Autoconf is especially sensible to this).
11074   . ./$as_me.lineno
11075   # Exit status is that of the last command.
11076   exit
11077 }
11078
11079
11080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11081   *c*,-n*) ECHO_N= ECHO_C='
11082 ' ECHO_T='      ' ;;
11083   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11084   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11085 esac
11086
11087 if expr a : '\(a\)' >/dev/null 2>&1; then
11088   as_expr=expr
11089 else
11090   as_expr=false
11091 fi
11092
11093 rm -f conf$$ conf$$.exe conf$$.file
11094 echo >conf$$.file
11095 if ln -s conf$$.file conf$$ 2>/dev/null; then
11096   # We could just check for DJGPP; but this test a) works b) is more generic
11097   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11098   if test -f conf$$.exe; then
11099     # Don't use ln at all; we don't have any links
11100     as_ln_s='cp -p'
11101   else
11102     as_ln_s='ln -s'
11103   fi
11104 elif ln conf$$.file conf$$ 2>/dev/null; then
11105   as_ln_s=ln
11106 else
11107   as_ln_s='cp -p'
11108 fi
11109 rm -f conf$$ conf$$.exe conf$$.file
11110
11111 if mkdir -p . 2>/dev/null; then
11112   as_mkdir_p=:
11113 else
11114   test -d ./-p && rmdir ./-p
11115   as_mkdir_p=false
11116 fi
11117
11118 as_executable_p="test -f"
11119
11120 # Sed expression to map a string onto a valid CPP name.
11121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11122
11123 # Sed expression to map a string onto a valid variable name.
11124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11125
11126
11127 # IFS
11128 # We need space, tab and new line, in precisely that order.
11129 as_nl='
11130 '
11131 IFS="   $as_nl"
11132
11133 # CDPATH.
11134 $as_unset CDPATH
11135
11136 exec 6>&1
11137
11138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11139 # report actual input values of CONFIG_FILES etc. instead of their
11140 # values after options handling.  Logging --version etc. is OK.
11141 exec 5>>config.log
11142 {
11143   echo
11144   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11145 ## Running $as_me. ##
11146 _ASBOX
11147 } >&5
11148 cat >&5 <<_CSEOF
11149
11150 This file was extended by newlib $as_me 1.15.0, which was
11151 generated by GNU Autoconf 2.59.  Invocation command line was
11152
11153   CONFIG_FILES    = $CONFIG_FILES
11154   CONFIG_HEADERS  = $CONFIG_HEADERS
11155   CONFIG_LINKS    = $CONFIG_LINKS
11156   CONFIG_COMMANDS = $CONFIG_COMMANDS
11157   $ $0 $@
11158
11159 _CSEOF
11160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11161 echo >&5
11162 _ACEOF
11163
11164 # Files that config.status was made for.
11165 if test -n "$ac_config_files"; then
11166   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11167 fi
11168
11169 if test -n "$ac_config_headers"; then
11170   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11171 fi
11172
11173 if test -n "$ac_config_links"; then
11174   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11175 fi
11176
11177 if test -n "$ac_config_commands"; then
11178   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11179 fi
11180
11181 cat >>$CONFIG_STATUS <<\_ACEOF
11182
11183 ac_cs_usage="\
11184 \`$as_me' instantiates files from templates according to the
11185 current configuration.
11186
11187 Usage: $0 [OPTIONS] [FILE]...
11188
11189   -h, --help       print this help, then exit
11190   -V, --version    print version number, then exit
11191   -q, --quiet      do not print progress messages
11192   -d, --debug      don't remove temporary files
11193       --recheck    update $as_me by reconfiguring in the same conditions
11194   --file=FILE[:TEMPLATE]
11195                    instantiate the configuration file FILE
11196
11197 Configuration files:
11198 $config_files
11199
11200 Configuration commands:
11201 $config_commands
11202
11203 Report bugs to <bug-autoconf@gnu.org>."
11204 _ACEOF
11205
11206 cat >>$CONFIG_STATUS <<_ACEOF
11207 ac_cs_version="\\
11208 newlib config.status 1.15.0
11209 configured by $0, generated by GNU Autoconf 2.59,
11210   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11211
11212 Copyright (C) 2003 Free Software Foundation, Inc.
11213 This config.status script is free software; the Free Software Foundation
11214 gives unlimited permission to copy, distribute and modify it."
11215 srcdir=$srcdir
11216 INSTALL="$INSTALL"
11217 _ACEOF
11218
11219 cat >>$CONFIG_STATUS <<\_ACEOF
11220 # If no file are specified by the user, then we need to provide default
11221 # value.  By we need to know if files were specified by the user.
11222 ac_need_defaults=:
11223 while test $# != 0
11224 do
11225   case $1 in
11226   --*=*)
11227     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11228     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11229     ac_shift=:
11230     ;;
11231   -*)
11232     ac_option=$1
11233     ac_optarg=$2
11234     ac_shift=shift
11235     ;;
11236   *) # This is not an option, so the user has probably given explicit
11237      # arguments.
11238      ac_option=$1
11239      ac_need_defaults=false;;
11240   esac
11241
11242   case $ac_option in
11243   # Handling of the options.
11244 _ACEOF
11245 cat >>$CONFIG_STATUS <<\_ACEOF
11246   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11247     ac_cs_recheck=: ;;
11248   --version | --vers* | -V )
11249     echo "$ac_cs_version"; exit 0 ;;
11250   --he | --h)
11251     # Conflict between --help and --header
11252     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11253 Try \`$0 --help' for more information." >&5
11254 echo "$as_me: error: ambiguous option: $1
11255 Try \`$0 --help' for more information." >&2;}
11256    { (exit 1); exit 1; }; };;
11257   --help | --hel | -h )
11258     echo "$ac_cs_usage"; exit 0 ;;
11259   --debug | --d* | -d )
11260     debug=: ;;
11261   --file | --fil | --fi | --f )
11262     $ac_shift
11263     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11264     ac_need_defaults=false;;
11265   --header | --heade | --head | --hea )
11266     $ac_shift
11267     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11268     ac_need_defaults=false;;
11269   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11270   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11271     ac_cs_silent=: ;;
11272
11273   # This is an error.
11274   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11275 Try \`$0 --help' for more information." >&5
11276 echo "$as_me: error: unrecognized option: $1
11277 Try \`$0 --help' for more information." >&2;}
11278    { (exit 1); exit 1; }; } ;;
11279
11280   *) ac_config_targets="$ac_config_targets $1" ;;
11281
11282   esac
11283   shift
11284 done
11285
11286 ac_configure_extra_args=
11287
11288 if $ac_cs_silent; then
11289   exec 6>/dev/null
11290   ac_configure_extra_args="$ac_configure_extra_args --silent"
11291 fi
11292
11293 _ACEOF
11294 cat >>$CONFIG_STATUS <<_ACEOF
11295 if \$ac_cs_recheck; then
11296   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11297   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11298 fi
11299
11300 _ACEOF
11301
11302 cat >>$CONFIG_STATUS <<_ACEOF
11303 #
11304 # INIT-COMMANDS section.
11305 #
11306
11307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11308
11309
11310 # The HP-UX ksh and POSIX shell print the target directory to stdout
11311 # if CDPATH is set.
11312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11313
11314 sed_quote_subst='$sed_quote_subst'
11315 double_quote_subst='$double_quote_subst'
11316 delay_variable_subst='$delay_variable_subst'
11317 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11318 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11319 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11320 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11321 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11322 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11323 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11324 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11325 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11326 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11327 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11328 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11329 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11330 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11331 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11332 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11333 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11334 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11335 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11336 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11337 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11338 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11339 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11340 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11341 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11342 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11343 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11344 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11345 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11346 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11347 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11348 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11349 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11350 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11351 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11352 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11353 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11354 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11355 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11356 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11357 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11358 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11359 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11360 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11361 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11362 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11363 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"`'
11364 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11365 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11366 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11367 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11368 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11369 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11370 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11371 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11372 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11373 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11374 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11375 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11376 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11377 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11378 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11379 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11380 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11381 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11382 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11383 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11384 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11385 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11386 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11387 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11388 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11389 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11390 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11391 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11392 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11393 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11394 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11395 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11396 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11397 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11398 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11399 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11400 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11401 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11402 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11403 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11404 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11405 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11406 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11407 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11408 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11409 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11410 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11411 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11412 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11413 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11414 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11415 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11416 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11417 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11418 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11419 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11420 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11421 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11422 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11423 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11424 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11425 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11426 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11427 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11428 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11429 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11430 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11431
11432 LTCC='$LTCC'
11433 LTCFLAGS='$LTCFLAGS'
11434 compiler='$compiler_DEFAULT'
11435
11436 # Quote evaled strings.
11437 for var in SED \
11438 GREP \
11439 EGREP \
11440 FGREP \
11441 LD \
11442 NM \
11443 LN_S \
11444 lt_SP2NL \
11445 lt_NL2SP \
11446 reload_flag \
11447 deplibs_check_method \
11448 file_magic_cmd \
11449 AR \
11450 AR_FLAGS \
11451 STRIP \
11452 RANLIB \
11453 CC \
11454 CFLAGS \
11455 compiler \
11456 lt_cv_sys_global_symbol_pipe \
11457 lt_cv_sys_global_symbol_to_cdecl \
11458 lt_cv_sys_global_symbol_to_c_name_address \
11459 SHELL \
11460 ECHO \
11461 lt_prog_compiler_no_builtin_flag \
11462 lt_prog_compiler_wl \
11463 lt_prog_compiler_pic \
11464 lt_prog_compiler_static \
11465 lt_cv_prog_compiler_c_o \
11466 need_locks \
11467 shrext_cmds \
11468 export_dynamic_flag_spec \
11469 whole_archive_flag_spec \
11470 compiler_needs_object \
11471 with_gnu_ld \
11472 allow_undefined_flag \
11473 no_undefined_flag \
11474 hardcode_libdir_flag_spec \
11475 hardcode_libdir_flag_spec_ld \
11476 hardcode_libdir_separator \
11477 fix_srcfile_path \
11478 exclude_expsyms \
11479 include_expsyms \
11480 file_list_spec \
11481 variables_saved_for_relink \
11482 libname_spec \
11483 library_names_spec \
11484 soname_spec \
11485 finish_eval \
11486 old_striplib \
11487 striplib; do
11488     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11489     *[\\\\\\\`\\"\\\$]*)
11490       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11491       ;;
11492     *)
11493       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11494       ;;
11495     esac
11496 done
11497
11498 # Double-quote double-evaled strings.
11499 for var in reload_cmds \
11500 old_postinstall_cmds \
11501 old_postuninstall_cmds \
11502 old_archive_cmds \
11503 extract_expsyms_cmds \
11504 old_archive_from_new_cmds \
11505 old_archive_from_expsyms_cmds \
11506 archive_cmds \
11507 archive_expsym_cmds \
11508 module_cmds \
11509 module_expsym_cmds \
11510 export_symbols_cmds \
11511 prelink_cmds \
11512 postinstall_cmds \
11513 postuninstall_cmds \
11514 finish_cmds \
11515 sys_lib_search_path_spec \
11516 sys_lib_dlsearch_path_spec; do
11517     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11518     *[\\\\\\\`\\"\\\$]*)
11519       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11520       ;;
11521     *)
11522       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11523       ;;
11524     esac
11525 done
11526
11527 # Fix-up fallback echo if it was mangled by the above quoting rules.
11528 case \$lt_ECHO in
11529 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11530   ;;
11531 esac
11532
11533 ac_aux_dir='$ac_aux_dir'
11534 xsi_shell='$xsi_shell'
11535 lt_shell_append='$lt_shell_append'
11536
11537 # See if we are running on zsh, and set the options which allow our
11538 # commands through without removal of \ escapes INIT.
11539 if test -n "\${ZSH_VERSION+set}" ; then
11540    setopt NO_GLOB_SUBST
11541 fi
11542
11543
11544     PACKAGE='$PACKAGE'
11545     VERSION='$VERSION'
11546     TIMESTAMP='$TIMESTAMP'
11547     RM='$RM'
11548     ofile='$ofile'
11549
11550
11551
11552
11553 _ACEOF
11554
11555
11556
11557 cat >>$CONFIG_STATUS <<\_ACEOF
11558 for ac_config_target in $ac_config_targets
11559 do
11560   case "$ac_config_target" in
11561   # Handling of arguments.
11562   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11563   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11564   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11565   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11566 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11567    { (exit 1); exit 1; }; };;
11568   esac
11569 done
11570
11571 # If the user did not use the arguments to specify the items to instantiate,
11572 # then the envvar interface is used.  Set only those that are not.
11573 # We use the long form for the default assignment because of an extremely
11574 # bizarre bug on SunOS 4.1.3.
11575 if $ac_need_defaults; then
11576   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11577   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11578 fi
11579
11580 # Have a temporary directory for convenience.  Make it in the build tree
11581 # simply because there is no reason to put it here, and in addition,
11582 # creating and moving files from /tmp can sometimes cause problems.
11583 # Create a temporary directory, and hook for its removal unless debugging.
11584 $debug ||
11585 {
11586   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11587   trap '{ (exit 1); exit 1; }' 1 2 13 15
11588 }
11589
11590 # Create a (secure) tmp directory for tmp files.
11591
11592 {
11593   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11594   test -n "$tmp" && test -d "$tmp"
11595 }  ||
11596 {
11597   tmp=./confstat$$-$RANDOM
11598   (umask 077 && mkdir $tmp)
11599 } ||
11600 {
11601    echo "$me: cannot create a temporary directory in ." >&2
11602    { (exit 1); exit 1; }
11603 }
11604
11605 _ACEOF
11606
11607 cat >>$CONFIG_STATUS <<_ACEOF
11608
11609 #
11610 # CONFIG_FILES section.
11611 #
11612
11613 # No need to generate the scripts if there are no CONFIG_FILES.
11614 # This happens for instance when ./config.status config.h
11615 if test -n "\$CONFIG_FILES"; then
11616   # Protect against being on the right side of a sed subst in config.status.
11617   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11618    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11619 s,@SHELL@,$SHELL,;t t
11620 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11621 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11622 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11623 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11624 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11625 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11626 s,@exec_prefix@,$exec_prefix,;t t
11627 s,@prefix@,$prefix,;t t
11628 s,@program_transform_name@,$program_transform_name,;t t
11629 s,@bindir@,$bindir,;t t
11630 s,@sbindir@,$sbindir,;t t
11631 s,@libexecdir@,$libexecdir,;t t
11632 s,@datadir@,$datadir,;t t
11633 s,@sysconfdir@,$sysconfdir,;t t
11634 s,@sharedstatedir@,$sharedstatedir,;t t
11635 s,@localstatedir@,$localstatedir,;t t
11636 s,@libdir@,$libdir,;t t
11637 s,@includedir@,$includedir,;t t
11638 s,@oldincludedir@,$oldincludedir,;t t
11639 s,@infodir@,$infodir,;t t
11640 s,@mandir@,$mandir,;t t
11641 s,@build_alias@,$build_alias,;t t
11642 s,@host_alias@,$host_alias,;t t
11643 s,@target_alias@,$target_alias,;t t
11644 s,@DEFS@,$DEFS,;t t
11645 s,@ECHO_C@,$ECHO_C,;t t
11646 s,@ECHO_N@,$ECHO_N,;t t
11647 s,@ECHO_T@,$ECHO_T,;t t
11648 s,@LIBS@,$LIBS,;t t
11649 s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
11650 s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
11651 s,@newlib_basedir@,$newlib_basedir,;t t
11652 s,@build@,$build,;t t
11653 s,@build_cpu@,$build_cpu,;t t
11654 s,@build_vendor@,$build_vendor,;t t
11655 s,@build_os@,$build_os,;t t
11656 s,@host@,$host,;t t
11657 s,@host_cpu@,$host_cpu,;t t
11658 s,@host_vendor@,$host_vendor,;t t
11659 s,@host_os@,$host_os,;t t
11660 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11661 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11662 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11663 s,@CYGPATH_W@,$CYGPATH_W,;t t
11664 s,@PACKAGE@,$PACKAGE,;t t
11665 s,@VERSION@,$VERSION,;t t
11666 s,@ACLOCAL@,$ACLOCAL,;t t
11667 s,@AUTOCONF@,$AUTOCONF,;t t
11668 s,@AUTOMAKE@,$AUTOMAKE,;t t
11669 s,@AUTOHEADER@,$AUTOHEADER,;t t
11670 s,@MAKEINFO@,$MAKEINFO,;t t
11671 s,@install_sh@,$install_sh,;t t
11672 s,@STRIP@,$STRIP,;t t
11673 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11674 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11675 s,@mkdir_p@,$mkdir_p,;t t
11676 s,@AWK@,$AWK,;t t
11677 s,@SET_MAKE@,$SET_MAKE,;t t
11678 s,@am__leading_dot@,$am__leading_dot,;t t
11679 s,@AMTAR@,$AMTAR,;t t
11680 s,@am__tar@,$am__tar,;t t
11681 s,@am__untar@,$am__untar,;t t
11682 s,@CC@,$CC,;t t
11683 s,@DEPDIR@,$DEPDIR,;t t
11684 s,@am__include@,$am__include,;t t
11685 s,@am__quote@,$am__quote,;t t
11686 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11687 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11688 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11689 s,@CCDEPMODE@,$CCDEPMODE,;t t
11690 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11691 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11692 s,@AS@,$AS,;t t
11693 s,@ac_ct_AS@,$ac_ct_AS,;t t
11694 s,@AR@,$AR,;t t
11695 s,@ac_ct_AR@,$ac_ct_AR,;t t
11696 s,@RANLIB@,$RANLIB,;t t
11697 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11698 s,@READELF@,$READELF,;t t
11699 s,@ac_ct_READELF@,$ac_ct_READELF,;t t
11700 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11701 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11702 s,@MAINT@,$MAINT,;t t
11703 s,@CCAS@,$CCAS,;t t
11704 s,@CCASFLAGS@,$CCASFLAGS,;t t
11705 s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
11706 s,@LDFLAGS@,$LDFLAGS,;t t
11707 s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
11708 s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
11709 s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
11710 s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
11711 s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
11712 s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
11713 s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
11714 s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
11715 s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
11716 s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
11717 s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
11718 s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
11719 s,@OBJEXT@,$OBJEXT,;t t
11720 s,@oext@,$oext,;t t
11721 s,@aext@,$aext,;t t
11722 s,@lpfx@,$lpfx,;t t
11723 s,@libm_machine_dir@,$libm_machine_dir,;t t
11724 s,@machine_dir@,$machine_dir,;t t
11725 s,@sys_dir@,$sys_dir,;t t
11726 s,@SED@,$SED,;t t
11727 s,@DLLTOOL@,$DLLTOOL,;t t
11728 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
11729 s,@OBJDUMP@,$OBJDUMP,;t t
11730 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
11731 s,@LIBTOOL@,$LIBTOOL,;t t
11732 s,@CFLAGS@,$CFLAGS,;t t
11733 s,@CPPFLAGS@,$CPPFLAGS,;t t
11734 s,@ac_ct_CC@,$ac_ct_CC,;t t
11735 s,@EXEEXT@,$EXEEXT,;t t
11736 s,@EGREP@,$EGREP,;t t
11737 s,@FGREP@,$FGREP,;t t
11738 s,@GREP@,$GREP,;t t
11739 s,@LD@,$LD,;t t
11740 s,@DUMPBIN@,$DUMPBIN,;t t
11741 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11742 s,@NM@,$NM,;t t
11743 s,@LN_S@,$LN_S,;t t
11744 s,@lt_ECHO@,$lt_ECHO,;t t
11745 s,@CPP@,$CPP,;t t
11746 s,@subdirs@,$subdirs,;t t
11747 s,@HAVE_MACHINE_DIR_TRUE@,$HAVE_MACHINE_DIR_TRUE,;t t
11748 s,@HAVE_MACHINE_DIR_FALSE@,$HAVE_MACHINE_DIR_FALSE,;t t
11749 s,@LIBOBJS@,$LIBOBJS,;t t
11750 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11751 CEOF
11752
11753 _ACEOF
11754
11755   cat >>$CONFIG_STATUS <<\_ACEOF
11756   # Split the substitutions into bite-sized pieces for seds with
11757   # small command number limits, like on Digital OSF/1 and HP-UX.
11758   ac_max_sed_lines=48
11759   ac_sed_frag=1 # Number of current file.
11760   ac_beg=1 # First line for current file.
11761   ac_end=$ac_max_sed_lines # Line after last line for current file.
11762   ac_more_lines=:
11763   ac_sed_cmds=
11764   while $ac_more_lines; do
11765     if test $ac_beg -gt 1; then
11766       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11767     else
11768       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11769     fi
11770     if test ! -s $tmp/subs.frag; then
11771       ac_more_lines=false
11772     else
11773       # The purpose of the label and of the branching condition is to
11774       # speed up the sed processing (if there are no `@' at all, there
11775       # is no need to browse any of the substitutions).
11776       # These are the two extra sed commands mentioned above.
11777       (echo ':t
11778   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11779       if test -z "$ac_sed_cmds"; then
11780         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11781       else
11782         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11783       fi
11784       ac_sed_frag=`expr $ac_sed_frag + 1`
11785       ac_beg=$ac_end
11786       ac_end=`expr $ac_end + $ac_max_sed_lines`
11787     fi
11788   done
11789   if test -z "$ac_sed_cmds"; then
11790     ac_sed_cmds=cat
11791   fi
11792 fi # test -n "$CONFIG_FILES"
11793
11794 _ACEOF
11795 cat >>$CONFIG_STATUS <<\_ACEOF
11796 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11797   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11798   case $ac_file in
11799   - | *:- | *:-:* ) # input from stdin
11800         cat >$tmp/stdin
11801         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11804         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11805   * )   ac_file_in=$ac_file.in ;;
11806   esac
11807
11808   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11809   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811          X"$ac_file" : 'X\(//\)[^/]' \| \
11812          X"$ac_file" : 'X\(//\)$' \| \
11813          X"$ac_file" : 'X\(/\)' \| \
11814          .     : '\(.\)' 2>/dev/null ||
11815 echo X"$ac_file" |
11816     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11817           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11818           /^X\(\/\/\)$/{ s//\1/; q; }
11819           /^X\(\/\).*/{ s//\1/; q; }
11820           s/.*/./; q'`
11821   { if $as_mkdir_p; then
11822     mkdir -p "$ac_dir"
11823   else
11824     as_dir="$ac_dir"
11825     as_dirs=
11826     while test ! -d "$as_dir"; do
11827       as_dirs="$as_dir $as_dirs"
11828       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11830          X"$as_dir" : 'X\(//\)[^/]' \| \
11831          X"$as_dir" : 'X\(//\)$' \| \
11832          X"$as_dir" : 'X\(/\)' \| \
11833          .     : '\(.\)' 2>/dev/null ||
11834 echo X"$as_dir" |
11835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11836           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11837           /^X\(\/\/\)$/{ s//\1/; q; }
11838           /^X\(\/\).*/{ s//\1/; q; }
11839           s/.*/./; q'`
11840     done
11841     test ! -n "$as_dirs" || mkdir $as_dirs
11842   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11843 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11844    { (exit 1); exit 1; }; }; }
11845
11846   ac_builddir=.
11847
11848 if test "$ac_dir" != .; then
11849   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11850   # A "../" for each directory in $ac_dir_suffix.
11851   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11852 else
11853   ac_dir_suffix= ac_top_builddir=
11854 fi
11855
11856 case $srcdir in
11857   .)  # No --srcdir option.  We are building in place.
11858     ac_srcdir=.
11859     if test -z "$ac_top_builddir"; then
11860        ac_top_srcdir=.
11861     else
11862        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11863     fi ;;
11864   [\\/]* | ?:[\\/]* )  # Absolute path.
11865     ac_srcdir=$srcdir$ac_dir_suffix;
11866     ac_top_srcdir=$srcdir ;;
11867   *) # Relative path.
11868     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11869     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11870 esac
11871
11872 # Do not use `cd foo && pwd` to compute absolute paths, because
11873 # the directories may not exist.
11874 case `pwd` in
11875 .) ac_abs_builddir="$ac_dir";;
11876 *)
11877   case "$ac_dir" in
11878   .) ac_abs_builddir=`pwd`;;
11879   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11880   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11881   esac;;
11882 esac
11883 case $ac_abs_builddir in
11884 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11885 *)
11886   case ${ac_top_builddir}. in
11887   .) ac_abs_top_builddir=$ac_abs_builddir;;
11888   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11889   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11890   esac;;
11891 esac
11892 case $ac_abs_builddir in
11893 .) ac_abs_srcdir=$ac_srcdir;;
11894 *)
11895   case $ac_srcdir in
11896   .) ac_abs_srcdir=$ac_abs_builddir;;
11897   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11898   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11899   esac;;
11900 esac
11901 case $ac_abs_builddir in
11902 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11903 *)
11904   case $ac_top_srcdir in
11905   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11906   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11907   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11908   esac;;
11909 esac
11910
11911
11912   case $INSTALL in
11913   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11914   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11915   esac
11916
11917   if test x"$ac_file" != x-; then
11918     { echo "$as_me:$LINENO: creating $ac_file" >&5
11919 echo "$as_me: creating $ac_file" >&6;}
11920     rm -f "$ac_file"
11921   fi
11922   # Let's still pretend it is `configure' which instantiates (i.e., don't
11923   # use $as_me), people would be surprised to read:
11924   #    /* config.h.  Generated by config.status.  */
11925   if test x"$ac_file" = x-; then
11926     configure_input=
11927   else
11928     configure_input="$ac_file.  "
11929   fi
11930   configure_input=$configure_input"Generated from `echo $ac_file_in |
11931                                      sed 's,.*/,,'` by configure."
11932
11933   # First look for the input files in the build tree, otherwise in the
11934   # src tree.
11935   ac_file_inputs=`IFS=:
11936     for f in $ac_file_in; do
11937       case $f in
11938       -) echo $tmp/stdin ;;
11939       [\\/$]*)
11940          # Absolute (can't be DOS-style, as IFS=:)
11941          test -f "$f" || { { 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          echo "$f";;
11945       *) # Relative
11946          if test -f "$f"; then
11947            # Build tree
11948            echo "$f"
11949          elif test -f "$srcdir/$f"; then
11950            # Source tree
11951            echo "$srcdir/$f"
11952          else
11953            # /dev/null tree
11954            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11955 echo "$as_me: error: cannot find input file: $f" >&2;}
11956    { (exit 1); exit 1; }; }
11957          fi;;
11958       esac
11959     done` || { (exit 1); exit 1; }
11960 _ACEOF
11961 cat >>$CONFIG_STATUS <<_ACEOF
11962   sed "$ac_vpsub
11963 $extrasub
11964 _ACEOF
11965 cat >>$CONFIG_STATUS <<\_ACEOF
11966 :t
11967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11968 s,@configure_input@,$configure_input,;t t
11969 s,@srcdir@,$ac_srcdir,;t t
11970 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11971 s,@top_srcdir@,$ac_top_srcdir,;t t
11972 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11973 s,@builddir@,$ac_builddir,;t t
11974 s,@abs_builddir@,$ac_abs_builddir,;t t
11975 s,@top_builddir@,$ac_top_builddir,;t t
11976 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11977 s,@INSTALL@,$ac_INSTALL,;t t
11978 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11979   rm -f $tmp/stdin
11980   if test x"$ac_file" != x-; then
11981     mv $tmp/out $ac_file
11982   else
11983     cat $tmp/out
11984     rm -f $tmp/out
11985   fi
11986
11987 done
11988 _ACEOF
11989 cat >>$CONFIG_STATUS <<\_ACEOF
11990
11991 #
11992 # CONFIG_COMMANDS section.
11993 #
11994 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11995   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11996   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11997   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11998 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11999          X"$ac_dest" : 'X\(//\)[^/]' \| \
12000          X"$ac_dest" : 'X\(//\)$' \| \
12001          X"$ac_dest" : 'X\(/\)' \| \
12002          .     : '\(.\)' 2>/dev/null ||
12003 echo X"$ac_dest" |
12004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12006           /^X\(\/\/\)$/{ s//\1/; q; }
12007           /^X\(\/\).*/{ s//\1/; q; }
12008           s/.*/./; q'`
12009   { if $as_mkdir_p; then
12010     mkdir -p "$ac_dir"
12011   else
12012     as_dir="$ac_dir"
12013     as_dirs=
12014     while test ! -d "$as_dir"; do
12015       as_dirs="$as_dir $as_dirs"
12016       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12018          X"$as_dir" : 'X\(//\)[^/]' \| \
12019          X"$as_dir" : 'X\(//\)$' \| \
12020          X"$as_dir" : 'X\(/\)' \| \
12021          .     : '\(.\)' 2>/dev/null ||
12022 echo X"$as_dir" |
12023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12025           /^X\(\/\/\)$/{ s//\1/; q; }
12026           /^X\(\/\).*/{ s//\1/; q; }
12027           s/.*/./; q'`
12028     done
12029     test ! -n "$as_dirs" || mkdir $as_dirs
12030   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12032    { (exit 1); exit 1; }; }; }
12033
12034   ac_builddir=.
12035
12036 if test "$ac_dir" != .; then
12037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12038   # A "../" for each directory in $ac_dir_suffix.
12039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12040 else
12041   ac_dir_suffix= ac_top_builddir=
12042 fi
12043
12044 case $srcdir in
12045   .)  # No --srcdir option.  We are building in place.
12046     ac_srcdir=.
12047     if test -z "$ac_top_builddir"; then
12048        ac_top_srcdir=.
12049     else
12050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12051     fi ;;
12052   [\\/]* | ?:[\\/]* )  # Absolute path.
12053     ac_srcdir=$srcdir$ac_dir_suffix;
12054     ac_top_srcdir=$srcdir ;;
12055   *) # Relative path.
12056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12058 esac
12059
12060 # Do not use `cd foo && pwd` to compute absolute paths, because
12061 # the directories may not exist.
12062 case `pwd` in
12063 .) ac_abs_builddir="$ac_dir";;
12064 *)
12065   case "$ac_dir" in
12066   .) ac_abs_builddir=`pwd`;;
12067   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12068   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12069   esac;;
12070 esac
12071 case $ac_abs_builddir in
12072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12073 *)
12074   case ${ac_top_builddir}. in
12075   .) ac_abs_top_builddir=$ac_abs_builddir;;
12076   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12077   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12078   esac;;
12079 esac
12080 case $ac_abs_builddir in
12081 .) ac_abs_srcdir=$ac_srcdir;;
12082 *)
12083   case $ac_srcdir in
12084   .) ac_abs_srcdir=$ac_abs_builddir;;
12085   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12086   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12087   esac;;
12088 esac
12089 case $ac_abs_builddir in
12090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12091 *)
12092   case $ac_top_srcdir in
12093   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12094   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12095   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12096   esac;;
12097 esac
12098
12099
12100   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12101 echo "$as_me: executing $ac_dest commands" >&6;}
12102   case $ac_dest in
12103     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12104   # Strip MF so we end up with the name of the file.
12105   mf=`echo "$mf" | sed -e 's/:.*$//'`
12106   # Check whether this is an Automake generated Makefile or not.
12107   # We used to match only the files named `Makefile.in', but
12108   # some people rename them; so instead we look at the file content.
12109   # Grep'ing the first line is not enough: some people post-process
12110   # each Makefile.in and add a new line on top of each file to say so.
12111   # So let's grep whole file.
12112   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12113     dirpart=`(dirname "$mf") 2>/dev/null ||
12114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12115          X"$mf" : 'X\(//\)[^/]' \| \
12116          X"$mf" : 'X\(//\)$' \| \
12117          X"$mf" : 'X\(/\)' \| \
12118          .     : '\(.\)' 2>/dev/null ||
12119 echo X"$mf" |
12120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12122           /^X\(\/\/\)$/{ s//\1/; q; }
12123           /^X\(\/\).*/{ s//\1/; q; }
12124           s/.*/./; q'`
12125   else
12126     continue
12127   fi
12128   # Extract the definition of DEPDIR, am__include, and am__quote
12129   # from the Makefile without running `make'.
12130   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12131   test -z "$DEPDIR" && continue
12132   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12133   test -z "am__include" && continue
12134   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12135   # When using ansi2knr, U may be empty or an underscore; expand it
12136   U=`sed -n 's/^U = //p' < "$mf"`
12137   # Find all dependency output files, they are included files with
12138   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12139   # simplest approach to changing $(DEPDIR) to its actual value in the
12140   # expansion.
12141   for file in `sed -n "
12142     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12143        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12144     # Make sure the directory exists.
12145     test -f "$dirpart/$file" && continue
12146     fdir=`(dirname "$file") 2>/dev/null ||
12147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12148          X"$file" : 'X\(//\)[^/]' \| \
12149          X"$file" : 'X\(//\)$' \| \
12150          X"$file" : 'X\(/\)' \| \
12151          .     : '\(.\)' 2>/dev/null ||
12152 echo X"$file" |
12153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12155           /^X\(\/\/\)$/{ s//\1/; q; }
12156           /^X\(\/\).*/{ s//\1/; q; }
12157           s/.*/./; q'`
12158     { if $as_mkdir_p; then
12159     mkdir -p $dirpart/$fdir
12160   else
12161     as_dir=$dirpart/$fdir
12162     as_dirs=
12163     while test ! -d "$as_dir"; do
12164       as_dirs="$as_dir $as_dirs"
12165       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12167          X"$as_dir" : 'X\(//\)[^/]' \| \
12168          X"$as_dir" : 'X\(//\)$' \| \
12169          X"$as_dir" : 'X\(/\)' \| \
12170          .     : '\(.\)' 2>/dev/null ||
12171 echo X"$as_dir" |
12172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12174           /^X\(\/\/\)$/{ s//\1/; q; }
12175           /^X\(\/\).*/{ s//\1/; q; }
12176           s/.*/./; q'`
12177     done
12178     test ! -n "$as_dirs" || mkdir $as_dirs
12179   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12180 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12181    { (exit 1); exit 1; }; }; }
12182
12183     # echo "creating $dirpart/$file"
12184     echo '# dummy' > "$dirpart/$file"
12185   done
12186 done
12187  ;;
12188     libtool )
12189
12190     # See if we are running on zsh, and set the options which allow our
12191     # commands through without removal of \ escapes.
12192     if test -n "${ZSH_VERSION+set}" ; then
12193       setopt NO_GLOB_SUBST
12194     fi
12195
12196     cfgfile="${ofile}T"
12197     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12198     $RM "$cfgfile"
12199
12200     cat <<_LT_EOF >> "$cfgfile"
12201 #! $SHELL
12202
12203 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12204 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12206 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12207 #
12208 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12209 # 2006, 2007 Free Software Foundation, Inc.
12210 #
12211 # This file is part of GNU Libtool:
12212 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12213 #
12214 # This program is free software; you can redistribute it and/or modify
12215 # it under the terms of the GNU General Public License as published by
12216 # the Free Software Foundation; either version 2 of the License, or
12217 # (at your option) any later version.
12218 #
12219 # This program is distributed in the hope that it will be useful, but
12220 # WITHOUT ANY WARRANTY; without even the implied warranty of
12221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12222 # General Public License for more details.
12223 #
12224 # You should have received a copy of the GNU General Public License
12225 # along with this program; if not, a copy can be downloaded from
12226 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12227 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12228 # MA 02110-1301, USA.
12229 #
12230 # As a special exception to the GNU General Public License, if you
12231 # distribute this file as part of a program that contains a
12232 # configuration script generated by Autoconf, you may include it under
12233 # the same distribution terms that you use for the rest of that program.
12234
12235
12236 # The names of the tagged configurations supported by this script.
12237 available_tags=""
12238
12239 # ### BEGIN LIBTOOL CONFIG
12240
12241 # A sed program that does not truncate output.
12242 SED=$lt_SED
12243
12244 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12245 Xsed="\$SED -e 1s/^X//"
12246
12247 # Assembler program.
12248 AS=$AS
12249
12250 # DLL creation program.
12251 DLLTOOL=$DLLTOOL
12252
12253 # Object dumper program.
12254 OBJDUMP=$OBJDUMP
12255
12256 # Which release of libtool.m4 was used?
12257 macro_version=$macro_version
12258 macro_revision=$macro_revision
12259
12260 # Whether or not to build shared libraries.
12261 build_libtool_libs=$enable_shared
12262
12263 # Whether or not to build static libraries.
12264 build_old_libs=$enable_static
12265
12266 # What type of objects to build.
12267 pic_mode=$pic_mode
12268
12269 # Whether or not to optimize for fast installation.
12270 fast_install=$enable_fast_install
12271
12272 # The host system.
12273 host_alias=$host_alias
12274 host=$host
12275 host_os=$host_os
12276
12277 # The build system.
12278 build_alias=$build_alias
12279 build=$build
12280 build_os=$build_os
12281
12282 # A grep program that handles long lines.
12283 GREP=$lt_GREP
12284
12285 # An ERE matcher.
12286 EGREP=$lt_EGREP
12287
12288 # A literal string matcher.
12289 FGREP=$lt_FGREP
12290
12291 # A BSD- or MS-compatible name lister.
12292 NM=$lt_NM
12293
12294 # Whether we need soft or hard links.
12295 LN_S=$lt_LN_S
12296
12297 # What is the maximum length of a command?
12298 max_cmd_len=$max_cmd_len
12299
12300 # Object file suffix (normally "o").
12301 objext=$ac_objext
12302
12303 # Executable file suffix (normally "").
12304 exeext=$exeext
12305
12306 # whether the shell understands "unset".
12307 lt_unset=$lt_unset
12308
12309 # turn spaces into newlines.
12310 SP2NL=$lt_lt_SP2NL
12311
12312 # turn newlines into spaces.
12313 NL2SP=$lt_lt_NL2SP
12314
12315 # How to create reloadable object files.
12316 reload_flag=$lt_reload_flag
12317 reload_cmds=$lt_reload_cmds
12318
12319 # Method to check whether dependent libraries are shared objects.
12320 deplibs_check_method=$lt_deplibs_check_method
12321
12322 # Command to use when deplibs_check_method == "file_magic".
12323 file_magic_cmd=$lt_file_magic_cmd
12324
12325 # The archiver.
12326 AR=$lt_AR
12327 AR_FLAGS=$lt_AR_FLAGS
12328
12329 # A symbol stripping program.
12330 STRIP=$lt_STRIP
12331
12332 # Commands used to install an old-style archive.
12333 RANLIB=$lt_RANLIB
12334 old_postinstall_cmds=$lt_old_postinstall_cmds
12335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12336
12337 # A C compiler.
12338 LTCC=$lt_CC
12339
12340 # LTCC compiler flags.
12341 LTCFLAGS=$lt_CFLAGS
12342
12343 # Take the output of nm and produce a listing of raw symbols and C names.
12344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12345
12346 # Transform the output of nm in a proper C declaration.
12347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12348
12349 # Transform the output of nm in a C name address pair.
12350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12351
12352 # The name of the directory that contains temporary libtool files.
12353 objdir=$objdir
12354
12355 # Shell to use when invoking shell scripts.
12356 SHELL=$lt_SHELL
12357
12358 # An echo program that does not interpret backslashes.
12359 ECHO=$lt_ECHO
12360
12361 # Used to examine libraries when file_magic_cmd begins with "file".
12362 MAGIC_CMD=$MAGIC_CMD
12363
12364 # Must we lock files when doing compilation?
12365 need_locks=$lt_need_locks
12366
12367 # Old archive suffix (normally "a").
12368 libext=$libext
12369
12370 # Shared library suffix (normally ".so").
12371 shrext_cmds=$lt_shrext_cmds
12372
12373 # The commands to extract the exported symbol list from a shared archive.
12374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12375
12376 # Variables whose values should be saved in libtool wrapper scripts and
12377 # restored at link time.
12378 variables_saved_for_relink=$lt_variables_saved_for_relink
12379
12380 # Do we need the "lib" prefix for modules?
12381 need_lib_prefix=$need_lib_prefix
12382
12383 # Do we need a version for libraries?
12384 need_version=$need_version
12385
12386 # Library versioning type.
12387 version_type=$version_type
12388
12389 # Shared library runtime path variable.
12390 runpath_var=$runpath_var
12391
12392 # Shared library path variable.
12393 shlibpath_var=$shlibpath_var
12394
12395 # Is shlibpath searched before the hard-coded library search path?
12396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12397
12398 # Format of library name prefix.
12399 libname_spec=$lt_libname_spec
12400
12401 # List of archive names.  First name is the real one, the rest are links.
12402 # The last name is the one that the linker finds with -lNAME
12403 library_names_spec=$lt_library_names_spec
12404
12405 # The coded name of the library, if different from the real name.
12406 soname_spec=$lt_soname_spec
12407
12408 # Command to use after installation of a shared archive.
12409 postinstall_cmds=$lt_postinstall_cmds
12410
12411 # Command to use after uninstallation of a shared archive.
12412 postuninstall_cmds=$lt_postuninstall_cmds
12413
12414 # Commands used to finish a libtool library installation in a directory.
12415 finish_cmds=$lt_finish_cmds
12416
12417 # As "finish_cmds", except a single script fragment to be evaled but
12418 # not shown.
12419 finish_eval=$lt_finish_eval
12420
12421 # Whether we should hardcode library paths into libraries.
12422 hardcode_into_libs=$hardcode_into_libs
12423
12424 # Compile-time system search path for libraries.
12425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12426
12427 # Run-time system search path for libraries.
12428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12429
12430 # Whether dlopen is supported.
12431 dlopen_support=$enable_dlopen
12432
12433 # Whether dlopen of programs is supported.
12434 dlopen_self=$enable_dlopen_self
12435
12436 # Whether dlopen of statically linked programs is supported.
12437 dlopen_self_static=$enable_dlopen_self_static
12438
12439 # Commands to strip libraries.
12440 old_striplib=$lt_old_striplib
12441 striplib=$lt_striplib
12442
12443
12444 # The linker used to build libraries.
12445 LD=$lt_LD
12446
12447 # Commands used to build an old-style archive.
12448 old_archive_cmds=$lt_old_archive_cmds
12449
12450 # A language specific compiler.
12451 CC=$lt_compiler
12452
12453 # Is the compiler the GNU compiler?
12454 with_gcc=$GCC
12455
12456 # Compiler flag to turn off builtin functions.
12457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12458
12459 # How to pass a linker flag through the compiler.
12460 wl=$lt_lt_prog_compiler_wl
12461
12462 # Additional compiler flags for building library objects.
12463 pic_flag=$lt_lt_prog_compiler_pic
12464
12465 # Compiler flag to prevent dynamic linking.
12466 link_static_flag=$lt_lt_prog_compiler_static
12467
12468 # Does compiler simultaneously support -c and -o options?
12469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12470
12471 # Whether or not to add -lc for building shared libraries.
12472 build_libtool_need_lc=$archive_cmds_need_lc
12473
12474 # Whether or not to disallow shared libs when runtime libs are static.
12475 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12476
12477 # Compiler flag to allow reflexive dlopens.
12478 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12479
12480 # Compiler flag to generate shared objects directly from archives.
12481 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12482
12483 # Whether the compiler copes with passing no objects directly.
12484 compiler_needs_object=$lt_compiler_needs_object
12485
12486 # Create an old-style archive from a shared archive.
12487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12488
12489 # Create a temporary old-style archive to link instead of a shared archive.
12490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12491
12492 # Commands used to build a shared archive.
12493 archive_cmds=$lt_archive_cmds
12494 archive_expsym_cmds=$lt_archive_expsym_cmds
12495
12496 # Commands used to build a loadable module if different from building
12497 # a shared archive.
12498 module_cmds=$lt_module_cmds
12499 module_expsym_cmds=$lt_module_expsym_cmds
12500
12501 # Whether we are building with GNU ld or not.
12502 with_gnu_ld=$lt_with_gnu_ld
12503
12504 # Flag that allows shared libraries with undefined symbols to be built.
12505 allow_undefined_flag=$lt_allow_undefined_flag
12506
12507 # Flag that enforces no undefined symbols.
12508 no_undefined_flag=$lt_no_undefined_flag
12509
12510 # Flag to hardcode \$libdir into a binary during linking.
12511 # This must work even if \$libdir does not exist
12512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12513
12514 # If ld is used when linking, flag to hardcode \$libdir into a binary
12515 # during linking.  This must work even if \$libdir does not exist.
12516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12517
12518 # Whether we need a single "-rpath" flag with a separated argument.
12519 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12520
12521 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12522 # DIR into the resulting binary.
12523 hardcode_direct=$hardcode_direct
12524
12525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12526 # DIR into the resulting binary and the resulting library dependency is
12527 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12528 # library is relocated.
12529 hardcode_direct_absolute=$hardcode_direct_absolute
12530
12531 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12532 # into the resulting binary.
12533 hardcode_minus_L=$hardcode_minus_L
12534
12535 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12536 # into the resulting binary.
12537 hardcode_shlibpath_var=$hardcode_shlibpath_var
12538
12539 # Set to "yes" if building a shared library automatically hardcodes DIR
12540 # into the library and all subsequent libraries and executables linked
12541 # against it.
12542 hardcode_automatic=$hardcode_automatic
12543
12544 # Set to yes if linker adds runtime paths of dependent libraries
12545 # to runtime path list.
12546 inherit_rpath=$inherit_rpath
12547
12548 # Whether libtool must link a program against all its dependency libraries.
12549 link_all_deplibs=$link_all_deplibs
12550
12551 # Fix the shell variable \$srcfile for the compiler.
12552 fix_srcfile_path=$lt_fix_srcfile_path
12553
12554 # Set to "yes" if exported symbols are required.
12555 always_export_symbols=$always_export_symbols
12556
12557 # The commands to list exported symbols.
12558 export_symbols_cmds=$lt_export_symbols_cmds
12559
12560 # Symbols that should not be listed in the preloaded symbols.
12561 exclude_expsyms=$lt_exclude_expsyms
12562
12563 # Symbols that must always be exported.
12564 include_expsyms=$lt_include_expsyms
12565
12566 # Commands necessary for linking programs (against libraries) with templates.
12567 prelink_cmds=$lt_prelink_cmds
12568
12569 # Specify filename containing input files.
12570 file_list_spec=$lt_file_list_spec
12571
12572 # How to hardcode a shared library path into an executable.
12573 hardcode_action=$hardcode_action
12574
12575 # ### END LIBTOOL CONFIG
12576
12577 _LT_EOF
12578
12579   case $host_os in
12580   aix3*)
12581     cat <<\_LT_EOF >> "$cfgfile"
12582 # AIX sometimes has problems with the GCC collect2 program.  For some
12583 # reason, if we set the COLLECT_NAMES environment variable, the problems
12584 # vanish in a puff of smoke.
12585 if test "X${COLLECT_NAMES+set}" != Xset; then
12586   COLLECT_NAMES=
12587   export COLLECT_NAMES
12588 fi
12589 _LT_EOF
12590     ;;
12591   esac
12592
12593
12594 ltmain="$ac_aux_dir/ltmain.sh"
12595
12596
12597   # We use sed instead of cat because bash on DJGPP gets confused if
12598   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12599   # text mode, it properly converts lines to CR/LF.  This bash problem
12600   # is reportedly fixed, but why not run on old versions too?
12601   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12602     || (rm -f "$cfgfile"; exit 1)
12603
12604   case $xsi_shell in
12605   yes)
12606     cat << \_LT_EOF >> "$cfgfile"
12607 # func_dirname file append nondir_replacement
12608 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12609 # otherwise set result to NONDIR_REPLACEMENT.
12610 func_dirname ()
12611 {
12612   case ${1} in
12613     */*) func_dirname_result="${1%/*}${2}" ;;
12614     *  ) func_dirname_result="${3}" ;;
12615   esac
12616 }
12617
12618 # func_basename file
12619 func_basename ()
12620 {
12621   func_basename_result="${1##*/}"
12622 }
12623
12624 # func_stripname prefix suffix name
12625 # strip PREFIX and SUFFIX off of NAME.
12626 # PREFIX and SUFFIX must not contain globbing or regex special
12627 # characters, hashes, percent signs, but SUFFIX may contain a leading
12628 # dot (in which case that matches only a dot).
12629 func_stripname ()
12630 {
12631   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12632   # positional parameters, so assign one to ordinary parameter first.
12633   func_stripname_result=${3}
12634   func_stripname_result=${func_stripname_result#"${1}"}
12635   func_stripname_result=${func_stripname_result%"${2}"}
12636 }
12637
12638 # func_opt_split
12639 func_opt_split ()
12640 {
12641   func_opt_split_opt=${1%%=*}
12642   func_opt_split_arg=${1#*=}
12643 }
12644
12645 # func_lo2o object
12646 func_lo2o ()
12647 {
12648   case ${1} in
12649     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12650     *)    func_lo2o_result=${1} ;;
12651   esac
12652 }
12653 _LT_EOF
12654     ;;
12655   *) # Bourne compatible functions.
12656     cat << \_LT_EOF >> "$cfgfile"
12657 # func_dirname file append nondir_replacement
12658 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12659 # otherwise set result to NONDIR_REPLACEMENT.
12660 func_dirname ()
12661 {
12662   # Extract subdirectory from the argument.
12663   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12664   if test "X$func_dirname_result" = "X${1}"; then
12665     func_dirname_result="${3}"
12666   else
12667     func_dirname_result="$func_dirname_result${2}"
12668   fi
12669 }
12670
12671 # func_basename file
12672 func_basename ()
12673 {
12674   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12675 }
12676
12677 # func_stripname prefix suffix name
12678 # strip PREFIX and SUFFIX off of NAME.
12679 # PREFIX and SUFFIX must not contain globbing or regex special
12680 # characters, hashes, percent signs, but SUFFIX may contain a leading
12681 # dot (in which case that matches only a dot).
12682 # func_strip_suffix prefix name
12683 func_stripname ()
12684 {
12685   case ${2} in
12686     .*) func_stripname_result=`$ECHO "X${3}" \
12687            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12688     *)  func_stripname_result=`$ECHO "X${3}" \
12689            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12690   esac
12691 }
12692
12693 # sed scripts:
12694 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12695 my_sed_long_arg='1s/^-[^=]*=//'
12696
12697 # func_opt_split
12698 func_opt_split ()
12699 {
12700   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12701   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12702 }
12703
12704 # func_lo2o object
12705 func_lo2o ()
12706 {
12707   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12708 }
12709 _LT_EOF
12710 esac
12711
12712 case $lt_shell_append in
12713   yes)
12714     cat << \_LT_EOF >> "$cfgfile"
12715
12716 # func_append var value
12717 # Append VALUE to the end of shell variable VAR.
12718 func_append ()
12719 {
12720   eval "$1+=\$2"
12721 }
12722 _LT_EOF
12723     ;;
12724   *)
12725     cat << \_LT_EOF >> "$cfgfile"
12726
12727 # func_append var value
12728 # Append VALUE to the end of shell variable VAR.
12729 func_append ()
12730 {
12731   eval "$1=\$$1\$2"
12732 }
12733 _LT_EOF
12734     ;;
12735   esac
12736
12737
12738   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12739     || (rm -f "$cfgfile"; exit 1)
12740
12741   mv -f "$cfgfile" "$ofile" ||
12742     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12743   chmod +x "$ofile"
12744
12745  ;;
12746   esac
12747 done
12748 _ACEOF
12749
12750 cat >>$CONFIG_STATUS <<\_ACEOF
12751
12752 { (exit 0); exit 0; }
12753 _ACEOF
12754 chmod +x $CONFIG_STATUS
12755 ac_clean_files=$ac_clean_files_save
12756
12757
12758 # configure is writing to config.log, and then calls config.status.
12759 # config.status does its own redirection, appending to config.log.
12760 # Unfortunately, on DOS this fails, as config.log is still kept open
12761 # by configure, so config.status won't be able to write to it; its
12762 # output is simply discarded.  So we exec the FD to /dev/null,
12763 # effectively closing config.log, so it can be properly (re)opened and
12764 # appended to by config.status.  When coming back to configure, we
12765 # need to make the FD available again.
12766 if test "$no_create" != yes; then
12767   ac_cs_success=:
12768   ac_config_status_args=
12769   test "$silent" = yes &&
12770     ac_config_status_args="$ac_config_status_args --quiet"
12771   exec 5>/dev/null
12772   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12773   exec 5>>config.log
12774   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12775   # would make configure fail if this is the last instruction.
12776   $ac_cs_success || { (exit 1); exit 1; }
12777 fi
12778
12779 #
12780 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
12781 #
12782 if test "$no_recursion" != yes; then
12783
12784   # Remove --cache-file and --srcdir arguments so they do not pile up.
12785   ac_sub_configure_args=
12786   ac_prev=
12787   eval "set x $ac_configure_args"
12788   shift
12789   for ac_arg
12790   do
12791     if test -n "$ac_prev"; then
12792       ac_prev=
12793       continue
12794     fi
12795     case $ac_arg in
12796     -cache-file | --cache-file | --cache-fil | --cache-fi \
12797     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12798       ac_prev=cache_file ;;
12799     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12800     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12801     | --c=*)
12802       ;;
12803     --config-cache | -C)
12804       ;;
12805     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12806       ac_prev=srcdir ;;
12807     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12808       ;;
12809     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12810       ac_prev=prefix ;;
12811     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12812       ;;
12813     *)
12814       case $ac_arg in
12815       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12816       esac
12817       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
12818     esac
12819   done
12820
12821   # Always prepend --prefix to ensure using the same prefix
12822   # in subdir configurations.
12823   ac_arg="--prefix=$prefix"
12824   case $ac_arg in
12825   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12826   esac
12827   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
12828
12829   ac_popdir=`pwd`
12830   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12831
12832     # Do not complain, so a configure script can configure whichever
12833     # parts of a large source tree are present.
12834     test -d "$srcdir/$ac_dir" || continue
12835
12836     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
12837 echo "$as_me: configuring in $ac_dir" >&6;}
12838     { if $as_mkdir_p; then
12839     mkdir -p "$ac_dir"
12840   else
12841     as_dir="$ac_dir"
12842     as_dirs=
12843     while test ! -d "$as_dir"; do
12844       as_dirs="$as_dir $as_dirs"
12845       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12847          X"$as_dir" : 'X\(//\)[^/]' \| \
12848          X"$as_dir" : 'X\(//\)$' \| \
12849          X"$as_dir" : 'X\(/\)' \| \
12850          .     : '\(.\)' 2>/dev/null ||
12851 echo X"$as_dir" |
12852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12853           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12854           /^X\(\/\/\)$/{ s//\1/; q; }
12855           /^X\(\/\).*/{ s//\1/; q; }
12856           s/.*/./; q'`
12857     done
12858     test ! -n "$as_dirs" || mkdir $as_dirs
12859   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12860 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12861    { (exit 1); exit 1; }; }; }
12862
12863     ac_builddir=.
12864
12865 if test "$ac_dir" != .; then
12866   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12867   # A "../" for each directory in $ac_dir_suffix.
12868   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12869 else
12870   ac_dir_suffix= ac_top_builddir=
12871 fi
12872
12873 case $srcdir in
12874   .)  # No --srcdir option.  We are building in place.
12875     ac_srcdir=.
12876     if test -z "$ac_top_builddir"; then
12877        ac_top_srcdir=.
12878     else
12879        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12880     fi ;;
12881   [\\/]* | ?:[\\/]* )  # Absolute path.
12882     ac_srcdir=$srcdir$ac_dir_suffix;
12883     ac_top_srcdir=$srcdir ;;
12884   *) # Relative path.
12885     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12886     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12887 esac
12888
12889 # Do not use `cd foo && pwd` to compute absolute paths, because
12890 # the directories may not exist.
12891 case `pwd` in
12892 .) ac_abs_builddir="$ac_dir";;
12893 *)
12894   case "$ac_dir" in
12895   .) ac_abs_builddir=`pwd`;;
12896   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12897   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12898   esac;;
12899 esac
12900 case $ac_abs_builddir in
12901 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12902 *)
12903   case ${ac_top_builddir}. in
12904   .) ac_abs_top_builddir=$ac_abs_builddir;;
12905   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12906   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12907   esac;;
12908 esac
12909 case $ac_abs_builddir in
12910 .) ac_abs_srcdir=$ac_srcdir;;
12911 *)
12912   case $ac_srcdir in
12913   .) ac_abs_srcdir=$ac_abs_builddir;;
12914   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12915   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12916   esac;;
12917 esac
12918 case $ac_abs_builddir in
12919 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12920 *)
12921   case $ac_top_srcdir in
12922   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12923   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12924   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12925   esac;;
12926 esac
12927
12928
12929     cd "$ac_dir"
12930
12931     # Check for guested configure; otherwise get Cygnus style configure.
12932     if test -f "$ac_srcdir/configure.gnu"; then
12933       ac_sub_configure=$ac_srcdir/configure.gnu
12934     elif test -f "$ac_srcdir/configure"; then
12935       ac_sub_configure=$ac_srcdir/configure
12936     elif test -f "$ac_srcdir/configure.in"; then
12937       # This should be Cygnus configure.
12938       ac_sub_configure=$ac_aux_dir/configure
12939     else
12940       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
12941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12942       ac_sub_configure=
12943     fi
12944
12945     # The recursion is here.
12946     if test -n "$ac_sub_configure"; then
12947       # Make the cache file name correct relative to the subdirectory.
12948       case $cache_file in
12949       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12950       *) # Relative path.
12951         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
12952       esac
12953
12954       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12955 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12956       # The eval makes quoting arguments work.
12957       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12958            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12959         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
12960 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
12961    { (exit 1); exit 1; }; }
12962     fi
12963
12964     cd "$ac_popdir"
12965   done
12966 fi
12967